@aws-sdk/client-s3 3.637.0 → 3.645.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.
@@ -80,39 +80,39 @@ declare const DeleteObjectTaggingCommand_base: {
80
80
  * <p>Base exception class for all service exceptions from S3 service.</p>
81
81
  *
82
82
  * @public
83
- * @example To remove tag set from an object
83
+ * @example To remove tag set from an object version
84
84
  * ```javascript
85
- * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
85
+ * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
86
86
  * const input = {
87
87
  * "Bucket": "examplebucket",
88
- * "Key": "HappyFace.jpg"
88
+ * "Key": "HappyFace.jpg",
89
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
89
90
  * };
90
91
  * const command = new DeleteObjectTaggingCommand(input);
91
92
  * const response = await client.send(command);
92
93
  * /* response ==
93
94
  * {
94
- * "VersionId": "null"
95
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
95
96
  * }
96
97
  * *\/
97
- * // example id: to-remove-tag-set-from-an-object-1483145342862
98
+ * // example id: to-remove-tag-set-from-an-object-version-1483145285913
98
99
  * ```
99
100
  *
100
- * @example To remove tag set from an object version
101
+ * @example To remove tag set from an object
101
102
  * ```javascript
102
- * // The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.
103
+ * // The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.
103
104
  * const input = {
104
105
  * "Bucket": "examplebucket",
105
- * "Key": "HappyFace.jpg",
106
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
106
+ * "Key": "HappyFace.jpg"
107
107
  * };
108
108
  * const command = new DeleteObjectTaggingCommand(input);
109
109
  * const response = await client.send(command);
110
110
  * /* response ==
111
111
  * {
112
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
112
+ * "VersionId": "null"
113
113
  * }
114
114
  * *\/
115
- * // example id: to-remove-tag-set-from-an-object-version-1483145285913
115
+ * // example id: to-remove-tag-set-from-an-object-1483145342862
116
116
  * ```
117
117
  *
118
118
  */
@@ -96,13 +96,12 @@ declare const GetObjectTaggingCommand_base: {
96
96
  * <p>Base exception class for all service exceptions from S3 service.</p>
97
97
  *
98
98
  * @public
99
- * @example To retrieve tag set of a specific object version
99
+ * @example To retrieve tag set of an object
100
100
  * ```javascript
101
- * // The following example retrieves tag set of an object. The request specifies object version.
101
+ * // The following example retrieves tag set of an object.
102
102
  * const input = {
103
103
  * "Bucket": "examplebucket",
104
- * "Key": "exampleobject",
105
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
104
+ * "Key": "HappyFace.jpg"
106
105
  * };
107
106
  * const command = new GetObjectTaggingCommand(input);
108
107
  * const response = await client.send(command);
@@ -110,22 +109,27 @@ declare const GetObjectTaggingCommand_base: {
110
109
  * {
111
110
  * "TagSet": [
112
111
  * {
113
- * "Key": "Key1",
114
- * "Value": "Value1"
112
+ * "Key": "Key4",
113
+ * "Value": "Value4"
114
+ * },
115
+ * {
116
+ * "Key": "Key3",
117
+ * "Value": "Value3"
115
118
  * }
116
119
  * ],
117
- * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
120
+ * "VersionId": "null"
118
121
  * }
119
122
  * *\/
120
- * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
123
+ * // example id: to-retrieve-tag-set-of-an-object-1481833847896
121
124
  * ```
122
125
  *
123
- * @example To retrieve tag set of an object
126
+ * @example To retrieve tag set of a specific object version
124
127
  * ```javascript
125
- * // The following example retrieves tag set of an object.
128
+ * // The following example retrieves tag set of an object. The request specifies object version.
126
129
  * const input = {
127
130
  * "Bucket": "examplebucket",
128
- * "Key": "HappyFace.jpg"
131
+ * "Key": "exampleobject",
132
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
129
133
  * };
130
134
  * const command = new GetObjectTaggingCommand(input);
131
135
  * const response = await client.send(command);
@@ -133,18 +137,14 @@ declare const GetObjectTaggingCommand_base: {
133
137
  * {
134
138
  * "TagSet": [
135
139
  * {
136
- * "Key": "Key4",
137
- * "Value": "Value4"
138
- * },
139
- * {
140
- * "Key": "Key3",
141
- * "Value": "Value3"
140
+ * "Key": "Key1",
141
+ * "Value": "Value1"
142
142
  * }
143
143
  * ],
144
- * "VersionId": "null"
144
+ * "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"
145
145
  * }
146
146
  * *\/
147
- * // example id: to-retrieve-tag-set-of-an-object-1481833847896
147
+ * // example id: to-retrieve-tag-set-of-a-specific-object-version-1483400283663
148
148
  * ```
149
149
  *
150
150
  */
@@ -235,6 +235,28 @@ declare const PutObjectCommand_base: {
235
235
  * <p>Base exception class for all service exceptions from S3 service.</p>
236
236
  *
237
237
  * @public
238
+ * @example To upload an object (specify optional headers)
239
+ * ```javascript
240
+ * // 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.
241
+ * const input = {
242
+ * "Body": "HappyFace.jpg",
243
+ * "Bucket": "examplebucket",
244
+ * "Key": "HappyFace.jpg",
245
+ * "ServerSideEncryption": "AES256",
246
+ * "StorageClass": "STANDARD_IA"
247
+ * };
248
+ * const command = new PutObjectCommand(input);
249
+ * const response = await client.send(command);
250
+ * /* response ==
251
+ * {
252
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
253
+ * "ServerSideEncryption": "AES256",
254
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
255
+ * }
256
+ * *\/
257
+ * // example id: to-upload-an-object-(specify-optional-headers)
258
+ * ```
259
+ *
238
260
  * @example To create an object.
239
261
  * ```javascript
240
262
  * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
@@ -254,68 +276,63 @@ declare const PutObjectCommand_base: {
254
276
  * // example id: to-create-an-object-1483147613675
255
277
  * ```
256
278
  *
257
- * @example To upload an object (specify optional headers)
279
+ * @example To upload an object
258
280
  * ```javascript
259
- * // 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.
281
+ * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
260
282
  * const input = {
261
283
  * "Body": "HappyFace.jpg",
262
284
  * "Bucket": "examplebucket",
263
- * "Key": "HappyFace.jpg",
264
- * "ServerSideEncryption": "AES256",
265
- * "StorageClass": "STANDARD_IA"
285
+ * "Key": "HappyFace.jpg"
266
286
  * };
267
287
  * const command = new PutObjectCommand(input);
268
288
  * const response = await client.send(command);
269
289
  * /* response ==
270
290
  * {
271
291
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
272
- * "ServerSideEncryption": "AES256",
273
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
292
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
274
293
  * }
275
294
  * *\/
276
- * // example id: to-upload-an-object-(specify-optional-headers)
295
+ * // example id: to-upload-an-object-1481760101010
277
296
  * ```
278
297
  *
279
- * @example To upload an object and specify canned ACL.
298
+ * @example To upload an object and specify optional tags
280
299
  * ```javascript
281
- * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
300
+ * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
282
301
  * const input = {
283
- * "ACL": "authenticated-read",
284
- * "Body": "filetoupload",
302
+ * "Body": "c:\\HappyFace.jpg",
285
303
  * "Bucket": "examplebucket",
286
- * "Key": "exampleobject"
304
+ * "Key": "HappyFace.jpg",
305
+ * "Tagging": "key1=value1&key2=value2"
287
306
  * };
288
307
  * const command = new PutObjectCommand(input);
289
308
  * const response = await client.send(command);
290
309
  * /* response ==
291
310
  * {
292
311
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
293
- * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
312
+ * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
294
313
  * }
295
314
  * *\/
296
- * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
315
+ * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
297
316
  * ```
298
317
  *
299
- * @example To upload an object and specify server-side encryption and object tags
318
+ * @example To upload an object and specify canned ACL.
300
319
  * ```javascript
301
- * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
320
+ * // The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
302
321
  * const input = {
322
+ * "ACL": "authenticated-read",
303
323
  * "Body": "filetoupload",
304
324
  * "Bucket": "examplebucket",
305
- * "Key": "exampleobject",
306
- * "ServerSideEncryption": "AES256",
307
- * "Tagging": "key1=value1&key2=value2"
325
+ * "Key": "exampleobject"
308
326
  * };
309
327
  * const command = new PutObjectCommand(input);
310
328
  * const response = await client.send(command);
311
329
  * /* response ==
312
330
  * {
313
331
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
314
- * "ServerSideEncryption": "AES256",
315
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
332
+ * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
316
333
  * }
317
334
  * *\/
318
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
335
+ * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
319
336
  * ```
320
337
  *
321
338
  * @example To upload object and specify user-defined metadata
@@ -341,32 +358,14 @@ declare const PutObjectCommand_base: {
341
358
  * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
342
359
  * ```
343
360
  *
344
- * @example To upload an object
345
- * ```javascript
346
- * // The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.
347
- * const input = {
348
- * "Body": "HappyFace.jpg",
349
- * "Bucket": "examplebucket",
350
- * "Key": "HappyFace.jpg"
351
- * };
352
- * const command = new PutObjectCommand(input);
353
- * const response = await client.send(command);
354
- * /* response ==
355
- * {
356
- * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
357
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
358
- * }
359
- * *\/
360
- * // example id: to-upload-an-object-1481760101010
361
- * ```
362
- *
363
- * @example To upload an object and specify optional tags
361
+ * @example To upload an object and specify server-side encryption and object tags
364
362
  * ```javascript
365
- * // The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore S3 returns version ID of the newly created object.
363
+ * // The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
366
364
  * const input = {
367
- * "Body": "c:\\HappyFace.jpg",
365
+ * "Body": "filetoupload",
368
366
  * "Bucket": "examplebucket",
369
- * "Key": "HappyFace.jpg",
367
+ * "Key": "exampleobject",
368
+ * "ServerSideEncryption": "AES256",
370
369
  * "Tagging": "key1=value1&key2=value2"
371
370
  * };
372
371
  * const command = new PutObjectCommand(input);
@@ -374,10 +373,11 @@ declare const PutObjectCommand_base: {
374
373
  * /* response ==
375
374
  * {
376
375
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
377
- * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
376
+ * "ServerSideEncryption": "AES256",
377
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
378
378
  * }
379
379
  * *\/
380
- * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
380
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
381
381
  * ```
382
382
  *
383
383
  */
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.637.0",
4
+ "version": "3.645.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": "5.2.0",
27
27
  "@aws-crypto/sha256-browser": "5.2.0",
28
28
  "@aws-crypto/sha256-js": "5.2.0",
29
- "@aws-sdk/client-sso-oidc": "3.637.0",
30
- "@aws-sdk/client-sts": "3.637.0",
29
+ "@aws-sdk/client-sso-oidc": "3.645.0",
30
+ "@aws-sdk/client-sts": "3.645.0",
31
31
  "@aws-sdk/core": "3.635.0",
32
- "@aws-sdk/credential-provider-node": "3.637.0",
32
+ "@aws-sdk/credential-provider-node": "3.645.0",
33
33
  "@aws-sdk/middleware-bucket-endpoint": "3.620.0",
34
34
  "@aws-sdk/middleware-expect-continue": "3.620.0",
35
35
  "@aws-sdk/middleware-flexible-checksums": "3.620.0",
@@ -39,11 +39,11 @@
39
39
  "@aws-sdk/middleware-recursion-detection": "3.620.0",
40
40
  "@aws-sdk/middleware-sdk-s3": "3.635.0",
41
41
  "@aws-sdk/middleware-ssec": "3.609.0",
42
- "@aws-sdk/middleware-user-agent": "3.637.0",
42
+ "@aws-sdk/middleware-user-agent": "3.645.0",
43
43
  "@aws-sdk/region-config-resolver": "3.614.0",
44
44
  "@aws-sdk/signature-v4-multi-region": "3.635.0",
45
45
  "@aws-sdk/types": "3.609.0",
46
- "@aws-sdk/util-endpoints": "3.637.0",
46
+ "@aws-sdk/util-endpoints": "3.645.0",
47
47
  "@aws-sdk/util-user-agent-browser": "3.609.0",
48
48
  "@aws-sdk/util-user-agent-node": "3.614.0",
49
49
  "@aws-sdk/xml-builder": "3.609.0",