AWS AmazonS3: Reformat PutBucketVersioning example and link versioning docs
Summary
Reformatted the put-bucket-versioning CLI example into multi-line commands and added a link to versioning guidance.
Security assessment
The added text documents versioning with an MFA code, which is security-adjacent; however, the change is formatting/linking and does not address a specific vulnerability.
Evidence
The following command enables versioning and uses an MFA code.
Diff
diff --git a/AmazonS3/latest/developerguide/s3_example_s3_PutBucketVersioning_section.md b/AmazonS3/latest/developerguide/s3_example_s3_PutBucketVersioning_section.md index 7553963..bafbbee 100644 --- a//AmazonS3/latest/developerguide/s3_example_s3_PutBucketVersioning_section.md +++ b//AmazonS3/latest/developerguide/s3_example_s3_PutBucketVersioning_section.md @@ -24 +24 @@ CLI -The following command enables versioning on a bucket named `amzn-s3-demo-bucket`: +**To enable versioning on a bucket** @@ -25,0 +26 @@ The following command enables versioning on a bucket named `amzn-s3-demo-bucket` +The following `put-bucket-versioning` example enables versioning on a bucket named `amzn-s3-demo-bucket`. @@ -27 +27,0 @@ The following command enables versioning on a bucket named `amzn-s3-demo-bucket` - aws s3api put-bucket-versioning --bucket amzn-s3-demo-bucket --versioning-configuration Status=Enabled @@ -28,0 +29,3 @@ The following command enables versioning on a bucket named `amzn-s3-demo-bucket` + aws s3api put-bucket-versioning \ + --bucket amzn-s3-demo-bucket \ + --versioning-configuration Status=Enabled @@ -30 +32,0 @@ The following command enables versioning on a bucket named `amzn-s3-demo-bucket` -The following command enables versioning, and uses an mfa code @@ -31,0 +34 @@ The following command enables versioning, and uses an mfa code +This command produces no output. @@ -33 +36 @@ The following command enables versioning, and uses an mfa code - aws s3api put-bucket-versioning --bucket amzn-s3-demo-bucket --versioning-configuration Status=Enabled --mfa "SERIAL 123456" +The following command enables versioning and uses an MFA code. @@ -35,0 +39,10 @@ The following command enables versioning, and uses an mfa code + aws s3api put-bucket-versioning \ + --bucket amzn-s3-demo-bucket \ + --versioning-configuration Status=Enabled \ + --mfa "SERIAL 123456" + + +This command produces no output. + +For more information, see [Retaining multiple versions of objects with S3 Versioning](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Versioning.html) in the _Amazon S3 User Guide_. +