@aws-sdk/client-s3 3.181.0 → 3.183.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 (112) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/S3.js +374 -381
  3. package/dist-es/S3Client.js +26 -32
  4. package/dist-es/commands/AbortMultipartUploadCommand.js +21 -28
  5. package/dist-es/commands/CompleteMultipartUploadCommand.js +21 -28
  6. package/dist-es/commands/CopyObjectCommand.js +21 -28
  7. package/dist-es/commands/CreateBucketCommand.js +21 -28
  8. package/dist-es/commands/CreateMultipartUploadCommand.js +21 -28
  9. package/dist-es/commands/DeleteBucketAnalyticsConfigurationCommand.js +22 -29
  10. package/dist-es/commands/DeleteBucketCommand.js +22 -29
  11. package/dist-es/commands/DeleteBucketCorsCommand.js +22 -29
  12. package/dist-es/commands/DeleteBucketEncryptionCommand.js +22 -29
  13. package/dist-es/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +22 -29
  14. package/dist-es/commands/DeleteBucketInventoryConfigurationCommand.js +22 -29
  15. package/dist-es/commands/DeleteBucketLifecycleCommand.js +22 -29
  16. package/dist-es/commands/DeleteBucketMetricsConfigurationCommand.js +22 -29
  17. package/dist-es/commands/DeleteBucketOwnershipControlsCommand.js +22 -29
  18. package/dist-es/commands/DeleteBucketPolicyCommand.js +22 -29
  19. package/dist-es/commands/DeleteBucketReplicationCommand.js +22 -29
  20. package/dist-es/commands/DeleteBucketTaggingCommand.js +22 -29
  21. package/dist-es/commands/DeleteBucketWebsiteCommand.js +22 -29
  22. package/dist-es/commands/DeleteObjectCommand.js +21 -28
  23. package/dist-es/commands/DeleteObjectTaggingCommand.js +21 -28
  24. package/dist-es/commands/DeleteObjectsCommand.js +21 -28
  25. package/dist-es/commands/DeletePublicAccessBlockCommand.js +22 -29
  26. package/dist-es/commands/GetBucketAccelerateConfigurationCommand.js +21 -28
  27. package/dist-es/commands/GetBucketAclCommand.js +21 -28
  28. package/dist-es/commands/GetBucketAnalyticsConfigurationCommand.js +21 -28
  29. package/dist-es/commands/GetBucketCorsCommand.js +21 -28
  30. package/dist-es/commands/GetBucketEncryptionCommand.js +21 -28
  31. package/dist-es/commands/GetBucketIntelligentTieringConfigurationCommand.js +21 -28
  32. package/dist-es/commands/GetBucketInventoryConfigurationCommand.js +21 -28
  33. package/dist-es/commands/GetBucketLifecycleConfigurationCommand.js +21 -28
  34. package/dist-es/commands/GetBucketLocationCommand.js +21 -28
  35. package/dist-es/commands/GetBucketLoggingCommand.js +21 -28
  36. package/dist-es/commands/GetBucketMetricsConfigurationCommand.js +21 -28
  37. package/dist-es/commands/GetBucketNotificationConfigurationCommand.js +21 -28
  38. package/dist-es/commands/GetBucketOwnershipControlsCommand.js +21 -28
  39. package/dist-es/commands/GetBucketPolicyCommand.js +21 -28
  40. package/dist-es/commands/GetBucketPolicyStatusCommand.js +21 -28
  41. package/dist-es/commands/GetBucketReplicationCommand.js +21 -28
  42. package/dist-es/commands/GetBucketRequestPaymentCommand.js +21 -28
  43. package/dist-es/commands/GetBucketTaggingCommand.js +21 -28
  44. package/dist-es/commands/GetBucketVersioningCommand.js +21 -28
  45. package/dist-es/commands/GetBucketWebsiteCommand.js +21 -28
  46. package/dist-es/commands/GetObjectAclCommand.js +21 -28
  47. package/dist-es/commands/GetObjectAttributesCommand.js +21 -28
  48. package/dist-es/commands/GetObjectCommand.js +21 -28
  49. package/dist-es/commands/GetObjectLegalHoldCommand.js +21 -28
  50. package/dist-es/commands/GetObjectLockConfigurationCommand.js +21 -28
  51. package/dist-es/commands/GetObjectRetentionCommand.js +21 -28
  52. package/dist-es/commands/GetObjectTaggingCommand.js +21 -28
  53. package/dist-es/commands/GetObjectTorrentCommand.js +21 -28
  54. package/dist-es/commands/GetPublicAccessBlockCommand.js +21 -28
  55. package/dist-es/commands/HeadBucketCommand.js +22 -29
  56. package/dist-es/commands/HeadObjectCommand.js +21 -28
  57. package/dist-es/commands/ListBucketAnalyticsConfigurationsCommand.js +21 -28
  58. package/dist-es/commands/ListBucketIntelligentTieringConfigurationsCommand.js +21 -28
  59. package/dist-es/commands/ListBucketInventoryConfigurationsCommand.js +21 -28
  60. package/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +21 -28
  61. package/dist-es/commands/ListBucketsCommand.js +22 -29
  62. package/dist-es/commands/ListMultipartUploadsCommand.js +21 -28
  63. package/dist-es/commands/ListObjectVersionsCommand.js +21 -28
  64. package/dist-es/commands/ListObjectsCommand.js +21 -28
  65. package/dist-es/commands/ListObjectsV2Command.js +21 -28
  66. package/dist-es/commands/ListPartsCommand.js +21 -28
  67. package/dist-es/commands/PutBucketAccelerateConfigurationCommand.js +22 -29
  68. package/dist-es/commands/PutBucketAclCommand.js +22 -29
  69. package/dist-es/commands/PutBucketAnalyticsConfigurationCommand.js +22 -29
  70. package/dist-es/commands/PutBucketCorsCommand.js +22 -29
  71. package/dist-es/commands/PutBucketEncryptionCommand.js +22 -29
  72. package/dist-es/commands/PutBucketIntelligentTieringConfigurationCommand.js +22 -29
  73. package/dist-es/commands/PutBucketInventoryConfigurationCommand.js +22 -29
  74. package/dist-es/commands/PutBucketLifecycleConfigurationCommand.js +22 -29
  75. package/dist-es/commands/PutBucketLoggingCommand.js +22 -29
  76. package/dist-es/commands/PutBucketMetricsConfigurationCommand.js +22 -29
  77. package/dist-es/commands/PutBucketNotificationConfigurationCommand.js +22 -29
  78. package/dist-es/commands/PutBucketOwnershipControlsCommand.js +22 -29
  79. package/dist-es/commands/PutBucketPolicyCommand.js +22 -29
  80. package/dist-es/commands/PutBucketReplicationCommand.js +22 -29
  81. package/dist-es/commands/PutBucketRequestPaymentCommand.js +22 -29
  82. package/dist-es/commands/PutBucketTaggingCommand.js +22 -29
  83. package/dist-es/commands/PutBucketVersioningCommand.js +22 -29
  84. package/dist-es/commands/PutBucketWebsiteCommand.js +22 -29
  85. package/dist-es/commands/PutObjectAclCommand.js +21 -28
  86. package/dist-es/commands/PutObjectCommand.js +21 -28
  87. package/dist-es/commands/PutObjectLegalHoldCommand.js +21 -28
  88. package/dist-es/commands/PutObjectLockConfigurationCommand.js +21 -28
  89. package/dist-es/commands/PutObjectRetentionCommand.js +21 -28
  90. package/dist-es/commands/PutObjectTaggingCommand.js +21 -28
  91. package/dist-es/commands/PutPublicAccessBlockCommand.js +22 -29
  92. package/dist-es/commands/RestoreObjectCommand.js +21 -28
  93. package/dist-es/commands/SelectObjectContentCommand.js +21 -28
  94. package/dist-es/commands/UploadPartCommand.js +21 -28
  95. package/dist-es/commands/UploadPartCopyCommand.js +21 -28
  96. package/dist-es/commands/WriteGetObjectResponseCommand.js +22 -29
  97. package/dist-es/endpoints.js +8 -8
  98. package/dist-es/models/S3ServiceException.js +5 -10
  99. package/dist-es/models/models_0.js +896 -378
  100. package/dist-es/models/models_1.js +141 -54
  101. package/dist-es/pagination/ListObjectsV2Paginator.js +25 -68
  102. package/dist-es/pagination/ListPartsPaginator.js +25 -68
  103. package/dist-es/protocols/Aws_restXml.js +6891 -9022
  104. package/dist-es/runtimeConfig.browser.js +31 -12
  105. package/dist-es/runtimeConfig.js +36 -12
  106. package/dist-es/runtimeConfig.native.js +8 -5
  107. package/dist-es/runtimeConfig.shared.js +11 -14
  108. package/dist-es/waiters/waitForBucketExists.js +23 -42
  109. package/dist-es/waiters/waitForBucketNotExists.js +22 -42
  110. package/dist-es/waiters/waitForObjectExists.js +23 -42
  111. package/dist-es/waiters/waitForObjectNotExists.js +22 -42
  112. package/package.json +50 -50
package/dist-es/S3.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AbortMultipartUploadCommand, } from "./commands/AbortMultipartUploadCommand";
3
2
  import { CompleteMultipartUploadCommand, } from "./commands/CompleteMultipartUploadCommand";
4
3
  import { CopyObjectCommand } from "./commands/CopyObjectCommand";
@@ -93,1313 +92,1307 @@ import { UploadPartCommand } from "./commands/UploadPartCommand";
93
92
  import { UploadPartCopyCommand, } from "./commands/UploadPartCopyCommand";
94
93
  import { WriteGetObjectResponseCommand, } from "./commands/WriteGetObjectResponseCommand";
95
94
  import { S3Client } from "./S3Client";
