Class SqsQueue
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.SqsQueue
- All Implemented Interfaces:
IRuleTarget
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:43.745Z")
@Stability(Stable)
public class SqsQueue
extends software.amazon.jsii.JsiiObject
implements IRuleTarget
Use an SQS Queue as a target for Amazon EventBridge rules.
Example:
// publish to an SQS queue every time code is committed // to a CodeCommit repository repository.onCommit("onCommit", OnCommitOptions.builder().target(new SqsQueue(queue)).build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget
IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event.Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event.getQueue()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
SqsQueue
protected SqsQueue(software.amazon.jsii.JsiiObjectRef objRef) -
SqsQueue
protected SqsQueue(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SqsQueue
- Parameters:
queue
- This parameter is required.props
-
-
SqsQueue
- Parameters:
queue
- This parameter is required.
-
-
Method Details
-
bind
Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
rule
- This parameter is required._id
-- See Also:
-
bind
Returns a RuleTarget that can be used to trigger this SQS queue as a result from an EventBridge event.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
rule
- This parameter is required.- See Also:
-
getQueue
-