Interface CfnRule.TagProperty

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

@Stability(Stable) public static interface CfnRule.TagProperty extends software.amazon.jsii.JsiiSerializable
A key-value pair associated with an ECS Target of an EventBridge rule.

The tag will be propagated to ECS by EventBridge when starting an ECS task based on a matched event.

Currently, tags are only available when using ECS with EventBridge .

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

    • getKey

      @Stability(Stable) @Nullable default String getKey()
      A string you can use to assign a value.

      The combination of tag keys and values can help you organize and categorize your resources.

    • getValue

      @Stability(Stable) @Nullable default String getValue()
      The value for the specified tag key.
    • builder

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