aws-cdk-lib.aws_servicecatalog.ProductStackHistoryProps

interface ProductStackHistoryProps

LanguageType name
.NETAmazon.CDK.AWS.Servicecatalog.ProductStackHistoryProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsservicecatalog#ProductStackHistoryProps
Javasoftware.amazon.awscdk.services.servicecatalog.ProductStackHistoryProps
Pythonaws_cdk.aws_servicecatalog.ProductStackHistoryProps
TypeScript (source)aws-cdk-lib » aws_servicecatalog » ProductStackHistoryProps

Properties for a ProductStackHistory.

Example

class S3BucketProduct extends servicecatalog.ProductStack {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    new s3.Bucket(this, 'BucketProductV2');
  }
}

const productStackHistory = new servicecatalog.ProductStackHistory(this, 'ProductStackHistory', {
  productStack: new S3BucketProduct(this, 'S3BucketProduct'),
  currentVersionName: 'v2',
  currentVersionLocked: true
});

const product = new servicecatalog.CloudFormationProduct(this, 'MyFirstProduct', {
  productName: "My Product",
  owner: "Product Owner",
  productVersions: [
    productStackHistory.currentVersion(),
  ],
});

Properties

NameTypeDescription
currentVersionLockedbooleanIf this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.
currentVersionNamestringThe current version name of the ProductStack.
productStackProductStackThe ProductStack whose history will be retained as a snapshot.
description?stringThe description of the product version.
directory?stringThe directory where template snapshots will be stored.
validateTemplate?booleanWhether the specified product template will be validated by CloudFormation.

currentVersionLocked

Type: boolean

If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.


currentVersionName

Type: string

The current version name of the ProductStack.


productStack

Type: ProductStack

The ProductStack whose history will be retained as a snapshot.


description?

Type: string (optional, default: No description provided)

The description of the product version.


directory?

Type: string (optional, default: 'product-stack-snapshots')

The directory where template snapshots will be stored.


validateTemplate?

Type: boolean (optional, default: true)

Whether the specified product template will be validated by CloudFormation.

If turned off, an invalid template configuration can be stored.