interface IRuleTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Events.IRuleTarget |
Java | software.amazon.awscdk.services.events.IRuleTarget |
Python | aws_cdk.aws_events.IRuleTarget |
TypeScript (source) | @aws-cdk/aws-events » IRuleTarget |
Implemented by
Api
, Api
, Aws
, Batch
, Cloud
, Code
, Code
, Ecs
, Event
, Kinesis
, Kinesis
, Lambda
, 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
.