@aws-sdk/client-s3 3.614.0 → 3.616.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 (72) hide show
  1. package/dist-cjs/index.js +174 -64
  2. package/dist-es/S3Client.js +7 -7
  3. package/dist-es/commands/AbortMultipartUploadCommand.js +2 -0
  4. package/dist-es/commands/CreateBucketCommand.js +2 -0
  5. package/dist-es/commands/CreateMultipartUploadCommand.js +2 -0
  6. package/dist-es/commands/CreateSessionCommand.js +2 -0
  7. package/dist-es/commands/DeleteObjectCommand.js +2 -0
  8. package/dist-es/commands/DeleteObjectTaggingCommand.js +2 -0
  9. package/dist-es/commands/DeleteObjectsCommand.js +2 -0
  10. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +2 -0
  11. package/dist-es/commands/GetBucketAclCommand.js +2 -0
  12. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +2 -0
  13. package/dist-es/commands/GetBucketCorsCommand.js +2 -0
  14. package/dist-es/commands/GetBucketEncryptionCommand.js +2 -0
  15. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +2 -0
  16. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +2 -0
  17. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +2 -0
  18. package/dist-es/commands/GetBucketLocationCommand.js +2 -0
  19. package/dist-es/commands/GetBucketLoggingCommand.js +2 -0
  20. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +2 -0
  21. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +2 -0
  22. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +2 -0
  23. package/dist-es/commands/GetBucketPolicyCommand.js +2 -0
  24. package/dist-es/commands/GetBucketPolicyStatusCommand.js +2 -0
  25. package/dist-es/commands/GetBucketReplicationCommand.js +2 -0
  26. package/dist-es/commands/GetBucketRequestPaymentCommand.js +2 -0
  27. package/dist-es/commands/GetBucketTaggingCommand.js +2 -0
  28. package/dist-es/commands/GetBucketVersioningCommand.js +2 -0
  29. package/dist-es/commands/GetBucketWebsiteCommand.js +2 -0
  30. package/dist-es/commands/GetObjectAclCommand.js +2 -0
  31. package/dist-es/commands/GetObjectAttributesCommand.js +2 -0
  32. package/dist-es/commands/GetObjectLegalHoldCommand.js +2 -0
  33. package/dist-es/commands/GetObjectLockConfigurationCommand.js +2 -0
  34. package/dist-es/commands/GetObjectRetentionCommand.js +2 -0
  35. package/dist-es/commands/GetObjectTaggingCommand.js +2 -0
  36. package/dist-es/commands/GetPublicAccessBlockCommand.js +2 -0
  37. package/dist-es/commands/HeadBucketCommand.js +2 -0
  38. package/dist-es/commands/HeadObjectCommand.js +2 -1
  39. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +2 -0
  40. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +2 -0
  41. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +2 -0
  42. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +2 -0
  43. package/dist-es/commands/ListBucketsCommand.js +2 -0
  44. package/dist-es/commands/ListDirectoryBucketsCommand.js +2 -0
  45. package/dist-es/commands/ListMultipartUploadsCommand.js +2 -0
  46. package/dist-es/commands/ListObjectVersionsCommand.js +2 -0
  47. package/dist-es/commands/ListObjectsCommand.js +2 -0
  48. package/dist-es/commands/ListObjectsV2Command.js +2 -0
  49. package/dist-es/commands/ListPartsCommand.js +2 -0
  50. package/dist-es/commands/PutObjectAclCommand.js +2 -0
  51. package/dist-es/commands/PutObjectCommand.js +2 -1
  52. package/dist-es/commands/PutObjectLegalHoldCommand.js +2 -0
  53. package/dist-es/commands/PutObjectLockConfigurationCommand.js +2 -0
  54. package/dist-es/commands/PutObjectRetentionCommand.js +2 -0
  55. package/dist-es/commands/PutObjectTaggingCommand.js +2 -0
  56. package/dist-es/commands/RestoreObjectCommand.js +2 -0
  57. package/dist-es/commands/SelectObjectContentCommand.js +2 -0
  58. package/dist-es/commands/UploadPartCommand.js +2 -0
  59. package/dist-types/S3Client.d.ts +2 -2
  60. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +11 -11
  61. package/dist-types/commands/DeleteObjectsCommand.d.ts +22 -22
  62. package/dist-types/commands/GetObjectCommand.d.ts +19 -19
  63. package/dist-types/commands/PutObjectCommand.d.ts +50 -50
  64. package/dist-types/commands/UploadPartCopyCommand.d.ts +13 -13
  65. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  66. package/dist-types/runtimeConfig.d.ts +1 -1
  67. package/dist-types/runtimeConfig.native.d.ts +1 -1
  68. package/dist-types/ts3.4/S3Client.d.ts +2 -2
  69. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -4
  70. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
  71. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -4
  72. package/package.json +25 -25
