public class S3Cleaner extends Object
| Constructor and Description |
|---|
S3Cleaner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
emptyBucket(com.amazonaws.services.s3.AmazonS3 s3,
String bucketName,
boolean deleteBucket,
com.amazonaws.services.lambda.runtime.Context context)
Empties the contents of the given bucket and optionally deletes the bucket
|
public static void emptyBucket(com.amazonaws.services.s3.AmazonS3 s3,
String bucketName,
boolean deleteBucket,
com.amazonaws.services.lambda.runtime.Context context)
s3 - The S3 client object to usebucketName - The bucket to emptydeleteBucket - Flag to determine whether to delete the bucket after emptyingcontext - Lambda context objectCopyright © 2018. All rights reserved.