interface TagProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Events.CfnRule.TagProperty |
Java | software.amazon.awscdk.services.events.CfnRule.TagProperty |
Python | aws_cdk.aws_events.CfnRule.TagProperty |
TypeScript | @aws-cdk/aws-events » CfnRule » TagProperty |
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 * as events from '@aws-cdk/aws-events';
const tagProperty: events.CfnRule.TagProperty = {
key: 'key',
value: 'value',
};
Properties
Name | Type | Description |
---|---|---|
key? | string | A string you can use to assign a value. |
value? | string | The value for the specified tag key. |
key?
Type:
string
(optional)
A string you can use to assign a value.
The combination of tag keys and values can help you organize and categorize your resources.
value?
Type:
string
(optional)
The value for the specified tag key.