@Stability(value=Stable) public static final class Environment.Builder extends Object implements software.amazon.jsii.Builder<Environment>
Environment
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Environment.Builder |
account(String account)
Sets the value of
Environment.getAccount() |
Environment |
build()
Builds the configured instance.
|
Environment.Builder |
region(String region)
Sets the value of
Environment.getRegion() |
@Stability(value=Stable) public Environment.Builder account(String account)
Environment.getAccount()
account
- The AWS account ID for this environment.
This can be either a concrete value such as 585191031104
or Aws.accountId
which
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 concerete region information and
will cause this stack to emit synthesis errors.this
@Stability(value=Stable) public Environment.Builder region(String region)
Environment.getRegion()
region
- The AWS region for this environment.
This can be either a concrete value such as eu-west-2
or Aws.region
which 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 concerete region information and
will cause this stack to emit synthesis errors.this
@Stability(value=Stable) public Environment build()
build
in interface software.amazon.jsii.Builder<Environment>
Environment
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.