Interface ICfnResourceProps
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnResourceProps
Syntax (vb)
Public Interface 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
Properties
Properties | Resource properties. |
Type | CloudFormation resource type (e.g. |
Properties
Properties
Resource properties.
virtual IDictionary<string, object> Properties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Remarks
Default: - No resource properties.
Type
CloudFormation resource type (e.g. AWS::S3::Bucket
).
string Type { get; }
Property Value
System.String