Class ProductStackHistory

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

@Generated(value="jsii-pacmak/1.110.0 (build 336b265)", date="2025-04-22T23:08:20.785Z") @Stability(Stable) public class ProductStackHistory extends software.constructs.Construct
A Construct that contains a Service Catalog product stack with its previous deployments maintained.

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()))
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for ProductStackHistory.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ProductStackHistory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ProductStackHistory(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    ProductStackHistory(software.constructs.Construct scope, String id, ProductStackHistoryProps props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Retains product stack template as a snapshot when deployed and retrieves a CloudFormationProductVersion for the current product version.
    versionFromSnapshot(String productVersionName)
    Retrieves a CloudFormationProductVersion from a previously deployed productVersionName.

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, toString

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • 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.