aws-cdk-lib.TagType

enum TagType

LanguageType name
.NETAmazon.CDK.TagType
Gogithub.com/aws/aws-cdk-go/awscdk/v2#TagType
Javasoftware.amazon.awscdk.TagType
Pythonaws_cdk.TagType
TypeScript (source)aws-cdk-lib » TagType

Example

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

Members

NameDescription
STANDARD
AUTOSCALING_GROUP
MAP
KEY_VALUE
NOT_TAGGABLE

STANDARD


AUTOSCALING_GROUP


MAP


KEY_VALUE


NOT_TAGGABLE