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