@aws-sdk/client-s3 3.575.0 → 3.576.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.
package/dist-cjs/index.js CHANGED
@@ -1160,7 +1160,6 @@ var se_CompleteMultipartUploadCommand = /* @__PURE__ */ __name(async (input, con
1160
1160
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
1161
1161
  b.p("Key", () => input.Key, "{Key+}", true);
1162
1162
  const query = (0, import_smithy_client.map)({
1163
- [_xi]: [, "CompleteMultipartUpload"],
1164
1163
  [_uI]: [, (0, import_smithy_client.expectNonNull)(input[_UI], `UploadId`)]
1165
1164
  });
1166
1165
  let body;
@@ -1302,8 +1301,7 @@ var se_CreateMultipartUploadCommand = /* @__PURE__ */ __name(async (input, conte
1302
1301
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
1303
1302
  b.p("Key", () => input.Key, "{Key+}", true);
1304
1303
  const query = (0, import_smithy_client.map)({
1305
- [_u]: [, ""],
1306
- [_xi]: [, "CreateMultipartUpload"]
1304
+ [_u]: [, ""]
1307
1305
  });
1308
1306
  let body;
1309
1307
  b.m("POST").h(headers).q(query).b(body);
@@ -1536,8 +1534,7 @@ var se_DeleteObjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
1536
1534
  b.bp("/");
1537
1535
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
1538
1536
  const query = (0, import_smithy_client.map)({
1539
- [_d]: [, ""],
1540
- [_xi]: [, "DeleteObjects"]
1537
+ [_d]: [, ""]
1541
1538
  });
1542
1539
  let body;
1543
1540
  let contents;
@@ -2951,7 +2948,6 @@ var se_RestoreObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
2951
2948
  b.p("Key", () => input.Key, "{Key+}", true);
2952
2949
  const query = (0, import_smithy_client.map)({
2953
2950
  [_res]: [, ""],
2954
- [_xi]: [, "RestoreObject"],
2955
2951
  [_vI]: [, input[_VI]]
2956
2952
  });
2957
2953
  let body;
@@ -2979,8 +2975,7 @@ var se_SelectObjectContentCommand = /* @__PURE__ */ __name(async (input, context
2979
2975
  b.p("Key", () => input.Key, "{Key+}", true);
2980
2976
  const query = (0, import_smithy_client.map)({
2981
2977
  [_se]: [, ""],
2982
- [_st]: [, "2"],
2983
- [_xi]: [, "SelectObjectContent"]
2978
+ [_st]: [, "2"]
2984
2979
  });
2985
2980
  let body;
2986
2981
  body = _ve;
@@ -3121,9 +3116,6 @@ var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (input, cont
3121
3116
  }, {})
3122
3117
  });
3123
3118
  b.bp("/WriteGetObjectResponse");
3124
- const query = (0, import_smithy_client.map)({
3125
- [_xi]: [, "WriteGetObjectResponse"]
3126
- });
3127
3119
  let body;
3128
3120
  let contents;
3129
3121
  if (input.Body !== void 0) {
@@ -3142,7 +3134,7 @@ var se_WriteGetObjectResponseCommand = /* @__PURE__ */ __name(async (input, cont
3142
3134
  }
3143
3135
  }
3144
3136
  b.hn(resolvedHostname);
3145
- b.m("POST").h(headers).q(query).b(body);
3137
+ b.m("POST").h(headers).b(body);
3146
3138
  return b.build();
3147
3139
  }, "se_WriteGetObjectResponseCommand");
3148
3140
  var de_AbortMultipartUploadCommand = /* @__PURE__ */ __name(async (output, context) => {
@@ -41,7 +41,6 @@ export const se_CompleteMultipartUploadCommand = async (input, context) => {
41
41
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
42
42
  b.p("Key", () => input.Key, "{Key+}", true);
43
43
  const query = map({
44
- [_xi]: [, "CompleteMultipartUpload"],
45
44
  [_uI]: [, __expectNonNull(input[_UI], `UploadId`)],
46
45
  });
47
46
  let body;
@@ -186,7 +185,6 @@ export const se_CreateMultipartUploadCommand = async (input, context) => {
186
185
  b.p("Key", () => input.Key, "{Key+}", true);
187
186
  const query = map({
188
187
  [_u]: [, ""],
189
- [_xi]: [, "CreateMultipartUpload"],
190
188
  });
191
189
  let body;
192
190
  b.m("POST").h(headers).q(query).b(body);
@@ -420,7 +418,6 @@ export const se_DeleteObjectsCommand = async (input, context) => {
420
418
  b.p("Bucket", () => input.Bucket, "{Bucket}", false);
421
419
  const query = map({
422
420
  [_d]: [, ""],
423
- [_xi]: [, "DeleteObjects"],
424
421
  });
425
422
  let body;
426
423
  let contents;
@@ -1835,7 +1832,6 @@ export const se_RestoreObjectCommand = async (input, context) => {
1835
1832
  b.p("Key", () => input.Key, "{Key+}", true);
1836
1833
  const query = map({
1837
1834
  [_res]: [, ""],
1838
- [_xi]: [, "RestoreObject"],
1839
1835
  [_vI]: [, input[_VI]],
1840
1836
  });
1841
1837
  let body;
@@ -1864,7 +1860,6 @@ export const se_SelectObjectContentCommand = async (input, context) => {
1864
1860
  const query = map({
1865
1861
  [_se]: [, ""],
1866
1862
  [_st]: [, "2"],
1867
- [_xi]: [, "SelectObjectContent"],
1868
1863
  });
1869
1864
  let body;
1870
1865
  body = _ve;
@@ -2006,9 +2001,6 @@ export const se_WriteGetObjectResponseCommand = async (input, context) => {
2006
2001
  }, {})),
2007
2002
  });
2008
2003
  b.bp("/WriteGetObjectResponse");
2009
- const query = map({
2010
- [_xi]: [, "WriteGetObjectResponse"],
2011
- });
2012
2004
  let body;
2013
2005
  let contents;
2014
2006
  if (input.Body !== undefined) {
@@ -2027,7 +2019,7 @@ export const se_WriteGetObjectResponseCommand = async (input, context) => {
2027
2019
  }
2028
2020
  }
2029
2021
  b.hn(resolvedHostname);
2030
- b.m("POST").h(headers).q(query).b(body);
2022
+ b.m("POST").h(headers).b(body);
2031
2023
  return b.build();
2032
2024
  };
2033
2025
  export const de_AbortMultipartUploadCommand = async (output, context) => {
@@ -252,49 +252,49 @@ declare const PutObjectCommand_base: {
252
252
  * // example id: to-upload-an-object-1481760101010
253
253
  * ```
254
254
  *
255
- * @example To upload object and specify user-defined metadata
255
+ * @example To upload an object (specify optional headers)
256
256
  * ```javascript
257
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
257
+ * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
258
258
  * const input = {
259
- * "Body": "filetoupload",
259
+ * "Body": "HappyFace.jpg",
260
260
  * "Bucket": "examplebucket",
261
- * "Key": "exampleobject",
262
- * "Metadata": {
263
- * "metadata1": "value1",
264
- * "metadata2": "value2"
265
- * }
261
+ * "Key": "HappyFace.jpg",
262
+ * "ServerSideEncryption": "AES256",
263
+ * "StorageClass": "STANDARD_IA"
266
264
  * };
267
265
  * const command = new PutObjectCommand(input);
268
266
  * const response = await client.send(command);
269
267
  * /* response ==
270
268
  * {
271
269
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
272
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
270
+ * "ServerSideEncryption": "AES256",
271
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
273
272
  * }
274
273
  * *\/
275
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
274
+ * // example id: to-upload-an-object-(specify-optional-headers)
276
275
  * ```
277
276
  *
278
- * @example To upload an object (specify optional headers)
277
+ * @example To upload object and specify user-defined metadata
279
278
  * ```javascript
280
- * // The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.
279
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
281
280
  * const input = {
282
- * "Body": "HappyFace.jpg",
281
+ * "Body": "filetoupload",
283
282
  * "Bucket": "examplebucket",
284
- * "Key": "HappyFace.jpg",
285
- * "ServerSideEncryption": "AES256",
286
- * "StorageClass": "STANDARD_IA"
283
+ * "Key": "exampleobject",
284
+ * "Metadata": {
285
+ * "metadata1": "value1",
286
+ * "metadata2": "value2"
287
+ * }
287
288
  * };
288
289
  * const command = new PutObjectCommand(input);
289
290
  * const response = await client.send(command);
290
291
  * /* response ==
291
292
  * {
292
293
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
293
- * "ServerSideEncryption": "AES256",
294
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
294
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
295
295
  * }
296
296
  * *\/
297
- * // example id: to-upload-an-object-(specify-optional-headers)
297
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
298
298
  * ```
299
299
  *
300
300
  * @example To upload an object and specify canned ACL.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.575.0",
4
+ "version": "3.576.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -26,10 +26,10 @@
26
26
  "@aws-crypto/sha1-browser": "3.0.0",
27
27
  "@aws-crypto/sha256-browser": "3.0.0",
28
28
  "@aws-crypto/sha256-js": "3.0.0",
29
- "@aws-sdk/client-sso-oidc": "3.575.0",
30
- "@aws-sdk/client-sts": "3.575.0",
31
- "@aws-sdk/core": "3.575.0",
32
- "@aws-sdk/credential-provider-node": "3.575.0",
29
+ "@aws-sdk/client-sso-oidc": "3.576.0",
30
+ "@aws-sdk/client-sts": "3.576.0",
31
+ "@aws-sdk/core": "3.576.0",
32
+ "@aws-sdk/credential-provider-node": "3.576.0",
33
33
  "@aws-sdk/middleware-bucket-endpoint": "3.575.0",
34
34
  "@aws-sdk/middleware-expect-continue": "3.575.0",
35
35
  "@aws-sdk/middleware-flexible-checksums": "3.575.0",