class CfnInclude (construct)
Includes a CloudFormation template into a stack.
All elements of the template will be merged into the current stack, together with any elements created programmatically.
new CfnInclude(scope: Construct, id: string, props: Cfn<wbr>Include<wbr>Props)
Construct— The parent construct of this template.
string— The ID of this construct.
Creates an adopted template construct.
The template will be incorporated into the stack as-is with no changes at all. This means that logical IDs of entities within this template may conflict with logical IDs of entities that are part of the stack.
|template||The CloudFormation template to include in the stack (as is).|
The CloudFormation template to include in the stack (as is).
|logical||The logical ID for this CloudFormation stack element.|
|node||Construct tree node which offers APIs for interacting with the construct tree.|
|stack||The stack in which this element is defined.|
|template||The included template.|
The logical ID for this CloudFormation stack element.
The logical ID of the element is calculated from the path of the resource node in the construct tree.
To override this value, use
Construct tree node which offers APIs for interacting with the construct tree.
The stack in which this element is defined.
CfnElements must be defined within a stack scope (directly or indirectly).
The included template.
|override||Overrides the auto-generated logical ID with a specific ID.|
|to||Returns a string representation of this construct.|
public overrideLogicalId(newLogicalId: string): void
string— The new logical ID to use for this stack element.
Overrides the auto-generated logical ID with a specific ID.
public toString(): string
Returns a string representation of this construct.