interface IRuleTarget
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Events.IRuleTarget |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsevents#IRuleTarget |
Java | software.amazon.awscdk.services.events.IRuleTarget |
Python | aws_cdk.aws_events.IRuleTarget |
TypeScript (source) | aws-cdk-lib » aws_events » IRuleTarget |
Implemented by
Api, Api, Api, App, Aws, Batch, Cloud, Code, Code, Ecs, Event, Firehose, Kinesis, Kinesis, Kinesis, Lambda, Redshift, Sfn, Sns, Sqs
An abstract target for EventRules.
Methods
| Name | Description |
|---|---|
| bind(rule, id?) | Returns the rule target specification. |
bind(rule, id?)
public bind(rule: IRule, id?: string): RuleTargetConfig
Parameters
- rule
IRule— The EventBridge Rule that would trigger this target. - id
string— The id of the target that will be attached to the rule.
Returns
Returns the rule target specification.
NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

.NET
Go
Java
Python
TypeScript (