From 69d67fec7109668c2d38bf394b497c65f62cef22 Mon Sep 17 00:00:00 2001 From: Alexander Yu Date: Fri, 7 Jun 2024 17:21:49 -0700 Subject: [PATCH] Batch updates for EGCS 06/07/2024 This update includes: - [NEW] Lambda-DDB (Java) - Typo fix for Lambda-SQS+Batch (Python) --- .doc_gen/metadata/serverless_metadata.yaml | 8 ++++++++ lambda-function-sqs-report-batch-item-failures/example.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.doc_gen/metadata/serverless_metadata.yaml b/.doc_gen/metadata/serverless_metadata.yaml index 687a098..9478fb5 100644 --- a/.doc_gen/metadata/serverless_metadata.yaml +++ b/.doc_gen/metadata/serverless_metadata.yaml @@ -532,6 +532,14 @@ serverless_DynamoDB_Lambda: - description: Consuming a &DDB; event with &LAM; using PHP. snippet_files: - integration-ddb-to-lambda/example.php + Java: + versions: + - sdk_version: 2 + github: https://github.com/aws-samples/serverless-snippets/tree/main/integration-ddb-to-lambda + excerpts: + - description: Consuming a &DDB; event with &LAM; using Java. + snippet_files: + - integration-ddb-to-lambda/example.java services: lambda: dynamodb: diff --git a/lambda-function-sqs-report-batch-item-failures/example.py b/lambda-function-sqs-report-batch-item-failures/example.py index 1c7f627..cdd8c27 100644 --- a/lambda-function-sqs-report-batch-item-failures/example.py +++ b/lambda-function-sqs-report-batch-item-failures/example.py @@ -1,6 +1,6 @@ # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -import json + def lambda_handler(event, context): if event: batch_item_failures = []