SqsDestination

class aws_cdk.aws_lambda_destinations.SqsDestination(queue)

Bases: object

Use a SQS queue as a Lambda destination.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_lambda_destinations as lambda_destinations
import aws_cdk.aws_sqs as sqs

# queue is of type Queue

sqs_destination = lambda_destinations.SqsDestination(queue)
Parameters

queue (IQueue) –

Methods

bind(_scope, fn, *, type)

Returns a destination configuration.

Parameters
Return type

DestinationConfig