Class CfnResourceProps
public class CfnResourceProps : ICfnResourceProps
- Inheritance
-
CfnResourceProps
- Implements
- Inherited Members
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
Constructors
CfnResourceProps()
public CfnResourceProps()
Properties
Properties
Resource properties.
public IDictionary<string, object>? Properties { get; set; }
Property Value
Remarks
Default: - No resource properties.
Type
CloudFormation resource type (e.g. AWS::S3::Bucket
).
public string Type { get; set; }