enum TagType
Language | Type name |
.NET | Amazon.CDK.TagType |
Java | software.amazon.awscdk.core.TagType |
Python | aws_cdk.core.TagType |
TypeScript (source) | @aws-cdk/core » TagType |
Example
import * as cdk from '@aws-cdk/core';
class MyConstruct extends cdk.Resource implements cdk.ITaggable {
public readonly tags = new cdk.TagManager(cdk.TagType.KEY_VALUE, 'Whatever::The::Type');
constructor(scope: cdk.Construct, id: string) {
super(scope, id);
new cdk.CfnResource(this, 'Resource', {
type: 'Whatever::The::Type',
properties: {
Tags: this.tags.renderedTags,
},
});
}
}
Members
Name | Description |
STANDARD |
AUTOSCALING_GROUP |
MAP |
KEY_VALUE |
NOT_TAGGABLE |
STANDARD
AUTOSCALING_GROUP
MAP
KEY_VALUE
NOT_TAGGABLE