Interface IProductStackHistoryProps
Properties for a ProductStackHistory.
Namespace: Amazon.CDK.AWS.ServiceCatalog
Assembly: Amazon.CDK.AWS.ServiceCatalog.dll
Syntax (csharp)
public interface IProductStackHistoryProps
Syntax (vb)
Public Interface IProductStackHistoryProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
using Amazon.CDK;
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
System.Boolean
CurrentVersionName
The current version name of the ProductStack.
string CurrentVersionName { get; }
Property Value
System.String
Description
The description of the product version.
virtual string Description { get; }
Property Value
System.String
Remarks
Default: - No description provided
Directory
The directory where template snapshots will be stored.
virtual string Directory { get; }
Property Value
System.String
Remarks
Default: 'product-stack-snapshots'
ProductStack
The ProductStack whose history will be retained as a snapshot.
ProductStack ProductStack { get; }
Property Value
ValidateTemplate
Whether the specified product template will be validated by CloudFormation.
virtual Nullable<bool> ValidateTemplate { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
If turned off, an invalid template configuration can be stored.
Default: true