Class Environment.Builder

java.lang.Object
software.amazon.awscdk.core.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 Details

    • Builder

      public Builder()
  • Method Details

    • account

      @Stability(Stable) public Environment.Builder account(String account)
      Sets the value of Environment.getAccount()
      Parameters:
      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.
      Returns:
      this
    • region

      @Stability(Stable) public Environment.Builder region(String region)
      Sets the value of Environment.getRegion()
      Parameters:
      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.
      Returns:
      this
    • build

      @Stability(Stable) public Environment build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<Environment>
      Returns:
      a new instance of Environment
      Throws:
      NullPointerException - if any required attribute was not provided