@aws-sdk/s3-presigned-post 3.523.0 → 3.524.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -28,7 +28,7 @@ You can optionally attach a policy to a presigned post. It specifies a list of c
28
28
  For example:
29
29
 
30
30
  ```typescript
31
- const Conditions = [{ acl: "public-read" }, { bucket: "johnsmith" }, ["starts-with", "$key", "user/eric/"]];
31
+ const Conditions = [{ acl: "bucket-owner-full-control" }, { bucket: "johnsmith" }, ["starts-with", "$key", "user/eric/"]];
32
32
  ```
33
33
 
34
34
  Visit [S3 POST documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html)
@@ -44,7 +44,7 @@ const client = new S3Client({ region: "us-west-2" });
44
44
  const Bucket = "johnsmith";
45
45
  const Key = "user/eric/1";
46
46
  const Fields = {
47
- acl: "public-read",
47
+ acl: "bucket-owner-full-control",
48
48
  };
49
49
  const { url, fields } = await createPresignedPost(client, {
50
50
  Bucket,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/s3-presigned-post",
3
- "version": "3.523.0",
3
+ "version": "3.524.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline s3-presigned-post",