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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionNestedStack(Construct scope, String id) Deprecated.NestedStack(Construct scope, String id, NestedStackProps props) Deprecated.protectedNestedStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) Deprecated.protectedNestedStack(software.amazon.jsii.JsiiObjectRef objRef) Deprecated. -
Method Summary
Methods inherited from class software.amazon.awscdk.core.NestedStack
getNestedStackResource, getStackId, getStackName, getTemplateFile, isNestedStack, setParameterMethods 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, toJsonStringMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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.
-