![]() ![]() Deploy SQS dead-letter queue for the source SQS Queue.Out of the box implementation of the Construct without any override will set the following defaults: Amazon SQS Queue Returns an instance of the dead-letter SQS queue created by the pattern. Returns an instance of the SQS queue created by the pattern. Returns an instance of the Lambda function created by the pattern. Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SQS queue with. This flag is ignored if any of the following are defined: queueProps.encryptionMasterKey, encryptionKey or encryptionKeyProps.Īn optional, imported encryption key to encrypt the SQS Queue with. If no key is provided, this flag determines whether the queue is encrypted with a new CMK or an AWS managed key. Optional user provided properties for the queue event source. The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. Whether to create a secondary queue to be used as a dead letter queue. Optional user-provided props to override the default props for the dead letter SQS queue. Optional user-provided props to override the default props for the SQS queue. Providing both this and queueProps will cause an error. ![]() User provided props to override the default props for the Lambda function.Īn optional, existing SQS queue to be used instead of the default queue. build ()) Pattern Construct Props NameĮxisting instance of Lambda Function object, providing both this and lambdaFunctionProps will cause an error. Java import import import import .lambda.* import .lambda.Runtime import .sqslambda.* new SqsToLambda ( this, "SnsToSqsPattern", new SqsToLambdaProps. PYTHON_3_9, handler = 'index.handler' ) ) from_asset ( 'lambda' ), runtime = _lambda. Python from aws_solutions_constructs.aws_sqs_lambda import SqsToLambda from aws_cdk import ( aws_lambda as _lambda, Stack ) from constructs import Construct SqsToLambda ( self, 'SqsToLambdaPattern', lambda_function_props = _lambda. Here is a minimal deployable pattern definition: AWS Solutions Construct implements an Amazon SQS queue connected to an AWS Lambda function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |