class SqsQueue
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Events.Targets.SqsQueue |
Java | software.amazon.awscdk.services.events.targets.SqsQueue |
Python | aws_cdk.aws_events_targets.SqsQueue |
TypeScript (source) | @aws-cdk/aws-events-targets » SqsQueue |
Implements
IRule
Use an SQS Queue as a target for Amazon EventBridge rules.
Example
/// fixture=withRepoAndSqsQueue
// publish to an SQS queue every time code is committed
// to a CodeCommit repository
repository.onCommit('onCommit', { target: new targets.SqsQueue(queue) });
Initializer
new SqsQueue(queue: IQueue, props?: SqsQueueProps)
Parameters
- queue
IQueue
- props
Sqs
Queue Props
Properties
Name | Type | Description |
---|---|---|
queue | IQueue |
queue
Type:
IQueue
Methods
Name | Description |
---|---|
bind(rule, _id?) | Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event. |
bind(rule, _id?)
public bind(rule: IRule, _id?: string): RuleTargetConfig
Parameters
- rule
IRule
- _id
string
Returns
Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event.