Skip to content

Commit

Permalink
JavaScript (v3): S3 Object Lock - Run writeme
Browse files Browse the repository at this point in the history
  • Loading branch information
cpyle0819 committed May 24, 2024
1 parent 5d2b964 commit 2302195
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .doc_gen/metadata/s3_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2139,10 +2139,10 @@ s3_PutObjectLockConfiguration:
github: javascriptv3/example_code/s3
sdkguide:
excerpts:
- description:
snippet_files: Set the object lock configuration of a bucket.
- description: Set the object lock configuration of a bucket.
snippet_files:
- javascriptv3/example_code/s3/actions/put-object-lock-configuration.js
- description:
- description: Set the default retention period of a bucket.
snippet_files:
- javascriptv3/example_code/s3/actions/put-default-object-lock-configuration.js
services:
Expand Down
18 changes: 18 additions & 0 deletions javascriptv3/example_code/s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@ Code excerpts that show you how to call individual service functions.
- [GetBucketPolicy](actions/get-bucket-policy.js#L6)
- [GetBucketWebsite](actions/get-bucket-website.js#L6)
- [GetObject](actions/get-object.js#L6)
- [GetObjectLockConfiguration](actions/get-object-lock-configuration.js)
- [GetObjectRetention](actions/get-object-retention.js)
- [ListBuckets](actions/list-buckets.js#L6)
- [ListObjectsV2](actions/list-objects.js#L6)
- [PutBucketAcl](actions/put-bucket-acl.js#L6)
- [PutBucketCors](actions/put-bucket-cors.js#L6)
- [PutBucketPolicy](actions/put-bucket-policy.js#L6)
- [PutBucketWebsite](actions/put-bucket-website.js#L6)
- [PutObject](actions/put-object.js#L6)
- [PutObjectLegalHold](actions/put-object-legal-hold.js)
- [PutObjectLockConfiguration](actions/put-object-lock-configuration.js)
- [PutObjectRetention](actions/put-object-retention.js)

### Scenarios

Expand All @@ -66,6 +71,7 @@ functions within the same service.
- [Create a presigned URL](scenarios/presigned-url-upload.js)
- [Create a web page that lists Amazon S3 objects](../web/s3/list-objects/src/App.tsx)
- [Get started with buckets and objects](scenarios/basic.js)
- [Get the legal hold configuration of an object](actions/get-object-legal-hold.js)
- [Lock Amazon S3 objects](scenarios/object-locking/index.js)
- [Upload or download large files](scenarios/multipart-upload.js)

Expand Down Expand Up @@ -152,6 +158,18 @@ This example shows you how to do the following:
<!--custom.scenarios.s3_Scenario_GettingStarted.start-->
<!--custom.scenarios.s3_Scenario_GettingStarted.end-->

#### Get the legal hold configuration of an object

This example shows you how to get the legal hold configuration of an S3 bucket.


<!--custom.scenario_prereqs.s3_GetObjectLegalHoldConfiguration.start-->
<!--custom.scenario_prereqs.s3_GetObjectLegalHoldConfiguration.end-->


<!--custom.scenarios.s3_GetObjectLegalHoldConfiguration.start-->
<!--custom.scenarios.s3_GetObjectLegalHoldConfiguration.end-->

#### Lock Amazon S3 objects

This example shows you how to work with S3 object lock features.
Expand Down
4 changes: 0 additions & 4 deletions javascriptv3/example_code/s3/actions/.aillyrc

This file was deleted.

0 comments on commit 2302195

Please sign in to comment.