Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion src/stackset-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down