Class ProductStackHistory
A Construct that contains a Service Catalog product stack with its previous deployments maintained.
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProductStackHistory : Construct
Syntax (vb)
Public Class ProductStackHistory Inherits Construct
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
ProductStackHistory(Construct, string, IProductStackHistoryProps) | A Construct that contains a Service Catalog product stack with its previous deployments maintained. |
Properties
PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Methods
CurrentVersion() | Retains product stack template as a snapshot when deployed and retrieves a CloudFormationProductVersion for the current product version. |
VersionFromSnapshot(string) | Retrieves a CloudFormationProductVersion from a previously deployed productVersionName. |
Constructors
ProductStackHistory(Construct, string, IProductStackHistoryProps)
A Construct that contains a Service Catalog product stack with its previous deployments maintained.
public ProductStackHistory(Construct scope, string id, IProductStackHistoryProps props)
Parameters
- scope Construct
- id string
- props 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() }
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: infused
Methods
CurrentVersion()
Retains product stack template as a snapshot when deployed and retrieves a CloudFormationProductVersion for the current product version.
public virtual ICloudFormationProductVersion CurrentVersion()
Returns
Remarks
ExampleMetadata: infused
VersionFromSnapshot(string)
Retrieves a CloudFormationProductVersion from a previously deployed productVersionName.
public virtual ICloudFormationProductVersion VersionFromSnapshot(string productVersionName)
Parameters
- productVersionName string
Returns
Remarks
ExampleMetadata: infused