Documentation ¶
Overview ¶
CDK construct that provisions (1) an AWS Lambda function that is configured to send messages to a queue; (2) an Amazon SQS queue; and (3) an AWS Lambda function configured to consume messages from the queue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LambdaToSqsToLambda_IsConstruct ¶
func LambdaToSqsToLambda_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
func NewLambdaToSqsToLambda_Override ¶
func NewLambdaToSqsToLambda_Override(l LambdaToSqsToLambda, scope constructs.Construct, id *string, props *LambdaToSqsToLambdaProps)
Types ¶
type LambdaToSqsToLambda ¶
type LambdaToSqsToLambda interface { constructs.Construct ConsumerLambdaFunction() awslambda.Function DeadLetterQueue() *awssqs.DeadLetterQueue Node() constructs.Node ProducerLambdaFunction() awslambda.Function SqsQueue() awssqs.Queue Vpc() awsec2.IVpc ToString() *string }
func NewLambdaToSqsToLambda ¶
func NewLambdaToSqsToLambda(scope constructs.Construct, id *string, props *LambdaToSqsToLambdaProps) LambdaToSqsToLambda
type LambdaToSqsToLambdaProps ¶
type LambdaToSqsToLambdaProps struct { // Optional user-provided properties to override the default properties for the consumer Lambda function. ConsumerLambdaFunctionProps *awslambda.FunctionProps `json:"consumerLambdaFunctionProps"` // Optional user-provided props to override the default props for the dead letter queue. // // Only used if the // `deployDeadLetterQueue` property is set to true. DeadLetterQueueProps *awssqs.QueueProps `json:"deadLetterQueueProps"` // Whether to create a secondary queue to be used as a dead letter queue. // // Defaults to `true`. DeployDeadLetterQueue *bool `json:"deployDeadLetterQueue"` // Whether to deploy a new VPC. DeployVpc *bool `json:"deployVpc"` // An optional, existing Lambda function to be used instead of the default function for receiving/consuming messages from the queue. // // Providing both this and `consumerLambdaFunctionProps` will cause an error. ExistingConsumerLambdaObj awslambda.Function `json:"existingConsumerLambdaObj"` // An optional, existing Lambda function to be used instead of the default function for sending messages to the queue. // // Providing both this and `producerLambdaFunctionProps` property will cause an error. ExistingProducerLambdaObj awslambda.Function `json:"existingProducerLambdaObj"` // An optional, existing SQS queue to be used instead of the default queue. // // Providing both this and `queueProps` // will cause an error. ExistingQueueObj awssqs.Queue `json:"existingQueueObj"` // An existing VPC for the construct to use (construct will NOT create a new VPC in this case). ExistingVpc awsec2.IVpc `json:"existingVpc"` // The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. // // Defaults to `15`. MaxReceiveCount *float64 `json:"maxReceiveCount"` // Optional user-provided properties to override the default properties for the producer Lambda function. ProducerLambdaFunctionProps *awslambda.FunctionProps `json:"producerLambdaFunctionProps"` // Optional Name for the SQS queue URL environment variable set for the producer Lambda function. QueueEnvironmentVariableName *string `json:"queueEnvironmentVariableName"` // Optional user-provided properties to override the default properties for the SQS queue. QueueProps *awssqs.QueueProps `json:"queueProps"` // Optional user provided properties for the queue event source. SqsEventSourceProps *awslambdaeventsources.SqsEventSourceProps `json:"sqsEventSourceProps"` // Properties to override default properties if deployVpc is true. VpcProps *awsec2.VpcProps `json:"vpcProps"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.