@@ -1,3 +1,4 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
1
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
4
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class ListObjectVersionsCommand extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  ];
19
21
  })
20
22
  .s("AmazonS3", "ListObjectVersions", {})
@@ -1,3 +1,4 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
1
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
4
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class ListObjectsCommand extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  ];
19
21
  })
20
22
  .s("AmazonS3", "ListObjects", {})
@@ -1,3 +1,4 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
1
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
4
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class ListObjectsV2Command extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  ];
19
21
  })
20
22
  .s("AmazonS3", "ListObjectsV2", {})
@@ -1,3 +1,4 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
1
2
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -17,6 +18,7 @@ export class ListPartsCommand extends $Command
17
18
  return [
18
19
  getSerdePlugin(config, this.serialize, this.deserialize),
19
20
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
21
+ getThrow200ExceptionsPlugin(config),
20
22
  getSsecPlugin(config),
21
23
  ];
22
24
  })
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
5
  import { Command as $Command } from "@smithy/smithy-client";
@@ -16,6 +17,7 @@ export class PutObjectAclCommand extends $Command
16
17
  return [
17
18
  getSerdePlugin(config, this.serialize, this.deserialize),
18
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
+ getThrow200ExceptionsPlugin(config),
19
21
  getFlexibleChecksumsPlugin(config, {
20
22
  input: this.input,
21
23
  requestAlgorithmMember: "ChecksumAlgorithm",
@@ -1,5 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
- import { getCheckContentLengthHeaderPlugin } from "@aws-sdk/middleware-sdk-s3";
2
+ import { getCheckContentLengthHeaderPlugin, getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
3
3
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
4
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
5
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -20,6 +20,7 @@ export class PutObjectCommand extends $Command
20
20
  getSerdePlugin(config, this.serialize, this.deserialize),
21
21
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
22
22
  getCheckContentLengthHeaderPlugin(config),
23
+ getThrow200ExceptionsPlugin(config),
23
24
  getSsecPlugin(config),
24
25
  getFlexibleChecksumsPlugin(config, {
25
26
  input: this.input,
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
5
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class PutObjectLegalHoldCommand extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  getFlexibleChecksumsPlugin(config, {
19
21
  input: this.input,
20
22
  requestAlgorithmMember: "ChecksumAlgorithm",
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
5
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class PutObjectLockConfigurationCommand extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  getFlexibleChecksumsPlugin(config, {
19
21
  input: this.input,
20
22
  requestAlgorithmMember: "ChecksumAlgorithm",
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
5
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class PutObjectRetentionCommand extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  getFlexibleChecksumsPlugin(config, {
19
21
  input: this.input,
20
22
  requestAlgorithmMember: "ChecksumAlgorithm",
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
5
  import { Command as $Command } from "@smithy/smithy-client";
@@ -15,6 +16,7 @@ export class PutObjectTaggingCommand extends $Command
15
16
  return [
16
17
  getSerdePlugin(config, this.serialize, this.deserialize),
17
18
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
19
+ getThrow200ExceptionsPlugin(config),
18
20
  getFlexibleChecksumsPlugin(config, {
19
21
  input: this.input,
20
22
  requestAlgorithmMember: "ChecksumAlgorithm",
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
5
  import { Command as $Command } from "@smithy/smithy-client";
@@ -16,6 +17,7 @@ export class RestoreObjectCommand extends $Command
16
17
  return [
17
18
  getSerdePlugin(config, this.serialize, this.deserialize),
18
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
+ getThrow200ExceptionsPlugin(config),
19
21
  getFlexibleChecksumsPlugin(config, {
20
22
  input: this.input,
21
23
  requestAlgorithmMember: "ChecksumAlgorithm",
@@ -1,3 +1,4 @@
1
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
1
2
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
2
3
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
4
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -16,6 +17,7 @@ export class SelectObjectContentCommand extends $Command
16
17
  return [
17
18
  getSerdePlugin(config, this.serialize, this.deserialize),
18
19
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
+ getThrow200ExceptionsPlugin(config),
19
21
  getSsecPlugin(config),
20
22
  ];
21
23
  })
@@ -1,4 +1,5 @@
1
1
  import { getFlexibleChecksumsPlugin } from "@aws-sdk/middleware-flexible-checksums";
2
+ import { getThrow200ExceptionsPlugin } from "@aws-sdk/middleware-sdk-s3";
2
3
  import { getSsecPlugin } from "@aws-sdk/middleware-ssec";
3
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
5
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -18,6 +19,7 @@ export class UploadPartCommand extends $Command
18
19
  return [
19
20
  getSerdePlugin(config, this.serialize, this.deserialize),
20
21
  getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
22
+ getThrow200ExceptionsPlugin(config),
21
23
  getSsecPlugin(config),
22
24
  getFlexibleChecksumsPlugin(config, {
23
25
  input: this.input,
@@ -270,7 +270,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
270
270
  /**
271
271
  * @public
272
272
  */
273
- export type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & S3InputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig & ClientInputEndpointParameters;
273
+ export type S3ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & HostHeaderInputConfig & AwsAuthInputConfig & S3InputConfig & UserAgentInputConfig & RetryInputConfig & EventStreamSerdeInputConfig & ClientInputEndpointParameters;
274
274
  /**
275
275
  * @public
276
276
  *
@@ -281,7 +281,7 @@ export interface S3ClientConfig extends S3ClientConfigType {
281
281
  /**
282
282
  * @public
283
283
  */
284
- export type S3ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & S3ResolvedConfig & UserAgentResolvedConfig & EventStreamSerdeResolvedConfig & ClientResolvedEndpointParameters;
284
+ export type S3ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HostHeaderResolvedConfig & AwsAuthResolvedConfig & S3ResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & EventStreamSerdeResolvedConfig & ClientResolvedEndpointParameters;
285
285
  /**
286
286
  * @public
287
287
  *
@@ -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
  */
@@ -210,20 +210,18 @@ declare const DeleteObjectsCommand_base: {
210
210
  * <p>Base exception class for all service exceptions from S3 service.</p>
211
211
  *
212
212
  * @public
213
- * @example To delete multiple object versions from a versioned bucket
213
+ * @example To delete multiple objects from a versioned bucket
214
214
  * ```javascript
215
- * // The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.
215
+ * // The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
216
216
  * const input = {
217
217
  * "Bucket": "examplebucket",
218
218
  * "Delete": {
219
219
  * "Objects": [
220
220
  * {
221
- * "Key": "HappyFace.jpg",
222
- * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
221
+ * "Key": "objectkey1"
223
222
  * },
224
223
  * {
225
- * "Key": "HappyFace.jpg",
226
- * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
224
+ * "Key": "objectkey2"
227
225
  * }
228
226
  * ],
229
227
  * "Quiet": false
@@ -235,31 +233,35 @@ declare const DeleteObjectsCommand_base: {
235
233
  * {
236
234
  * "Deleted": [
237
235
  * {
238
- * "Key": "HappyFace.jpg",
239
- * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
236
+ * "DeleteMarker": "true",
237
+ * "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
238
+ * "Key": "objectkey1"
240
239
  * },
241
240
  * {
242
- * "Key": "HappyFace.jpg",
243
- * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
241
+ * "DeleteMarker": "true",
242
+ * "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
243
+ * "Key": "objectkey2"
244
244
  * }
245
245
  * ]
246
246
  * }
247
247
  * *\/
248
- * // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
248
+ * // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
249
249
  * ```
250
250
  *
251
- * @example To delete multiple objects from a versioned bucket
251
+ * @example To delete multiple object versions from a versioned bucket
252
252
  * ```javascript
253
- * // The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
253
+ * // The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.
254
254
  * const input = {
255
255
  * "Bucket": "examplebucket",
256
256
  * "Delete": {
257
257
  * "Objects": [
258
258
  * {
259
- * "Key": "objectkey1"
259
+ * "Key": "HappyFace.jpg",
260
+ * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
260
261
  * },
261
262
  * {
262
- * "Key": "objectkey2"
263
+ * "Key": "HappyFace.jpg",
264
+ * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
263
265
  * }
264
266
  * ],
265
267
  * "Quiet": false
@@ -271,19 +273,17 @@ declare const DeleteObjectsCommand_base: {
271
273
  * {
272
274
  * "Deleted": [
273
275
  * {
274
- * "DeleteMarker": "true",
275
- * "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
276
- * "Key": "objectkey1"
276
+ * "Key": "HappyFace.jpg",
277
+ * "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"
277
278
  * },
278
279
  * {
279
- * "DeleteMarker": "true",
280
- * "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
281
- * "Key": "objectkey2"
280
+ * "Key": "HappyFace.jpg",
281
+ * "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"
282
282
  * }
283
283
  * ]
284
284
  * }
285
285
  * *\/
286
- * // example id: to-delete-multiple-objects-from-a-versioned-bucket-1483146248805
286
+ * // example id: to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737
287
287
  * ```
288
288
  *
289
289
  */
@@ -276,53 +276,53 @@ declare const GetObjectCommand_base: {
276
276
  * <p>Base exception class for all service exceptions from S3 service.</p>
277
277
  *
278
278
  * @public
279
- * @example To retrieve an object
279
+ * @example To retrieve a byte range of an object
280
280
  * ```javascript
281
- * // The following example retrieves an object for an S3 bucket.
281
+ * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
282
282
  * const input = {
283
283
  * "Bucket": "examplebucket",
284
- * "Key": "HappyFace.jpg"
284
+ * "Key": "SampleFile.txt",
285
+ * "Range": "bytes=0-9"
285
286
  * };
286
287
  * const command = new GetObjectCommand(input);
287
288
  * const response = await client.send(command);
288
289
  * /* response ==
289
290
  * {
290
291
  * "AcceptRanges": "bytes",
291
- * "ContentLength": "3191",
292
- * "ContentType": "image/jpeg",
293
- * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
294
- * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
292
+ * "ContentLength": "10",
293
+ * "ContentRange": "bytes 0-9/43",
294
+ * "ContentType": "text/plain",
295
+ * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
296
+ * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
295
297
  * "Metadata": {},
296
- * "TagCount": 2,
297
298
  * "VersionId": "null"
298
299
  * }
299
300
  * *\/
300
- * // example id: to-retrieve-an-object-1481827837012
301
+ * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
301
302
  * ```
302
303
  *
303
- * @example To retrieve a byte range of an object
304
+ * @example To retrieve an object
304
305
  * ```javascript
305
- * // The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a specific byte range.
306
+ * // The following example retrieves an object for an S3 bucket.
306
307
  * const input = {
307
308
  * "Bucket": "examplebucket",
308
- * "Key": "SampleFile.txt",
309
- * "Range": "bytes=0-9"
309
+ * "Key": "HappyFace.jpg"
310
310
  * };
311
311
  * const command = new GetObjectCommand(input);
312
312
  * const response = await client.send(command);
313
313
  * /* response ==
314
314
  * {
315
315
  * "AcceptRanges": "bytes",
316
- * "ContentLength": "10",
317
- * "ContentRange": "bytes 0-9/43",
318
- * "ContentType": "text/plain",
319
- * "ETag": "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
320
- * "LastModified": "Thu, 09 Oct 2014 22:57:28 GMT",
316
+ * "ContentLength": "3191",
317
+ * "ContentType": "image/jpeg",
318
+ * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
319
+ * "LastModified": "Thu, 15 Dec 2016 01:19:41 GMT",
321
320
  * "Metadata": {},
321
+ * "TagCount": 2,
322
322
  * "VersionId": "null"
323
323
  * }
324
324
  * *\/
325
- * // example id: to-retrieve-a-byte-range-of-an-object--1481832674603
325
+ * // example id: to-retrieve-an-object-1481827837012
326
326
  * ```
327
327
  *
328
328
  */
@@ -234,33 +234,33 @@ declare const PutObjectCommand_base: {
234
234
  * <p>Base exception class for all service exceptions from S3 service.</p>
235
235
  *
236
236
  * @public
237
- * @example To upload an object and specify canned ACL.
237
+ * @example To upload an object
238
238
  * ```javascript
239
- * // 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.
239
+ * // 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.
240
240
  * const input = {
241
- * "ACL": "authenticated-read",
242
- * "Body": "filetoupload",
241
+ * "Body": "HappyFace.jpg",
243
242
  * "Bucket": "examplebucket",
244
- * "Key": "exampleobject"
243
+ * "Key": "HappyFace.jpg"
245
244
  * };
246
245
  * const command = new PutObjectCommand(input);
247
246
  * const response = await client.send(command);
248
247
  * /* response ==
249
248
  * {
250
249
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
251
- * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
250
+ * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
252
251
  * }
253
252
  * *\/
254
- * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
253
+ * // example id: to-upload-an-object-1481760101010
255
254
  * ```
256
255
  *
257
- * @example To upload an object and specify optional tags
256
+ * @example To upload an object and specify server-side encryption and object tags
258
257
  * ```javascript
259
- * // 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.
258
+ * // 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.
260
259
  * const input = {
261
- * "Body": "c:\\HappyFace.jpg",
260
+ * "Body": "filetoupload",
262
261
  * "Bucket": "examplebucket",
263
- * "Key": "HappyFace.jpg",
262
+ * "Key": "exampleobject",
263
+ * "ServerSideEncryption": "AES256",
264
264
  * "Tagging": "key1=value1&key2=value2"
265
265
  * };
266
266
  * const command = new PutObjectCommand(input);
@@ -268,21 +268,22 @@ declare const PutObjectCommand_base: {
268
268
  * /* response ==
269
269
  * {
270
270
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
271
- * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
271
+ * "ServerSideEncryption": "AES256",
272
+ * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
272
273
  * }
273
274
  * *\/
274
- * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
275
+ * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
275
276
  * ```
276
277
  *
277
- * @example To upload an object and specify server-side encryption and object tags
278
+ * @example To upload an object (specify optional headers)
278
279
  * ```javascript
279
- * // 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.
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.
280
281
  * const input = {
281
- * "Body": "filetoupload",
282
+ * "Body": "HappyFace.jpg",
282
283
  * "Bucket": "examplebucket",
283
- * "Key": "exampleobject",
284
+ * "Key": "HappyFace.jpg",
284
285
  * "ServerSideEncryption": "AES256",
285
- * "Tagging": "key1=value1&key2=value2"
286
+ * "StorageClass": "STANDARD_IA"
286
287
  * };
287
288
  * const command = new PutObjectCommand(input);
288
289
  * const response = await client.send(command);
@@ -290,93 +291,92 @@ declare const PutObjectCommand_base: {
290
291
  * {
291
292
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
292
293
  * "ServerSideEncryption": "AES256",
293
- * "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt"
294
+ * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
294
295
  * }
295
296
  * *\/
296
- * // example id: to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831
297
+ * // example id: to-upload-an-object-(specify-optional-headers)
297
298
  * ```
298
299
  *
299
- * @example To upload an object
300
+ * @example To upload object and specify user-defined metadata
300
301
  * ```javascript
301
- * // 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.
302
+ * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
302
303
  * const input = {
303
- * "Body": "HappyFace.jpg",
304
+ * "Body": "filetoupload",
304
305
  * "Bucket": "examplebucket",
305
- * "Key": "HappyFace.jpg"
306
+ * "Key": "exampleobject",
307
+ * "Metadata": {
308
+ * "metadata1": "value1",
309
+ * "metadata2": "value2"
310
+ * }
306
311
  * };
307
312
  * const command = new PutObjectCommand(input);
308
313
  * const response = await client.send(command);
309
314
  * /* response ==
310
315
  * {
311
316
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
312
- * "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk"
317
+ * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
313
318
  * }
314
319
  * *\/
315
- * // example id: to-upload-an-object-1481760101010
320
+ * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
316
321
  * ```
317
322
  *
318
- * @example To create an object.
323
+ * @example To upload an object and specify optional tags
319
324
  * ```javascript
320
- * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
325
+ * // 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.
321
326
  * const input = {
322
- * "Body": "filetoupload",
327
+ * "Body": "c:\\HappyFace.jpg",
323
328
  * "Bucket": "examplebucket",
324
- * "Key": "objectkey"
329
+ * "Key": "HappyFace.jpg",
330
+ * "Tagging": "key1=value1&key2=value2"
325
331
  * };
326
332
  * const command = new PutObjectCommand(input);
327
333
  * const response = await client.send(command);
328
334
  * /* response ==
329
335
  * {
330
336
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
331
- * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
337
+ * "VersionId": "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a"
332
338
  * }
333
339
  * *\/
334
- * // example id: to-create-an-object-1483147613675
340
+ * // example id: to-upload-an-object-and-specify-optional-tags-1481762310955
335
341
  * ```
336
342
  *
337
- * @example To upload an object (specify optional headers)
343
+ * @example To upload an object and specify canned ACL.
338
344
  * ```javascript
339
- * // 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.
345
+ * // 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.
340
346
  * const input = {
341
- * "Body": "HappyFace.jpg",
347
+ * "ACL": "authenticated-read",
348
+ * "Body": "filetoupload",
342
349
  * "Bucket": "examplebucket",
343
- * "Key": "HappyFace.jpg",
344
- * "ServerSideEncryption": "AES256",
345
- * "StorageClass": "STANDARD_IA"
350
+ * "Key": "exampleobject"
346
351
  * };
347
352
  * const command = new PutObjectCommand(input);
348
353
  * const response = await client.send(command);
349
354
  * /* response ==
350
355
  * {
351
356
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
352
- * "ServerSideEncryption": "AES256",
353
- * "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp"
357
+ * "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr"
354
358
  * }
355
359
  * *\/
356
- * // example id: to-upload-an-object-(specify-optional-headers)
360
+ * // example id: to-upload-an-object-and-specify-canned-acl-1483397779571
357
361
  * ```
358
362
  *
359
- * @example To upload object and specify user-defined metadata
363
+ * @example To create an object.
360
364
  * ```javascript
361
- * // The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.
365
+ * // The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
362
366
  * const input = {
363
367
  * "Body": "filetoupload",
364
368
  * "Bucket": "examplebucket",
365
- * "Key": "exampleobject",
366
- * "Metadata": {
367
- * "metadata1": "value1",
368
- * "metadata2": "value2"
369
- * }
369
+ * "Key": "objectkey"
370
370
  * };
371
371
  * const command = new PutObjectCommand(input);
372
372
  * const response = await client.send(command);
373
373
  * /* response ==
374
374
  * {
375
375
  * "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"",
376
- * "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0"
376
+ * "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ"
377
377
  * }
378
378
  * *\/
379
- * // example id: to-upload-object-and-specify-user-defined-metadata-1483396974757
379
+ * // example id: to-create-an-object-1483147613675
380
380
  * ```
381
381
  *
382
382
  */