# IncludedNestedStack

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

- Source: [`cloudformation-include/lib/cfn-include.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/cloudformation-include/lib/cfn-include.ts#L87)

## 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;
```

## Properties

- `includedTemplate`: [CfnInclude](/cdk/api/v2/docs/aws-cdk-lib.cloudformation_include.CfnInclude.html) (required) — The CfnInclude that represents the template, which can be used to access Resources and other template elements.

- `stack`: [NestedStack](/cdk/api/v2/docs/aws-cdk-lib.NestedStack.html) (required) — The NestedStack object which represents the scope of the template.
