Class Branch
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.amplify.alpha.Branch
- All Implemented Interfaces:
IResource,IBranch,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:22.983Z")
@Stability(Experimental)
public class Branch
extends Resource
implements IBranch
(experimental) An Amplify Console branch.
Example:
Role computeRole;
App amplifyApp;
Branch branch = amplifyApp.addBranch("dev", BranchOptions.builder().computeRole(computeRole).build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.amplify.alpha.IBranch
IBranch.Jsii$Default, IBranch.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBranch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBranch(software.amazon.jsii.JsiiObjectRef objRef) Branch(software.constructs.Construct scope, String id, BranchProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddEnvironment(String name, String value) (experimental) Adds an environment variable to this branch.static IBranchfromBranchName(software.constructs.Construct scope, String id, String branchName) (experimental) Import an existing branch.getArn()(experimental) The ARN of the branch.(experimental) The name of the branch.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
Branch
protected Branch(software.amazon.jsii.JsiiObjectRef objRef) -
Branch
protected Branch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Branch
@Stability(Experimental) public Branch(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BranchProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromBranchName
@Stability(Experimental) @NotNull public static IBranch fromBranchName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String branchName) (experimental) Import an existing branch.- Parameters:
scope- This parameter is required.id- This parameter is required.branchName- This parameter is required.
-
addEnvironment
@Stability(Experimental) @NotNull public Branch addEnvironment(@NotNull String name, @NotNull String value) (experimental) Adds an environment variable to this branch.All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
- Parameters:
name- This parameter is required.value- This parameter is required.
-
getArn
(experimental) The ARN of the branch. -
getBranchName
(experimental) The name of the branch.- Specified by:
getBranchNamein interfaceIBranch
-