@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:45.267Z") public class Branch extends Resource implements IBranch
Example:
App amplifyApp; Branch master = amplifyApp.addBranch("master"); // `id` will be used as repo branch name Branch dev = amplifyApp.addBranch("dev", BranchOptions.builder() .performanceMode(true) .build()); dev.addEnvironment("STAGE", "dev");
Modifier and Type | Class and Description |
---|---|
static class |
Branch.Builder
(experimental) A fluent builder for
Branch . |
IBranch.Jsii$Default, IBranch.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Branch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Branch(software.amazon.jsii.JsiiObjectRef objRef) |
|
Branch(software.constructs.Construct scope,
java.lang.String id,
BranchProps props) |
Modifier and Type | Method and Description |
---|---|
Branch |
addEnvironment(java.lang.String name,
java.lang.String value)
(experimental) Adds an environment variable to this branch.
|
static IBranch |
fromBranchName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String branchName)
(experimental) Import an existing branch.
|
java.lang.String |
getArn()
(experimental) The ARN of the branch.
|
java.lang.String |
getBranchName()
(experimental) The name of the branch.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected Branch(software.amazon.jsii.JsiiObjectRef objRef)
protected Branch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Branch(software.constructs.Construct scope, java.lang.String id, BranchProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IBranch fromBranchName(software.constructs.Construct scope, java.lang.String id, java.lang.String branchName)
scope
- This parameter is required.id
- This parameter is required.branchName
- This parameter is required.public Branch addEnvironment(java.lang.String name, java.lang.String value)
All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.
name
- This parameter is required.value
- This parameter is required.public java.lang.String getArn()
public java.lang.String getBranchName()
getBranchName
in interface IBranch