From 55a7409511cba19fcfd984caffd5a6c712c66166 Mon Sep 17 00:00:00 2001 From: scmacdon Date: Tue, 8 Oct 2024 11:07:51 -0400 Subject: [PATCH] updated S3 Readme using Write me --- javav2/example_code/s3/README.md | 14 +++++++------- .../com/example/s3/batch/CreateRetentionJob.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/javav2/example_code/s3/README.md b/javav2/example_code/s3/README.md index 0c83200459f..e51842c1f22 100644 --- a/javav2/example_code/s3/README.md +++ b/javav2/example_code/s3/README.md @@ -45,29 +45,29 @@ Code examples that show you how to perform the essential operations within a ser Code excerpts that show you how to call individual service functions. -- [CopyObject](src/main/java/com/example/s3/scenario/S3Actions.java#L203) -- [CreateBucket](src/main/java/com/example/s3/scenario/S3Actions.java#L85) -- [DeleteBucket](src/main/java/com/example/s3/scenario/S3Actions.java#L342) +- [CopyObject](src/main/java/com/example/s3/scenario/S3Actions.java#L212) +- [CreateBucket](src/main/java/com/example/s3/scenario/S3Actions.java#L90) +- [DeleteBucket](src/main/java/com/example/s3/scenario/S3Actions.java#L353) - [DeleteBucketPolicy](src/main/java/com/example/s3/DeleteBucketPolicy.java#L6) - [DeleteBucketWebsite](src/main/java/com/example/s3/DeleteWebsiteConfiguration.java#L6) -- [DeleteObject](src/main/java/com/example/s3/scenario/S3Actions.java#L315) +- [DeleteObject](src/main/java/com/example/s3/scenario/S3Actions.java#L325) - [DeleteObjects](src/main/java/com/example/s3/DeleteMultiObjects.java#L6) - [GetBucketAcl](src/main/java/com/example/s3/GetAcl.java#L6) - [GetBucketPolicy](src/main/java/com/example/s3/GetBucketPolicy.java#L6) -- [GetObject](src/main/java/com/example/s3/scenario/S3Actions.java#L144) +- [GetObject](src/main/java/com/example/s3/scenario/S3Actions.java#L151) - [GetObjectLegalHold](src/main/java/com/example/s3/lockscenario/S3LockActions.java#L94) - [GetObjectLockConfiguration](src/main/java/com/example/s3/lockscenario/S3LockActions.java#L345) - [GetObjectRetention](src/main/java/com/example/s3/lockscenario/S3LockActions.java#L309) - [HeadObject](src/main/java/com/example/s3/GetObjectContentType.java#L6) - [ListBuckets](src/main/java/com/example/s3/ListBuckets.java#L6) - [ListMultipartUploads](src/main/java/com/example/s3/ListMultipartUploads.java#L6) -- [ListObjectsV2](src/main/java/com/example/s3/scenario/S3Actions.java#L177) +- [ListObjectsV2](src/main/java/com/example/s3/scenario/S3Actions.java#L185) - [PutBucketAcl](src/main/java/com/example/s3/SetAcl.java#L6) - [PutBucketCors](src/main/java/com/example/s3/S3Cors.java#L6) - [PutBucketLifecycleConfiguration](src/main/java/com/example/s3/LifecycleConfiguration.java#L6) - [PutBucketPolicy](src/main/java/com/example/s3/SetBucketPolicy.java#L6) - [PutBucketWebsite](src/main/java/com/example/s3/SetWebsiteConfiguration.java#L6) -- [PutObject](src/main/java/com/example/s3/scenario/S3Actions.java#L120) +- [PutObject](src/main/java/com/example/s3/scenario/S3Actions.java#L126) - [PutObjectLegalHold](src/main/java/com/example/s3/lockscenario/S3LockActions.java#L255) - [PutObjectLockConfiguration](src/main/java/com/example/s3/lockscenario/S3LockActions.java#L206) - [PutObjectRetention](src/main/java/com/example/s3/lockscenario/S3LockActions.java#L61) diff --git a/javav2/example_code/s3/src/main/java/com/example/s3/batch/CreateRetentionJob.java b/javav2/example_code/s3/src/main/java/com/example/s3/batch/CreateRetentionJob.java index cad42c7fdeb..e8ec195b22d 100644 --- a/javav2/example_code/s3/src/main/java/com/example/s3/batch/CreateRetentionJob.java +++ b/javav2/example_code/s3/src/main/java/com/example/s3/batch/CreateRetentionJob.java @@ -52,7 +52,7 @@ public static void main(String[] args) throws IOException, ParseException { S3Client s3 = S3Client.create(); S3ControlClient s3ControlClient = S3ControlClient.create(); - // Use CloudFormation to stand up the resource required for this scenario. + // Use CloudFormation to stand up the required resource. System.out.println("Use CloudFormation to stand up the resource required for this scenario."); CloudFormationHelper.deployCloudFormationStack(STACK_NAME);