Documentation ¶
Overview ¶
CDK constructs for defining an interaction between an Amazon SQS queue and an AWS Lambda function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSqsToLambda_Override ¶
func NewSqsToLambda_Override(s SqsToLambda, scope constructs.Construct, id *string, props *SqsToLambdaProps)
func SqsToLambda_IsConstruct ¶
func SqsToLambda_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
Types ¶
type SqsToLambda ¶
type SqsToLambda interface { constructs.Construct DeadLetterQueue() *awssqs.DeadLetterQueue LambdaFunction() awslambda.Function Node() constructs.Node SqsQueue() awssqs.Queue ToString() *string }
func NewSqsToLambda ¶
func NewSqsToLambda(scope constructs.Construct, id *string, props *SqsToLambdaProps) SqsToLambda
type SqsToLambdaProps ¶
type SqsToLambdaProps struct { // Optional user provided properties for the dead letter queue. DeadLetterQueueProps *awssqs.QueueProps `json:"deadLetterQueueProps"` // Whether to deploy a secondary queue to be used as a dead letter queue. DeployDeadLetterQueue *bool `json:"deployDeadLetterQueue"` // Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error. ExistingLambdaObj awslambda.Function `json:"existingLambdaObj"` // Existing instance of SQS queue object, Providing both this and queueProps will cause an error. ExistingQueueObj awssqs.Queue `json:"existingQueueObj"` // User provided props to override the default props for the Lambda function. LambdaFunctionProps *awslambda.FunctionProps `json:"lambdaFunctionProps"` // The number of times a message can be unsuccessfully dequeued before being moved to the dead-letter queue. MaxReceiveCount *float64 `json:"maxReceiveCount"` // Optional user provided properties. QueueProps *awssqs.QueueProps `json:"queueProps"` // Optional user provided properties for the queue event source. SqsEventSourceProps *awslambdaeventsources.SqsEventSourceProps `json:"sqsEventSourceProps"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.