IncludedNestedStack

class aws_cdk.cloudformation_include.IncludedNestedStack(*, included_template, stack)

Bases: object

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

Parameters:
  • included_template (CfnInclude) – The CfnInclude that represents the template, which can be used to access Resources and other template elements.

  • stack (NestedStack) – The NestedStack object which represents the scope of the template.

ExampleMetadata:

infused

Example:

# 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

Attributes

included_template

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

stack

The NestedStack object which represents the scope of the template.