Decorator to add aspects to a stack.
If this is used on a class, it will run the aspects on the stack after the stack is created.
@Aspect((node) => { if (node instanceof CfnBucket) { node.bucketName = 'my-bucket'; }})class MyStack extends Stack { constructor(scope: any, id: string) { super(scope, id); }}
the aspect to add which can be a function or an IAspect
Generated using TypeDoc
Decorator to add aspects to a stack.
If this is used on a class, it will run the aspects on the stack after the stack is created.
Example