Interface CfnIdentity.TagsProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnIdentity.TagsProperty.Jsii$Proxy
Enclosing class:
CfnIdentity

@Stability(Stable) public static interface CfnIdentity.TagsProperty extends software.amazon.jsii.JsiiSerializable
An object that defines the tags (keys and values) that you want to associate with the identity.

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.pinpointemail.*;
 TagsProperty tagsProperty = TagsProperty.builder()
         .key("key")
         .value("value")
         .build();
 
  • Method Details

    • getKey

      @Stability(Stable) @Nullable default String getKey()
      One part of a key-value pair that defines a tag.

      The maximum length of a tag key is 128 characters. The minimum length is 1 character.

      If you specify tags for the identity, then this value is required.

    • getValue

      @Stability(Stable) @Nullable default String getValue()
      The optional part of a key-value pair that defines a tag.

      The maximum length of a tag value is 256 characters. The minimum length is 0 characters. If you don’t want a resource to have a specific tag value, don’t specify a value for this parameter. Amazon Pinpoint will set the value to an empty string.

    • builder

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