There are more AWS SDK examples available in the AWS Doc SDK Examples
Manage versioned Amazon S3 objects in batches with a Lambda function using an AWS SDK
The following code example shows how to manage versioned S3 objects in batches with a Lambda function.