@aws-sdk/client-mediastore-data 3.504.0 → 3.509.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/dist-cjs/index.js CHANGED
@@ -309,7 +309,7 @@ var se_PutObjectCommand = /* @__PURE__ */ __name(async (input, context) => {
309
309
  }, "se_PutObjectCommand");
310
310
  var de_DeleteObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
311
311
  if (output.statusCode !== 200 && output.statusCode >= 300) {
312
- return de_DeleteObjectCommandError(output, context);
312
+ return de_CommandError(output, context);
313
313
  }
314
314
  const contents = (0, import_smithy_client.map)({
315
315
  $metadata: deserializeMetadata(output)
@@ -317,34 +317,9 @@ var de_DeleteObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
317
317
  await (0, import_smithy_client.collectBody)(output.body, context);
318
318
  return contents;
319
319
  }, "de_DeleteObjectCommand");
320
- var de_DeleteObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
321
- const parsedOutput = {
322
- ...output,
323
- body: await parseErrorBody(output.body, context)
324
- };
325
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
326
- switch (errorCode) {
327
- case "ContainerNotFoundException":
328
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
329
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
330
- case "InternalServerError":
331
- case "com.amazonaws.mediastoredata#InternalServerError":
332
- throw await de_InternalServerErrorRes(parsedOutput, context);
333
- case "ObjectNotFoundException":
334
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
335
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
336
- default:
337
- const parsedBody = parsedOutput.body;
338
- return throwDefaultError({
339
- output,
340
- parsedBody,
341
- errorCode
342
- });
343
- }
344
- }, "de_DeleteObjectCommandError");
345
320
  var de_DescribeObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
346
321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
347
- return de_DescribeObjectCommandError(output, context);
322
+ return de_CommandError(output, context);
348
323
  }
349
324
  const contents = (0, import_smithy_client.map)({
350
325
  $metadata: deserializeMetadata(output),
@@ -357,34 +332,9 @@ var de_DescribeObjectCommand = /* @__PURE__ */ __name(async (output, context) =>
357
332
  await (0, import_smithy_client.collectBody)(output.body, context);
358
333
  return contents;
359
334
  }, "de_DescribeObjectCommand");
360
- var de_DescribeObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
361
- const parsedOutput = {
362
- ...output,
363
- body: await parseErrorBody(output.body, context)
364
- };
365
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
366
- switch (errorCode) {
367
- case "ContainerNotFoundException":
368
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
369
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
370
- case "InternalServerError":
371
- case "com.amazonaws.mediastoredata#InternalServerError":
372
- throw await de_InternalServerErrorRes(parsedOutput, context);
373
- case "ObjectNotFoundException":
374
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
375
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
376
- default:
377
- const parsedBody = parsedOutput.body;
378
- return throwDefaultError({
379
- output,
380
- parsedBody,
381
- errorCode
382
- });
383
- }
384
- }, "de_DescribeObjectCommandError");
385
335
  var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
386
336
  if (output.statusCode !== 200 && output.statusCode >= 300) {
387
- return de_GetObjectCommandError(output, context);
337
+ return de_CommandError(output, context);
388
338
  }
389
339
  const contents = (0, import_smithy_client.map)({
390
340
  $metadata: deserializeMetadata(output),
@@ -403,37 +353,9 @@ var de_GetObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
403
353
  });
404
354
  return contents;
405
355
  }, "de_GetObjectCommand");
406
- var de_GetObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
407
- const parsedOutput = {
408
- ...output,
409
- body: await parseErrorBody(output.body, context)
410
- };
411
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
412
- switch (errorCode) {
413
- case "ContainerNotFoundException":
414
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
415
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
416
- case "InternalServerError":
417
- case "com.amazonaws.mediastoredata#InternalServerError":
418
- throw await de_InternalServerErrorRes(parsedOutput, context);
419
- case "ObjectNotFoundException":
420
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
421
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
422
- case "RequestedRangeNotSatisfiableException":
423
- case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
424
- throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
425
- default:
426
- const parsedBody = parsedOutput.body;
427
- return throwDefaultError({
428
- output,
429
- parsedBody,
430
- errorCode
431
- });
432
- }
433
- }, "de_GetObjectCommandError");
434
356
  var de_ListItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
435
357
  if (output.statusCode !== 200 && output.statusCode >= 300) {
436
- return de_ListItemsCommandError(output, context);
358
+ return de_CommandError(output, context);
437
359
  }
438
360
  const contents = (0, import_smithy_client.map)({
439
361
  $metadata: deserializeMetadata(output)
@@ -446,31 +368,9 @@ var de_ListItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
446
368
  Object.assign(contents, doc);
447
369
  return contents;
448
370
  }, "de_ListItemsCommand");
