All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
Tag.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-24T02:42:38.492Z") @Stability(Stable) public interface Tag extends software.amazon.jsii.JsiiSerializable
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:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.events.targets.*;
 Tag tag = Tag.builder()
         .key("key")
         .value("value")
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for Tag
    static final class 
    An implementation for Tag
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Key is the name of the tag.
    Value is the metadata contents of the tag.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getKey

      @Stability(Stable) @NotNull String getKey()
      Key is the name of the tag.
    • getValue

      @Stability(Stable) @NotNull String getValue()
      Value is the metadata contents of the tag.
    • builder

      @Stability(Stable) static Tag.Builder builder()
      Returns:
      a Tag.Builder of Tag