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: CfnIncludeProps)
Construct— The parent construct of this template.
string— The ID of this construct.
Cfn— Initialization properties.
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||The construct tree node associated with this construct.|
|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
The construct tree node associated with this construct.
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.