ProductStackHistoryProps Struct
Properties for a ProductStackHistory.
Example
ts
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
currentVersionLockedbooleancurrent_version_lockedboolcurrentVersionLockedBooleanCurrentVersionLockedboolCurrentVersionLocked*boolrequired#If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.
currentVersionNamestringcurrent_version_namestrcurrentVersionNameStringCurrentVersionNamestringCurrentVersionName*stringrequired#The current version name of the ProductStack.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#The description of the product version.
Default: No description provided
directoryoptionalstringdirectoryoptionalstrdirectoryoptionalStringDirectoryoptionalstringDirectoryoptional*string= 'product-stack-snapshots'#The directory where template snapshots will be stored.
productStackProductStackproduct_stackProductStackproductStackProductStackProductStackProductStackProductStackProductStackrequired#The ProductStack whose history will be retained as a snapshot.
validateTemplateoptionalbooleanvalidate_templateoptionalboolvalidateTemplateoptionalBooleanValidateTemplateoptionalboolValidateTemplateoptional*bool= true#Whether the specified product template will be validated by CloudFormation.
If turned off, an invalid template configuration can be stored.