Class ProductStackHistory

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.800Z") @Stability(Stable) public class ProductStackHistory extends Construct
A Construct that contains a Service Catalog product stack with its previous deployments maintained.

Example:

 import software.amazon.awscdk.services.s3.*;
 import software.amazon.awscdk.core.*;
 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()))
         .build();
 
  • Constructor Details

    • ProductStackHistory

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

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

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

    • currentVersion

      @Stability(Stable) @NotNull public CloudFormationProductVersion currentVersion()
      Retains product stack template as a snapshot when deployed and retrieves a CloudFormationProductVersion for the current product version.
    • versionFromSnapshot

      @Stability(Stable) @NotNull public CloudFormationProductVersion versionFromSnapshot(@NotNull String productVersionName)
      Retrieves a CloudFormationProductVersion from a previously deployed productVersionName.

      Parameters:
      productVersionName - This parameter is required.