Target
Configures the AWS resource that EventBridge invokes when a rule is triggered.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
YAML
Id:String
Properties
-
Id -
The logical ID of the target.
The value of
Idcan include alphanumeric characters, periods (.), hyphens (-), and underscores (_).Type: String
Required: Yes
AWS CloudFormation compatibility: This property is passed directly to the
Idproperty of theAWS::Events::RuleTargetdata type.
Examples
Target
YAML
EBRule: Type: EventBridgeRule Properties: Target: Id: MyTarget