@aws-sdk/client-mediastore-data 3.52.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/MediaStoreDataServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +58 -1
- package/dist-cjs/protocols/Aws_restJson1.js +62 -163
- package/dist-es/index.js +1 -0
- package/dist-es/models/MediaStoreDataServiceException.js +12 -0
- package/dist-es/models/models_0.js +54 -1
- package/dist-es/protocols/Aws_restJson1.js +109 -188
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MediaStoreDataServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -13
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MediaStoreDataServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -13
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-mediastore-data
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediaStoreDataServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./MediaStoreData"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./MediaStoreDataClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var MediaStoreDataServiceException_1 = require("./models/MediaStoreDataServiceException");
|
|
11
|
+
Object.defineProperty(exports, "MediaStoreDataServiceException", { enumerable: true, get: function () { return MediaStoreDataServiceException_1.MediaStoreDataServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MediaStoreDataServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class MediaStoreDataServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, MediaStoreDataServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MediaStoreDataServiceException = MediaStoreDataServiceException;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PutObjectResponse = exports.PutObjectRequest = exports.UploadAvailability = exports.StorageClass = exports.ListItemsResponse = exports.ListItemsRequest = exports.Item = exports.ItemType = exports.GetObjectResponse = exports.GetObjectRequest = exports.DescribeObjectResponse = exports.DescribeObjectRequest = exports.DeleteObjectResponse = exports.DeleteObjectRequest = void 0;
|
|
3
|
+
exports.PutObjectResponse = exports.PutObjectRequest = exports.UploadAvailability = exports.StorageClass = exports.ListItemsResponse = exports.ListItemsRequest = exports.Item = exports.ItemType = exports.RequestedRangeNotSatisfiableException = exports.GetObjectResponse = exports.GetObjectRequest = exports.DescribeObjectResponse = exports.DescribeObjectRequest = exports.ObjectNotFoundException = exports.InternalServerError = exports.DeleteObjectResponse = exports.DeleteObjectRequest = exports.ContainerNotFoundException = void 0;
|
|
4
|
+
const MediaStoreDataServiceException_1 = require("./MediaStoreDataServiceException");
|
|
5
|
+
class ContainerNotFoundException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "ContainerNotFoundException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "ContainerNotFoundException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
|
|
15
|
+
this.Message = opts.Message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ContainerNotFoundException = ContainerNotFoundException;
|
|
4
19
|
var DeleteObjectRequest;
|
|
5
20
|
(function (DeleteObjectRequest) {
|
|
6
21
|
DeleteObjectRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,6 +28,34 @@ var DeleteObjectResponse;
|
|
|
13
28
|
...obj,
|
|
14
29
|
});
|
|
15
30
|
})(DeleteObjectResponse = exports.DeleteObjectResponse || (exports.DeleteObjectResponse = {}));
|
|
31
|
+
class InternalServerError extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "InternalServerError",
|
|
35
|
+
$fault: "server",
|
|
36
|
+
...opts,
|
|
37
|
+
});
|
|
38
|
+
this.name = "InternalServerError";
|
|
39
|
+
this.$fault = "server";
|
|
40
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
41
|
+
this.Message = opts.Message;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InternalServerError = InternalServerError;
|
|
45
|
+
class ObjectNotFoundException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
|
|
46
|
+
constructor(opts) {
|
|
47
|
+
super({
|
|
48
|
+
name: "ObjectNotFoundException",
|
|
49
|
+
$fault: "client",
|
|
50
|
+
...opts,
|
|
51
|
+
});
|
|
52
|
+
this.name = "ObjectNotFoundException";
|
|
53
|
+
this.$fault = "client";
|
|
54
|
+
Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
|
|
55
|
+
this.Message = opts.Message;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ObjectNotFoundException = ObjectNotFoundException;
|
|
16
59
|
var DescribeObjectRequest;
|
|
17
60
|
(function (DescribeObjectRequest) {
|
|
18
61
|
DescribeObjectRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -37,6 +80,20 @@ var GetObjectResponse;
|
|
|
37
80
|
...obj,
|
|
38
81
|
});
|
|
39
82
|
})(GetObjectResponse = exports.GetObjectResponse || (exports.GetObjectResponse = {}));
|
|
83
|
+
class RequestedRangeNotSatisfiableException extends MediaStoreDataServiceException_1.MediaStoreDataServiceException {
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "RequestedRangeNotSatisfiableException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
this.name = "RequestedRangeNotSatisfiableException";
|
|
91
|
+
this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(this, RequestedRangeNotSatisfiableException.prototype);
|
|
93
|
+
this.Message = opts.Message;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.RequestedRangeNotSatisfiableException = RequestedRangeNotSatisfiableException;
|
|
40
97
|
var ItemType;
|
|
41
98
|
(function (ItemType) {
|
|
42
99
|
ItemType["FOLDER"] = "FOLDER";
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1PutObjectCommand = exports.deserializeAws_restJson1ListItemsCommand = exports.deserializeAws_restJson1GetObjectCommand = exports.deserializeAws_restJson1DescribeObjectCommand = exports.deserializeAws_restJson1DeleteObjectCommand = exports.serializeAws_restJson1PutObjectCommand = exports.serializeAws_restJson1ListItemsCommand = exports.serializeAws_restJson1GetObjectCommand = exports.serializeAws_restJson1DescribeObjectCommand = exports.serializeAws_restJson1DeleteObjectCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MediaStoreDataServiceException_1 = require("../models/MediaStoreDataServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_restJson1DeleteObjectCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {};
|
|
@@ -177,43 +179,22 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
177
179
|
switch (errorCode) {
|
|
178
180
|
case "ContainerNotFoundException":
|
|
179
181
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
180
|
-
|
|
181
|
-
...(await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
182
|
-
name: errorCode,
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
};
|
|
185
|
-
break;
|
|
182
|
+
throw await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
186
183
|
case "InternalServerError":
|
|
187
184
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
188
|
-
|
|
189
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
190
|
-
name: errorCode,
|
|
191
|
-
$metadata: deserializeMetadata(output),
|
|
192
|
-
};
|
|
193
|
-
break;
|
|
185
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
194
186
|
case "ObjectNotFoundException":
|
|
195
187
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
196
|
-
|
|
197
|
-
...(await deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)),
|
|
198
|
-
name: errorCode,
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
};
|
|
201
|
-
break;
|
|
188
|
+
throw await deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context);
|
|
202
189
|
default:
|
|
203
190
|
const parsedBody = parsedOutput.body;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
...parsedBody,
|
|
207
|
-
name: `${errorCode}`,
|
|
208
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
191
|
+
response = new MediaStoreDataServiceException_1.MediaStoreDataServiceException({
|
|
192
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
209
193
|
$fault: "client",
|
|
210
194
|
$metadata: deserializeMetadata(output),
|
|
211
|
-
};
|
|
195
|
+
});
|
|
196
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
212
197
|
}
|
|
213
|
-
const message = response.message || response.Message || errorCode;
|
|
214
|
-
response.message = message;
|
|
215
|
-
delete response.Message;
|
|
216
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
217
198
|
};
|
|
218
199
|
const deserializeAws_restJson1DescribeObjectCommand = async (output, context) => {
|
|
219
200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -257,43 +238,22 @@ const deserializeAws_restJson1DescribeObjectCommandError = async (output, contex
|
|
|
257
238
|
switch (errorCode) {
|
|
258
239
|
case "ContainerNotFoundException":
|
|
259
240
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
260
|
-
|
|
261
|
-
...(await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
262
|
-
name: errorCode,
|
|
263
|
-
$metadata: deserializeMetadata(output),
|
|
264
|
-
};
|
|
265
|
-
break;
|
|
241
|
+
throw await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
266
242
|
case "InternalServerError":
|
|
267
243
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
268
|
-
|
|
269
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
270
|
-
name: errorCode,
|
|
271
|
-
$metadata: deserializeMetadata(output),
|
|
272
|
-
};
|
|
273
|
-
break;
|
|
244
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
274
245
|
case "ObjectNotFoundException":
|
|
275
246
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
276
|
-
|
|
277
|
-
...(await deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)),
|
|
278
|
-
name: errorCode,
|
|
279
|
-
$metadata: deserializeMetadata(output),
|
|
280
|
-
};
|
|
281
|
-
break;
|
|
247
|
+
throw await deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context);
|
|
282
248
|
default:
|
|
283
249
|
const parsedBody = parsedOutput.body;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
...parsedBody,
|
|
287
|
-
name: `${errorCode}`,
|
|
288
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
250
|
+
response = new MediaStoreDataServiceException_1.MediaStoreDataServiceException({
|
|
251
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
289
252
|
$fault: "client",
|
|
290
253
|
$metadata: deserializeMetadata(output),
|
|
291
|
-
};
|
|
254
|
+
});
|
|
255
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
292
256
|
}
|
|
293
|
-
const message = response.message || response.Message || errorCode;
|
|
294
|
-
response.message = message;
|
|
295
|
-
delete response.Message;
|
|
296
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
297
257
|
};
|
|
298
258
|
const deserializeAws_restJson1GetObjectCommand = async (output, context) => {
|
|
299
259
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -347,51 +307,25 @@ const deserializeAws_restJson1GetObjectCommandError = async (output, context) =>
|
|
|
347
307
|
switch (errorCode) {
|
|
348
308
|
case "ContainerNotFoundException":
|
|
349
309
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
350
|
-
|
|
351
|
-
...(await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
352
|
-
name: errorCode,
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
};
|
|
355
|
-
break;
|
|
310
|
+
throw await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
356
311
|
case "InternalServerError":
|
|
357
312
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
358
|
-
|
|
359
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
360
|
-
name: errorCode,
|
|
361
|
-
$metadata: deserializeMetadata(output),
|
|
362
|
-
};
|
|
363
|
-
break;
|
|
313
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
364
314
|
case "ObjectNotFoundException":
|
|
365
315
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException":
|
|
366
|
-
|
|
367
|
-
...(await deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)),
|
|
368
|
-
name: errorCode,
|
|
369
|
-
$metadata: deserializeMetadata(output),
|
|
370
|
-
};
|
|
371
|
-
break;
|
|
316
|
+
throw await deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context);
|
|
372
317
|
case "RequestedRangeNotSatisfiableException":
|
|
373
318
|
case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
|
|
374
|
-
|
|
375
|
-
...(await deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse(parsedOutput, context)),
|
|
376
|
-
name: errorCode,
|
|
377
|
-
$metadata: deserializeMetadata(output),
|
|
378
|
-
};
|
|
379
|
-
break;
|
|
319
|
+
throw await deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse(parsedOutput, context);
|
|
380
320
|
default:
|
|
381
321
|
const parsedBody = parsedOutput.body;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
...parsedBody,
|
|
385
|
-
name: `${errorCode}`,
|
|
386
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
322
|
+
response = new MediaStoreDataServiceException_1.MediaStoreDataServiceException({
|
|
323
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
387
324
|
$fault: "client",
|
|
388
325
|
$metadata: deserializeMetadata(output),
|
|
389
|
-
};
|
|
326
|
+
});
|
|
327
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
390
328
|
}
|
|
391
|
-
const message = response.message || response.Message || errorCode;
|
|
392
|
-
response.message = message;
|
|
393
|
-
delete response.Message;
|
|
394
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
395
329
|
};
|
|
396
330
|
const deserializeAws_restJson1ListItemsCommand = async (output, context) => {
|
|
397
331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -423,35 +357,19 @@ const deserializeAws_restJson1ListItemsCommandError = async (output, context) =>
|
|
|
423
357
|
switch (errorCode) {
|
|
424
358
|
case "ContainerNotFoundException":
|
|
425
359
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
426
|
-
|
|
427
|
-
...(await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
428
|
-
name: errorCode,
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
};
|
|
431
|
-
break;
|
|
360
|
+
throw await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
432
361
|
case "InternalServerError":
|
|
433
362
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
434
|
-
|
|
435
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
436
|
-
name: errorCode,
|
|
437
|
-
$metadata: deserializeMetadata(output),
|
|
438
|
-
};
|
|
439
|
-
break;
|
|
363
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
440
364
|
default:
|
|
441
365
|
const parsedBody = parsedOutput.body;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
...parsedBody,
|
|
445
|
-
name: `${errorCode}`,
|
|
446
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
366
|
+
response = new MediaStoreDataServiceException_1.MediaStoreDataServiceException({
|
|
367
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
447
368
|
$fault: "client",
|
|
448
369
|
$metadata: deserializeMetadata(output),
|
|
449
|
-
};
|
|
370
|
+
});
|
|
371
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
450
372
|
}
|
|
451
|
-
const message = response.message || response.Message || errorCode;
|
|
452
|
-
response.message = message;
|
|
453
|
-
delete response.Message;
|
|
454
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
455
373
|
};
|
|
456
374
|
const deserializeAws_restJson1PutObjectCommand = async (output, context) => {
|
|
457
375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -487,87 +405,67 @@ const deserializeAws_restJson1PutObjectCommandError = async (output, context) =>
|
|
|
487
405
|
switch (errorCode) {
|
|
488
406
|
case "ContainerNotFoundException":
|
|
489
407
|
case "com.amazonaws.mediastoredata#ContainerNotFoundException":
|
|
490
|
-
|
|
491
|
-
...(await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)),
|
|
492
|
-
name: errorCode,
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
};
|
|
495
|
-
break;
|
|
408
|
+
throw await deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context);
|
|
496
409
|
case "InternalServerError":
|
|
497
410
|
case "com.amazonaws.mediastoredata#InternalServerError":
|
|
498
|
-
|
|
499
|
-
...(await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)),
|
|
500
|
-
name: errorCode,
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
};
|
|
503
|
-
break;
|
|
411
|
+
throw await deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context);
|
|
504
412
|
default:
|
|
505
413
|
const parsedBody = parsedOutput.body;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
...parsedBody,
|
|
509
|
-
name: `${errorCode}`,
|
|
510
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
414
|
+
response = new MediaStoreDataServiceException_1.MediaStoreDataServiceException({
|
|
415
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
511
416
|
$fault: "client",
|
|
512
417
|
$metadata: deserializeMetadata(output),
|
|
513
|
-
};
|
|
418
|
+
});
|
|
419
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
514
420
|
}
|
|
515
|
-
const message = response.message || response.Message || errorCode;
|
|
516
|
-
response.message = message;
|
|
517
|
-
delete response.Message;
|
|
518
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
519
421
|
};
|
|
520
422
|
const deserializeAws_restJson1ContainerNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
521
|
-
const contents = {
|
|
522
|
-
name: "ContainerNotFoundException",
|
|
523
|
-
$fault: "client",
|
|
524
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
525
|
-
Message: undefined,
|
|
526
|
-
};
|
|
423
|
+
const contents = {};
|
|
527
424
|
const data = parsedOutput.body;
|
|
528
425
|
if (data.Message !== undefined && data.Message !== null) {
|
|
529
426
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
530
427
|
}
|
|
531
|
-
|
|
428
|
+
const exception = new models_0_1.ContainerNotFoundException({
|
|
429
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
430
|
+
...contents,
|
|
431
|
+
});
|
|
432
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
532
433
|
};
|
|
533
434
|
const deserializeAws_restJson1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
534
|
-
const contents = {
|
|
535
|
-
name: "InternalServerError",
|
|
536
|
-
$fault: "server",
|
|
537
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
538
|
-
Message: undefined,
|
|
539
|
-
};
|
|
435
|
+
const contents = {};
|
|
540
436
|
const data = parsedOutput.body;
|
|
541
437
|
if (data.Message !== undefined && data.Message !== null) {
|
|
542
438
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
543
439
|
}
|
|
544
|
-
|
|
440
|
+
const exception = new models_0_1.InternalServerError({
|
|
441
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
442
|
+
...contents,
|
|
443
|
+
});
|
|
444
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
545
445
|
};
|
|
546
446
|
const deserializeAws_restJson1ObjectNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
547
|
-
const contents = {
|
|
548
|
-
name: "ObjectNotFoundException",
|
|
549
|
-
$fault: "client",
|
|
550
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
551
|
-
Message: undefined,
|
|
552
|
-
};
|
|
447
|
+
const contents = {};
|
|
553
448
|
const data = parsedOutput.body;
|
|
554
449
|
if (data.Message !== undefined && data.Message !== null) {
|
|
555
450
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
556
451
|
}
|
|
557
|
-
|
|
452
|
+
const exception = new models_0_1.ObjectNotFoundException({
|
|
453
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
454
|
+
...contents,
|
|
455
|
+
});
|
|
456
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
558
457
|
};
|
|
559
458
|
const deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse = async (parsedOutput, context) => {
|
|
560
|
-
const contents = {
|
|
561
|
-
name: "RequestedRangeNotSatisfiableException",
|
|
562
|
-
$fault: "client",
|
|
563
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
-
Message: undefined,
|
|
565
|
-
};
|
|
459
|
+
const contents = {};
|
|
566
460
|
const data = parsedOutput.body;
|
|
567
461
|
if (data.Message !== undefined && data.Message !== null) {
|
|
568
462
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
569
463
|
}
|
|
570
|
-
|
|
464
|
+
const exception = new models_0_1.RequestedRangeNotSatisfiableException({
|
|
465
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
466
|
+
...contents,
|
|
467
|
+
});
|
|
468
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
571
469
|
};
|
|
572
470
|
const deserializeAws_restJson1Item = (output, context) => {
|
|
573
471
|
return {
|
|
@@ -582,7 +480,7 @@ const deserializeAws_restJson1Item = (output, context) => {
|
|
|
582
480
|
};
|
|
583
481
|
};
|
|
584
482
|
const deserializeAws_restJson1ItemList = (output, context) => {
|
|
585
|
-
|
|
483
|
+
const retVal = (output || [])
|
|
586
484
|
.filter((e) => e != null)
|
|
587
485
|
.map((entry) => {
|
|
588
486
|
if (entry === null) {
|
|
@@ -590,6 +488,7 @@ const deserializeAws_restJson1ItemList = (output, context) => {
|
|
|
590
488
|
}
|
|
591
489
|
return deserializeAws_restJson1Item(entry, context);
|
|
592
490
|
});
|
|
491
|
+
return retVal;
|
|
593
492
|
};
|
|
594
493
|
const deserializeMetadata = (output) => {
|
|
595
494
|
var _a;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var MediaStoreDataServiceException = (function (_super) {
|
|
4
|
+
__extends(MediaStoreDataServiceException, _super);
|
|
5
|
+
function MediaStoreDataServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, MediaStoreDataServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return MediaStoreDataServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { MediaStoreDataServiceException };
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { MediaStoreDataServiceException as __BaseException } from "./MediaStoreDataServiceException";
|
|
3
|
+
var ContainerNotFoundException = (function (_super) {
|
|
4
|
+
__extends(ContainerNotFoundException, _super);
|
|
5
|
+
function ContainerNotFoundException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "ContainerNotFoundException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "ContainerNotFoundException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, ContainerNotFoundException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return ContainerNotFoundException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { ContainerNotFoundException };
|
|
2
16
|
export var DeleteObjectRequest;
|
|
3
17
|
(function (DeleteObjectRequest) {
|
|
4
18
|
DeleteObjectRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -7,6 +21,32 @@ export var DeleteObjectResponse;
|
|
|
7
21
|
(function (DeleteObjectResponse) {
|
|
8
22
|
DeleteObjectResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
23
|
})(DeleteObjectResponse || (DeleteObjectResponse = {}));
|
|
24
|
+
var InternalServerError = (function (_super) {
|
|
25
|
+
__extends(InternalServerError, _super);
|
|
26
|
+
function InternalServerError(opts) {
|
|
27
|
+
var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
|
|
28
|
+
_this.name = "InternalServerError";
|
|
29
|
+
_this.$fault = "server";
|
|
30
|
+
Object.setPrototypeOf(_this, InternalServerError.prototype);
|
|
31
|
+
_this.Message = opts.Message;
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
return InternalServerError;
|
|
35
|
+
}(__BaseException));
|
|
36
|
+
export { InternalServerError };
|
|
37
|
+
var ObjectNotFoundException = (function (_super) {
|
|
38
|
+
__extends(ObjectNotFoundException, _super);
|
|
39
|
+
function ObjectNotFoundException(opts) {
|
|
40
|
+
var _this = _super.call(this, __assign({ name: "ObjectNotFoundException", $fault: "client" }, opts)) || this;
|
|
41
|
+
_this.name = "ObjectNotFoundException";
|
|
42
|
+
_this.$fault = "client";
|
|
43
|
+
Object.setPrototypeOf(_this, ObjectNotFoundException.prototype);
|
|
44
|
+
_this.Message = opts.Message;
|
|
45
|
+
return _this;
|
|
46
|
+
}
|
|
47
|
+
return ObjectNotFoundException;
|
|
48
|
+
}(__BaseException));
|
|
49
|
+
export { ObjectNotFoundException };
|
|
10
50
|
export var DescribeObjectRequest;
|
|
11
51
|
(function (DescribeObjectRequest) {
|
|
12
52
|
DescribeObjectRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -23,6 +63,19 @@ export var GetObjectResponse;
|
|
|
23
63
|
(function (GetObjectResponse) {
|
|
24
64
|
GetObjectResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
25
65
|
})(GetObjectResponse || (GetObjectResponse = {}));
|
|
66
|
+
var RequestedRangeNotSatisfiableException = (function (_super) {
|
|
67
|
+
__extends(RequestedRangeNotSatisfiableException, _super);
|
|
68
|
+
function RequestedRangeNotSatisfiableException(opts) {
|
|
69
|
+
var _this = _super.call(this, __assign({ name: "RequestedRangeNotSatisfiableException", $fault: "client" }, opts)) || this;
|
|
70
|
+
_this.name = "RequestedRangeNotSatisfiableException";
|
|
71
|
+
_this.$fault = "client";
|
|
72
|
+
Object.setPrototypeOf(_this, RequestedRangeNotSatisfiableException.prototype);
|
|
73
|
+
_this.Message = opts.Message;
|
|
74
|
+
return _this;
|
|
75
|
+
}
|
|
76
|
+
return RequestedRangeNotSatisfiableException;
|
|
77
|
+
}(__BaseException));
|
|
78
|
+
export { RequestedRangeNotSatisfiableException };
|
|
26
79
|
export var ItemType;
|
|
27
80
|
(function (ItemType) {
|
|
28
81
|
ItemType["FOLDER"] = "FOLDER";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, parseRfc7231DateTime as __parseRfc7231DateTime, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, parseRfc7231DateTime as __parseRfc7231DateTime, strictParseLong as __strictParseLong, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MediaStoreDataServiceException as __BaseException } from "../models/MediaStoreDataServiceException";
|
|
5
|
+
import { ContainerNotFoundException, InternalServerError, ObjectNotFoundException, RequestedRangeNotSatisfiableException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1DeleteObjectCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -184,16 +186,16 @@ export var deserializeAws_restJson1DeleteObjectCommand = function (output, conte
|
|
|
184
186
|
});
|
|
185
187
|
}); };
|
|
186
188
|
var deserializeAws_restJson1DeleteObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
187
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
188
|
-
var
|
|
189
|
-
return __generator(this, function (
|
|
190
|
-
switch (
|
|
189
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
190
|
+
var _c;
|
|
191
|
+
return __generator(this, function (_d) {
|
|
192
|
+
switch (_d.label) {
|
|
191
193
|
case 0:
|
|
192
194
|
_a = [__assign({}, output)];
|
|
193
|
-
|
|
195
|
+
_c = {};
|
|
194
196
|
return [4, parseBody(output.body, context)];
|
|
195
197
|
case 1:
|
|
196
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
198
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
197
199
|
errorCode = "UnknownError";
|
|
198
200
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
199
201
|
_b = errorCode;
|
|
@@ -206,34 +208,20 @@ var deserializeAws_restJson1DeleteObjectCommandError = function (output, context
|
|
|
206
208
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException": return [3, 6];
|
|
207
209
|
}
|
|
208
210
|
return [3, 8];
|
|
209
|
-
case 2:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
case
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
case 4:
|
|
216
|
-
_d = [{}];
|
|
217
|
-
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
218
|
-
case 5:
|
|
219
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
220
|
-
return [3, 9];
|
|
221
|
-
case 6:
|
|
222
|
-
_e = [{}];
|
|
223
|
-
return [4, deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
224
|
-
case 7:
|
|
225
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
226
|
-
return [3, 9];
|
|
211
|
+
case 2: return [4, deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
212
|
+
case 3: throw _d.sent();
|
|
213
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
214
|
+
case 5: throw _d.sent();
|
|
215
|
+
case 6: return [4, deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
216
|
+
case 7: throw _d.sent();
|
|
227
217
|
case 8:
|
|
228
218
|
parsedBody = parsedOutput.body;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
response
|
|
235
|
-
delete response.Message;
|
|
236
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
219
|
+
response = new __BaseException({
|
|
220
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
221
|
+
$fault: "client",
|
|
222
|
+
$metadata: deserializeMetadata(output),
|
|
223
|
+
});
|
|
224
|
+
throw __decorateServiceException(response, parsedBody);
|
|
237
225
|
}
|
|
238
226
|
});
|
|
239
227
|
}); };
|
|
@@ -276,16 +264,16 @@ export var deserializeAws_restJson1DescribeObjectCommand = function (output, con
|
|
|
276
264
|
});
|
|
277
265
|
}); };
|
|
278
266
|
var deserializeAws_restJson1DescribeObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
279
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
280
|
-
var
|
|
281
|
-
return __generator(this, function (
|
|
282
|
-
switch (
|
|
267
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
268
|
+
var _c;
|
|
269
|
+
return __generator(this, function (_d) {
|
|
270
|
+
switch (_d.label) {
|
|
283
271
|
case 0:
|
|
284
272
|
_a = [__assign({}, output)];
|
|
285
|
-
|
|
273
|
+
_c = {};
|
|
286
274
|
return [4, parseBody(output.body, context)];
|
|
287
275
|
case 1:
|
|
288
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
276
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
289
277
|
errorCode = "UnknownError";
|
|
290
278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
279
|
_b = errorCode;
|
|
@@ -298,34 +286,20 @@ var deserializeAws_restJson1DescribeObjectCommandError = function (output, conte
|
|
|
298
286
|
case "com.amazonaws.mediastoredata#ObjectNotFoundException": return [3, 6];
|
|
299
287
|
}
|
|
300
288
|
return [3, 8];
|
|
301
|
-
case 2:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
case
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
case 4:
|
|
308
|
-
_d = [{}];
|
|
309
|
-
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
310
|
-
case 5:
|
|
311
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
312
|
-
return [3, 9];
|
|
313
|
-
case 6:
|
|
314
|
-
_e = [{}];
|
|
315
|
-
return [4, deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
316
|
-
case 7:
|
|
317
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
318
|
-
return [3, 9];
|
|
289
|
+
case 2: return [4, deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
290
|
+
case 3: throw _d.sent();
|
|
291
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
292
|
+
case 5: throw _d.sent();
|
|
293
|
+
case 6: return [4, deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
294
|
+
case 7: throw _d.sent();
|
|
319
295
|
case 8:
|
|
320
296
|
parsedBody = parsedOutput.body;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
response
|
|
327
|
-
delete response.Message;
|
|
328
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
297
|
+
response = new __BaseException({
|
|
298
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
299
|
+
$fault: "client",
|
|
300
|
+
$metadata: deserializeMetadata(output),
|
|
301
|
+
});
|
|
302
|
+
throw __decorateServiceException(response, parsedBody);
|
|
329
303
|
}
|
|
330
304
|
});
|
|
331
305
|
}); };
|
|
@@ -373,16 +347,16 @@ export var deserializeAws_restJson1GetObjectCommand = function (output, context)
|
|
|
373
347
|
});
|
|
374
348
|
}); };
|
|
375
349
|
var deserializeAws_restJson1GetObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
377
|
-
var
|
|
378
|
-
return __generator(this, function (
|
|
379
|
-
switch (
|
|
350
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
351
|
+
var _c;
|
|
352
|
+
return __generator(this, function (_d) {
|
|
353
|
+
switch (_d.label) {
|
|
380
354
|
case 0:
|
|
381
355
|
_a = [__assign({}, output)];
|
|
382
|
-
|
|
356
|
+
_c = {};
|
|
383
357
|
return [4, parseBody(output.body, context)];
|
|
384
358
|
case 1:
|
|
385
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
359
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
386
360
|
errorCode = "UnknownError";
|
|
387
361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
362
|
_b = errorCode;
|
|
@@ -397,40 +371,22 @@ var deserializeAws_restJson1GetObjectCommandError = function (output, context) {
|
|
|
397
371
|
case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException": return [3, 8];
|
|
398
372
|
}
|
|
399
373
|
return [3, 10];
|
|
400
|
-
case 2:
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
case
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
case 4
|
|
407
|
-
|
|
408
|
-
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
409
|
-
case 5:
|
|
410
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
411
|
-
return [3, 11];
|
|
412
|
-
case 6:
|
|
413
|
-
_e = [{}];
|
|
414
|
-
return [4, deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
415
|
-
case 7:
|
|
416
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
417
|
-
return [3, 11];
|
|
418
|
-
case 8:
|
|
419
|
-
_f = [{}];
|
|
420
|
-
return [4, deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse(parsedOutput, context)];
|
|
421
|
-
case 9:
|
|
422
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
423
|
-
return [3, 11];
|
|
374
|
+
case 2: return [4, deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
375
|
+
case 3: throw _d.sent();
|
|
376
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
377
|
+
case 5: throw _d.sent();
|
|
378
|
+
case 6: return [4, deserializeAws_restJson1ObjectNotFoundExceptionResponse(parsedOutput, context)];
|
|
379
|
+
case 7: throw _d.sent();
|
|
380
|
+
case 8: return [4, deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse(parsedOutput, context)];
|
|
381
|
+
case 9: throw _d.sent();
|
|
424
382
|
case 10:
|
|
425
383
|
parsedBody = parsedOutput.body;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
response
|
|
432
|
-
delete response.Message;
|
|
433
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
384
|
+
response = new __BaseException({
|
|
385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
386
|
+
$fault: "client",
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
});
|
|
389
|
+
throw __decorateServiceException(response, parsedBody);
|
|
434
390
|
}
|
|
435
391
|
});
|
|
436
392
|
}); };
|
|
@@ -463,16 +419,16 @@ export var deserializeAws_restJson1ListItemsCommand = function (output, context)
|
|
|
463
419
|
});
|
|
464
420
|
}); };
|
|
465
421
|
var deserializeAws_restJson1ListItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
466
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
467
|
-
var
|
|
468
|
-
return __generator(this, function (
|
|
469
|
-
switch (
|
|
422
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
423
|
+
var _c;
|
|
424
|
+
return __generator(this, function (_d) {
|
|
425
|
+
switch (_d.label) {
|
|
470
426
|
case 0:
|
|
471
427
|
_a = [__assign({}, output)];
|
|
472
|
-
|
|
428
|
+
_c = {};
|
|
473
429
|
return [4, parseBody(output.body, context)];
|
|
474
430
|
case 1:
|
|
475
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
431
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
476
432
|
errorCode = "UnknownError";
|
|
477
433
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
478
434
|
_b = errorCode;
|
|
@@ -483,28 +439,18 @@ var deserializeAws_restJson1ListItemsCommandError = function (output, context) {
|
|
|
483
439
|
case "com.amazonaws.mediastoredata#InternalServerError": return [3, 4];
|
|
484
440
|
}
|
|
485
441
|
return [3, 6];
|
|
486
|
-
case 2:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
case
|
|
490
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
491
|
-
return [3, 7];
|
|
492
|
-
case 4:
|
|
493
|
-
_d = [{}];
|
|
494
|
-
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
495
|
-
case 5:
|
|
496
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
497
|
-
return [3, 7];
|
|
442
|
+
case 2: return [4, deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
443
|
+
case 3: throw _d.sent();
|
|
444
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
445
|
+
case 5: throw _d.sent();
|
|
498
446
|
case 6:
|
|
499
447
|
parsedBody = parsedOutput.body;
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
response
|
|
506
|
-
delete response.Message;
|
|
507
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
448
|
+
response = new __BaseException({
|
|
449
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
450
|
+
$fault: "client",
|
|
451
|
+
$metadata: deserializeMetadata(output),
|
|
452
|
+
});
|
|
453
|
+
throw __decorateServiceException(response, parsedBody);
|
|
508
454
|
}
|
|
509
455
|
});
|
|
510
456
|
}); };
|
|
@@ -541,16 +487,16 @@ export var deserializeAws_restJson1PutObjectCommand = function (output, context)
|
|
|
541
487
|
});
|
|
542
488
|
}); };
|
|
543
489
|
var deserializeAws_restJson1PutObjectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
544
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
545
|
-
var
|
|
546
|
-
return __generator(this, function (
|
|
547
|
-
switch (
|
|
490
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
491
|
+
var _c;
|
|
492
|
+
return __generator(this, function (_d) {
|
|
493
|
+
switch (_d.label) {
|
|
548
494
|
case 0:
|
|
549
495
|
_a = [__assign({}, output)];
|
|
550
|
-
|
|
496
|
+
_c = {};
|
|
551
497
|
return [4, parseBody(output.body, context)];
|
|
552
498
|
case 1:
|
|
553
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
499
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
554
500
|
errorCode = "UnknownError";
|
|
555
501
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
502
|
_b = errorCode;
|
|
@@ -561,93 +507,67 @@ var deserializeAws_restJson1PutObjectCommandError = function (output, context) {
|
|
|
561
507
|
case "com.amazonaws.mediastoredata#InternalServerError": return [3, 4];
|
|
562
508
|
}
|
|
563
509
|
return [3, 6];
|
|
564
|
-
case 2:
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
case
|
|
568
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
569
|
-
return [3, 7];
|
|
570
|
-
case 4:
|
|
571
|
-
_d = [{}];
|
|
572
|
-
return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
573
|
-
case 5:
|
|
574
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
575
|
-
return [3, 7];
|
|
510
|
+
case 2: return [4, deserializeAws_restJson1ContainerNotFoundExceptionResponse(parsedOutput, context)];
|
|
511
|
+
case 3: throw _d.sent();
|
|
512
|
+
case 4: return [4, deserializeAws_restJson1InternalServerErrorResponse(parsedOutput, context)];
|
|
513
|
+
case 5: throw _d.sent();
|
|
576
514
|
case 6:
|
|
577
515
|
parsedBody = parsedOutput.body;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
response
|
|
584
|
-
delete response.Message;
|
|
585
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
516
|
+
response = new __BaseException({
|
|
517
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
518
|
+
$fault: "client",
|
|
519
|
+
$metadata: deserializeMetadata(output),
|
|
520
|
+
});
|
|
521
|
+
throw __decorateServiceException(response, parsedBody);
|
|
586
522
|
}
|
|
587
523
|
});
|
|
588
524
|
}); };
|
|
589
525
|
var deserializeAws_restJson1ContainerNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
590
|
-
var contents, data;
|
|
526
|
+
var contents, data, exception;
|
|
591
527
|
return __generator(this, function (_a) {
|
|
592
|
-
contents = {
|
|
593
|
-
name: "ContainerNotFoundException",
|
|
594
|
-
$fault: "client",
|
|
595
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
596
|
-
Message: undefined,
|
|
597
|
-
};
|
|
528
|
+
contents = {};
|
|
598
529
|
data = parsedOutput.body;
|
|
599
530
|
if (data.Message !== undefined && data.Message !== null) {
|
|
600
531
|
contents.Message = __expectString(data.Message);
|
|
601
532
|
}
|
|
602
|
-
|
|
533
|
+
exception = new ContainerNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
534
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
603
535
|
});
|
|
604
536
|
}); };
|
|
605
537
|
var deserializeAws_restJson1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
|
-
var contents, data;
|
|
538
|
+
var contents, data, exception;
|
|
607
539
|
return __generator(this, function (_a) {
|
|
608
|
-
contents = {
|
|
609
|
-
name: "InternalServerError",
|
|
610
|
-
$fault: "server",
|
|
611
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
612
|
-
Message: undefined,
|
|
613
|
-
};
|
|
540
|
+
contents = {};
|
|
614
541
|
data = parsedOutput.body;
|
|
615
542
|
if (data.Message !== undefined && data.Message !== null) {
|
|
616
543
|
contents.Message = __expectString(data.Message);
|
|
617
544
|
}
|
|
618
|
-
|
|
545
|
+
exception = new InternalServerError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
546
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
619
547
|
});
|
|
620
548
|
}); };
|
|
621
549
|
var deserializeAws_restJson1ObjectNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
622
|
-
var contents, data;
|
|
550
|
+
var contents, data, exception;
|
|
623
551
|
return __generator(this, function (_a) {
|
|
624
|
-
contents = {
|
|
625
|
-
name: "ObjectNotFoundException",
|
|
626
|
-
$fault: "client",
|
|
627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
628
|
-
Message: undefined,
|
|
629
|
-
};
|
|
552
|
+
contents = {};
|
|
630
553
|
data = parsedOutput.body;
|
|
631
554
|
if (data.Message !== undefined && data.Message !== null) {
|
|
632
555
|
contents.Message = __expectString(data.Message);
|
|
633
556
|
}
|
|
634
|
-
|
|
557
|
+
exception = new ObjectNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
558
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
635
559
|
});
|
|
636
560
|
}); };
|
|
637
561
|
var deserializeAws_restJson1RequestedRangeNotSatisfiableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
638
|
-
var contents, data;
|
|
562
|
+
var contents, data, exception;
|
|
639
563
|
return __generator(this, function (_a) {
|
|
640
|
-
contents = {
|
|
641
|
-
name: "RequestedRangeNotSatisfiableException",
|
|
642
|
-
$fault: "client",
|
|
643
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
644
|
-
Message: undefined,
|
|
645
|
-
};
|
|
564
|
+
contents = {};
|
|
646
565
|
data = parsedOutput.body;
|
|
647
566
|
if (data.Message !== undefined && data.Message !== null) {
|
|
648
567
|
contents.Message = __expectString(data.Message);
|
|
649
568
|
}
|
|
650
|
-
|
|
569
|
+
exception = new RequestedRangeNotSatisfiableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
570
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
651
571
|
});
|
|
652
572
|
}); };
|
|
653
573
|
var deserializeAws_restJson1Item = function (output, context) {
|
|
@@ -663,7 +583,7 @@ var deserializeAws_restJson1Item = function (output, context) {
|
|
|
663
583
|
};
|
|
664
584
|
};
|
|
665
585
|
var deserializeAws_restJson1ItemList = function (output, context) {
|
|
666
|
-
|
|
586
|
+
var retVal = (output || [])
|
|
667
587
|
.filter(function (e) { return e != null; })
|
|
668
588
|
.map(function (entry) {
|
|
669
589
|
if (entry === null) {
|
|
@@ -671,6 +591,7 @@ var deserializeAws_restJson1ItemList = function (output, context) {
|
|
|
671
591
|
}
|
|
672
592
|
return deserializeAws_restJson1Item(entry, context);
|
|
673
593
|
});
|
|
594
|
+
return retVal;
|
|
674
595
|
};
|
|
675
596
|
var deserializeMetadata = function (output) {
|
|
676
597
|
var _a;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from MediaStoreData service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MediaStoreDataServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Readable } from "stream";
|
|
4
|
+
import { MediaStoreDataServiceException as __BaseException } from "./MediaStoreDataServiceException";
|
|
4
5
|
/**
|
|
5
6
|
* <p>The specified container was not found for the specified account.</p>
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
-
name: "ContainerNotFoundException";
|
|
9
|
-
$fault: "client";
|
|
8
|
+
export declare class ContainerNotFoundException extends __BaseException {
|
|
9
|
+
readonly name: "ContainerNotFoundException";
|
|
10
|
+
readonly $fault: "client";
|
|
10
11
|
Message?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(opts: __ExceptionOptionType<ContainerNotFoundException, __BaseException>);
|
|
11
16
|
}
|
|
12
17
|
export interface DeleteObjectRequest {
|
|
13
18
|
/**
|
|
@@ -33,18 +38,26 @@ export declare namespace DeleteObjectResponse {
|
|
|
33
38
|
/**
|
|
34
39
|
* <p>The service is temporarily unavailable.</p>
|
|
35
40
|
*/
|
|
36
|
-
export
|
|
37
|
-
name: "InternalServerError";
|
|
38
|
-
$fault: "server";
|
|
41
|
+
export declare class InternalServerError extends __BaseException {
|
|
42
|
+
readonly name: "InternalServerError";
|
|
43
|
+
readonly $fault: "server";
|
|
39
44
|
Message?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
|
|
40
49
|
}
|
|
41
50
|
/**
|
|
42
51
|
* <p>Could not perform an operation on an object that does not exist.</p>
|
|
43
52
|
*/
|
|
44
|
-
export
|
|
45
|
-
name: "ObjectNotFoundException";
|
|
46
|
-
$fault: "client";
|
|
53
|
+
export declare class ObjectNotFoundException extends __BaseException {
|
|
54
|
+
readonly name: "ObjectNotFoundException";
|
|
55
|
+
readonly $fault: "client";
|
|
47
56
|
Message?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
constructor(opts: __ExceptionOptionType<ObjectNotFoundException, __BaseException>);
|
|
48
61
|
}
|
|
49
62
|
export interface DescribeObjectRequest {
|
|
50
63
|
/**
|
|
@@ -169,10 +182,14 @@ export declare namespace GetObjectResponse {
|
|
|
169
182
|
/**
|
|
170
183
|
* <p>The requested content range is not valid.</p>
|
|
171
184
|
*/
|
|
172
|
-
export
|
|
173
|
-
name: "RequestedRangeNotSatisfiableException";
|
|
174
|
-
$fault: "client";
|
|
185
|
+
export declare class RequestedRangeNotSatisfiableException extends __BaseException {
|
|
186
|
+
readonly name: "RequestedRangeNotSatisfiableException";
|
|
187
|
+
readonly $fault: "client";
|
|
175
188
|
Message?: string;
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
constructor(opts: __ExceptionOptionType<RequestedRangeNotSatisfiableException, __BaseException>);
|
|
176
193
|
}
|
|
177
194
|
export declare enum ItemType {
|
|
178
195
|
FOLDER = "FOLDER",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class MediaStoreDataServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Readable } from "stream";
|
|
4
|
+
import { MediaStoreDataServiceException as __BaseException } from "./MediaStoreDataServiceException";
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
-
name: "ContainerNotFoundException";
|
|
7
|
-
$fault: "client";
|
|
6
|
+
export declare class ContainerNotFoundException extends __BaseException {
|
|
7
|
+
readonly name: "ContainerNotFoundException";
|
|
8
|
+
readonly $fault: "client";
|
|
8
9
|
Message?: string;
|
|
10
|
+
|
|
11
|
+
constructor(opts: __ExceptionOptionType<ContainerNotFoundException, __BaseException>);
|
|
9
12
|
}
|
|
10
13
|
export interface DeleteObjectRequest {
|
|
11
14
|
|
|
@@ -22,16 +25,20 @@ export declare namespace DeleteObjectResponse {
|
|
|
22
25
|
const filterSensitiveLog: (obj: DeleteObjectResponse) => any;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
export
|
|
26
|
-
name: "InternalServerError";
|
|
27
|
-
$fault: "server";
|
|
28
|
+
export declare class InternalServerError extends __BaseException {
|
|
29
|
+
readonly name: "InternalServerError";
|
|
30
|
+
readonly $fault: "server";
|
|
28
31
|
Message?: string;
|
|
32
|
+
|
|
33
|
+
constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
|
|
29
34
|
}
|
|
30
35
|
|
|
31
|
-
export
|
|
32
|
-
name: "ObjectNotFoundException";
|
|
33
|
-
$fault: "client";
|
|
36
|
+
export declare class ObjectNotFoundException extends __BaseException {
|
|
37
|
+
readonly name: "ObjectNotFoundException";
|
|
38
|
+
readonly $fault: "client";
|
|
34
39
|
Message?: string;
|
|
40
|
+
|
|
41
|
+
constructor(opts: __ExceptionOptionType<ObjectNotFoundException, __BaseException>);
|
|
35
42
|
}
|
|
36
43
|
export interface DescribeObjectRequest {
|
|
37
44
|
|
|
@@ -90,10 +97,12 @@ export declare namespace GetObjectResponse {
|
|
|
90
97
|
const filterSensitiveLog: (obj: GetObjectResponse) => any;
|
|
91
98
|
}
|
|
92
99
|
|
|
93
|
-
export
|
|
94
|
-
name: "RequestedRangeNotSatisfiableException";
|
|
95
|
-
$fault: "client";
|
|
100
|
+
export declare class RequestedRangeNotSatisfiableException extends __BaseException {
|
|
101
|
+
readonly name: "RequestedRangeNotSatisfiableException";
|
|
102
|
+
readonly $fault: "client";
|
|
96
103
|
Message?: string;
|
|
104
|
+
|
|
105
|
+
constructor(opts: __ExceptionOptionType<RequestedRangeNotSatisfiableException, __BaseException>);
|
|
97
106
|
}
|
|
98
107
|
export declare enum ItemType {
|
|
99
108
|
FOLDER = "FOLDER",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediastore-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediastore Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.53.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,34 +20,34 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.53.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.53.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.53.0",
|
|
26
|
+
"@aws-sdk/fetch-http-handler": "3.53.0",
|
|
27
|
+
"@aws-sdk/hash-node": "3.53.0",
|
|
28
|
+
"@aws-sdk/invalid-dependency": "3.53.0",
|
|
29
|
+
"@aws-sdk/middleware-content-length": "3.53.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.53.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.53.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.53.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.53.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.53.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.53.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.53.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.53.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.53.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.53.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.53.0",
|
|
41
|
+
"@aws-sdk/types": "3.53.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.53.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.53.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.53.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.53.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.53.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
52
52
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
53
53
|
"tslib": "^2.3.0"
|