@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:19.798Z") @Stability(value=Stable) public class SnsEventSource extends software.amazon.jsii.JsiiObject implements IEventSource
Example:
import software.amazon.awscdk.services.sns.*;
import software.amazon.awscdk.services.lambda.eventsources.SnsEventSource;
Topic topic;
Function fn;
Queue deadLetterQueue = new Queue(this, "deadLetterQueue");
fn.addEventSource(SnsEventSource.Builder.create(topic)
.filterPolicy(Map.of())
.deadLetterQueue(deadLetterQueue)
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
SnsEventSource.Builder
A fluent builder for
SnsEventSource. |
software.amazon.jsii.JsiiObject.InitializationModeIEventSource.Jsii$Default, IEventSource.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SnsEventSource(ITopic topic) |
|
SnsEventSource(ITopic topic,
SnsEventSourceProps props) |
protected |
SnsEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SnsEventSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(IFunction target)
Called by `lambda.addEventSource` to allow the event source to bind to this function.
|
ITopic |
getTopic() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SnsEventSource(software.amazon.jsii.JsiiObjectRef objRef)
protected SnsEventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public SnsEventSource(@NotNull
ITopic topic,
@Nullable
SnsEventSourceProps props)
topic - This parameter is required.props - @Stability(value=Stable)
public SnsEventSource(@NotNull
ITopic topic)
topic - This parameter is required.@Stability(value=Stable)
public void bind(@NotNull
IFunction target)
bind in interface IEventSourcetarget - This parameter is required.@Stability(value=Stable) @NotNull public ITopic getTopic()
Copyright © 2022. All rights reserved.