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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:16.300Z") @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