96
- var S3 = (function (_super) {
97
- __extends(S3, _super);
98
- function S3() {
99
- return _super !== null && _super.apply(this, arguments) || this;
100
- }
101
- S3.prototype.abortMultipartUpload = function (args, optionsOrCb, cb) {
102
- var command = new AbortMultipartUploadCommand(args);
95
+ export class S3 extends S3Client {
96
+ abortMultipartUpload(args, optionsOrCb, cb) {
97
+ const command = new AbortMultipartUploadCommand(args);
103
98
  if (typeof optionsOrCb === "function") {
104
99
  this.send(command, optionsOrCb);
105
100
  }
106
101
  else if (typeof cb === "function") {
107
102
  if (typeof optionsOrCb !== "object")
108
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
104
  this.send(command, optionsOrCb || {}, cb);
110
105
  }
111
106
  else {
112
107
  return this.send(command, optionsOrCb);
113
108
  }
114
- };
115
- S3.prototype.completeMultipartUpload = function (args, optionsOrCb, cb) {
116
- var command = new CompleteMultipartUploadCommand(args);
109
+ }
110
+ completeMultipartUpload(args, optionsOrCb, cb) {
111
+ const command = new CompleteMultipartUploadCommand(args);
117
112
  if (typeof optionsOrCb === "function") {
118
113
  this.send(command, optionsOrCb);
119
114
  }
120
115
  else if (typeof cb === "function") {
121
116
  if (typeof optionsOrCb !== "object")
122
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
118
  this.send(command, optionsOrCb || {}, cb);
124
119
  }
125
120
  else {
126
121
  return this.send(command, optionsOrCb);
127
122
  }
128
- };
129
- S3.prototype.copyObject = function (args, optionsOrCb, cb) {
130
- var command = new CopyObjectCommand(args);
123
+ }
124
+ copyObject(args, optionsOrCb, cb) {
125
+ const command = new CopyObjectCommand(args);
131
126
  if (typeof optionsOrCb === "function") {
132
127
  this.send(command, optionsOrCb);
133
128
  }
134
129
  else if (typeof cb === "function") {
135
130
  if (typeof optionsOrCb !== "object")
136
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
131
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
132
  this.send(command, optionsOrCb || {}, cb);
138
133
  }
139
134
  else {
140
135
  return this.send(command, optionsOrCb);
141
136
  }
142
- };
143
- S3.prototype.createBucket = function (args, optionsOrCb, cb) {
144
- var command = new CreateBucketCommand(args);
137
+ }
138
+ createBucket(args, optionsOrCb, cb) {
139
+ const command = new CreateBucketCommand(args);
145
140
  if (typeof optionsOrCb === "function") {
146
141
  this.send(command, optionsOrCb);
147
142
  }
148
143
  else if (typeof cb === "function") {
149
144
  if (typeof optionsOrCb !== "object")
150
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
145
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
146
  this.send(command, optionsOrCb || {}, cb);
152
147
  }
153
148
  else {
154
149
  return this.send(command, optionsOrCb);
155
150
  }
156
- };
157
- S3.prototype.createMultipartUpload = function (args, optionsOrCb, cb) {
158
- var command = new CreateMultipartUploadCommand(args);
151
+ }
152
+ createMultipartUpload(args, optionsOrCb, cb) {
153
+ const command = new CreateMultipartUploadCommand(args);
159
154
  if (typeof optionsOrCb === "function") {
160
155
  this.send(command, optionsOrCb);
161
156
  }
162
157
  else if (typeof cb === "function") {
163
158
  if (typeof optionsOrCb !== "object")
164
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
159
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
160
  this.send(command, optionsOrCb || {}, cb);
166
161
  }
167
162
  else {
168
163
  return this.send(command, optionsOrCb);
169
164
  }
170
- };
171
- S3.prototype.deleteBucket = function (args, optionsOrCb, cb) {
172
- var command = new DeleteBucketCommand(args);
165
+ }
166
+ deleteBucket(args, optionsOrCb, cb) {
167
+ const command = new DeleteBucketCommand(args);
173
168
  if (typeof optionsOrCb === "function") {
174
169
  this.send(command, optionsOrCb);
175
170
  }
176
171
  else if (typeof cb === "function") {
177
172
  if (typeof optionsOrCb !== "object")
178
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
173
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179
174
  this.send(command, optionsOrCb || {}, cb);
180
175
  }
181
176
  else {
182
177
  return this.send(command, optionsOrCb);
183
178
  }
184
- };
185
- S3.prototype.deleteBucketAnalyticsConfiguration = function (args, optionsOrCb, cb) {
186
- var command = new DeleteBucketAnalyticsConfigurationCommand(args);
179
+ }
180
+ deleteBucketAnalyticsConfiguration(args, optionsOrCb, cb) {
181
+ const command = new DeleteBucketAnalyticsConfigurationCommand(args);
187
182
  if (typeof optionsOrCb === "function") {
188
183
  this.send(command, optionsOrCb);
189
184
  }
190
185
  else if (typeof cb === "function") {
191
186
  if (typeof optionsOrCb !== "object")
192
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
187
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
193
188
  this.send(command, optionsOrCb || {}, cb);
194
189
  }
195
190
  else {
196
191
  return this.send(command, optionsOrCb);
197
192
  }
198
- };
199
- S3.prototype.deleteBucketCors = function (args, optionsOrCb, cb) {
200
- var command = new DeleteBucketCorsCommand(args);
193
+ }
194
+ deleteBucketCors(args, optionsOrCb, cb) {
195
+ const command = new DeleteBucketCorsCommand(args);
201
196
  if (typeof optionsOrCb === "function") {
202
197
  this.send(command, optionsOrCb);
203
198
  }
204
199
  else if (typeof cb === "function") {
205
200
  if (typeof optionsOrCb !== "object")
206
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
201
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
207
202
  this.send(command, optionsOrCb || {}, cb);
208
203
  }
209
204
  else {
210
205
  return this.send(command, optionsOrCb);
211
206
  }
212
- };
213
- S3.prototype.deleteBucketEncryption = function (args, optionsOrCb, cb) {
214
- var command = new DeleteBucketEncryptionCommand(args);
207
+ }
208
+ deleteBucketEncryption(args, optionsOrCb, cb) {
209
+ const command = new DeleteBucketEncryptionCommand(args);
215
210
  if (typeof optionsOrCb === "function") {
216
211
  this.send(command, optionsOrCb);
217
212
  }
218
213
  else if (typeof cb === "function") {
219
214
  if (typeof optionsOrCb !== "object")
220
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
215
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
221
216
  this.send(command, optionsOrCb || {}, cb);
222
217
  }
223
218
  else {
224
219
  return this.send(command, optionsOrCb);
225
220
  }
226
- };
227
- S3.prototype.deleteBucketIntelligentTieringConfiguration = function (args, optionsOrCb, cb) {
228
- var command = new DeleteBucketIntelligentTieringConfigurationCommand(args);
221
+ }
222
+ deleteBucketIntelligentTieringConfiguration(args, optionsOrCb, cb) {
223
+ const command = new DeleteBucketIntelligentTieringConfigurationCommand(args);
229
224
  if (typeof optionsOrCb === "function") {
230
225
  this.send(command, optionsOrCb);
231
226
  }
232
227
  else if (typeof cb === "function") {
233
228
  if (typeof optionsOrCb !== "object")
234
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
229
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
230
  this.send(command, optionsOrCb || {}, cb);
236
231
  }
237
232
  else {
238
233
  return this.send(command, optionsOrCb);
239
234
  }
240
- };
241
- S3.prototype.deleteBucketInventoryConfiguration = function (args, optionsOrCb, cb) {
242
- var command = new DeleteBucketInventoryConfigurationCommand(args);
235
+ }
236
+ deleteBucketInventoryConfiguration(args, optionsOrCb, cb) {
237
+ const command = new DeleteBucketInventoryConfigurationCommand(args);
243
238
  if (typeof optionsOrCb === "function") {
244
239
  this.send(command, optionsOrCb);
245
240
  }
246
241
  else if (typeof cb === "function") {
247
242
  if (typeof optionsOrCb !== "object")
248
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
243
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
244
  this.send(command, optionsOrCb || {}, cb);
250
245
  }
251
246
  else {
252
247
  return this.send(command, optionsOrCb);
253
248
  }
254
- };
255
- S3.prototype.deleteBucketLifecycle = function (args, optionsOrCb, cb) {
256
- var command = new DeleteBucketLifecycleCommand(args);
249
+ }
250
+ deleteBucketLifecycle(args, optionsOrCb, cb) {
251
+ const command = new DeleteBucketLifecycleCommand(args);
257
252
  if (typeof optionsOrCb === "function") {
258
253
  this.send(command, optionsOrCb);
259
254
  }
260
255
  else if (typeof cb === "function") {
261
256
  if (typeof optionsOrCb !== "object")
262
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
257
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
258
  this.send(command, optionsOrCb || {}, cb);
264
259
  }
265
260
  else {
266
261
  return this.send(command, optionsOrCb);
267
262
  }
268
- };
269
- S3.prototype.deleteBucketMetricsConfiguration = function (args, optionsOrCb, cb) {
270
- var command = new DeleteBucketMetricsConfigurationCommand(args);
263
+ }
264
+ deleteBucketMetricsConfiguration(args, optionsOrCb, cb) {
265
+ const command = new DeleteBucketMetricsConfigurationCommand(args);
271
266
  if (typeof optionsOrCb === "function") {
272
267
  this.send(command, optionsOrCb);
273
268
  }
274
269
  else if (typeof cb === "function") {
275
270
  if (typeof optionsOrCb !== "object")
276
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
271
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
272
  this.send(command, optionsOrCb || {}, cb);
278
273
  }
279
274
  else {
280
275
  return this.send(command, optionsOrCb);
281
276
  }
282
- };
283
- S3.prototype.deleteBucketOwnershipControls = function (args, optionsOrCb, cb) {
284
- var command = new DeleteBucketOwnershipControlsCommand(args);
277
+ }
278
+ deleteBucketOwnershipControls(args, optionsOrCb, cb) {
279
+ const command = new DeleteBucketOwnershipControlsCommand(args);
285
280
  if (typeof optionsOrCb === "function") {
286
281
  this.send(command, optionsOrCb);
287
282
  }
288
283
  else if (typeof cb === "function") {
289
284
  if (typeof optionsOrCb !== "object")
290
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
285
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
286
  this.send(command, optionsOrCb || {}, cb);
292
287
  }
293
288
  else {
294
289
  return this.send(command, optionsOrCb);
295
290
  }
296
- };
297
- S3.prototype.deleteBucketPolicy = function (args, optionsOrCb, cb) {
298
- var command = new DeleteBucketPolicyCommand(args);
291
+ }
292
+ deleteBucketPolicy(args, optionsOrCb, cb) {
293
+ const command = new DeleteBucketPolicyCommand(args);
299
294
  if (typeof optionsOrCb === "function") {
300
295
  this.send(command, optionsOrCb);
301
296
  }
302
297
  else if (typeof cb === "function") {
303
298
  if (typeof optionsOrCb !== "object")
304
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
299
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
300
  this.send(command, optionsOrCb || {}, cb);
306
301
  }
307
302
  else {
308
303
  return this.send(command, optionsOrCb);
309
304
  }
310
- };
311
- S3.prototype.deleteBucketReplication = function (args, optionsOrCb, cb) {
312
- var command = new DeleteBucketReplicationCommand(args);
305
+ }
306
+ deleteBucketReplication(args, optionsOrCb, cb) {
307
+ const command = new DeleteBucketReplicationCommand(args);
313
308
  if (typeof optionsOrCb === "function") {
314
309
  this.send(command, optionsOrCb);
315
310
  }
316
311
  else if (typeof cb === "function") {
317
312
  if (typeof optionsOrCb !== "object")
318
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
313
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
314
  this.send(command, optionsOrCb || {}, cb);
320
315
  }
321
316
  else {
322
317
  return this.send(command, optionsOrCb);
323
318
  }
324
- };
325
- S3.prototype.deleteBucketTagging = function (args, optionsOrCb, cb) {
326
- var command = new DeleteBucketTaggingCommand(args);
319
+ }
320
+ deleteBucketTagging(args, optionsOrCb, cb) {
321
+ const command = new DeleteBucketTaggingCommand(args);
327
322
  if (typeof optionsOrCb === "function") {
328
323
  this.send(command, optionsOrCb);
329
324
  }
330
325
  else if (typeof cb === "function") {
331
326
  if (typeof optionsOrCb !== "object")
332
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
327
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
328
  this.send(command, optionsOrCb || {}, cb);
334
329
  }
335
330
  else {
336
331
  return this.send(command, optionsOrCb);
337
332
  }
338
- };
339
- S3.prototype.deleteBucketWebsite = function (args, optionsOrCb, cb) {
340
- var command = new DeleteBucketWebsiteCommand(args);
333
+ }
334
+ deleteBucketWebsite(args, optionsOrCb, cb) {
335
+ const command = new DeleteBucketWebsiteCommand(args);
341
336
  if (typeof optionsOrCb === "function") {
342
337
  this.send(command, optionsOrCb);
343
338
  }
344
339
  else if (typeof cb === "function") {
345
340
  if (typeof optionsOrCb !== "object")
346
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
341
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
342
  this.send(command, optionsOrCb || {}, cb);
348
343
  }
349
344
  else {
350
345
  return this.send(command, optionsOrCb);
351
346
  }
352
- };
353
- S3.prototype.deleteObject = function (args, optionsOrCb, cb) {
354
- var command = new DeleteObjectCommand(args);
347
+ }
348
+ deleteObject(args, optionsOrCb, cb) {
349
+ const command = new DeleteObjectCommand(args);
355
350
  if (typeof optionsOrCb === "function") {
356
351
  this.send(command, optionsOrCb);
357
352
  }
358
353
  else if (typeof cb === "function") {
359
354
  if (typeof optionsOrCb !== "object")
360
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
355
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
356
  this.send(command, optionsOrCb || {}, cb);
362
357
  }
363
358
  else {
364
359
  return this.send(command, optionsOrCb);
365
360
  }
366
- };
367
- S3.prototype.deleteObjects = function (args, optionsOrCb, cb) {
368
- var command = new DeleteObjectsCommand(args);
361
+ }
362
+ deleteObjects(args, optionsOrCb, cb) {
363
+ const command = new DeleteObjectsCommand(args);
369
364
  if (typeof optionsOrCb === "function") {
370
365
  this.send(command, optionsOrCb);
371
366
  }
372
367
  else if (typeof cb === "function") {
373
368
  if (typeof optionsOrCb !== "object")
374
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
369
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
370
  this.send(command, optionsOrCb || {}, cb);
376
371
  }
377
372
  else {
378
373
  return this.send(command, optionsOrCb);
379
374
  }
380
- };
381
- S3.prototype.deleteObjectTagging = function (args, optionsOrCb, cb) {
382
- var command = new DeleteObjectTaggingCommand(args);
375
+ }
376
+ deleteObjectTagging(args, optionsOrCb, cb) {
377
+ const command = new DeleteObjectTaggingCommand(args);
383
378
  if (typeof optionsOrCb === "function") {
384
379
  this.send(command, optionsOrCb);
385
380
  }
386
381
  else if (typeof cb === "function") {
387
382
  if (typeof optionsOrCb !== "object")
388
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
383
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
389
384
  this.send(command, optionsOrCb || {}, cb);
390
385
  }
391
386
  else {
392
387
  return this.send(command, optionsOrCb);
393
388
  }
394
- };
395
- S3.prototype.deletePublicAccessBlock = function (args, optionsOrCb, cb) {
396
- var command = new DeletePublicAccessBlockCommand(args);
389
+ }
390
+ deletePublicAccessBlock(args, optionsOrCb, cb) {
391
+ const command = new DeletePublicAccessBlockCommand(args);
397
392
  if (typeof optionsOrCb === "function") {
398
393
  this.send(command, optionsOrCb);
399
394
  }
400
395
  else if (typeof cb === "function") {
401
396
  if (typeof optionsOrCb !== "object")
402
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
397
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
403
398
  this.send(command, optionsOrCb || {}, cb);
404
399
  }
405
400
  else {
406
401
  return this.send(command, optionsOrCb);
407
402
  }
408
- };
409
- S3.prototype.getBucketAccelerateConfiguration = function (args, optionsOrCb, cb) {
410
- var command = new GetBucketAccelerateConfigurationCommand(args);
403
+ }
404
+ getBucketAccelerateConfiguration(args, optionsOrCb, cb) {
405
+ const command = new GetBucketAccelerateConfigurationCommand(args);
411
406
  if (typeof optionsOrCb === "function") {
412
407
  this.send(command, optionsOrCb);
413
408
  }
414
409
  else if (typeof cb === "function") {
415
410
  if (typeof optionsOrCb !== "object")
416
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
411
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
412
  this.send(command, optionsOrCb || {}, cb);
418
413
  }
419
414
  else {
420
415
  return this.send(command, optionsOrCb);
421
416
  }
422
- };
423
- S3.prototype.getBucketAcl = function (args, optionsOrCb, cb) {
424
- var command = new GetBucketAclCommand(args);
417
+ }
418
+ getBucketAcl(args, optionsOrCb, cb) {
419
+ const command = new GetBucketAclCommand(args);
425
420
  if (typeof optionsOrCb === "function") {
426
421
  this.send(command, optionsOrCb);
427
422
  }
428
423
  else if (typeof cb === "function") {
429
424
  if (typeof optionsOrCb !== "object")
430
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
425
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
431
426
  this.send(command, optionsOrCb || {}, cb);
432
427
  }
433
428
  else {
434
429
  return this.send(command, optionsOrCb);
435
430
  }
436
- };
437
- S3.prototype.getBucketAnalyticsConfiguration = function (args, optionsOrCb, cb) {
438
- var command = new GetBucketAnalyticsConfigurationCommand(args);
431
+ }
432
+ getBucketAnalyticsConfiguration(args, optionsOrCb, cb) {
433
+ const command = new GetBucketAnalyticsConfigurationCommand(args);
439
434
  if (typeof optionsOrCb === "function") {
440
435
  this.send(command, optionsOrCb);
441
436
  }
442
437
  else if (typeof cb === "function") {
443
438
  if (typeof optionsOrCb !== "object")
444
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
439
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
445
440
  this.send(command, optionsOrCb || {}, cb);
446
441
  }
447
442
  else {
448
443
  return this.send(command, optionsOrCb);
449
444
  }
450
- };
451
- S3.prototype.getBucketCors = function (args, optionsOrCb, cb) {
452
- var command = new GetBucketCorsCommand(args);
445
+ }
446
+ getBucketCors(args, optionsOrCb, cb) {
447
+ const command = new GetBucketCorsCommand(args);
453
448
  if (typeof optionsOrCb === "function") {
454
449
  this.send(command, optionsOrCb);
455
450
  }
456
451
  else if (typeof cb === "function") {
457
452
  if (typeof optionsOrCb !== "object")
458
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
453
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
454
  this.send(command, optionsOrCb || {}, cb);
460
455
  }
461
456
  else {
462
457
  return this.send(command, optionsOrCb);
463
458
  }
464
- };
465
- S3.prototype.getBucketEncryption = function (args, optionsOrCb, cb) {
466
- var command = new GetBucketEncryptionCommand(args);
459
+ }
460
+ getBucketEncryption(args, optionsOrCb, cb) {
461
+ const command = new GetBucketEncryptionCommand(args);
467
462
  if (typeof optionsOrCb === "function") {
468
463
  this.send(command, optionsOrCb);
469
464
  }
470
465
  else if (typeof cb === "function") {
471
466
  if (typeof optionsOrCb !== "object")
472
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
467
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
473
468
  this.send(command, optionsOrCb || {}, cb);
474
469
  }
475
470
  else {
476
471
  return this.send(command, optionsOrCb);
477
472
  }
478
- };
479
- S3.prototype.getBucketIntelligentTieringConfiguration = function (args, optionsOrCb, cb) {
480
- var command = new GetBucketIntelligentTieringConfigurationCommand(args);
473
+ }
474
+ getBucketIntelligentTieringConfiguration(args, optionsOrCb, cb) {
475
+ const command = new GetBucketIntelligentTieringConfigurationCommand(args);
481
476
  if (typeof optionsOrCb === "function") {
482
477
  this.send(command, optionsOrCb);
483
478
  }
484
479
  else if (typeof cb === "function") {
485
480
  if (typeof optionsOrCb !== "object")
486
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
481
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
487
482
  this.send(command, optionsOrCb || {}, cb);
488
483
  }
489
484
  else {
490
485
  return this.send(command, optionsOrCb);
491
486
  }
492
- };
493
- S3.prototype.getBucketInventoryConfiguration = function (args, optionsOrCb, cb) {
494
- var command = new GetBucketInventoryConfigurationCommand(args);
487
+ }
488
+ getBucketInventoryConfiguration(args, optionsOrCb, cb) {
489
+ const command = new GetBucketInventoryConfigurationCommand(args);
495
490
  if (typeof optionsOrCb === "function") {
496
491
  this.send(command, optionsOrCb);
497
492
  }
498
493
  else if (typeof cb === "function") {
499
494
  if (typeof optionsOrCb !== "object")
500
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
495
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
501
496
  this.send(command, optionsOrCb || {}, cb);
502
497
  }
503
498
  else {
504
499
  return this.send(command, optionsOrCb);
505
500
  }
506
- };
507
- S3.prototype.getBucketLifecycleConfiguration = function (args, optionsOrCb, cb) {
508
- var command = new GetBucketLifecycleConfigurationCommand(args);
501
+ }
502
+ getBucketLifecycleConfiguration(args, optionsOrCb, cb) {
503
+ const command = new GetBucketLifecycleConfigurationCommand(args);
509
504
  if (typeof optionsOrCb === "function") {
510
505
  this.send(command, optionsOrCb);
511
506
  }
512
507
  else if (typeof cb === "function") {
513
508
  if (typeof optionsOrCb !== "object")
514
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
509
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
515
510
  this.send(command, optionsOrCb || {}, cb);
516
511
  }
517
512
  else {
518
513
  return this.send(command, optionsOrCb);
519
514
  }
520
- };
521
- S3.prototype.getBucketLocation = function (args, optionsOrCb, cb) {
522
- var command = new GetBucketLocationCommand(args);
515
+ }
516
+ getBucketLocation(args, optionsOrCb, cb) {
517
+ const command = new GetBucketLocationCommand(args);
523
518
  if (typeof optionsOrCb === "function") {
524
519
  this.send(command, optionsOrCb);
525
520
  }
526
521
  else if (typeof cb === "function") {
527
522
  if (typeof optionsOrCb !== "object")
528
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
523
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
529
524
  this.send(command, optionsOrCb || {}, cb);
530
525
  }
531
526
  else {
532
527
  return this.send(command, optionsOrCb);
533
528
  }
534
- };
535
- S3.prototype.getBucketLogging = function (args, optionsOrCb, cb) {
536
- var command = new GetBucketLoggingCommand(args);
529
+ }
530
+ getBucketLogging(args, optionsOrCb, cb) {
531
+ const command = new GetBucketLoggingCommand(args);
537
532
  if (typeof optionsOrCb === "function") {
538
533
  this.send(command, optionsOrCb);
539
534
  }
540
535
  else if (typeof cb === "function") {
541
536
  if (typeof optionsOrCb !== "object")
542
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
537
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
538
  this.send(command, optionsOrCb || {}, cb);
544
539
  }
545
540
  else {
546
541
  return this.send(command, optionsOrCb);
547
542
  }
548
- };
549
- S3.prototype.getBucketMetricsConfiguration = function (args, optionsOrCb, cb) {
550
- var command = new GetBucketMetricsConfigurationCommand(args);
543
+ }
544
+ getBucketMetricsConfiguration(args, optionsOrCb, cb) {
545
+ const command = new GetBucketMetricsConfigurationCommand(args);
551
546
  if (typeof optionsOrCb === "function") {
552
547
  this.send(command, optionsOrCb);
553
548
  }
554
549
  else if (typeof cb === "function") {
555
550
  if (typeof optionsOrCb !== "object")
556
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
551
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
557
552
  this.send(command, optionsOrCb || {}, cb);
558
553
  }
559
554
  else {
560
555
  return this.send(command, optionsOrCb);
561
556
  }
562
- };
563
- S3.prototype.getBucketNotificationConfiguration = function (args, optionsOrCb, cb) {
564
- var command = new GetBucketNotificationConfigurationCommand(args);
557
+ }
558
+ getBucketNotificationConfiguration(args, optionsOrCb, cb) {
559
+ const command = new GetBucketNotificationConfigurationCommand(args);
565
560
  if (typeof optionsOrCb === "function") {
566
561
  this.send(command, optionsOrCb);
567
562
  }
568
563
  else if (typeof cb === "function") {
569
564
  if (typeof optionsOrCb !== "object")
570
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
565
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
571
566
  this.send(command, optionsOrCb || {}, cb);
572
567
  }
573
568
  else {
574
569
  return this.send(command, optionsOrCb);
575
570
  }
576
- };
577
- S3.prototype.getBucketOwnershipControls = function (args, optionsOrCb, cb) {
578
- var command = new GetBucketOwnershipControlsCommand(args);
571
+ }
572
+ getBucketOwnershipControls(args, optionsOrCb, cb) {
573
+ const command = new GetBucketOwnershipControlsCommand(args);
579
574
  if (typeof optionsOrCb === "function") {
580
575
  this.send(command, optionsOrCb);
581
576
  }
582
577
  else if (typeof cb === "function") {
583
578
  if (typeof optionsOrCb !== "object")
584
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
579
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
585
580
  this.send(command, optionsOrCb || {}, cb);
586
581
  }
587
582
  else {
588
583
  return this.send(command, optionsOrCb);
589
584
  }
590
- };
591
- S3.prototype.getBucketPolicy = function (args, optionsOrCb, cb) {
592
- var command = new GetBucketPolicyCommand(args);
585
+ }
586
+ getBucketPolicy(args, optionsOrCb, cb) {
587
+ const command = new GetBucketPolicyCommand(args);
593
588
  if (typeof optionsOrCb === "function") {
594
589
  this.send(command, optionsOrCb);
595
590
  }
596
591
  else if (typeof cb === "function") {
597
592
  if (typeof optionsOrCb !== "object")
598
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
593
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
599
594
  this.send(command, optionsOrCb || {}, cb);
600
595
  }
601
596
  else {
602
597
  return this.send(command, optionsOrCb);
603
598
  }
604
- };
605
- S3.prototype.getBucketPolicyStatus = function (args, optionsOrCb, cb) {
606
- var command = new GetBucketPolicyStatusCommand(args);
599
+ }
600
+ getBucketPolicyStatus(args, optionsOrCb, cb) {
601
+ const command = new GetBucketPolicyStatusCommand(args);
607
602
  if (typeof optionsOrCb === "function") {
608
603
  this.send(command, optionsOrCb);
609
604
  }
610
605
  else if (typeof cb === "function") {
611
606
  if (typeof optionsOrCb !== "object")
612
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
607
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
613
608
  this.send(command, optionsOrCb || {}, cb);
614
609
  }
615
610
  else {
616
611
  return this.send(command, optionsOrCb);
617
612
  }
618
- };
619
- S3.prototype.getBucketReplication = function (args, optionsOrCb, cb) {
620
- var command = new GetBucketReplicationCommand(args);
613
+ }
614
+ getBucketReplication(args, optionsOrCb, cb) {
615
+ const command = new GetBucketReplicationCommand(args);
621
616
  if (typeof optionsOrCb === "function") {
622
617
  this.send(command, optionsOrCb);
623
618
  }
624
619
  else if (typeof cb === "function") {
625
620
  if (typeof optionsOrCb !== "object")
626
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
621
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
627
622
  this.send(command, optionsOrCb || {}, cb);
628
623
  }
629
624
  else {
630
625
  return this.send(command, optionsOrCb);
631
626
  }
632
- };
633
- S3.prototype.getBucketRequestPayment = function (args, optionsOrCb, cb) {
634
- var command = new GetBucketRequestPaymentCommand(args);
627
+ }
628
+ getBucketRequestPayment(args, optionsOrCb, cb) {
629
+ const command = new GetBucketRequestPaymentCommand(args);
635
630
  if (typeof optionsOrCb === "function") {
636
631
  this.send(command, optionsOrCb);
637
632
  }
638
633
  else if (typeof cb === "function") {
639
634
  if (typeof optionsOrCb !== "object")
640
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
635
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
641
636
  this.send(command, optionsOrCb || {}, cb);
642
637
  }
643
638
  else {
644
639
  return this.send(command, optionsOrCb);
645
640
  }
646
- };
647
- S3.prototype.getBucketTagging = function (args, optionsOrCb, cb) {
648
- var command = new GetBucketTaggingCommand(args);
641
+ }
642
+ getBucketTagging(args, optionsOrCb, cb) {
643
+ const command = new GetBucketTaggingCommand(args);
649
644
  if (typeof optionsOrCb === "function") {
650
645
  this.send(command, optionsOrCb);
651
646
  }
652
647
  else if (typeof cb === "function") {
653
648
  if (typeof optionsOrCb !== "object")
654
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
649
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
650
  this.send(command, optionsOrCb || {}, cb);
656
651
  }
657
652
  else {
658
653
  return this.send(command, optionsOrCb);
659
654
  }
660
- };
661
- S3.prototype.getBucketVersioning = function (args, optionsOrCb, cb) {
662
- var command = new GetBucketVersioningCommand(args);
655
+ }
656
+ getBucketVersioning(args, optionsOrCb, cb) {
657
+ const command = new GetBucketVersioningCommand(args);
663
658
  if (typeof optionsOrCb === "function") {
664
659
  this.send(command, optionsOrCb);
665
660
  }
666
661
  else if (typeof cb === "function") {
667
662
  if (typeof optionsOrCb !== "object")
668
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
663
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
669
664
  this.send(command, optionsOrCb || {}, cb);
670
665
  }
671
666
  else {
672
667
  return this.send(command, optionsOrCb);
673
668
  }
674
- };
675
- S3.prototype.getBucketWebsite = function (args, optionsOrCb, cb) {
676
- var command = new GetBucketWebsiteCommand(args);
669
+ }
670
+ getBucketWebsite(args, optionsOrCb, cb) {
671
+ const command = new GetBucketWebsiteCommand(args);
677
672
  if (typeof optionsOrCb === "function") {
678
673
  this.send(command, optionsOrCb);
679
674
  }
680
675
  else if (typeof cb === "function") {
681
676
  if (typeof optionsOrCb !== "object")
682
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
677
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
683
678
  this.send(command, optionsOrCb || {}, cb);
684
679
  }
685
680
  else {
686
681
  return this.send(command, optionsOrCb);
687
682
  }
688
- };
689
- S3.prototype.getObject = function (args, optionsOrCb, cb) {
690
- var command = new GetObjectCommand(args);
683
+ }
684
+ getObject(args, optionsOrCb, cb) {
685
+ const command = new GetObjectCommand(args);
691
686
  if (typeof optionsOrCb === "function") {
692
687
  this.send(command, optionsOrCb);
693
688
  }
694
689
  else if (typeof cb === "function") {
695
690
  if (typeof optionsOrCb !== "object")
696
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
691
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
697
692
  this.send(command, optionsOrCb || {}, cb);
698
693
  }
699
694
  else {
700
695
  return this.send(command, optionsOrCb);
701
696
  }
702
- };
703
- S3.prototype.getObjectAcl = function (args, optionsOrCb, cb) {
704
- var command = new GetObjectAclCommand(args);
697
+ }
698
+ getObjectAcl(args, optionsOrCb, cb) {
699
+ const command = new GetObjectAclCommand(args);
705
700
  if (typeof optionsOrCb === "function") {
706
701
  this.send(command, optionsOrCb);
707
702
  }
708
703
  else if (typeof cb === "function") {
709
704
  if (typeof optionsOrCb !== "object")
710
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
705
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
711
706
  this.send(command, optionsOrCb || {}, cb);
712
707
  }
713
708
  else {
714
709
  return this.send(command, optionsOrCb);
715
710
  }
716
- };
717
- S3.prototype.getObjectAttributes = function (args, optionsOrCb, cb) {
718
- var command = new GetObjectAttributesCommand(args);
711
+ }
712
+ getObjectAttributes(args, optionsOrCb, cb) {
713
+ const command = new GetObjectAttributesCommand(args);
719
714
  if (typeof optionsOrCb === "function") {
720
715
  this.send(command, optionsOrCb);
721
716
  }
722
717
  else if (typeof cb === "function") {
723
718
  if (typeof optionsOrCb !== "object")
724
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
719
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
720
  this.send(command, optionsOrCb || {}, cb);
726
721
  }
727
722
  else {
728
723
  return this.send(command, optionsOrCb);
729
724
  }
730
- };
731
- S3.prototype.getObjectLegalHold = function (args, optionsOrCb, cb) {
732
- var command = new GetObjectLegalHoldCommand(args);
725
+ }
726
+ getObjectLegalHold(args, optionsOrCb, cb) {
727
+ const command = new GetObjectLegalHoldCommand(args);
733
728
  if (typeof optionsOrCb === "function") {
734
729
  this.send(command, optionsOrCb);
735
730
  }
736
731
  else if (typeof cb === "function") {
737
732
  if (typeof optionsOrCb !== "object")
738
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
733
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
739
734
  this.send(command, optionsOrCb || {}, cb);
740
735
  }
741
736
  else {
742
737
  return this.send(command, optionsOrCb);
743
738
  }
744
- };
745
- S3.prototype.getObjectLockConfiguration = function (args, optionsOrCb, cb) {
746
- var command = new GetObjectLockConfigurationCommand(args);
739
+ }
740
+ getObjectLockConfiguration(args, optionsOrCb, cb) {
741
+ const command = new GetObjectLockConfigurationCommand(args);
747
742
  if (typeof optionsOrCb === "function") {
748
743
  this.send(command, optionsOrCb);
749
744
  }
750
745
  else if (typeof cb === "function") {
751
746
  if (typeof optionsOrCb !== "object")
752
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
747
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
753
748
  this.send(command, optionsOrCb || {}, cb);
754
749
  }
755
750
  else {
756
751
  return this.send(command, optionsOrCb);
757
752
  }
758
- };
759
- S3.prototype.getObjectRetention = function (args, optionsOrCb, cb) {
760
- var command = new GetObjectRetentionCommand(args);
753
+ }
754
+ getObjectRetention(args, optionsOrCb, cb) {
755
+ const command = new GetObjectRetentionCommand(args);
761
756
  if (typeof optionsOrCb === "function") {
762
757
  this.send(command, optionsOrCb);
763
758
  }
764
759
  else if (typeof cb === "function") {
765
760
  if (typeof optionsOrCb !== "object")
766
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
761
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
767
762
  this.send(command, optionsOrCb || {}, cb);
768
763
  }
769
764
  else {
770
765
  return this.send(command, optionsOrCb);
771
766
  }
772
- };
773
- S3.prototype.getObjectTagging = function (args, optionsOrCb, cb) {
774
- var command = new GetObjectTaggingCommand(args);
767
+ }
768
+ getObjectTagging(args, optionsOrCb, cb) {
769
+ const command = new GetObjectTaggingCommand(args);
775
770
  if (typeof optionsOrCb === "function") {
776
771
  this.send(command, optionsOrCb);
777
772
  }
778
773
  else if (typeof cb === "function") {
779
774
  if (typeof optionsOrCb !== "object")
780
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
775
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
781
776
  this.send(command, optionsOrCb || {}, cb);
782
777
  }
783
778
  else {
784
779
  return this.send(command, optionsOrCb);
785
780
  }
786
- };
787
- S3.prototype.getObjectTorrent = function (args, optionsOrCb, cb) {
788
- var command = new GetObjectTorrentCommand(args);
781
+ }
782
+ getObjectTorrent(args, optionsOrCb, cb) {
783
+ const command = new GetObjectTorrentCommand(args);
789
784
  if (typeof optionsOrCb === "function") {
790
785
  this.send(command, optionsOrCb);
791
786
  }
792
787
  else if (typeof cb === "function") {
793
788
  if (typeof optionsOrCb !== "object")
794
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
789
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
795
790
  this.send(command, optionsOrCb || {}, cb);
796
791
  }
797
792
  else {
798
793
  return this.send(command, optionsOrCb);
799
794
  }
800
- };
801
- S3.prototype.getPublicAccessBlock = function (args, optionsOrCb, cb) {
802
- var command = new GetPublicAccessBlockCommand(args);
795
+ }
796
+ getPublicAccessBlock(args, optionsOrCb, cb) {
797
+ const command = new GetPublicAccessBlockCommand(args);
803
798
  if (typeof optionsOrCb === "function") {
804
799
  this.send(command, optionsOrCb);
805
800
  }
806
801
  else if (typeof cb === "function") {
807
802
  if (typeof optionsOrCb !== "object")
808
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
803
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
809
804
  this.send(command, optionsOrCb || {}, cb);
810
805
  }
811
806
  else {
812
807
  return this.send(command, optionsOrCb);
813
808
  }
814
- };
815
- S3.prototype.headBucket = function (args, optionsOrCb, cb) {
816
- var command = new HeadBucketCommand(args);
809
+ }
810
+ headBucket(args, optionsOrCb, cb) {
811
+ const command = new HeadBucketCommand(args);
817
812
  if (typeof optionsOrCb === "function") {
818
813
  this.send(command, optionsOrCb);
819
814
  }
820
815
  else if (typeof cb === "function") {
821
816
  if (typeof optionsOrCb !== "object")
822
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
817
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
823
818
  this.send(command, optionsOrCb || {}, cb);
824
819
  }
825
820
  else {
826
821
  return this.send(command, optionsOrCb);
827
822
  }
828
- };
829
- S3.prototype.headObject = function (args, optionsOrCb, cb) {
830
- var command = new HeadObjectCommand(args);
823
+ }
824
+ headObject(args, optionsOrCb, cb) {
825
+ const command = new HeadObjectCommand(args);
831
826
  if (typeof optionsOrCb === "function") {
832
827
  this.send(command, optionsOrCb);
833
828
  }
834
829
  else if (typeof cb === "function") {
835
830
  if (typeof optionsOrCb !== "object")
836
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
831
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
837
832
  this.send(command, optionsOrCb || {}, cb);
838
833
  }
839
834
  else {
840
835
  return this.send(command, optionsOrCb);
841
836
  }
842
- };
843
- S3.prototype.listBucketAnalyticsConfigurations = function (args, optionsOrCb, cb) {
844
- var command = new ListBucketAnalyticsConfigurationsCommand(args);
837
+ }
838
+ listBucketAnalyticsConfigurations(args, optionsOrCb, cb) {
839
+ const command = new ListBucketAnalyticsConfigurationsCommand(args);
845
840
  if (typeof optionsOrCb === "function") {
846
841
  this.send(command, optionsOrCb);
847
842
  }
848
843
  else if (typeof cb === "function") {
849
844
  if (typeof optionsOrCb !== "object")
850
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
845
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
851
846
  this.send(command, optionsOrCb || {}, cb);
852
847
  }
853
848
  else {
854
849
  return this.send(command, optionsOrCb);
855
850
  }
856
- };
857
- S3.prototype.listBucketIntelligentTieringConfigurations = function (args, optionsOrCb, cb) {
858
- var command = new ListBucketIntelligentTieringConfigurationsCommand(args);
851
+ }
852
+ listBucketIntelligentTieringConfigurations(args, optionsOrCb, cb) {
853
+ const command = new ListBucketIntelligentTieringConfigurationsCommand(args);
859
854
  if (typeof optionsOrCb === "function") {
860
855
  this.send(command, optionsOrCb);
861
856
  }
862
857
  else if (typeof cb === "function") {
863
858
  if (typeof optionsOrCb !== "object")
864
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
859
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
865
860
  this.send(command, optionsOrCb || {}, cb);
866
861
  }
867
862
  else {
868
863
  return this.send(command, optionsOrCb);
869
864
  }
870
- };
871
- S3.prototype.listBucketInventoryConfigurations = function (args, optionsOrCb, cb) {
872
- var command = new ListBucketInventoryConfigurationsCommand(args);
865
+ }
866
+ listBucketInventoryConfigurations(args, optionsOrCb, cb) {
867
+ const command = new ListBucketInventoryConfigurationsCommand(args);
873
868
  if (typeof optionsOrCb === "function") {
874
869
  this.send(command, optionsOrCb);
875
870
  }
876
871
  else if (typeof cb === "function") {
877
872
  if (typeof optionsOrCb !== "object")
878
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
873
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
879
874
  this.send(command, optionsOrCb || {}, cb);
880
875
  }
881
876
  else {
882
877
  return this.send(command, optionsOrCb);
883
878
  }
884
- };
885
- S3.prototype.listBucketMetricsConfigurations = function (args, optionsOrCb, cb) {
886
- var command = new ListBucketMetricsConfigurationsCommand(args);
879
+ }
880
+ listBucketMetricsConfigurations(args, optionsOrCb, cb) {
881
+ const command = new ListBucketMetricsConfigurationsCommand(args);
887
882
  if (typeof optionsOrCb === "function") {
888
883
  this.send(command, optionsOrCb);
889
884
  }
890
885
  else if (typeof cb === "function") {
891
886
  if (typeof optionsOrCb !== "object")
892
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
887
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
893
888
  this.send(command, optionsOrCb || {}, cb);
894
889
  }
895
890
  else {
896
891
  return this.send(command, optionsOrCb);
897
892
  }
898
- };
899
- S3.prototype.listBuckets = function (args, optionsOrCb, cb) {
900
- var command = new ListBucketsCommand(args);
893
+ }
894
+ listBuckets(args, optionsOrCb, cb) {
895
+ const command = new ListBucketsCommand(args);
901
896
  if (typeof optionsOrCb === "function") {
902
897
  this.send(command, optionsOrCb);
903
898
  }
904
899
  else if (typeof cb === "function") {
905
900
  if (typeof optionsOrCb !== "object")
906
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
901
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
907
902
  this.send(command, optionsOrCb || {}, cb);
908
903
  }
909
904
  else {
910
905
  return this.send(command, optionsOrCb);
911
906
  }
912
- };
913
- S3.prototype.listMultipartUploads = function (args, optionsOrCb, cb) {
914
- var command = new ListMultipartUploadsCommand(args);
907
+ }
908
+ listMultipartUploads(args, optionsOrCb, cb) {
909
+ const command = new ListMultipartUploadsCommand(args);
915
910
  if (typeof optionsOrCb === "function") {
916
911
  this.send(command, optionsOrCb);
917
912
  }
918
913
  else if (typeof cb === "function") {
919
914
  if (typeof optionsOrCb !== "object")
920
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
915
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
921
916
  this.send(command, optionsOrCb || {}, cb);
922
917
  }
923
918
  else {
924
919
  return this.send(command, optionsOrCb);
925
920
  }
926
- };
927
- S3.prototype.listObjects = function (args, optionsOrCb, cb) {
928
- var command = new ListObjectsCommand(args);
921
+ }
922
+ listObjects(args, optionsOrCb, cb) {
923
+ const command = new ListObjectsCommand(args);
929
924
  if (typeof optionsOrCb === "function") {
930
925
  this.send(command, optionsOrCb);
931
926
  }
932
927
  else if (typeof cb === "function") {
933
928
  if (typeof optionsOrCb !== "object")
934
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
929
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
935
930
  this.send(command, optionsOrCb || {}, cb);
936
931
  }
937
932
  else {
938
933
  return this.send(command, optionsOrCb);
939
934
  }
940
- };
941
- S3.prototype.listObjectsV2 = function (args, optionsOrCb, cb) {
942
- var command = new ListObjectsV2Command(args);
935
+ }
936
+ listObjectsV2(args, optionsOrCb, cb) {
937
+ const command = new ListObjectsV2Command(args);
943
938
  if (typeof optionsOrCb === "function") {
944
939
  this.send(command, optionsOrCb);
945
940
  }
946
941
  else if (typeof cb === "function") {
947
942
  if (typeof optionsOrCb !== "object")
948
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
943
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
949
944
  this.send(command, optionsOrCb || {}, cb);
950
945
  }
951
946
  else {
952
947
  return this.send(command, optionsOrCb);
953
948
  }
954
- };
955
- S3.prototype.listObjectVersions = function (args, optionsOrCb, cb) {
956
- var command = new ListObjectVersionsCommand(args);
949
+ }
950
+ listObjectVersions(args, optionsOrCb, cb) {
951
+ const command = new ListObjectVersionsCommand(args);
957
952
  if (typeof optionsOrCb === "function") {
958
953
  this.send(command, optionsOrCb);
959
954
  }
960
955
  else if (typeof cb === "function") {
961
956
  if (typeof optionsOrCb !== "object")
962
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
957
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
963
958
  this.send(command, optionsOrCb || {}, cb);
964
959
  }
965
960
  else {
966
961
  return this.send(command, optionsOrCb);
967
962
  }
968
- };
969
- S3.prototype.listParts = function (args, optionsOrCb, cb) {
970
- var command = new ListPartsCommand(args);
963
+ }
964
+ listParts(args, optionsOrCb, cb) {
965
+ const command = new ListPartsCommand(args);
971
966
  if (typeof optionsOrCb === "function") {
972
967
  this.send(command, optionsOrCb);
973
968
  }
974
969
  else if (typeof cb === "function") {
975
970
  if (typeof optionsOrCb !== "object")
976
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
971
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
977
972
  this.send(command, optionsOrCb || {}, cb);
978
973
  }
979
974
  else {
980
975
  return this.send(command, optionsOrCb);
981
976
  }
982
- };
983
- S3.prototype.putBucketAccelerateConfiguration = function (args, optionsOrCb, cb) {
984
- var command = new PutBucketAccelerateConfigurationCommand(args);
977
+ }
978
+ putBucketAccelerateConfiguration(args, optionsOrCb, cb) {
979
+ const command = new PutBucketAccelerateConfigurationCommand(args);
985
980
  if (typeof optionsOrCb === "function") {
986
981
  this.send(command, optionsOrCb);
987
982
  }
988
983
  else if (typeof cb === "function") {
989
984
  if (typeof optionsOrCb !== "object")
990
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
985
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
991
986
  this.send(command, optionsOrCb || {}, cb);
992
987
  }
993
988
  else {
994
989
  return this.send(command, optionsOrCb);
995
990
  }
996
- };
997
- S3.prototype.putBucketAcl = function (args, optionsOrCb, cb) {
998
- var command = new PutBucketAclCommand(args);
991
+ }
992
+ putBucketAcl(args, optionsOrCb, cb) {
993
+ const command = new PutBucketAclCommand(args);
999
994
  if (typeof optionsOrCb === "function") {
1000
995
  this.send(command, optionsOrCb);
1001
996
  }
1002
997
  else if (typeof cb === "function") {
1003
998
  if (typeof optionsOrCb !== "object")
1004
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
999
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1005
1000
  this.send(command, optionsOrCb || {}, cb);
1006
1001
  }
1007
1002
  else {
1008
1003
  return this.send(command, optionsOrCb);
1009
1004
  }
1010
- };
1011
- S3.prototype.putBucketAnalyticsConfiguration = function (args, optionsOrCb, cb) {
1012
- var command = new PutBucketAnalyticsConfigurationCommand(args);
1005
+ }
1006
+ putBucketAnalyticsConfiguration(args, optionsOrCb, cb) {
1007
+ const command = new PutBucketAnalyticsConfigurationCommand(args);
1013
1008
  if (typeof optionsOrCb === "function") {
1014
1009
  this.send(command, optionsOrCb);
1015
1010
  }
1016
1011
  else if (typeof cb === "function") {
1017
1012
  if (typeof optionsOrCb !== "object")
1018
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1013
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1019
1014
  this.send(command, optionsOrCb || {}, cb);
1020
1015
  }
1021
1016
  else {
1022
1017
  return this.send(command, optionsOrCb);
1023
1018
  }
1024
- };
1025
- S3.prototype.putBucketCors = function (args, optionsOrCb, cb) {
1026
- var command = new PutBucketCorsCommand(args);
1019
+ }
1020
+ putBucketCors(args, optionsOrCb, cb) {
1021
+ const command = new PutBucketCorsCommand(args);
1027
1022
  if (typeof optionsOrCb === "function") {
1028
1023
  this.send(command, optionsOrCb);
1029
1024
  }
1030
1025
  else if (typeof cb === "function") {
1031
1026
  if (typeof optionsOrCb !== "object")
1032
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1027
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1033
1028
  this.send(command, optionsOrCb || {}, cb);
1034
1029
  }
1035
1030
  else {
1036
1031
  return this.send(command, optionsOrCb);
1037
1032
  }
1038
- };
1039
- S3.prototype.putBucketEncryption = function (args, optionsOrCb, cb) {
1040
- var command = new PutBucketEncryptionCommand(args);
1033
+ }
1034
+ putBucketEncryption(args, optionsOrCb, cb) {
1035
+ const command = new PutBucketEncryptionCommand(args);
1041
1036
  if (typeof optionsOrCb === "function") {
1042
1037
  this.send(command, optionsOrCb);
1043
1038
  }
1044
1039
  else if (typeof cb === "function") {
1045
1040
  if (typeof optionsOrCb !== "object")
1046
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1041
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1047
1042
  this.send(command, optionsOrCb || {}, cb);
1048
1043
  }
1049
1044
  else {
1050
1045
  return this.send(command, optionsOrCb);
1051
1046
  }
1052
- };
1053
- S3.prototype.putBucketIntelligentTieringConfiguration = function (args, optionsOrCb, cb) {
1054
- var command = new PutBucketIntelligentTieringConfigurationCommand(args);
1047
+ }
1048
+ putBucketIntelligentTieringConfiguration(args, optionsOrCb, cb) {
1049
+ const command = new PutBucketIntelligentTieringConfigurationCommand(args);
1055
1050
  if (typeof optionsOrCb === "function") {
1056
1051
  this.send(command, optionsOrCb);
1057
1052
  }
1058
1053
  else if (typeof cb === "function") {
1059
1054
  if (typeof optionsOrCb !== "object")
1060
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1055
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1061
1056
  this.send(command, optionsOrCb || {}, cb);
1062
1057
  }
1063
1058
  else {
1064
1059
  return this.send(command, optionsOrCb);
1065
1060
  }
1066
- };
1067
- S3.prototype.putBucketInventoryConfiguration = function (args, optionsOrCb, cb) {
1068
- var command = new PutBucketInventoryConfigurationCommand(args);
1061
+ }
1062
+ putBucketInventoryConfiguration(args, optionsOrCb, cb) {
1063
+ const command = new PutBucketInventoryConfigurationCommand(args);
1069
1064
  if (typeof optionsOrCb === "function") {
1070
1065
  this.send(command, optionsOrCb);
1071
1066
  }
1072
1067
  else if (typeof cb === "function") {
1073
1068
  if (typeof optionsOrCb !== "object")
1074
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1069
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1075
1070
  this.send(command, optionsOrCb || {}, cb);
1076
1071
  }
1077
1072
  else {
1078
1073
  return this.send(command, optionsOrCb);
1079
1074
  }
1080
- };
1081
- S3.prototype.putBucketLifecycleConfiguration = function (args, optionsOrCb, cb) {
1082
- var command = new PutBucketLifecycleConfigurationCommand(args);
1075
+ }
1076
+ putBucketLifecycleConfiguration(args, optionsOrCb, cb) {
1077
+ const command = new PutBucketLifecycleConfigurationCommand(args);
1083
1078
  if (typeof optionsOrCb === "function") {
1084
1079
  this.send(command, optionsOrCb);
1085
1080
  }
1086
1081
  else if (typeof cb === "function") {
1087
1082
  if (typeof optionsOrCb !== "object")
1088
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1083
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1089
1084
  this.send(command, optionsOrCb || {}, cb);
1090
1085
  }
1091
1086
  else {
1092
1087
  return this.send(command, optionsOrCb);
1093
1088
  }
1094
- };
1095
- S3.prototype.putBucketLogging = function (args, optionsOrCb, cb) {
1096
- var command = new PutBucketLoggingCommand(args);
1089
+ }
1090
+ putBucketLogging(args, optionsOrCb, cb) {
1091
+ const command = new PutBucketLoggingCommand(args);
1097
1092
  if (typeof optionsOrCb === "function") {
1098
1093
  this.send(command, optionsOrCb);
1099
1094
  }
1100
1095
  else if (typeof cb === "function") {
1101
1096
  if (typeof optionsOrCb !== "object")
1102
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1097
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1103
1098
  this.send(command, optionsOrCb || {}, cb);
1104
1099
  }
1105
1100
  else {
1106
1101
  return this.send(command, optionsOrCb);
1107
1102
  }
1108
- };
1109
- S3.prototype.putBucketMetricsConfiguration = function (args, optionsOrCb, cb) {
1110
- var command = new PutBucketMetricsConfigurationCommand(args);
1103
+ }
1104
+ putBucketMetricsConfiguration(args, optionsOrCb, cb) {
1105
+ const command = new PutBucketMetricsConfigurationCommand(args);
1111
1106
  if (typeof optionsOrCb === "function") {
1112
1107
  this.send(command, optionsOrCb);
1113
1108
  }
1114
1109
  else if (typeof cb === "function") {
1115
1110
  if (typeof optionsOrCb !== "object")
1116
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1111
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1117
1112
  this.send(command, optionsOrCb || {}, cb);
1118
1113
  }
1119
1114
  else {
1120
1115
  return this.send(command, optionsOrCb);
1121
1116
  }
1122
- };
1123
- S3.prototype.putBucketNotificationConfiguration = function (args, optionsOrCb, cb) {
1124
- var command = new PutBucketNotificationConfigurationCommand(args);
1117
+ }
1118
+ putBucketNotificationConfiguration(args, optionsOrCb, cb) {
1119
+ const command = new PutBucketNotificationConfigurationCommand(args);
1125
1120
  if (typeof optionsOrCb === "function") {
1126
1121
  this.send(command, optionsOrCb);
1127
1122
  }
1128
1123
  else if (typeof cb === "function") {
1129
1124
  if (typeof optionsOrCb !== "object")
1130
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1125
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1131
1126
  this.send(command, optionsOrCb || {}, cb);
1132
1127
  }
1133
1128
  else {
1134
1129
  return this.send(command, optionsOrCb);
1135
1130
  }
1136
- };
1137
- S3.prototype.putBucketOwnershipControls = function (args, optionsOrCb, cb) {
1138
- var command = new PutBucketOwnershipControlsCommand(args);
1131
+ }
1132
+ putBucketOwnershipControls(args, optionsOrCb, cb) {
1133
+ const command = new PutBucketOwnershipControlsCommand(args);
1139
1134
  if (typeof optionsOrCb === "function") {
1140
1135
  this.send(command, optionsOrCb);
1141
1136
  }
1142
1137
  else if (typeof cb === "function") {
1143
1138
  if (typeof optionsOrCb !== "object")
1144
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1139
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1145
1140
  this.send(command, optionsOrCb || {}, cb);
1146
1141
  }
1147
1142
  else {
1148
1143
  return this.send(command, optionsOrCb);
1149
1144
  }
1150
- };
1151
- S3.prototype.putBucketPolicy = function (args, optionsOrCb, cb) {
1152
- var command = new PutBucketPolicyCommand(args);
1145
+ }
1146
+ putBucketPolicy(args, optionsOrCb, cb) {
1147
+ const command = new PutBucketPolicyCommand(args);
1153
1148
  if (typeof optionsOrCb === "function") {
1154
1149
  this.send(command, optionsOrCb);
1155
1150
  }
1156
1151
  else if (typeof cb === "function") {
1157
1152
  if (typeof optionsOrCb !== "object")
1158
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1153
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1159
1154
  this.send(command, optionsOrCb || {}, cb);
1160
1155
  }
1161
1156
  else {
1162
1157
  return this.send(command, optionsOrCb);
1163
1158
  }
1164
- };
1165
- S3.prototype.putBucketReplication = function (args, optionsOrCb, cb) {
1166
- var command = new PutBucketReplicationCommand(args);
1159
+ }
1160
+ putBucketReplication(args, optionsOrCb, cb) {
1161
+ const command = new PutBucketReplicationCommand(args);
1167
1162
  if (typeof optionsOrCb === "function") {
1168
1163
  this.send(command, optionsOrCb);
1169
1164
  }
1170
1165
  else if (typeof cb === "function") {
1171
1166
  if (typeof optionsOrCb !== "object")
1172
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1167
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1173
1168
  this.send(command, optionsOrCb || {}, cb);
1174
1169
  }
1175
1170
  else {
1176
1171
  return this.send(command, optionsOrCb);
1177
1172
  }
1178
- };
1179
- S3.prototype.putBucketRequestPayment = function (args, optionsOrCb, cb) {
1180
- var command = new PutBucketRequestPaymentCommand(args);
1173
+ }
1174
+ putBucketRequestPayment(args, optionsOrCb, cb) {
1175
+ const command = new PutBucketRequestPaymentCommand(args);
1181
1176
  if (typeof optionsOrCb === "function") {
1182
1177
  this.send(command, optionsOrCb);
1183
1178
  }
1184
1179
  else if (typeof cb === "function") {
1185
1180
  if (typeof optionsOrCb !== "object")
1186
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1181
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1187
1182
  this.send(command, optionsOrCb || {}, cb);
1188
1183
  }
1189
1184
  else {
1190
1185
  return this.send(command, optionsOrCb);
1191
1186
  }
1192
- };
1193
- S3.prototype.putBucketTagging = function (args, optionsOrCb, cb) {
1194
- var command = new PutBucketTaggingCommand(args);
1187
+ }
1188
+ putBucketTagging(args, optionsOrCb, cb) {
1189
+ const command = new PutBucketTaggingCommand(args);
1195
1190
  if (typeof optionsOrCb === "function") {
1196
1191
  this.send(command, optionsOrCb);
1197
1192
  }
1198
1193
  else if (typeof cb === "function") {
1199
1194
  if (typeof optionsOrCb !== "object")
1200
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1195
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1201
1196
  this.send(command, optionsOrCb || {}, cb);
1202
1197
  }
1203
1198
  else {
1204
1199
  return this.send(command, optionsOrCb);
1205
1200
  }
1206
- };
1207
- S3.prototype.putBucketVersioning = function (args, optionsOrCb, cb) {
1208
- var command = new PutBucketVersioningCommand(args);
1201
+ }
1202
+ putBucketVersioning(args, optionsOrCb, cb) {
1203
+ const command = new PutBucketVersioningCommand(args);
1209
1204
  if (typeof optionsOrCb === "function") {
1210
1205
  this.send(command, optionsOrCb);
1211
1206
  }
1212
1207
  else if (typeof cb === "function") {
1213
1208
  if (typeof optionsOrCb !== "object")
1214
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1209
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1215
1210
  this.send(command, optionsOrCb || {}, cb);
1216
1211
  }
1217
1212
  else {
1218
1213
  return this.send(command, optionsOrCb);
1219
1214
  }
1220
- };
1221
- S3.prototype.putBucketWebsite = function (args, optionsOrCb, cb) {
1222
- var command = new PutBucketWebsiteCommand(args);
1215
+ }
1216
+ putBucketWebsite(args, optionsOrCb, cb) {
1217
+ const command = new PutBucketWebsiteCommand(args);
1223
1218
  if (typeof optionsOrCb === "function") {
1224
1219
  this.send(command, optionsOrCb);
1225
1220
  }
1226
1221
  else if (typeof cb === "function") {
1227
1222
  if (typeof optionsOrCb !== "object")
1228
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1223
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1229
1224
  this.send(command, optionsOrCb || {}, cb);
1230
1225
  }
1231
1226
  else {
1232
1227
  return this.send(command, optionsOrCb);
1233
1228
  }
1234
- };
1235
- S3.prototype.putObject = function (args, optionsOrCb, cb) {
1236
- var command = new PutObjectCommand(args);
1229
+ }
1230
+ putObject(args, optionsOrCb, cb) {
1231
+ const command = new PutObjectCommand(args);
1237
1232
  if (typeof optionsOrCb === "function") {
1238
1233
  this.send(command, optionsOrCb);
1239
1234
  }
1240
1235
  else if (typeof cb === "function") {
1241
1236
  if (typeof optionsOrCb !== "object")
1242
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1237
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1243
1238
  this.send(command, optionsOrCb || {}, cb);
1244
1239
  }
1245
1240
  else {
1246
1241
  return this.send(command, optionsOrCb);
1247
1242
  }
1248
- };
1249
- S3.prototype.putObjectAcl = function (args, optionsOrCb, cb) {
1250
- var command = new PutObjectAclCommand(args);
1243
+ }
1244
+ putObjectAcl(args, optionsOrCb, cb) {
1245
+ const command = new PutObjectAclCommand(args);
1251
1246
  if (typeof optionsOrCb === "function") {
1252
1247
  this.send(command, optionsOrCb);
1253
1248
  }
1254
1249
  else if (typeof cb === "function") {
1255
1250
  if (typeof optionsOrCb !== "object")
1256
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1251
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1257
1252
  this.send(command, optionsOrCb || {}, cb);
1258
1253
  }
1259
1254
  else {
1260
1255
  return this.send(command, optionsOrCb);
1261
1256
  }
1262
- };
1263
- S3.prototype.putObjectLegalHold = function (args, optionsOrCb, cb) {
1264
- var command = new PutObjectLegalHoldCommand(args);
1257
+ }
1258
+ putObjectLegalHold(args, optionsOrCb, cb) {
1259
+ const command = new PutObjectLegalHoldCommand(args);
1265
1260
  if (typeof optionsOrCb === "function") {
1266
1261
  this.send(command, optionsOrCb);
1267
1262
  }
1268
1263
  else if (typeof cb === "function") {
1269
1264
  if (typeof optionsOrCb !== "object")
1270
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1265
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1271
1266
  this.send(command, optionsOrCb || {}, cb);
1272
1267
  }
1273
1268
  else {
1274
1269
  return this.send(command, optionsOrCb);
1275
1270
  }
1276
- };
1277
- S3.prototype.putObjectLockConfiguration = function (args, optionsOrCb, cb) {
1278
- var command = new PutObjectLockConfigurationCommand(args);
1271
+ }
1272
+ putObjectLockConfiguration(args, optionsOrCb, cb) {
1273
+ const command = new PutObjectLockConfigurationCommand(args);
1279
1274
  if (typeof optionsOrCb === "function") {
1280
1275
  this.send(command, optionsOrCb);
1281
1276
  }
1282
1277
  else if (typeof cb === "function") {
1283
1278
  if (typeof optionsOrCb !== "object")
1284
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1279
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1285
1280
  this.send(command, optionsOrCb || {}, cb);
1286
1281
  }
1287
1282
  else {
1288
1283
  return this.send(command, optionsOrCb);
1289
1284
  }
1290
- };
1291
- S3.prototype.putObjectRetention = function (args, optionsOrCb, cb) {
1292
- var command = new PutObjectRetentionCommand(args);
1285
+ }
1286
+ putObjectRetention(args, optionsOrCb, cb) {
1287
+ const command = new PutObjectRetentionCommand(args);
1293
1288
  if (typeof optionsOrCb === "function") {
1294
1289
  this.send(command, optionsOrCb);
1295
1290
  }
1296
1291
  else if (typeof cb === "function") {
1297
1292
  if (typeof optionsOrCb !== "object")
1298
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1293
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1299
1294
  this.send(command, optionsOrCb || {}, cb);
1300
1295
  }
1301
1296
  else {
1302
1297
  return this.send(command, optionsOrCb);
1303
1298
  }
1304
- };
1305
- S3.prototype.putObjectTagging = function (args, optionsOrCb, cb) {
1306
- var command = new PutObjectTaggingCommand(args);
1299
+ }
1300
+ putObjectTagging(args, optionsOrCb, cb) {
1301
+ const command = new PutObjectTaggingCommand(args);
1307
1302
  if (typeof optionsOrCb === "function") {
1308
1303
  this.send(command, optionsOrCb);
1309
1304
  }
1310
1305
  else if (typeof cb === "function") {
1311
1306
  if (typeof optionsOrCb !== "object")
1312
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1307
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1313
1308
  this.send(command, optionsOrCb || {}, cb);
1314
1309
  }
1315
1310
  else {
1316
1311
  return this.send(command, optionsOrCb);
1317
1312
  }
1318
- };
1319
- S3.prototype.putPublicAccessBlock = function (args, optionsOrCb, cb) {
1320
- var command = new PutPublicAccessBlockCommand(args);
1313
+ }
1314
+ putPublicAccessBlock(args, optionsOrCb, cb) {
1315
+ const command = new PutPublicAccessBlockCommand(args);
1321
1316
  if (typeof optionsOrCb === "function") {
1322
1317
  this.send(command, optionsOrCb);
1323
1318
  }
1324
1319
  else if (typeof cb === "function") {
1325
1320
  if (typeof optionsOrCb !== "object")
1326
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1321
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1327
1322
  this.send(command, optionsOrCb || {}, cb);
1328
1323
  }
1329
1324
  else {
1330
1325
  return this.send(command, optionsOrCb);
1331
1326
  }
1332
- };
1333
- S3.prototype.restoreObject = function (args, optionsOrCb, cb) {
1334
- var command = new RestoreObjectCommand(args);
1327
+ }
1328
+ restoreObject(args, optionsOrCb, cb) {
1329
+ const command = new RestoreObjectCommand(args);
1335
1330
  if (typeof optionsOrCb === "function") {
1336
1331
  this.send(command, optionsOrCb);
1337
1332
  }
1338
1333
  else if (typeof cb === "function") {
1339
1334
  if (typeof optionsOrCb !== "object")
1340
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1335
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1341
1336
  this.send(command, optionsOrCb || {}, cb);
1342
1337
  }
1343
1338
  else {
1344
1339
  return this.send(command, optionsOrCb);
1345
1340
  }
1346
- };
1347
- S3.prototype.selectObjectContent = function (args, optionsOrCb, cb) {
1348
- var command = new SelectObjectContentCommand(args);
1341
+ }
1342
+ selectObjectContent(args, optionsOrCb, cb) {
1343
+ const command = new SelectObjectContentCommand(args);
1349
1344
  if (typeof optionsOrCb === "function") {
1350
1345
  this.send(command, optionsOrCb);
1351
1346
  }
1352
1347
  else if (typeof cb === "function") {
1353
1348
  if (typeof optionsOrCb !== "object")
1354
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1349
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1355
1350
  this.send(command, optionsOrCb || {}, cb);
1356
1351
  }
1357
1352
  else {
1358
1353
  return this.send(command, optionsOrCb);
1359
1354
  }
1360
- };
1361
- S3.prototype.uploadPart = function (args, optionsOrCb, cb) {
1362
- var command = new UploadPartCommand(args);
1355
+ }
1356
+ uploadPart(args, optionsOrCb, cb) {
1357
+ const command = new UploadPartCommand(args);
1363
1358
  if (typeof optionsOrCb === "function") {
1364
1359
  this.send(command, optionsOrCb);
1365
1360
  }
1366
1361
  else if (typeof cb === "function") {
1367
1362
  if (typeof optionsOrCb !== "object")
1368
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1363
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1369
1364
  this.send(command, optionsOrCb || {}, cb);
1370
1365
  }
1371
1366
  else {
1372
1367
  return this.send(command, optionsOrCb);
1373
1368
  }
1374
- };
1375
- S3.prototype.uploadPartCopy = function (args, optionsOrCb, cb) {
1376
- var command = new UploadPartCopyCommand(args);
1369
+ }
1370
+ uploadPartCopy(args, optionsOrCb, cb) {
1371
+ const command = new UploadPartCopyCommand(args);
1377
1372
  if (typeof optionsOrCb === "function") {
1378
1373
  this.send(command, optionsOrCb);
1379
1374
  }
1380
1375
  else if (typeof cb === "function") {
1381
1376
  if (typeof optionsOrCb !== "object")
1382
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1377
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1383
1378
  this.send(command, optionsOrCb || {}, cb);
1384
1379
  }
1385
1380
  else {
1386
1381
  return this.send(command, optionsOrCb);
1387
1382
  }
1388
- };
1389
- S3.prototype.writeGetObjectResponse = function (args, optionsOrCb, cb) {
1390
- var command = new WriteGetObjectResponseCommand(args);
1383
+ }
1384
+ writeGetObjectResponse(args, optionsOrCb, cb) {
1385
+ const command = new WriteGetObjectResponseCommand(args);
1391
1386
  if (typeof optionsOrCb === "function") {
1392
1387
  this.send(command, optionsOrCb);
1393
1388
  }
1394
1389
  else if (typeof cb === "function") {
1395
1390
  if (typeof optionsOrCb !== "object")
1396
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1391
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1397
1392
  this.send(command, optionsOrCb || {}, cb);
1398
1393
  }
1399
1394
  else {
1400
1395
  return this.send(command, optionsOrCb);
1401
1396
  }
1402
- };
1403
- return S3;
1404
- }(S3Client));
1405
- export { S3 };
1397
+ }
1398
+ }