449
- var de_ListItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
450
- const parsedOutput = {
451
- ...output,
452
- body: await parseErrorBody(output.body, context)
453
- };
454
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
455
- switch (errorCode) {
456
- case "ContainerNotFoundException":
457
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
458
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
459
- case "InternalServerError":
460
- case "com.amazonaws.mediastoredata#InternalServerError":
461
- throw await de_InternalServerErrorRes(parsedOutput, context);
462
- default:
463
- const parsedBody = parsedOutput.body;
464
- return throwDefaultError({
465
- output,
466
- parsedBody,
467
- errorCode
468
- });
469
- }
470
- }, "de_ListItemsCommandError");
471
371
  var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
472
372
  if (output.statusCode !== 200 && output.statusCode >= 300) {
473
- return de_PutObjectCommandError(output, context);
373
+ return de_CommandError(output, context);
474
374
  }
475
375
  const contents = (0, import_smithy_client.map)({
476
376
  $metadata: deserializeMetadata(output)
@@ -484,7 +384,7 @@ var de_PutObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
484
384
  Object.assign(contents, doc);
485
385
  return contents;
486
386
  }, "de_PutObjectCommand");
487
- var de_PutObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
387
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
488
388
  const parsedOutput = {
489
389
  ...output,
490
390
  body: await parseErrorBody(output.body, context)
@@ -497,6 +397,12 @@ var de_PutObjectCommandError = /* @__PURE__ */ __name(async (output, context) =>
497
397
  case "InternalServerError":
498
398
  case "com.amazonaws.mediastoredata#InternalServerError":
499
399
  throw await de_InternalServerErrorRes(parsedOutput, context);
400
+ case "ObjectNotFoundException":
401
+ case "com.amazonaws.mediastoredata#ObjectNotFoundException":
402
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
403
+ case "RequestedRangeNotSatisfiableException":
404
+ case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
405
+ throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
500
406
  default:
501
407
  const parsedBody = parsedOutput.body;
502
408
  return throwDefaultError({
@@ -505,7 +411,7 @@ var de_PutObjectCommandError = /* @__PURE__ */ __name(async (output, context) =>
505
411
  errorCode
506
412
  });
507
413
  }
508
- }, "de_PutObjectCommandError");
414
+ }, "de_CommandError");
509
415
  var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaStoreDataServiceException);
510
416
  var de_ContainerNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
511
417
  const contents = (0, import_smithy_client.map)({});
@@ -64,7 +64,7 @@ export const se_PutObjectCommand = async (input, context) => {
64
64
  };
