diff --git a/src/stackset-stack.ts b/src/stackset-stack.ts index 0fc7c87..be6efd8 100644 --- a/src/stackset-stack.ts +++ b/src/stackset-stack.ts @@ -36,6 +36,32 @@ export class StackSetStackSynthesizer extends StackSynthesizer { } } +/** + * Properties for a StackSet Deployment. Subset of normal Stack properties. + */ +interface StackSetStackProps { + /** + * Include runtime versioning information in this Stack + * + * @default `analyticsReporting` setting of containing `App`, or value of + * 'aws:cdk:version-reporting' context key + */ + readonly analyticsReporting?: boolean; + + /** + * A description of the stack. + * + * @default - No description. + */ + readonly description?: string; + + /** + * Stack tags that will be applied to all the taggable resources and the stack itself. + * + * @default {} + */ + readonly tags?: { [key: string]: string }; +} /** * A StackSet stack, which is similar to a normal CloudFormation stack with @@ -49,9 +75,10 @@ export class StackSetStack extends Stack { public readonly templateFile: string; private _templateUrl?: string; private _parentStack: Stack; - constructor(scope: Construct, id: string) { + constructor(scope: Construct, id: string, props: StackSetStackProps = {}) { super(scope, id, { synthesizer: new StackSetStackSynthesizer(), + ...props, }); this._parentStack = findParentStack(scope);