Skip to content
v2.273.0

CfnResourceProps Struct ​

Example ​

ts
class MyConstruct extends Resource implements ITaggable {
  public readonly tags = new TagManager(TagType.KEY_VALUE, 'Whatever::The::Type');

  constructor(scope: Construct, id: string) {
    super(scope, id);

    new CfnResource(this, 'Resource', {
      type: 'Whatever::The::Type',
      properties: {
        // ...
        Tags: this.tags.renderedTags,
      },
    });
  }
}

Properties ​

properties{ [key: string]: any }propertiestyping.Mapping[str, Any]propertiesMap<String, Object>PropertiesIDictionary<string, object>Properties*map[string]interface{}= No resource properties.#
Resource properties.
typestringtypestrtypeStringTypestringType*stringrequired#
CloudFormation resource type (e.g. `AWS::S3::Bucket`).

Used as props by ​