Class ProductStack.Builder

java.lang.Object
software.amazon.awscdk.services.servicecatalog.ProductStack.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ProductStack>
Enclosing class:
ProductStack

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

    • create

      @Stability(Stable) public static ProductStack.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of ProductStack.Builder.
    • assetBucket

      @Stability(Stable) public ProductStack.Builder assetBucket(IBucket assetBucket)
      A Bucket can be passed to store assets, enabling ProductStack Asset support.

      Default: - No Bucket provided and Assets will not be supported.

      Parameters:
      assetBucket - A Bucket can be passed to store assets, enabling ProductStack Asset support. This parameter is required.
      Returns:
      this
    • memoryLimit

      @Stability(Stable) public ProductStack.Builder memoryLimit(Number memoryLimit)
      The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket.

      If you are deploying large files, you will need to increase this number accordingly.

      Default: 128

      Parameters:
      memoryLimit - The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket. This parameter is required.
      Returns:
      this
    • serverSideEncryption

      @Stability(Stable) public ProductStack.Builder serverSideEncryption(ServerSideEncryption serverSideEncryption)
      A ServerSideEncryption can be enabled to encrypt assets that are put into assetBucket.

      Default: - No encryption is used

      Parameters:
      serverSideEncryption - A ServerSideEncryption can be enabled to encrypt assets that are put into assetBucket. This parameter is required.
      Returns:
      this
    • serverSideEncryptionAwsKmsKeyId

      @Stability(Stable) public ProductStack.Builder serverSideEncryptionAwsKmsKeyId(String serverSideEncryptionAwsKmsKeyId)
      For AWS_KMS ServerSideEncryption a KMS KeyId must be provided which will be used to encrypt assets.

      Default: - No KMS KeyId and SSE_KMS encryption cannot be used

      Parameters:
      serverSideEncryptionAwsKmsKeyId - For AWS_KMS ServerSideEncryption a KMS KeyId must be provided which will be used to encrypt assets. This parameter is required.
      Returns:
      this
    • build

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