@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.104Z") @Stability(value=Experimental) public interface AutoBranchCreation extends software.amazon.jsii.JsiiSerializable
Example:
App amplifyApp = App.Builder.create(this, "MyApp")
.sourceCodeProvider(GitHubSourceCodeProvider.Builder.create()
.owner("<user>")
.repository("<repo>")
.oauthToken(SecretValue.secretsManager("my-github-token"))
.build())
.autoBranchCreation(AutoBranchCreation.builder() // Automatically connect branches that match a pattern set
.patterns(List.of("feature/*", "test/*")).build())
.autoBranchDeletion(true)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AutoBranchCreation.Builder
A builder for
AutoBranchCreation |
static class |
AutoBranchCreation.Jsii$Proxy
An implementation for
AutoBranchCreation |
| Modifier and Type | Method and Description |
|---|---|
static AutoBranchCreation.Builder |
builder() |
default Boolean |
getAutoBuild()
(experimental) Whether to enable auto building for the auto created branch.
|
default BasicAuth |
getBasicAuth()
(experimental) The Basic Auth configuration.
|
default BuildSpec |
getBuildSpec()
(experimental) Build spec for the auto created branch.
|
default Map<String,String> |
getEnvironmentVariables()
(experimental) Environment variables for the auto created branch.
|
default List<String> |
getPatterns()
(experimental) Automated branch creation glob patterns.
|
default String |
getPullRequestEnvironmentName()
(experimental) The dedicated backend environment for the pull request previews of the auto created branch.
|
default Boolean |
getPullRequestPreview()
(experimental) Whether to enable pull request preview for the auto created branch.
|
default String |
getStage()
(experimental) Stage for the auto created branch.
|
@Stability(value=Experimental) @Nullable default Boolean getAutoBuild()
Default: true
@Stability(value=Experimental) @Nullable default BasicAuth getBasicAuth()
Use this to set password protection for the auto created branch.
Default: - no password protection
@Stability(value=Experimental) @Nullable default BuildSpec getBuildSpec()
Default: - application build spec
@Stability(value=Experimental) @Nullable default Map<String,String> getEnvironmentVariables()
All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
Default: - application environment variables
@Stability(value=Experimental) @Nullable default List<String> getPatterns()
Default: - all repository branches
@Stability(value=Experimental) @Nullable default String getPullRequestEnvironmentName()
Default: - automatically provision a temporary backend
@Stability(value=Experimental) @Nullable default Boolean getPullRequestPreview()
Default: true
@Stability(value=Experimental) @Nullable default String getStage()
Default: - no stage
@Stability(value=Experimental) static AutoBranchCreation.Builder builder()
AutoBranchCreation.Builder of AutoBranchCreationCopyright © 2022. All rights reserved.