From ca565bc7c2667248e541af65d3f8bfae681bcc38 Mon Sep 17 00:00:00 2001 From: Martin Merfort <395822+mmerfort@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:00:57 +0200 Subject: [PATCH] Fix name of s3Bucket field of Task class in S3BatchEventV2 (#506) Co-authored-by: Martin Merfort --- .../services/lambda/runtime/events/S3BatchEventV2.java | 2 +- .../services/lambda/runtime/tests/S3BatchEventV2Test.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3BatchEventV2.java b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3BatchEventV2.java index 92b8722d..e9beb1f4 100644 --- a/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3BatchEventV2.java +++ b/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3BatchEventV2.java @@ -45,6 +45,6 @@ public static class Task { private String taskId; private String s3Key; private String s3VersionId; - private String s3BucketName; + private String s3Bucket; } } diff --git a/aws-lambda-java-tests/src/test/java/com/amazonaws/services/lambda/runtime/tests/S3BatchEventV2Test.java b/aws-lambda-java-tests/src/test/java/com/amazonaws/services/lambda/runtime/tests/S3BatchEventV2Test.java index 2c9913dc..562af435 100644 --- a/aws-lambda-java-tests/src/test/java/com/amazonaws/services/lambda/runtime/tests/S3BatchEventV2Test.java +++ b/aws-lambda-java-tests/src/test/java/com/amazonaws/services/lambda/runtime/tests/S3BatchEventV2Test.java @@ -16,5 +16,6 @@ public void testS3BatchEventV2() { assertThat(event.getJob().getUserArguments().get("MyDestinationBucket")).isEqualTo("destination-directory-bucket-name"); assertThat(event.getTasks()).hasSize(1); assertThat(event.getTasks().get(0).getS3Key()).isEqualTo("s3objectkey"); + assertThat(event.getTasks().get(0).getS3Bucket()).isEqualTo("source-directory-bucket-name"); } }