Skip to content
v2.277.0

IncludedNestedStack Struct ​

The type returned from CfnInclude.getNestedStack. Contains both the NestedStack object and CfnInclude representations of the child stack.

Example ​

ts
declare const parentTemplate: cfn_inc.CfnInclude;

const includedChildStack = parentTemplate.getNestedStack('ChildStack');
const childStack: core.NestedStack = includedChildStack.stack;
const childTemplate: cfn_inc.CfnInclude = includedChildStack.includedTemplate;
python
# parent_template: cfn_inc.CfnInclude


included_child_stack = parent_template.get_nested_stack("ChildStack")
child_stack = included_child_stack.stack
child_template = included_child_stack.included_template
java
CfnInclude parentTemplate;


IncludedNestedStack includedChildStack = parentTemplate.getNestedStack("ChildStack");
NestedStack childStack = includedChildStack.getStack();
CfnInclude childTemplate = includedChildStack.getIncludedTemplate();
csharp
// Install: dotnet add package Amazon.CDK.Lib
CfnInclude parentTemplate;


var includedChildStack = parentTemplate.GetNestedStack("ChildStack");
var childStack = includedChildStack.Stack;
var childTemplate = includedChildStack.IncludedTemplate;
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var parentTemplate CfnInclude


includedChildStack := parentTemplate.GetNestedStack(jsii.String("ChildStack"))
childStack := includedChildStack.Stack
childTemplate := includedChildStack.IncludedTemplate

Properties ​

includedTemplateCfnIncludeincluded_templateCfnIncludeincludedTemplateCfnIncludeIncludedTemplateCfnIncludeIncludedTemplateCfnInclude required #
The CfnInclude that represents the template, which can be used to access Resources and other template elements.
The NestedStack object which represents the scope of the template.