aws-cdk-lib.cloudformation_include.IncludedNestedStack

interface IncludedNestedStack

LanguageType name
.NETAmazon.CDK.CloudFormation.Include.IncludedNestedStack
Gogithub.com/aws/aws-cdk-go/awscdk/v2/cloudformationinclude#IncludedNestedStack
Javasoftware.amazon.awscdk.cloudformation.include.IncludedNestedStack
Pythonaws_cdk.cloudformation_include.IncludedNestedStack
TypeScript (source)aws-cdk-lib » cloudformation_include » IncludedNestedStack

Obtainable from CfnInclude.getNestedStack(), CfnInclude.loadNestedStack()

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

Example

declare const parentTemplate: cfn_inc.CfnInclude;

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

Properties

NameTypeDescription
includedTemplateCfnIncludeThe CfnInclude that represents the template, which can be used to access Resources and other template elements.
stackNestedStackThe NestedStack object which represents the scope of the template.

includedTemplate

Type: CfnInclude

The CfnInclude that represents the template, which can be used to access Resources and other template elements.


stack

Type: NestedStack

The NestedStack object which represents the scope of the template.