Class NestedStack
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Stack
software.amazon.awscdk.core.NestedStack
software.amazon.awscdk.services.cloudformation.NestedStack
- 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"); } }
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionNestedStack
(Construct scope, String id) Deprecated.NestedStack
(Construct scope, String id, NestedStackProps props) Deprecated.protected
NestedStack
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protected
NestedStack
(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Methods inherited from class software.amazon.awscdk.core.NestedStack
getNestedStackResource, getStackId, getStackName, getTemplateFile, isNestedStack, setParameter
Methods inherited from class software.amazon.awscdk.core.Stack
addDependency, addDependency, addDockerImageAsset, addFileAsset, addTransform, allocateLogicalId, exportValue, exportValue, formatArn, getAccount, getArtifactId, getAvailabilityZones, getBundlingRequired, getDependencies, getEnvironment, getLogicalId, getNested, getNestedStackParent, getNotificationArns, getParentStack, getPartition, getRegion, getSynthesizer, getTags, getTemplateOptions, getTerminationProtection, getUrlSuffix, isStack, of, parseArn, parseArn, parseArn, prepareCrossReference, regionalFact, regionalFact, renameLogicalId, reportMissingContext, reportMissingContextKey, resolve, splitArn, toJsonString, toJsonString
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
Deprecated.- Parameters:
scope
- This parameter is required.id
- This parameter is required.
-