@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.108Z") @Stability(value=Experimental) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIBranch.Jsii$Default, IBranch.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Branch(software.constructs.Construct scope,
String id,
BranchProps props) |
protected |
Branch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Branch(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Branch |
addEnvironment(String name,
String value)
(experimental) Adds an environment variable to this branch.
|
static IBranch |
fromBranchName(software.constructs.Construct scope,
String id,
String branchName)
(experimental) Import an existing branch.
|
String |
getArn()
(experimental) The ARN of the branch.
|
String |
getBranchName()
(experimental) The name of the branch.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected Branch(software.amazon.jsii.JsiiObjectRef objRef)
protected Branch(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Branch(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
BranchProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IBranch fromBranchName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String branchName)
scope - This parameter is required.id - This parameter is required.branchName - This parameter is required.@Stability(value=Experimental) @NotNull public Branch addEnvironment(@NotNull String name, @NotNull 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.@Stability(value=Experimental) @NotNull public String getArn()
@Stability(value=Experimental) @NotNull public String getBranchName()
getBranchName in interface IBranchCopyright © 2022. All rights reserved.