Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Invocation schema version 2 for S3 Batch Operations #495

Closed
mmerfort opened this issue Jul 22, 2024 · 1 comment
Closed

Support Invocation schema version 2 for S3 Batch Operations #495

mmerfort opened this issue Jul 22, 2024 · 1 comment

Comments

@mmerfort
Copy link
Contributor

The event looks a bit different with Invocation Schema version 2 of the S3 Batch Operations than with version 2.
It uses the name instead of a bucket ARN and adds user arguments, which can be specified during job creation.

More information: https://aws.amazon.com/blogs/storage/automate-object-processing-in-amazon-s3-directory-buckets-with-s3-batch-operations-and-aws-lambda/

The Job and Task subclasses of the S3BatchEvent class are unsuitable for version 2: https://github.com/aws/aws-lambda-java-libs/blob/main/aws-lambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/S3BatchEvent.java#L28-L47

The Golang SDK has already added the new event types, and something similar would be nice for this project.
Reference: https://github.com/aws/aws-lambda-go/blob/main/events/s3_batch_job.go#L26-L46

@mmerfort
Copy link
Contributor Author

Fixed in #496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant