Table of Contents

Interface ICfnResourceProps

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll
public interface ICfnResourceProps

Examples

using Amazon.CDK;


            class MyConstruct : Resource, ITaggable
            {
                public readonly void Tags = new TagManager(TagType.KEY_VALUE, "Whatever::The::Type");

                public MyConstruct(Construct scope, string id) : base(scope, id)
                {

                    new CfnResource(this, "Resource", new CfnResourceProps {
                        Type = "Whatever::The::Type",
                        Properties = new Dictionary<string, object> {
                            // ...
                            { "Tags", Tags.RenderedTags }
                        }
                    });
                }
            }

Remarks

ExampleMetadata: infused

Properties

Properties

Resource properties.

IDictionary<string, object>? Properties { get; }

Property Value

IDictionary<string, object>

Remarks

Default: - No resource properties.

Type

CloudFormation resource type (e.g. AWS::S3::Bucket).

string Type { get; }

Property Value

string