java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.611Z") @Stability(Deprecated) @Deprecated public class NestedStack extends NestedStack
Deprecated.
use core.NestedStack instead
(deprecated) A CloudFormation nested stack.

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.

Example:

 public class MyNestedStack extends NestedStack {
     public MyNestedStack(Construct scope, String id) {
         this(scope, id, null);
     }
     public MyNestedStack(Construct scope, String id, NestedStackProps props) {
         super(scope, id, props);
         new Bucket(this, "NestedBucket");
     }
 }
 public class MyParentStack extends Stack {
     public MyParentStack(Construct scope, String id) {
         this(scope, id, null);
     }
     public MyParentStack(Construct scope, String id, StackProps props) {
         super(scope, id, props);
         new MyNestedStack(this, "Nested1");
         new MyNestedStack(this, "Nested2");
     }
 }
 

  • Constructor Details

    • NestedStack

      protected NestedStack(software.amazon.jsii.JsiiObjectRef objRef)
      Deprecated.
    • NestedStack

      protected NestedStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      Deprecated.
    • NestedStack

      @Stability(Deprecated) @Deprecated public NestedStack(@NotNull Construct scope, @NotNull String id, @Nullable NestedStackProps props)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • NestedStack

      @Stability(Deprecated) @Deprecated public NestedStack(@NotNull Construct scope, @NotNull String id)
      Deprecated.
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.