Documentation ¶
Overview ¶
CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SQS queue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LambdaToSqs_IsConstruct ¶
func LambdaToSqs_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 NewLambdaToSqs_Override ¶
func NewLambdaToSqs_Override(l LambdaToSqs, scope constructs.Construct, id *string, props *LambdaToSqsProps)
Types ¶
type LambdaToSqs ¶
type LambdaToSqs interface { constructs.Construct DeadLetterQueue() *awssqs.DeadLetterQueue LambdaFunction() awslambda.Function Node() constructs.Node SqsQueue() awssqs.Queue Vpc() awsec2.IVpc ToString() *string }
func NewLambdaToSqs ¶
func NewLambdaToSqs(scope constructs.Construct, id *string, props *LambdaToSqsProps) LambdaToSqs
type LambdaToSqsProps ¶
type LambdaToSqsProps 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"` // Whether to deploy a new VPC. DeployVpc *bool `json:"deployVpc"` // Whether to grant additional permissions to the Lambda function enabling it to purge the SQS queue. EnableQueuePurging *bool `json:"enableQueuePurging"` // 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"` // An existing VPC for the construct to use (construct will NOT create a new VPC in this case). ExistingVpc awsec2.IVpc `json:"existingVpc"` // 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 Name for the SQS queue URL environment variable set for the Lambda function. QueueEnvironmentVariableName *string `json:"queueEnvironmentVariableName"` // Optional user-provided props to override the default props for the SQS queue. QueueProps *awssqs.QueueProps `json:"queueProps"` // 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.