@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:43.744Z") @Stability(value=Experimental) public class NestedStack extends 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
NestedStack.Builder
(experimental) A fluent builder for
NestedStack. |
software.amazon.jsii.JsiiObject.InitializationModeITaggable.Jsii$Default, ITaggable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
NestedStack(software.constructs.Construct scope,
String id) |
|
NestedStack(software.constructs.Construct scope,
String id,
NestedStackProps props) |
protected |
NestedStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
NestedStack(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
CfnResource |
getNestedStackResource()
(experimental) If this is a nested stack, this represents its `AWS::CloudFormation::Stack` resource.
|
String |
getStackId()
(experimental) An attribute that represents the ID of the stack.
|
String |
getStackName()
(experimental) An attribute that represents the name of the nested stack.
|
String |
getTemplateFile()
(experimental) The name of the CloudFormation template file emitted to the output directory during synthesis.
|
static Boolean |
isNestedStack(Object x)
(experimental) Checks if `x` is an object of type `NestedStack`.
|
void |
setParameter(String name,
String value)
(experimental) Assign a value to one of the nested stack parameters.
|
addDependency, addDependency, addTransform, allocateLogicalId, exportValue, exportValue, formatArn, getAccount, getArtifactId, getAvailabilityZones, getDependencies, getEnvironment, getLogicalId, getNested, getNestedStackParent, getNotificationArns, getPartition, getRegion, getSynthesizer, getTags, getTemplateOptions, getTerminationProtection, getUrlSuffix, isStack, of, parseArn, parseArn, parseArn, renameLogicalId, reportMissingContextKey, resolve, toJsonString, toJsonStringjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected NestedStack(software.amazon.jsii.JsiiObjectRef objRef)
protected NestedStack(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public NestedStack(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
NestedStackProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public NestedStack(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static Boolean isNestedStack(@NotNull Object x)
x - This parameter is required.@Stability(value=Experimental)
public void setParameter(@NotNull
String name,
@NotNull
String value)
name - The parameter name (ID). This parameter is required.value - The value to assign. This parameter is required.@Stability(value=Experimental) @NotNull public String getStackId()
This is a context aware attribute:
{ "Ref": "LogicalIdOfNestedStackResource" }.{ "Ref": "AWS::StackId" }Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 "arn:aws:cloudformation:us-east-2:123456789012:stack/mystack-mynestedstack-sggfrhxhum7w/f449b250-b969-11e0-a185-5081d0136786";
getStackId in class Stack@Stability(value=Experimental) @NotNull public String getStackName()
This is a context aware attribute:
{ "Ref": "AWS::StackName" }Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 mystack - mynestedstack - sggfrhxhum7w;
getStackName in class Stack@Stability(value=Experimental) @NotNull public String getTemplateFile()
getTemplateFile in class Stack@Stability(value=Experimental) @Nullable public CfnResource getNestedStackResource()
undefined for top-level (non-nested) stacks.
getNestedStackResource in class StackCopyright © 2021. All rights reserved.