Skip to content
v2.276.0

Tag Struct ​

Metadata that you apply to a resource to help categorize and organize the resource.

Each tag consists of a key and an optional value, both of which you define.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_scheduler_targets as scheduler_targets } from 'aws-cdk-lib';
const tag: scheduler_targets.Tag = {
  key: 'key',
  value: 'value',
};

Properties ​

keystringkeystrkeyStringKeystringKey*stringrequired#
Key is the name of the tag.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
Value is the metadata contents of the tag.