Package software.amazon.awscdk
Class Environment.Builder
java.lang.Object
software.amazon.awscdk.Environment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Environment>
- Enclosing interface:
Environment
@Stability(Stable)
public static final class Environment.Builder
extends Object
implements software.amazon.jsii.Builder<Environment>
A builder for
Environment-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEnvironment.getAccount()build()Builds the configured instance.Sets the value ofEnvironment.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
account
Sets the value ofEnvironment.getAccount()- Parameters:
account- The AWS account ID for this environment. This can be either a concrete value such as585191031104orAws.ACCOUNT_IDwhich indicates that account ID will only be determined during deployment (it will resolve to the CloudFormation intrinsic{"Ref":"AWS::AccountId"}). Note that certain features, such as cross-stack references and environmental context providers require concrete region information and will cause this stack to emit synthesis errors.- Returns:
this
-
region
Sets the value ofEnvironment.getRegion()- Parameters:
region- The AWS region for this environment. This can be either a concrete value such aseu-west-2orAws.REGIONwhich indicates that account ID will only be determined during deployment (it will resolve to the CloudFormation intrinsic{"Ref":"AWS::Region"}). Note that certain features, such as cross-stack references and environmental context providers require concrete region information and will cause this stack to emit synthesis errors.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Environment>- Returns:
- a new instance of
Environment - Throws:
NullPointerException- if any required attribute was not provided
-