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.74.0 (build 6d08790)",
date="2023-05-31T18:44:11.464Z")
@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();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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 TypeMethodDescriptionRetains 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.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
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
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.
-