Show / Hide Table of Contents

Class CfnResourceProps

Inheritance
object
CfnResourceProps
Implements
ICfnResourceProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceProps : ICfnResourceProps
Syntax (vb)
Public Class CfnResourceProps Implements ICfnResourceProps
Remarks

ExampleMetadata: infused

Examples
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 }
                        }
                    });
                }
            }

Synopsis

Constructors

CfnResourceProps()

Properties

Properties

Resource properties.

Type

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

Constructors

CfnResourceProps()

public CfnResourceProps()
Remarks

ExampleMetadata: infused

Examples
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 }
                        }
                    });
                }
            }

Properties

Properties

Resource properties.

public IDictionary<string, object>? Properties { get; set; }
Property Value

IDictionary<string, object>

Remarks

Default: - No resource properties.

Type

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

public string Type { get; set; }
Property Value

string

Remarks

ExampleMetadata: infused

Implements

ICfnResourceProps
Back to top Generated by DocFX