java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Stack
software.amazon.awscdk.services.servicecatalog.ProductStack
All Implemented Interfaces:
ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-06T22:16:02.868Z") @Stability(Stable) public class ProductStack extends Stack
A Service Catalog product stack, which is similar in form to a Cloudformation nested stack.

You can add the resources to this stack that you want to define for your service catalog product.

This stack will not be treated as an independent deployment artifact (won't be listed in "cdk list" or deployable through "cdk deploy"), but rather only synthesized as a template and uploaded as an asset to S3.

Example:

 public class S3BucketProduct extends ProductStack {
     public S3BucketProduct(Construct scope, String id) {
         super(scope, id);
         new Bucket(this, "BucketProductV2");
     }
 }
 ProductStackHistory productStackHistory = ProductStackHistory.Builder.create(this, "ProductStackHistory")
         .productStack(new S3BucketProduct(this, "S3BucketProduct"))
         .currentVersionName("v2")
         .currentVersionLocked(true)
         .build();
 CloudFormationProduct product = CloudFormationProduct.Builder.create(this, "MyFirstProduct")
         .productName("My Product")
         .owner("Product Owner")
         .productVersions(List.of(productStackHistory.currentVersion(), productStackHistory.versionFromSnapshot("v1")))
         .build();
 
  • Constructor Details

    • ProductStack

      protected ProductStack(software.amazon.jsii.JsiiObjectRef objRef)
    • ProductStack

      protected ProductStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ProductStack

      @Stability(Stable) public ProductStack(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ProductStackProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • ProductStack

      @Stability(Stable) public ProductStack(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • getTemplateFile

      @Stability(Stable) @NotNull public String getTemplateFile()
      The name of the CloudFormation template file emitted to the output directory during synthesis.

      Example value: MyStack.template.json

      Overrides:
      getTemplateFile in class Stack