Show / Hide Table of Contents

Class ProductStack

A Service Catalog product stack, which is similar in form to a Cloudformation nested stack.

Inheritance
object
Stack
ProductStack
Implements
ITaggable
Inherited Members
Stack.IsStack(object)
Stack.Of(IConstruct)
Stack.AddDependency(Stack, string)
Stack.AddMetadata(string, object)
Stack.AddStackTag(string, string)
Stack.AddTransform(string)
Stack.AllocateLogicalId(CfnElement)
Stack.ExportStringListValue(object, IExportValueOptions)
Stack.ExportValue(object, IExportValueOptions)
Stack.FormatArn(IArnComponents)
Stack.GetLogicalId(CfnElement)
Stack.RegionalFact(string, string)
Stack.RemoveStackTag(string)
Stack.RenameLogicalId(string, string)
Stack.ReportMissingContextKey(IMissingContext)
Stack.Resolve(object)
Stack.SplitArn(string, ArnFormat)
Stack.ToJsonString(object, double?)
Stack.ToYamlString(object)
Stack.Account
Stack.ArtifactId
Stack.AvailabilityZones
Stack.BundlingRequired
Stack.Dependencies
Stack.Env
Stack.Environment
Stack.Nested
Stack.NotificationArns
Stack.Partition
Stack.Region
Stack.StackId
Stack.StackName
Stack.Synthesizer
Stack.Tags
Stack.TemplateOptions
Stack.UrlSuffix
Stack.NestedStackParent
Stack.NestedStackResource
Stack.TerminationProtection
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

string

Overrides
Stack.TemplateFile
Remarks

Example value: MyStack.template.json

Implements

ITaggable
Back to top Generated by DocFX