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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ProductStack(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ProductStack(Construct, String, IProductStackProps) |
Properties
TemplateFile | The name of the CloudFormation template file emitted to the output directory during synthesis. |
Constructors
ProductStack(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ProductStack(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ProductStack(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ProductStack(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ProductStack(Construct, String, IProductStackProps)
public ProductStack(Construct scope, string id, IProductStackProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IProductStackProps
Properties
TemplateFile
The name of the CloudFormation template file emitted to the output directory during synthesis.
public override string TemplateFile { get; }
Property Value
System.String
Overrides
Remarks
Example value: MyStack.template.json