aws-cdk-lib.aws_events.CfnRule.TagProperty

interface TagProperty

LanguageType name
.NETAmazon.CDK.AWS.Events.CfnRule.TagProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnRule_TagProperty
Javasoftware.amazon.awscdk.services.events.CfnRule.TagProperty
Pythonaws_cdk.aws_events.CfnRule.TagProperty
TypeScript aws-cdk-lib » 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 { aws_events as events } from 'aws-cdk-lib';
const tagProperty: events.CfnRule.TagProperty = {
  key: 'key',
  value: 'value',
};

Properties

NameTypeDescription
key?stringA string you can use to assign a value.
value?stringThe 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.