Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon CloudWatch Events Rule Target

Target is a property of the AWS::Events::Rule resource that specifies the targets that CloudWatch Events invokes when a rule is triggered, such as AWS Lambda (Lambda) functions or Amazon Kinesis streams.

Syntax

JSON

Copy
{ "Arn" : String, "Id" : String, "Input" : String, "InputPath" : String }

YAML

Copy
Arn: String Id: String Input: String InputPath: String

Properties

Arn

The Amazon Resource Name (ARN) of the target.

Required: Yes

Type: String

Id

A unique, user-defined identifier for the target. Acceptable values include alphanumeric characters, periods (.), hypens (-), and underscores (_).

Required: Yes

Type: String

Input

A JSON-formatted text string that is passed to the target. This value overrides the matched event.

Required: No. If you don't specify both this property and the InputPath, CloudWatch Events passes the entire matched event to the target.

Type: String

InputPath

When you don't want to pass the entire matched event, the JSONPath that describes which part of the event to pass to the target.

Required: No. If you don't specify both this property and the Input, CloudWatch Events passes the entire matched event to the target.

Type: String

On this page: