Interface IProductStackHistoryProps
Properties for a ProductStackHistory.
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IProductStackHistoryProps
Syntax (vb)
Public Interface IProductStackHistoryProps
Remarks
ExampleMetadata: infused
Examples
class S3BucketProduct : ProductStack
{
public S3BucketProduct(Construct scope, string id) : base(scope, id)
{
new Bucket(this, "BucketProductV2");
}
}
var productStackHistory = new ProductStackHistory(this, "ProductStackHistory", new ProductStackHistoryProps {
ProductStack = new S3BucketProduct(this, "S3BucketProduct"),
CurrentVersionName = "v2",
CurrentVersionLocked = true
});
var product = new CloudFormationProduct(this, "MyFirstProduct", new CloudFormationProductProps {
ProductName = "My Product",
Owner = "Product Owner",
ProductVersions = new [] { productStackHistory.CurrentVersion() }
});
Synopsis
Properties
CurrentVersionLocked | If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName. |
CurrentVersionName | The current version name of the ProductStack. |
Description | The description of the product version. |
Directory | The directory where template snapshots will be stored. |
ProductStack | The ProductStack whose history will be retained as a snapshot. |
ValidateTemplate | Whether the specified product template will be validated by CloudFormation. |
Properties
CurrentVersionLocked
If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.
bool CurrentVersionLocked { get; }
Property Value
Remarks
ExampleMetadata: infused
CurrentVersionName
The current version name of the ProductStack.
string CurrentVersionName { get; }
Property Value
Remarks
ExampleMetadata: infused
Description
The description of the product version.
string? Description { get; }
Property Value
Remarks
Default: - No description provided
Directory
The directory where template snapshots will be stored.
string? Directory { get; }
Property Value
Remarks
Default: 'product-stack-snapshots'
ProductStack
The ProductStack whose history will be retained as a snapshot.
ProductStack ProductStack { get; }
Property Value
Remarks
ExampleMetadata: infused
ValidateTemplate
Whether the specified product template will be validated by CloudFormation.
bool? ValidateTemplate { get; }
Property Value
bool?
Remarks
If turned off, an invalid template configuration can be stored.
Default: true