Class ProductStack
A Service Catalog product stack, which is similar in form to a Cloudformation nested stack.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProductStack : Stack, ITaggable
Syntax (vb)
Public Class ProductStack Inherits Stack Implements ITaggable
Remarks
You can add the resources to this stack that you want to define for your service catalog product.
This stack will not be treated as an independent deployment artifact (won't be listed in "cdk list" or deployable through "cdk deploy"), but rather only synthesized as a template and uploaded as an asset to S3.
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(), productStackHistory.VersionFromSnapshot("v1") }
});
Synopsis
Constructors
| ProductStack(Construct, string, IProductStackProps?) | A Service Catalog product stack, which is similar in form to a Cloudformation nested stack. |
Properties
| TemplateFile | The name of the CloudFormation template file emitted to the output directory during synthesis. |
Constructors
ProductStack(Construct, string, IProductStackProps?)
A Service Catalog product stack, which is similar in form to a Cloudformation nested stack.
public ProductStack(Construct scope, string id, IProductStackProps? props = null)
Parameters
- scope Construct
- id string
- props IProductStackProps
Remarks
You can add the resources to this stack that you want to define for your service catalog product.
This stack will not be treated as an independent deployment artifact (won't be listed in "cdk list" or deployable through "cdk deploy"), but rather only synthesized as a template and uploaded as an asset to S3.
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(), productStackHistory.VersionFromSnapshot("v1") }
});
Properties
TemplateFile
The name of the CloudFormation template file emitted to the output directory during synthesis.
public override string TemplateFile { get; }
Property Value
Overrides
Remarks
Example value: MyStack.template.json