Class CfnBranch
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.amplify.CfnBranch
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:13.159Z")
@Stability(Stable)
public class CfnBranch
extends CfnResource
implements IInspectable, ITaggable
The AWS::Amplify::Branch resource specifies a new branch within an app.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.amplify.*; CfnBranch cfnBranch = CfnBranch.Builder.create(this, "MyCfnBranch") .appId("appId") .branchName("branchName") // the properties below are optional .backend(BackendProperty.builder() .stackArn("stackArn") .build()) .basicAuthConfig(BasicAuthConfigProperty.builder() .password("password") .username("username") // the properties below are optional .enableBasicAuth(false) .build()) .buildSpec("buildSpec") .description("description") .enableAutoBuild(false) .enablePerformanceMode(false) .enablePullRequestPreview(false) .environmentVariables(List.of(EnvironmentVariableProperty.builder() .name("name") .value("value") .build())) .framework("framework") .pullRequestEnvironmentName("pullRequestEnvironmentName") .stage("stage") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Describes the backend associated with an AmplifyBranch
.static interface
Use the BasicAuthConfig property type to set password protection for a specific branch.static final class
A fluent builder forCfnBranch
.static interface
The EnvironmentVariable property type sets environment variables for a specific branch.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnBranch
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnBranch
(software.amazon.jsii.JsiiObjectRef objRef) CfnBranch
(software.constructs.Construct scope, String id, CfnBranchProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetAppId()
The unique ID for an Amplify app.ARN for a branch, part of an Amplify App.Name for a branch, part of an Amplify App.The backend for aBranch
of an Amplify app.The basic authorization credentials for a branch of an Amplify app.The name for the branch.The build specification (build spec) for the branch.The description for the branch that is part of an Amplify app.Enables auto building for the branch.Enables performance mode for the branch.Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch.The environment variables for the branch.The framework for the branch.If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews.getStage()
Describes the current stage for the branch.getTags()
Tag Manager which manages the tags for this resource.The tag for the branch.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The unique ID for an Amplify app.void
setBackend
(IResolvable value) The backend for aBranch
of an Amplify app.void
The backend for aBranch
of an Amplify app.void
setBasicAuthConfig
(IResolvable value) The basic authorization credentials for a branch of an Amplify app.void
The basic authorization credentials for a branch of an Amplify app.void
setBranchName
(String value) The name for the branch.void
setBuildSpec
(String value) The build specification (build spec) for the branch.void
setDescription
(String value) The description for the branch that is part of an Amplify app.void
setEnableAutoBuild
(Boolean value) Enables auto building for the branch.void
setEnableAutoBuild
(IResolvable value) Enables auto building for the branch.void
setEnablePerformanceMode
(Boolean value) Enables performance mode for the branch.void
Enables performance mode for the branch.void
Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch.void
Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch.void
setEnvironmentVariables
(List<Object> value) The environment variables for the branch.void
The environment variables for the branch.void
setFramework
(String value) The framework for the branch.void
If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews.void
Describes the current stage for the branch.void
setTagsRaw
(List<CfnTag> value) The tag for the branch.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBranch
protected CfnBranch(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBranch
protected CfnBranch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBranch
@Stability(Stable) public CfnBranch(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBranchProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
ARN for a branch, part of an Amplify App. -
getAttrBranchName
Name for a branch, part of an Amplify App. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAppId
The unique ID for an Amplify app. -
setAppId
The unique ID for an Amplify app. -
getBranchName
The name for the branch. -
setBranchName
The name for the branch. -
getBackend
The backend for aBranch
of an Amplify app.Use for a backend created from an AWS CloudFormation stack.
-
setBackend
The backend for aBranch
of an Amplify app.Use for a backend created from an AWS CloudFormation stack.
-
setBackend
The backend for aBranch
of an Amplify app.Use for a backend created from an AWS CloudFormation stack.
-
getBasicAuthConfig
The basic authorization credentials for a branch of an Amplify app. -
setBasicAuthConfig
The basic authorization credentials for a branch of an Amplify app. -
setBasicAuthConfig
@Stability(Stable) public void setBasicAuthConfig(@Nullable CfnBranch.BasicAuthConfigProperty value) The basic authorization credentials for a branch of an Amplify app. -
getBuildSpec
The build specification (build spec) for the branch. -
setBuildSpec
The build specification (build spec) for the branch. -
getDescription
The description for the branch that is part of an Amplify app. -
setDescription
The description for the branch that is part of an Amplify app. -
getEnableAutoBuild
Enables auto building for the branch. -
setEnableAutoBuild
Enables auto building for the branch. -
setEnableAutoBuild
Enables auto building for the branch. -
getEnablePerformanceMode
Enables performance mode for the branch. -
setEnablePerformanceMode
Enables performance mode for the branch. -
setEnablePerformanceMode
Enables performance mode for the branch. -
getEnablePullRequestPreview
Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. -
setEnablePullRequestPreview
Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. -
setEnablePullRequestPreview
Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. -
getEnvironmentVariables
The environment variables for the branch. -
setEnvironmentVariables
The environment variables for the branch. -
setEnvironmentVariables
The environment variables for the branch. -
getFramework
The framework for the branch. -
setFramework
The framework for the branch. -
getPullRequestEnvironmentName
If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. -
setPullRequestEnvironmentName
If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. -
getStage
Describes the current stage for the branch. -
setStage
Describes the current stage for the branch. -
getTagsRaw
The tag for the branch. -
setTagsRaw
The tag for the branch.
-