CfnIncludeProps

class aws_cdk.cloudformation_include.CfnIncludeProps(*, template_file, nested_stacks=None)

Bases: object

__init__(*, template_file, nested_stacks=None)

Construction properties of {@link CfnInclude}.

Parameters
  • template_file (str) – Path to the template file. Both JSON and YAML template formats are supported.

  • nested_stacks (Optional[Mapping[str, CfnIncludeProps]]) – Specifies the template files that define nested stacks that should be included. If your template specifies a stack that isn’t included here, it won’t be created as a NestedStack resource, and it won’t be accessible from {@link CfnInclude.getNestedStack}. If you include a stack here with an ID that isn’t in the template, or is in the template but is not a nested stack, template creation will fail and an error will be thrown.

stability :stability: experimental

Return type

None

Attributes

nested_stacks

Specifies the template files that define nested stacks that should be included.

If your template specifies a stack that isn’t included here, it won’t be created as a NestedStack resource, and it won’t be accessible from {@link CfnInclude.getNestedStack}.

If you include a stack here with an ID that isn’t in the template, or is in the template but is not a nested stack, template creation will fail and an error will be thrown.

stability :stability: experimental

Return type

Optional[Mapping[str, CfnIncludeProps]]

template_file

Path to the template file.

Both JSON and YAML template formats are supported.

stability :stability: experimental

Return type

str