Class CfnInclude
(deprecated) Includes a CloudFormation template into a stack.
[Obsolete("use the CfnInclude class from the cloudformation-include module instead")]
public class CfnInclude : CfnElement, IConstruct, IConstruct, IDependable
- Inheritance
-
CfnInclude
- Implements
-
IConstruct
- Inherited Members
Examples
new CfnInclude(this, "ID", new CfnIncludeProps {
Template = new Dictionary<string, IDictionary<string, IDictionary<string, object>>> {
{ "Resources", new Struct {
Bucket = new Struct {
Type = "AWS::S3::Bucket",
Properties = new Struct {
BucketName = "my-shiny-bucket"
}
}
} }
}
});
Remarks
All elements of the template will be merged into the current stack, together with any elements created programmatically.
Stability: Deprecated
ExampleMetadata: infused
Constructors
CfnInclude(Construct, string, ICfnIncludeProps)
(deprecated) Creates an adopted template construct.
[Obsolete]
public CfnInclude(Construct scope, string id, ICfnIncludeProps props)
Parameters
scope
ConstructThe parent construct of this template.
id
stringThe ID of this construct.
props
ICfnIncludePropsInitialization properties.
Remarks
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.
Stability: Deprecated
Properties
Template
(deprecated) The included template.
[Obsolete]
public virtual JObject Template { get; }
Property Value
- JObject
Remarks
Stability: Deprecated