Class ProductStackHistoryProps
Properties for a ProductStackHistory.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProductStackHistoryProps : Object, IProductStackHistoryProps
Syntax (vb)
Public Class ProductStackHistoryProps
Inherits Object
Implements 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
Constructors
Product |
Properties
Current |
If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName. |
Current |
The current version name of the ProductStack. |
Description | The description of the product version. |
Directory | The directory where template snapshots will be stored. |
Product |
The ProductStack whose history will be retained as a snapshot. |
Validate |
Whether the specified product template will be validated by CloudFormation. |
Constructors
ProductStackHistoryProps()
public ProductStackHistoryProps()
Properties
CurrentVersionLocked
If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.
public bool CurrentVersionLocked { get; set; }
Property Value
System.
CurrentVersionName
The current version name of the ProductStack.
public string CurrentVersionName { get; set; }
Property Value
System.
Description
The description of the product version.
public string Description { get; set; }
Property Value
System.
Remarks
Default: - No description provided
Directory
The directory where template snapshots will be stored.
public string Directory { get; set; }
Property Value
System.
Remarks
Default: 'product-stack-snapshots'
ProductStack
The ProductStack whose history will be retained as a snapshot.
public ProductStack ProductStack { get; set; }
Property Value
ValidateTemplate
Whether the specified product template will be validated by CloudFormation.
public Nullable<bool> ValidateTemplate { get; set; }
Property Value
System.
Remarks
If turned off, an invalid template configuration can be stored.
Default: true