65
65
  export const de_DeleteObjectCommand = async (output, context) => {
66
66
  if (output.statusCode !== 200 && output.statusCode >= 300) {
67
- return de_DeleteObjectCommandError(output, context);
67
+ return de_CommandError(output, context);
68
68
  }
69
69
  const contents = map({
70
70
  $metadata: deserializeMetadata(output),
@@ -72,34 +72,9 @@ export const de_DeleteObjectCommand = async (output, context) => {
72
72
  await collectBody(output.body, context);
73
73
  return contents;
74
74
  };
75
- const de_DeleteObjectCommandError = async (output, context) => {
76
- const parsedOutput = {
77
- ...output,
78
- body: await parseErrorBody(output.body, context),
79
- };
80
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
81
- switch (errorCode) {
82
- case "ContainerNotFoundException":
83
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
84
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
85
- case "InternalServerError":
86
- case "com.amazonaws.mediastoredata#InternalServerError":
87
- throw await de_InternalServerErrorRes(parsedOutput, context);
88
- case "ObjectNotFoundException":
89
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
90
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
91
- default:
92
- const parsedBody = parsedOutput.body;
93
- return throwDefaultError({
94
- output,
95
- parsedBody,
96
- errorCode,
97
- });
98
- }
99
- };
100
75
  export const de_DescribeObjectCommand = async (output, context) => {
101
76
  if (output.statusCode !== 200 && output.statusCode >= 300) {
102
- return de_DescribeObjectCommandError(output, context);
77
+ return de_CommandError(output, context);
103
78
  }
104
79
  const contents = map({
105
80
  $metadata: deserializeMetadata(output),
@@ -112,34 +87,9 @@ export const de_DescribeObjectCommand = async (output, context) => {
112
87
  await collectBody(output.body, context);
113
88
  return contents;
114
89
  };
115
- const de_DescribeObjectCommandError = async (output, context) => {
116
- const parsedOutput = {
117
- ...output,
118
- body: await parseErrorBody(output.body, context),
119
- };
120
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
121
- switch (errorCode) {
122
- case "ContainerNotFoundException":
123
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
124
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
125
- case "InternalServerError":
126
- case "com.amazonaws.mediastoredata#InternalServerError":
127
- throw await de_InternalServerErrorRes(parsedOutput, context);
128
- case "ObjectNotFoundException":
129
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
130
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
131
- default:
132
- const parsedBody = parsedOutput.body;
133
- return throwDefaultError({
134
- output,
135
- parsedBody,
136
- errorCode,
137
- });
138
- }
139
- };
140
90
  export const de_GetObjectCommand = async (output, context) => {
141
91
  if (output.statusCode !== 200 && output.statusCode >= 300) {
142
- return de_GetObjectCommandError(output, context);
92
+ return de_CommandError(output, context);
143
93
  }
144
94
  const contents = map({
145
95
  $metadata: deserializeMetadata(output),
@@ -158,37 +108,9 @@ export const de_GetObjectCommand = async (output, context) => {
158
108
  });
159
109
  return contents;
160
110
  };
161
- const de_GetObjectCommandError = async (output, context) => {
162
- const parsedOutput = {
163
- ...output,
164
- body: await parseErrorBody(output.body, context),
165
- };
166
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
167
- switch (errorCode) {
168
- case "ContainerNotFoundException":
169
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
170
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
171
- case "InternalServerError":
172
- case "com.amazonaws.mediastoredata#InternalServerError":
173
- throw await de_InternalServerErrorRes(parsedOutput, context);
174
- case "ObjectNotFoundException":
175
- case "com.amazonaws.mediastoredata#ObjectNotFoundException":
176
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
177
- case "RequestedRangeNotSatisfiableException":
178
- case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
179
- throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
180
- default:
181
- const parsedBody = parsedOutput.body;
182
- return throwDefaultError({
183
- output,
184
- parsedBody,
185
- errorCode,
186
- });
187
- }
188
- };
189
111
  export const de_ListItemsCommand = async (output, context) => {
190
112
  if (output.statusCode !== 200 && output.statusCode >= 300) {
191
- return de_ListItemsCommandError(output, context);
113
+ return de_CommandError(output, context);
192
114
  }
193
115
  const contents = map({
194
116
  $metadata: deserializeMetadata(output),
@@ -201,31 +123,9 @@ export const de_ListItemsCommand = async (output, context) => {
201
123
  Object.assign(contents, doc);
202
124
  return contents;
203
125
  };
204
- const de_ListItemsCommandError = async (output, context) => {
205
- const parsedOutput = {
206
- ...output,
207
- body: await parseErrorBody(output.body, context),
208
- };
209
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
210
- switch (errorCode) {
211
- case "ContainerNotFoundException":
212
- case "com.amazonaws.mediastoredata#ContainerNotFoundException":
213
- throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
214
- case "InternalServerError":
215
- case "com.amazonaws.mediastoredata#InternalServerError":
216
- throw await de_InternalServerErrorRes(parsedOutput, context);
217
- default:
218
- const parsedBody = parsedOutput.body;
219
- return throwDefaultError({
220
- output,
221
- parsedBody,
222
- errorCode,
223
- });
224
- }
225
- };
226
126
  export const de_PutObjectCommand = async (output, context) => {
227
127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
228
- return de_PutObjectCommandError(output, context);
128
+ return de_CommandError(output, context);
229
129
  }
230
130
  const contents = map({
231
131
  $metadata: deserializeMetadata(output),
@@ -239,7 +139,7 @@ export const de_PutObjectCommand = async (output, context) => {
239
139
  Object.assign(contents, doc);
240
140
  return contents;
241
141
  };
242
- const de_PutObjectCommandError = async (output, context) => {
142
+ const de_CommandError = async (output, context) => {
243
143
  const parsedOutput = {
244
144
  ...output,
245
145
  body: await parseErrorBody(output.body, context),
@@ -252,6 +152,12 @@ const de_PutObjectCommandError = async (output, context) => {
252
152
  case "InternalServerError":
253
153
  case "com.amazonaws.mediastoredata#InternalServerError":
254
154
  throw await de_InternalServerErrorRes(parsedOutput, context);
155
+ case "ObjectNotFoundException":
156
+ case "com.amazonaws.mediastoredata#ObjectNotFoundException":
157
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
158
+ case "RequestedRangeNotSatisfiableException":
159
+ case "com.amazonaws.mediastoredata#RequestedRangeNotSatisfiableException":
160
+ throw await de_RequestedRangeNotSatisfiableExceptionRes(parsedOutput, context);
255
161
  default:
256
162
  const parsedBody = parsedOutput.body;
257
163
  return throwDefaultError({
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.504.0",
4
+ "version": "3.509.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-mediastore-data",
@@ -22,9 +22,9 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/client-sts": "3.504.0",
25
+ "@aws-sdk/client-sts": "3.507.0",
26
26
  "@aws-sdk/core": "3.496.0",
27
- "@aws-sdk/credential-provider-node": "3.504.0",
27
+ "@aws-sdk/credential-provider-node": "3.509.0",
28
28
  "@aws-sdk/middleware-host-header": "3.502.0",
29
29
  "@aws-sdk/middleware-logger": "3.502.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.502.0",