Class SqsEventSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.eventsources.SqsEventSource
- All Implemented Interfaces:
IEventSource
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.846Z")
@Stability(Stable)
public class SqsEventSource
extends software.amazon.jsii.JsiiObject
implements IEventSource
Use an Amazon SQS queue as an event source for AWS Lambda.
Example:
import software.amazon.awscdk.services.lambda.eventsources.SqsEventSource; Function fn; Queue queue = new Queue(this, "MyQueue"); SqsEventSource eventSource = new SqsEventSource(queue); fn.addEventSource(eventSource); String eventSourceId = eventSource.getEventSourceMappingId();
-
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.lambda.IEventSource
IEventSource.Jsii$Default, IEventSource.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionSqsEventSource
(IQueue queue) SqsEventSource
(IQueue queue, SqsEventSourceProps props) protected
SqsEventSource
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
SqsEventSource
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
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
-
SqsEventSource
protected SqsEventSource(software.amazon.jsii.JsiiObjectRef objRef) -
SqsEventSource
protected SqsEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SqsEventSource
@Stability(Stable) public SqsEventSource(@NotNull IQueue queue, @Nullable SqsEventSourceProps props) - Parameters:
queue
- This parameter is required.props
-
-
SqsEventSource
- Parameters:
queue
- This parameter is required.
-
-
Method Details
-
bind
Called bylambda.addEventSource
to allow the event source to bind to this function.- Specified by:
bind
in interfaceIEventSource
- Parameters:
target
- This parameter is required.
-
getEventSourceMappingId
The identifier for this EventSourceMapping. -
getQueue
-