@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.494Z") @Stability(value=Stable) public class SqsDestination extends software.amazon.jsii.JsiiObject implements IDestination
Example:
// An sqs queue for unsuccessful invocations of a lambda function
import software.amazon.awscdk.services.sqs.*;
Queue deadLetterQueue = new Queue(this, "DeadLetterQueue");
Function myFn = Function.Builder.create(this, "Fn")
.runtime(Runtime.NODEJS_14_X)
.handler("index.handler")
.code(Code.fromInline("// your code"))
// sqs queue for unsuccessful invocations
.onFailure(new SqsDestination(deadLetterQueue))
.build();
software.amazon.jsii.JsiiObject.InitializationModeIDestination.Jsii$Default, IDestination.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SqsDestination(IQueue queue) |
protected |
SqsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SqsDestination(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 SqsDestination(software.amazon.jsii.JsiiObjectRef objRef)
protected SqsDestination(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public SqsDestination(@NotNull
IQueue queue)
queue - 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.