@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.109Z") @Stability(value=Stable) public class ProductStackHistory extends software.constructs.Construct
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.*;
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
ProductStackHistory.Builder
A fluent builder for
ProductStackHistory. |
| Modifier | Constructor and Description |
|---|---|
|
ProductStackHistory(software.constructs.Construct scope,
String id,
ProductStackHistoryProps props) |
protected |
ProductStackHistory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ProductStackHistory(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
CloudFormationProductVersion |
currentVersion()
Retains product stack template as a snapshot when deployed and retrieves a CloudFormationProductVersion for the current product version.
|
CloudFormationProductVersion |
versionFromSnapshot(String productVersionName)
Retrieves a CloudFormationProductVersion from a previously deployed productVersionName.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ProductStackHistory(software.amazon.jsii.JsiiObjectRef objRef)
protected ProductStackHistory(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ProductStackHistory(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ProductStackHistoryProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public CloudFormationProductVersion currentVersion()
@Stability(value=Stable) @NotNull public CloudFormationProductVersion versionFromSnapshot(@NotNull String productVersionName)
productVersionName - This parameter is required.Copyright © 2022. All rights reserved.