Class NestedStack
(deprecated) A CloudFormation nested stack.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFormation
Assembly: Amazon.CDK.AWS.CloudFormation.dll
Syntax (csharp)
public class NestedStack : NestedStack, IConstruct, IDependable, ITaggable
Syntax (vb)
Public Class NestedStack
Inherits NestedStack
Implements IConstruct, IDependable, ITaggable
Remarks
When you apply template changes to update a top-level stack, CloudFormation updates the top-level stack and initiates an update to its nested stacks. CloudFormation updates the resources of modified nested stacks, but does not update the resources of unmodified nested stacks.
Furthermore, 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.
Cross references of resource attributes between the parent stack and the nested stack will automatically be translated to stack parameters and outputs.
Stability: Deprecated
ExampleMetadata: infused
Examples
class MyNestedStack : NestedStack
{
public MyNestedStack(Construct scope, string id, NestedStackProps? props=null) : base(scope, id, props)
{
new Bucket(this, "NestedBucket");
}
}
class MyParentStack : Stack
{
public MyParentStack(Construct scope, string id, StackProps? props=null) : base(scope, id, props)
{
new MyNestedStack(this, "Nested1");
new MyNestedStack(this, "Nested2");
}
}
Synopsis
Constructors
NestedStack(Construct, String, INestedStackProps) | |
NestedStack(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
NestedStack(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Constructors
NestedStack(Construct, String, INestedStackProps)
public NestedStack(Construct scope, string id, INestedStackProps props = null)
Parameters
- scope Construct
- id System.String
- props INestedStackProps
Remarks
Stability: Deprecated
NestedStack(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected NestedStack(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
NestedStack(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected NestedStack(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props