interface NestedStackProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudFormation.NestedStackProps |
Java | software.amazon.awscdk.services.cloudformation.NestedStackProps |
Python | aws_cdk.aws_cloudformation.NestedStackProps |
TypeScript (source) | @aws-cdk/aws-cloudformation » NestedStackProps |
⚠️ Deprecated: use core.NestedStackProps instead
Initialization props for the NestedStack
construct.
Example
class MyNestedStack extends cfn.NestedStack {
constructor(scope: Construct, id: string, props?: cfn.NestedStackProps) {
super(scope, id, props);
new s3.Bucket(this, 'NestedBucket');
}
}
class MyParentStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new MyNestedStack(this, 'Nested1');
new MyNestedStack(this, 'Nested2');
}
}
Properties
Name | Type | Description |
---|---|---|
notifications? | ITopic [] | The Simple Notification Service (SNS) topics to publish stack related events. |
parameters? | { [string]: string } | The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created. |
timeout? | Duration | The length of time that CloudFormation waits for the nested stack to reach the CREATE_COMPLETE state. |
notifications?
⚠️ Deprecated: use core.NestedStackProps instead
Type:
ITopic
[]
(optional, default: notifications are not sent for this stack.)
The Simple Notification Service (SNS) topics to publish stack related events.
parameters?
⚠️ Deprecated: use core.NestedStackProps instead
Type:
{ [string]: string }
(optional, default: no user-defined parameters are passed to the nested stack)
The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.
Each parameter has a name corresponding to a parameter defined in the embedded template and a value representing the value that you want to set for the parameter.
The nested stack construct will automatically synthesize parameters in order to bind references from the parent stack(s) into the nested stack.
timeout?
⚠️ Deprecated: use core.NestedStackProps instead
Type:
Duration
(optional, default: no timeout)
The length of time that CloudFormation waits for the nested stack to reach the CREATE_COMPLETE state.
When CloudFormation detects that the nested stack has reached the CREATE_COMPLETE state, it marks the nested stack resource as CREATE_COMPLETE in the parent stack and resumes creating the parent stack. If the timeout period expires before the nested stack reaches CREATE_COMPLETE, CloudFormation marks the nested stack as failed and rolls back both the nested stack and parent stack.