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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRule.TagProperty
static final class
An implementation forCfnRule.TagProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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.
- See Also:
-
getValue
The value for the specified tag key.- See Also:
-
builder
- Returns:
- a
CfnRule.TagProperty.Builder
ofCfnRule.TagProperty
-