Target - Amazon Serverless Application Model
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Target

Configures the Amazon resource that EventBridge invokes when a rule is triggered.

Syntax

To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.

YAML

Id: String

Properties

Id

The logical ID of the target.

The value of Id can include alphanumeric characters, periods (.), hyphens (-), and underscores (_).

Type: String

Required: Yes

Amazon CloudFormation compatibility: This property is passed directly to the Id property of the AWS::Events::Rule Target data type.

Examples

Target

YAML

EBRule: Type: Schedule Properties: Target: Id: MyTarget