@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.494Z") @Stability(value=Stable) public class SnsDestination extends software.amazon.jsii.JsiiObject implements IDestination
Example:
// An sns topic for successful invocations of a lambda function
import software.amazon.awscdk.services.sns.*;
Topic myTopic = new Topic(this, "Topic");
Function myFn = Function.Builder.create(this, "Fn")
.runtime(Runtime.NODEJS_14_X)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "lambda-handler")))
// sns topic for successful invocations
.onSuccess(new SnsDestination(myTopic))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIDestination.Jsii$Default, IDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SnsDestination(ITopic topic) |
protected |
SnsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SnsDestination(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
DestinationConfig |
bind(software.constructs.Construct _scope,
IFunction fn)
Returns a destination configuration.
|
DestinationConfig |
bind(software.constructs.Construct _scope,
IFunction fn,
DestinationOptions _options)
Returns a destination configuration.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SnsDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected SnsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public SnsDestination(@NotNull
ITopic topic)
topic - This parameter is required.@Stability(value=Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IFunction fn, @Nullable DestinationOptions _options)
bind in interface IDestination_scope - This parameter is required.fn - This parameter is required._options - @Stability(value=Stable) @NotNull public DestinationConfig bind(@NotNull software.constructs.Construct _scope, @NotNull IFunction fn)
bind in interface IDestination_scope - This parameter is required.fn - This parameter is required.Copyright © 2022. All rights reserved.