Class CliCredentialsStackSynthesizer.Builder

java.lang.Object
software.amazon.awscdk.core.CliCredentialsStackSynthesizer.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CliCredentialsStackSynthesizer>
Enclosing class:
CliCredentialsStackSynthesizer

@Stability(Stable) public static final class CliCredentialsStackSynthesizer.Builder extends Object implements software.amazon.jsii.Builder<CliCredentialsStackSynthesizer>
A fluent builder for CliCredentialsStackSynthesizer.
  • Method Details

    • create

      @Stability(Stable) public static CliCredentialsStackSynthesizer.Builder create()
      Returns:
      a new instance of CliCredentialsStackSynthesizer.Builder.
    • bucketPrefix

      @Stability(Stable) public CliCredentialsStackSynthesizer.Builder bucketPrefix(String bucketPrefix)
      bucketPrefix to use while storing S3 Assets.

      Default: - DefaultStackSynthesizer.DEFAULT_FILE_ASSET_PREFIX

      Parameters:
      bucketPrefix - bucketPrefix to use while storing S3 Assets. This parameter is required.
      Returns:
      this
    • dockerTagPrefix

      @Stability(Stable) public CliCredentialsStackSynthesizer.Builder dockerTagPrefix(String dockerTagPrefix)
      A prefix to use while tagging and uploading Docker images to ECR.

      This does not add any separators - the source hash will be appended to this string directly.

      Default: - DefaultStackSynthesizer.DEFAULT_DOCKER_ASSET_PREFIX

      Parameters:
      dockerTagPrefix - A prefix to use while tagging and uploading Docker images to ECR. This parameter is required.
      Returns:
      this
    • fileAssetsBucketName

      @Stability(Stable) public CliCredentialsStackSynthesizer.Builder fileAssetsBucketName(String fileAssetsBucketName)
      Name of the S3 bucket to hold file assets.

      You must supply this if you have given a non-standard name to the staging bucket.

      The placeholders ${Qualifier}, ${AWS::AccountId} and ${AWS::Region} will be replaced with the values of qualifier and the stack's account and region, respectively.

      Default: DefaultStackSynthesizer.DEFAULT_FILE_ASSETS_BUCKET_NAME

      Parameters:
      fileAssetsBucketName - Name of the S3 bucket to hold file assets. This parameter is required.
      Returns:
      this
    • imageAssetsRepositoryName

      @Stability(Stable) public CliCredentialsStackSynthesizer.Builder imageAssetsRepositoryName(String imageAssetsRepositoryName)
      Name of the ECR repository to hold Docker Image assets.

      You must supply this if you have given a non-standard name to the ECR repository.

      The placeholders ${Qualifier}, ${AWS::AccountId} and ${AWS::Region} will be replaced with the values of qualifier and the stack's account and region, respectively.

      Default: DefaultStackSynthesizer.DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME

      Parameters:
      imageAssetsRepositoryName - Name of the ECR repository to hold Docker Image assets. This parameter is required.
      Returns:
      this
    • qualifier

      @Stability(Stable) public CliCredentialsStackSynthesizer.Builder qualifier(String qualifier)
      Qualifier to disambiguate multiple environments in the same account.

      You can use this and leave the other naming properties empty if you have deployed the bootstrap environment with standard names but only differnet qualifiers.

      Default: - Value of context key '

      Parameters:
      qualifier - Qualifier to disambiguate multiple environments in the same account. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CliCredentialsStackSynthesizer build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CliCredentialsStackSynthesizer>
      Returns:
      a newly built instance of CliCredentialsStackSynthesizer.