Table of Contents

Class CfnInclude

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

(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 Construct

The parent construct of this template.

id string

The ID of this construct.

props ICfnIncludeProps

Initialization 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