@aws-sdk/client-mediastore 3.927.0 → 3.929.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist-cjs/index.js +454 -719
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/MediaStoreClient.js +2 -0
  4. package/dist-es/commands/CreateContainerCommand.js +3 -9
  5. package/dist-es/commands/DeleteContainerCommand.js +3 -9
  6. package/dist-es/commands/DeleteContainerPolicyCommand.js +3 -9
  7. package/dist-es/commands/DeleteCorsPolicyCommand.js +3 -9
  8. package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -9
  9. package/dist-es/commands/DeleteMetricPolicyCommand.js +3 -9
  10. package/dist-es/commands/DescribeContainerCommand.js +3 -9
  11. package/dist-es/commands/GetContainerPolicyCommand.js +3 -9
  12. package/dist-es/commands/GetCorsPolicyCommand.js +3 -9
  13. package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -9
  14. package/dist-es/commands/GetMetricPolicyCommand.js +3 -9
  15. package/dist-es/commands/ListContainersCommand.js +3 -9
  16. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  17. package/dist-es/commands/PutContainerPolicyCommand.js +3 -9
  18. package/dist-es/commands/PutCorsPolicyCommand.js +3 -9
  19. package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -9
  20. package/dist-es/commands/PutMetricPolicyCommand.js +3 -9
  21. package/dist-es/commands/StartAccessLoggingCommand.js +3 -9
  22. package/dist-es/commands/StopAccessLoggingCommand.js +3 -9
  23. package/dist-es/commands/TagResourceCommand.js +3 -9
  24. package/dist-es/commands/UntagResourceCommand.js +3 -9
  25. package/dist-es/runtimeConfig.shared.js +7 -0
  26. package/dist-es/schemas/schemas_0.js +398 -0
  27. package/dist-types/MediaStoreClient.d.ts +10 -1
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +86 -0
  33. package/dist-types/ts3.4/MediaStoreClient.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  38. package/dist-types/ts3.4/schemas/schemas_0.d.ts +91 -0
  39. package/package.json +5 -5
  40. package/dist-es/protocols/Aws_json1_1.js +0 -558
  41. package/dist-types/protocols/Aws_json1_1.d.ts +0 -191
  42. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -257
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class MediaStoreClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,12 +110,12 @@ class MediaStoreClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class MediaStoreServiceException extends smithyClient.ServiceException {
113
+ let MediaStoreServiceException$1 = class MediaStoreServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, MediaStoreServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  const MethodName = {
121
121
  DELETE: "DELETE",
@@ -128,7 +128,7 @@ const ContainerStatus = {
128
128
  CREATING: "CREATING",
129
129
  DELETING: "DELETING",
130
130
  };
131
- class ContainerInUseException extends MediaStoreServiceException {
131
+ let ContainerInUseException$1 = class ContainerInUseException extends MediaStoreServiceException$1 {
132
132
  name = "ContainerInUseException";
133
133
  $fault = "client";
134
134
  Message;
@@ -141,12 +141,12 @@ class ContainerInUseException extends MediaStoreServiceException {
141
141
  Object.setPrototypeOf(this, ContainerInUseException.prototype);
142
142
  this.Message = opts.Message;
143
143
  }
144
- }
144
+ };
145
145
  const ContainerLevelMetrics = {
146
146
  DISABLED: "DISABLED",
147
147
  ENABLED: "ENABLED",
148
148
  };
149
- class ContainerNotFoundException extends MediaStoreServiceException {
149
+ let ContainerNotFoundException$1 = class ContainerNotFoundException extends MediaStoreServiceException$1 {
150
150
  name = "ContainerNotFoundException";
151
151
  $fault = "client";
152
152
  Message;
@@ -159,8 +159,8 @@ class ContainerNotFoundException extends MediaStoreServiceException {
159
159
  Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
160
160
  this.Message = opts.Message;
161
161
  }
162
- }
163
- class CorsPolicyNotFoundException extends MediaStoreServiceException {
162
+ };
163
+ let CorsPolicyNotFoundException$1 = class CorsPolicyNotFoundException extends MediaStoreServiceException$1 {
164
164
  name = "CorsPolicyNotFoundException";
165
165
  $fault = "client";
166
166
  Message;
@@ -173,8 +173,8 @@ class CorsPolicyNotFoundException extends MediaStoreServiceException {
173
173
  Object.setPrototypeOf(this, CorsPolicyNotFoundException.prototype);
174
174
  this.Message = opts.Message;
175
175
  }
176
- }
177
- class InternalServerError extends MediaStoreServiceException {
176
+ };
177
+ let InternalServerError$1 = class InternalServerError extends MediaStoreServiceException$1 {
178
178
  name = "InternalServerError";
179
179
  $fault = "server";
180
180
  Message;
@@ -187,8 +187,8 @@ class InternalServerError extends MediaStoreServiceException {
187
187
  Object.setPrototypeOf(this, InternalServerError.prototype);
188
188
  this.Message = opts.Message;
189
189
  }
190
- }
191
- class LimitExceededException extends MediaStoreServiceException {
190
+ };
191
+ let LimitExceededException$1 = class LimitExceededException extends MediaStoreServiceException$1 {
192
192
  name = "LimitExceededException";
193
193
  $fault = "client";
194
194
  Message;
@@ -201,8 +201,8 @@ class LimitExceededException extends MediaStoreServiceException {
201
201
  Object.setPrototypeOf(this, LimitExceededException.prototype);
202
202
  this.Message = opts.Message;
203
203
  }
204
- }
205
- class PolicyNotFoundException extends MediaStoreServiceException {
204
+ };
205
+ let PolicyNotFoundException$1 = class PolicyNotFoundException extends MediaStoreServiceException$1 {
206
206
  name = "PolicyNotFoundException";
207
207
  $fault = "client";
208
208
  Message;
@@ -215,572 +215,407 @@ class PolicyNotFoundException extends MediaStoreServiceException {
215
215
  Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
216
216
  this.Message = opts.Message;
217
217
  }
218
- }
219
-
220
- const se_CreateContainerCommand = async (input, context) => {
221
- const headers = sharedHeaders("CreateContainer");
222
- let body;
223
- body = JSON.stringify(smithyClient._json(input));
224
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
- };
226
- const se_DeleteContainerCommand = async (input, context) => {
227
- const headers = sharedHeaders("DeleteContainer");
228
- let body;
229
- body = JSON.stringify(smithyClient._json(input));
230
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
- };
232
- const se_DeleteContainerPolicyCommand = async (input, context) => {
233
- const headers = sharedHeaders("DeleteContainerPolicy");
234
- let body;
235
- body = JSON.stringify(smithyClient._json(input));
236
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
- };
238
- const se_DeleteCorsPolicyCommand = async (input, context) => {
239
- const headers = sharedHeaders("DeleteCorsPolicy");
240
- let body;
241
- body = JSON.stringify(smithyClient._json(input));
242
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
243
- };
244
- const se_DeleteLifecyclePolicyCommand = async (input, context) => {
245
- const headers = sharedHeaders("DeleteLifecyclePolicy");
246
- let body;
247
- body = JSON.stringify(smithyClient._json(input));
248
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
249
- };
250
- const se_DeleteMetricPolicyCommand = async (input, context) => {
251
- const headers = sharedHeaders("DeleteMetricPolicy");
252
- let body;
253
- body = JSON.stringify(smithyClient._json(input));
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- const se_DescribeContainerCommand = async (input, context) => {
257
- const headers = sharedHeaders("DescribeContainer");
258
- let body;
259
- body = JSON.stringify(smithyClient._json(input));
260
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
261
- };
262
- const se_GetContainerPolicyCommand = async (input, context) => {
263
- const headers = sharedHeaders("GetContainerPolicy");
264
- let body;
265
- body = JSON.stringify(smithyClient._json(input));
266
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
- };
268
- const se_GetCorsPolicyCommand = async (input, context) => {
269
- const headers = sharedHeaders("GetCorsPolicy");
270
- let body;
271
- body = JSON.stringify(smithyClient._json(input));
272
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
- };
274
- const se_GetLifecyclePolicyCommand = async (input, context) => {
275
- const headers = sharedHeaders("GetLifecyclePolicy");
276
- let body;
277
- body = JSON.stringify(smithyClient._json(input));
278
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
279
- };
280
- const se_GetMetricPolicyCommand = async (input, context) => {
281
- const headers = sharedHeaders("GetMetricPolicy");
282
- let body;
283
- body = JSON.stringify(smithyClient._json(input));
284
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
- };
286
- const se_ListContainersCommand = async (input, context) => {
287
- const headers = sharedHeaders("ListContainers");
288
- let body;
289
- body = JSON.stringify(smithyClient._json(input));
290
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
291
- };
292
- const se_ListTagsForResourceCommand = async (input, context) => {
293
- const headers = sharedHeaders("ListTagsForResource");
294
- let body;
295
- body = JSON.stringify(smithyClient._json(input));
296
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
- };
298
- const se_PutContainerPolicyCommand = async (input, context) => {
299
- const headers = sharedHeaders("PutContainerPolicy");
300
- let body;
301
- body = JSON.stringify(smithyClient._json(input));
302
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
303
- };
304
- const se_PutCorsPolicyCommand = async (input, context) => {
305
- const headers = sharedHeaders("PutCorsPolicy");
306
- let body;
307
- body = JSON.stringify(smithyClient._json(input));
308
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
- };
310
- const se_PutLifecyclePolicyCommand = async (input, context) => {
311
- const headers = sharedHeaders("PutLifecyclePolicy");
312
- let body;
313
- body = JSON.stringify(smithyClient._json(input));
314
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
- };
316
- const se_PutMetricPolicyCommand = async (input, context) => {
317
- const headers = sharedHeaders("PutMetricPolicy");
318
- let body;
319
- body = JSON.stringify(smithyClient._json(input));
320
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
321
- };
322
- const se_StartAccessLoggingCommand = async (input, context) => {
323
- const headers = sharedHeaders("StartAccessLogging");
324
- let body;
325
- body = JSON.stringify(smithyClient._json(input));
326
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
- };
328
- const se_StopAccessLoggingCommand = async (input, context) => {
329
- const headers = sharedHeaders("StopAccessLogging");
330
- let body;
331
- body = JSON.stringify(smithyClient._json(input));
332
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
333
- };
334
- const se_TagResourceCommand = async (input, context) => {
335
- const headers = sharedHeaders("TagResource");
336
- let body;
337
- body = JSON.stringify(smithyClient._json(input));
338
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
- };
340
- const se_UntagResourceCommand = async (input, context) => {
341
- const headers = sharedHeaders("UntagResource");
342
- let body;
343
- body = JSON.stringify(smithyClient._json(input));
344
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
345
- };
346
- const de_CreateContainerCommand = async (output, context) => {
347
- if (output.statusCode >= 300) {
348
- return de_CommandError(output, context);
349
- }
350
- const data = await core$1.parseJsonBody(output.body, context);
351
- let contents = {};
352
- contents = de_CreateContainerOutput(data);
353
- const response = {
354
- $metadata: deserializeMetadata(output),
355
- ...contents,
356
- };
357
- return response;
358
- };
359
- const de_DeleteContainerCommand = async (output, context) => {
360
- if (output.statusCode >= 300) {
361
- return de_CommandError(output, context);
362
- }
363
- const data = await core$1.parseJsonBody(output.body, context);
364
- let contents = {};
365
- contents = smithyClient._json(data);
366
- const response = {
367
- $metadata: deserializeMetadata(output),
368
- ...contents,
369
- };
370
- return response;
371
- };
372
- const de_DeleteContainerPolicyCommand = async (output, context) => {
373
- if (output.statusCode >= 300) {
374
- return de_CommandError(output, context);
375
- }
376
- const data = await core$1.parseJsonBody(output.body, context);
377
- let contents = {};
378
- contents = smithyClient._json(data);
379
- const response = {
380
- $metadata: deserializeMetadata(output),
381
- ...contents,
382
- };
383
- return response;
384
- };
385
- const de_DeleteCorsPolicyCommand = async (output, context) => {
386
- if (output.statusCode >= 300) {
387
- return de_CommandError(output, context);
388
- }
389
- const data = await core$1.parseJsonBody(output.body, context);
390
- let contents = {};
391
- contents = smithyClient._json(data);
392
- const response = {
393
- $metadata: deserializeMetadata(output),
394
- ...contents,
395
- };
396
- return response;
397
- };
398
- const de_DeleteLifecyclePolicyCommand = async (output, context) => {
399
- if (output.statusCode >= 300) {
400
- return de_CommandError(output, context);
401
- }
402
- const data = await core$1.parseJsonBody(output.body, context);
403
- let contents = {};
404
- contents = smithyClient._json(data);
405
- const response = {
406
- $metadata: deserializeMetadata(output),
407
- ...contents,
408
- };
409
- return response;
410
- };
411
- const de_DeleteMetricPolicyCommand = async (output, context) => {
412
- if (output.statusCode >= 300) {
413
- return de_CommandError(output, context);
414
- }
415
- const data = await core$1.parseJsonBody(output.body, context);
416
- let contents = {};
417
- contents = smithyClient._json(data);
418
- const response = {
419
- $metadata: deserializeMetadata(output),
420
- ...contents,
421
- };
422
- return response;
423
- };
424
- const de_DescribeContainerCommand = async (output, context) => {
425
- if (output.statusCode >= 300) {
426
- return de_CommandError(output, context);
427
- }
428
- const data = await core$1.parseJsonBody(output.body, context);
429
- let contents = {};
430
- contents = de_DescribeContainerOutput(data);
431
- const response = {
432
- $metadata: deserializeMetadata(output),
433
- ...contents,
434
- };
435
- return response;
436
- };
437
- const de_GetContainerPolicyCommand = async (output, context) => {
438
- if (output.statusCode >= 300) {
439
- return de_CommandError(output, context);
440
- }
441
- const data = await core$1.parseJsonBody(output.body, context);
442
- let contents = {};
443
- contents = smithyClient._json(data);
444
- const response = {
445
- $metadata: deserializeMetadata(output),
446
- ...contents,
447
- };
448
- return response;
449
- };
450
- const de_GetCorsPolicyCommand = async (output, context) => {
451
- if (output.statusCode >= 300) {
452
- return de_CommandError(output, context);
453
- }
454
- const data = await core$1.parseJsonBody(output.body, context);
455
- let contents = {};
456
- contents = smithyClient._json(data);
457
- const response = {
458
- $metadata: deserializeMetadata(output),
459
- ...contents,
460
- };
461
- return response;
462
- };
463
- const de_GetLifecyclePolicyCommand = async (output, context) => {
464
- if (output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const data = await core$1.parseJsonBody(output.body, context);
468
- let contents = {};
469
- contents = smithyClient._json(data);
470
- const response = {
471
- $metadata: deserializeMetadata(output),
472
- ...contents,
473
- };
474
- return response;
475
- };
476
- const de_GetMetricPolicyCommand = async (output, context) => {
477
- if (output.statusCode >= 300) {
478
- return de_CommandError(output, context);
479
- }
480
- const data = await core$1.parseJsonBody(output.body, context);
481
- let contents = {};
482
- contents = smithyClient._json(data);
483
- const response = {
484
- $metadata: deserializeMetadata(output),
485
- ...contents,
486
- };
487
- return response;
488
- };
489
- const de_ListContainersCommand = async (output, context) => {
490
- if (output.statusCode >= 300) {
491
- return de_CommandError(output, context);
492
- }
493
- const data = await core$1.parseJsonBody(output.body, context);
494
- let contents = {};
495
- contents = de_ListContainersOutput(data);
496
- const response = {
497
- $metadata: deserializeMetadata(output),
498
- ...contents,
499
- };
500
- return response;
501
- };
502
- const de_ListTagsForResourceCommand = async (output, context) => {
503
- if (output.statusCode >= 300) {
504
- return de_CommandError(output, context);
505
- }
506
- const data = await core$1.parseJsonBody(output.body, context);
507
- let contents = {};
508
- contents = smithyClient._json(data);
509
- const response = {
510
- $metadata: deserializeMetadata(output),
511
- ...contents,
512
- };
513
- return response;
514
- };
515
- const de_PutContainerPolicyCommand = async (output, context) => {
516
- if (output.statusCode >= 300) {
517
- return de_CommandError(output, context);
518
- }
519
- const data = await core$1.parseJsonBody(output.body, context);
520
- let contents = {};
521
- contents = smithyClient._json(data);
522
- const response = {
523
- $metadata: deserializeMetadata(output),
524
- ...contents,
525
- };
526
- return response;
527
- };
528
- const de_PutCorsPolicyCommand = async (output, context) => {
529
- if (output.statusCode >= 300) {
530
- return de_CommandError(output, context);
531
- }
532
- const data = await core$1.parseJsonBody(output.body, context);
533
- let contents = {};
534
- contents = smithyClient._json(data);
535
- const response = {
536
- $metadata: deserializeMetadata(output),
537
- ...contents,
538
- };
539
- return response;
540
- };
541
- const de_PutLifecyclePolicyCommand = async (output, context) => {
542
- if (output.statusCode >= 300) {
543
- return de_CommandError(output, context);
544
- }
545
- const data = await core$1.parseJsonBody(output.body, context);
546
- let contents = {};
547
- contents = smithyClient._json(data);
548
- const response = {
549
- $metadata: deserializeMetadata(output),
550
- ...contents,
551
- };
552
- return response;
553
218
  };
554
- const de_PutMetricPolicyCommand = async (output, context) => {
555
- if (output.statusCode >= 300) {
556
- return de_CommandError(output, context);
557
- }
558
- const data = await core$1.parseJsonBody(output.body, context);
559
- let contents = {};
560
- contents = smithyClient._json(data);
561
- const response = {
562
- $metadata: deserializeMetadata(output),
563
- ...contents,
564
- };
565
- return response;
566
- };
567
- const de_StartAccessLoggingCommand = async (output, context) => {
568
- if (output.statusCode >= 300) {
569
- return de_CommandError(output, context);
570
- }
571
- const data = await core$1.parseJsonBody(output.body, context);
572
- let contents = {};
573
- contents = smithyClient._json(data);
574
- const response = {
575
- $metadata: deserializeMetadata(output),
576
- ...contents,
577
- };
578
- return response;
579
- };
580
- const de_StopAccessLoggingCommand = async (output, context) => {
581
- if (output.statusCode >= 300) {
582
- return de_CommandError(output, context);
583
- }
584
- const data = await core$1.parseJsonBody(output.body, context);
585
- let contents = {};
586
- contents = smithyClient._json(data);
587
- const response = {
588
- $metadata: deserializeMetadata(output),
589
- ...contents,
590
- };
591
- return response;
592
- };
593
- const de_TagResourceCommand = async (output, context) => {
594
- if (output.statusCode >= 300) {
595
- return de_CommandError(output, context);
596
- }
597
- const data = await core$1.parseJsonBody(output.body, context);
598
- let contents = {};
599
- contents = smithyClient._json(data);
600
- const response = {
601
- $metadata: deserializeMetadata(output),
602
- ...contents,
603
- };
604
- return response;
605
- };
606
- const de_UntagResourceCommand = async (output, context) => {
607
- if (output.statusCode >= 300) {
608
- return de_CommandError(output, context);
609
- }
610
- const data = await core$1.parseJsonBody(output.body, context);
611
- let contents = {};
612
- contents = smithyClient._json(data);
613
- const response = {
614
- $metadata: deserializeMetadata(output),
615
- ...contents,
616
- };
617
- return response;
618
- };
619
- const de_CommandError = async (output, context) => {
620
- const parsedOutput = {
621
- ...output,
622
- body: await core$1.parseJsonErrorBody(output.body, context),
623
- };
624
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
625
- switch (errorCode) {
626
- case "ContainerInUseException":
627
- case "com.amazonaws.mediastore#ContainerInUseException":
628
- throw await de_ContainerInUseExceptionRes(parsedOutput);
629
- case "InternalServerError":
630
- case "com.amazonaws.mediastore#InternalServerError":
631
- throw await de_InternalServerErrorRes(parsedOutput);
632
- case "LimitExceededException":
633
- case "com.amazonaws.mediastore#LimitExceededException":
634
- throw await de_LimitExceededExceptionRes(parsedOutput);
635
- case "ContainerNotFoundException":
636
- case "com.amazonaws.mediastore#ContainerNotFoundException":
637
- throw await de_ContainerNotFoundExceptionRes(parsedOutput);
638
- case "PolicyNotFoundException":
639
- case "com.amazonaws.mediastore#PolicyNotFoundException":
640
- throw await de_PolicyNotFoundExceptionRes(parsedOutput);
641
- case "CorsPolicyNotFoundException":
642
- case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
643
- throw await de_CorsPolicyNotFoundExceptionRes(parsedOutput);
644
- default:
645
- const parsedBody = parsedOutput.body;
646
- return throwDefaultError({
647
- output,
648
- parsedBody,
649
- errorCode,
650
- });
651
- }
652
- };
653
- const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
654
- const body = parsedOutput.body;
655
- const deserialized = smithyClient._json(body);
656
- const exception = new ContainerInUseException({
657
- $metadata: deserializeMetadata(parsedOutput),
658
- ...deserialized,
659
- });
660
- return smithyClient.decorateServiceException(exception, body);
661
- };
662
- const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
663
- const body = parsedOutput.body;
664
- const deserialized = smithyClient._json(body);
665
- const exception = new ContainerNotFoundException({
666
- $metadata: deserializeMetadata(parsedOutput),
667
- ...deserialized,
668
- });
669
- return smithyClient.decorateServiceException(exception, body);
670
- };
671
- const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
672
- const body = parsedOutput.body;
673
- const deserialized = smithyClient._json(body);
674
- const exception = new CorsPolicyNotFoundException({
675
- $metadata: deserializeMetadata(parsedOutput),
676
- ...deserialized,
677
- });
678
- return smithyClient.decorateServiceException(exception, body);
679
- };
680
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
681
- const body = parsedOutput.body;
682
- const deserialized = smithyClient._json(body);
683
- const exception = new InternalServerError({
684
- $metadata: deserializeMetadata(parsedOutput),
685
- ...deserialized,
686
- });
687
- return smithyClient.decorateServiceException(exception, body);
688
- };
689
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
690
- const body = parsedOutput.body;
691
- const deserialized = smithyClient._json(body);
692
- const exception = new LimitExceededException({
693
- $metadata: deserializeMetadata(parsedOutput),
694
- ...deserialized,
695
- });
696
- return smithyClient.decorateServiceException(exception, body);
697
- };
698
- const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
699
- const body = parsedOutput.body;
700
- const deserialized = smithyClient._json(body);
701
- const exception = new PolicyNotFoundException({
702
- $metadata: deserializeMetadata(parsedOutput),
703
- ...deserialized,
704
- });
705
- return smithyClient.decorateServiceException(exception, body);
706
- };
707
- const de_Container = (output, context) => {
708
- return smithyClient.take(output, {
709
- ARN: smithyClient.expectString,
710
- AccessLoggingEnabled: smithyClient.expectBoolean,
711
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
712
- Endpoint: smithyClient.expectString,
713
- Name: smithyClient.expectString,
714
- Status: smithyClient.expectString,
715
- });
716
- };
717
- const de_ContainerList = (output, context) => {
718
- const retVal = (output || [])
719
- .filter((e) => e != null)
720
- .map((entry) => {
721
- return de_Container(entry);
722
- });
723
- return retVal;
724
- };
725
- const de_CreateContainerOutput = (output, context) => {
726
- return smithyClient.take(output, {
727
- Container: (_) => de_Container(_),
728
- });
729
- };
730
- const de_DescribeContainerOutput = (output, context) => {
731
- return smithyClient.take(output, {
732
- Container: (_) => de_Container(_),
733
- });
734
- };
735
- const de_ListContainersOutput = (output, context) => {
736
- return smithyClient.take(output, {
737
- Containers: (_) => de_ContainerList(_),
738
- NextToken: smithyClient.expectString,
739
- });
740
- };
741
- const deserializeMetadata = (output) => ({
742
- httpStatusCode: output.statusCode,
743
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
744
- extendedRequestId: output.headers["x-amz-id-2"],
745
- cfId: output.headers["x-amz-cf-id"],
746
- });
747
- const throwDefaultError = smithyClient.withBaseException(MediaStoreServiceException);
748
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
749
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
750
- const contents = {
751
- protocol,
752
- hostname,
753
- port,
754
- method: "POST",
755
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
756
- headers,
757
- };
758
- if (body !== undefined) {
759
- contents.body = body;
760
- }
761
- return new protocolHttp.HttpRequest(contents);
762
- };
763
- function sharedHeaders(operation) {
764
- return {
765
- "content-type": "application/x-amz-json-1.1",
766
- "x-amz-target": `MediaStore_20170901.${operation}`,
767
- };
768
- }
219
+
220
+ const _AH = "AllowedHeaders";
221
+ const _ALE = "AccessLoggingEnabled";
222
+ const _AM = "AllowedMethods";
223
+ const _AO = "AllowedOrigins";
224
+ const _ARN = "ARN";
225
+ const _C = "Container";
226
+ const _CC = "CreateContainer";
227
+ const _CCI = "CreateContainerInput";
228
+ const _CCO = "CreateContainerOutput";
229
+ const _CIUE = "ContainerInUseException";
230
+ const _CL = "ContainerList";
231
+ const _CLM = "ContainerLevelMetrics";
232
+ const _CN = "ContainerName";
233
+ const _CNFE = "ContainerNotFoundException";
234
+ const _CP = "CorsPolicy";
235
+ const _CPNFE = "CorsPolicyNotFoundException";
236
+ const _CR = "CorsRule";
237
+ const _CT = "CreationTime";
238
+ const _Co = "Containers";
239
+ const _DC = "DeleteContainer";
240
+ const _DCI = "DeleteContainerInput";
241
+ const _DCIe = "DescribeContainerInput";
242
+ const _DCO = "DeleteContainerOutput";
243
+ const _DCOe = "DescribeContainerOutput";
244
+ const _DCP = "DeleteContainerPolicy";
245
+ const _DCPI = "DeleteContainerPolicyInput";
246
+ const _DCPIe = "DeleteCorsPolicyInput";
247
+ const _DCPO = "DeleteContainerPolicyOutput";
248
+ const _DCPOe = "DeleteCorsPolicyOutput";
249
+ const _DCPe = "DeleteCorsPolicy";
250
+ const _DCe = "DescribeContainer";
251
+ const _DLP = "DeleteLifecyclePolicy";
252
+ const _DLPI = "DeleteLifecyclePolicyInput";
253
+ const _DLPO = "DeleteLifecyclePolicyOutput";
254
+ const _DMP = "DeleteMetricPolicy";
255
+ const _DMPI = "DeleteMetricPolicyInput";
256
+ const _DMPO = "DeleteMetricPolicyOutput";
257
+ const _E = "Endpoint";
258
+ const _EH = "ExposeHeaders";
259
+ const _GCP = "GetContainerPolicy";
260
+ const _GCPI = "GetContainerPolicyInput";
261
+ const _GCPIe = "GetCorsPolicyInput";
262
+ const _GCPO = "GetContainerPolicyOutput";
263
+ const _GCPOe = "GetCorsPolicyOutput";
264
+ const _GCPe = "GetCorsPolicy";
265
+ const _GLP = "GetLifecyclePolicy";
266
+ const _GLPI = "GetLifecyclePolicyInput";
267
+ const _GLPO = "GetLifecyclePolicyOutput";
268
+ const _GMP = "GetMetricPolicy";
269
+ const _GMPI = "GetMetricPolicyInput";
270
+ const _GMPO = "GetMetricPolicyOutput";
271
+ const _ISE = "InternalServerError";
272
+ const _K = "Key";
273
+ const _LC = "ListContainers";
274
+ const _LCI = "ListContainersInput";
275
+ const _LCO = "ListContainersOutput";
276
+ const _LEE = "LimitExceededException";
277
+ const _LP = "LifecyclePolicy";
278
+ const _LTFR = "ListTagsForResource";
279
+ const _LTFRI = "ListTagsForResourceInput";
280
+ const _LTFRO = "ListTagsForResourceOutput";
281
+ const _M = "Message";
282
+ const _MAS = "MaxAgeSeconds";
283
+ const _MP = "MetricPolicy";
284
+ const _MPR = "MetricPolicyRules";
285
+ const _MPRe = "MetricPolicyRule";
286
+ const _MR = "MaxResults";
287
+ const _N = "Name";
288
+ const _NT = "NextToken";
289
+ const _OG = "ObjectGroup";
290
+ const _OGN = "ObjectGroupName";
291
+ const _P = "Policy";
292
+ const _PCP = "PutContainerPolicy";
293
+ const _PCPI = "PutContainerPolicyInput";
294
+ const _PCPIu = "PutCorsPolicyInput";
295
+ const _PCPO = "PutContainerPolicyOutput";
296
+ const _PCPOu = "PutCorsPolicyOutput";
297
+ const _PCPu = "PutCorsPolicy";
298
+ const _PLP = "PutLifecyclePolicy";
299
+ const _PLPI = "PutLifecyclePolicyInput";
300
+ const _PLPO = "PutLifecyclePolicyOutput";
301
+ const _PMP = "PutMetricPolicy";
302
+ const _PMPI = "PutMetricPolicyInput";
303
+ const _PMPO = "PutMetricPolicyOutput";
304
+ const _PNFE = "PolicyNotFoundException";
305
+ const _R = "Resource";
306
+ const _S = "Status";
307
+ const _SAL = "StartAccessLogging";
308
+ const _SALI = "StartAccessLoggingInput";
309
+ const _SALIt = "StopAccessLoggingInput";
310
+ const _SALO = "StartAccessLoggingOutput";
311
+ const _SALOt = "StopAccessLoggingOutput";
312
+ const _SALt = "StopAccessLogging";
313
+ const _T = "Tags";
314
+ const _TK = "TagKeys";
315
+ const _TL = "TagList";
316
+ const _TR = "TagResource";
317
+ const _TRI = "TagResourceInput";
318
+ const _TRO = "TagResourceOutput";
319
+ const _Ta = "Tag";
320
+ const _UR = "UntagResource";
321
+ const _URI = "UntagResourceInput";
322
+ const _URO = "UntagResourceOutput";
323
+ const _V = "Value";
324
+ const _c = "client";
325
+ const _e = "error";
326
+ const _s = "server";
327
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.mediastore";
328
+ const n0 = "com.amazonaws.mediastore";
329
+ var Container = [3, n0, _C, 0, [_E, _CT, _ARN, _N, _S, _ALE], [0, 4, 0, 0, 0, 2]];
330
+ var ContainerInUseException = [
331
+ -3,
332
+ n0,
333
+ _CIUE,
334
+ {
335
+ [_e]: _c,
336
+ },
337
+ [_M],
338
+ [0],
339
+ ];
340
+ schema.TypeRegistry.for(n0).registerError(ContainerInUseException, ContainerInUseException$1);
341
+ var ContainerNotFoundException = [
342
+ -3,
343
+ n0,
344
+ _CNFE,
345
+ {
346
+ [_e]: _c,
347
+ },
348
+ [_M],
349
+ [0],
350
+ ];
351
+ schema.TypeRegistry.for(n0).registerError(ContainerNotFoundException, ContainerNotFoundException$1);
352
+ var CorsPolicyNotFoundException = [
353
+ -3,
354
+ n0,
355
+ _CPNFE,
356
+ {
357
+ [_e]: _c,
358
+ },
359
+ [_M],
360
+ [0],
361
+ ];
362
+ schema.TypeRegistry.for(n0).registerError(CorsPolicyNotFoundException, CorsPolicyNotFoundException$1);
363
+ var CorsRule = [
364
+ 3,
365
+ n0,
366
+ _CR,
367
+ 0,
368
+ [_AO, _AM, _AH, _MAS, _EH],
369
+ [64 | 0, 64 | 0, 64 | 0, 1, 64 | 0],
370
+ ];
371
+ var CreateContainerInput = [3, n0, _CCI, 0, [_CN, _T], [0, () => TagList]];
372
+ var CreateContainerOutput = [3, n0, _CCO, 0, [_C], [() => Container]];
373
+ var DeleteContainerInput = [3, n0, _DCI, 0, [_CN], [0]];
374
+ var DeleteContainerOutput = [3, n0, _DCO, 0, [], []];
375
+ var DeleteContainerPolicyInput = [3, n0, _DCPI, 0, [_CN], [0]];
376
+ var DeleteContainerPolicyOutput = [3, n0, _DCPO, 0, [], []];
377
+ var DeleteCorsPolicyInput = [3, n0, _DCPIe, 0, [_CN], [0]];
378
+ var DeleteCorsPolicyOutput = [3, n0, _DCPOe, 0, [], []];
379
+ var DeleteLifecyclePolicyInput = [3, n0, _DLPI, 0, [_CN], [0]];
380
+ var DeleteLifecyclePolicyOutput = [3, n0, _DLPO, 0, [], []];
381
+ var DeleteMetricPolicyInput = [3, n0, _DMPI, 0, [_CN], [0]];
382
+ var DeleteMetricPolicyOutput = [3, n0, _DMPO, 0, [], []];
383
+ var DescribeContainerInput = [3, n0, _DCIe, 0, [_CN], [0]];
384
+ var DescribeContainerOutput = [3, n0, _DCOe, 0, [_C], [() => Container]];
385
+ var GetContainerPolicyInput = [3, n0, _GCPI, 0, [_CN], [0]];
386
+ var GetContainerPolicyOutput = [3, n0, _GCPO, 0, [_P], [0]];
387
+ var GetCorsPolicyInput = [3, n0, _GCPIe, 0, [_CN], [0]];
388
+ var GetCorsPolicyOutput = [3, n0, _GCPOe, 0, [_CP], [() => CorsPolicy]];
389
+ var GetLifecyclePolicyInput = [3, n0, _GLPI, 0, [_CN], [0]];
390
+ var GetLifecyclePolicyOutput = [3, n0, _GLPO, 0, [_LP], [0]];
391
+ var GetMetricPolicyInput = [3, n0, _GMPI, 0, [_CN], [0]];
392
+ var GetMetricPolicyOutput = [3, n0, _GMPO, 0, [_MP], [() => MetricPolicy]];
393
+ var InternalServerError = [
394
+ -3,
395
+ n0,
396
+ _ISE,
397
+ {
398
+ [_e]: _s,
399
+ },
400
+ [_M],
401
+ [0],
402
+ ];
403
+ schema.TypeRegistry.for(n0).registerError(InternalServerError, InternalServerError$1);
404
+ var LimitExceededException = [
405
+ -3,
406
+ n0,
407
+ _LEE,
408
+ {
409
+ [_e]: _c,
410
+ },
411
+ [_M],
412
+ [0],
413
+ ];
414
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
415
+ var ListContainersInput = [3, n0, _LCI, 0, [_NT, _MR], [0, 1]];
416
+ var ListContainersOutput = [3, n0, _LCO, 0, [_Co, _NT], [() => ContainerList, 0]];
417
+ var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_R], [0]];
418
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_T], [() => TagList]];
419
+ var MetricPolicy = [3, n0, _MP, 0, [_CLM, _MPR], [0, () => MetricPolicyRules]];
420
+ var MetricPolicyRule = [3, n0, _MPRe, 0, [_OG, _OGN], [0, 0]];
421
+ var PolicyNotFoundException = [
422
+ -3,
423
+ n0,
424
+ _PNFE,
425
+ {
426
+ [_e]: _c,
427
+ },
428
+ [_M],
429
+ [0],
430
+ ];
431
+ schema.TypeRegistry.for(n0).registerError(PolicyNotFoundException, PolicyNotFoundException$1);
432
+ var PutContainerPolicyInput = [3, n0, _PCPI, 0, [_CN, _P], [0, 0]];
433
+ var PutContainerPolicyOutput = [3, n0, _PCPO, 0, [], []];
434
+ var PutCorsPolicyInput = [3, n0, _PCPIu, 0, [_CN, _CP], [0, () => CorsPolicy]];
435
+ var PutCorsPolicyOutput = [3, n0, _PCPOu, 0, [], []];
436
+ var PutLifecyclePolicyInput = [3, n0, _PLPI, 0, [_CN, _LP], [0, 0]];
437
+ var PutLifecyclePolicyOutput = [3, n0, _PLPO, 0, [], []];
438
+ var PutMetricPolicyInput = [3, n0, _PMPI, 0, [_CN, _MP], [0, () => MetricPolicy]];
439
+ var PutMetricPolicyOutput = [3, n0, _PMPO, 0, [], []];
440
+ var StartAccessLoggingInput = [3, n0, _SALI, 0, [_CN], [0]];
441
+ var StartAccessLoggingOutput = [3, n0, _SALO, 0, [], []];
442
+ var StopAccessLoggingInput = [3, n0, _SALIt, 0, [_CN], [0]];
443
+ var StopAccessLoggingOutput = [3, n0, _SALOt, 0, [], []];
444
+ var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]];
445
+ var TagResourceInput = [3, n0, _TRI, 0, [_R, _T], [0, () => TagList]];
446
+ var TagResourceOutput = [3, n0, _TRO, 0, [], []];
447
+ var UntagResourceInput = [3, n0, _URI, 0, [_R, _TK], [0, 64 | 0]];
448
+ var UntagResourceOutput = [3, n0, _URO, 0, [], []];
449
+ var MediaStoreServiceException = [-3, _sm, "MediaStoreServiceException", 0, [], []];
450
+ schema.TypeRegistry.for(_sm).registerError(MediaStoreServiceException, MediaStoreServiceException$1);
451
+ var ContainerList = [1, n0, _CL, 0, () => Container];
452
+ var CorsPolicy = [1, n0, _CP, 0, () => CorsRule];
453
+ var MetricPolicyRules = [1, n0, _MPR, 0, () => MetricPolicyRule];
454
+ var TagList = [1, n0, _TL, 0, () => Tag];
455
+ var CreateContainer = [
456
+ 9,
457
+ n0,
458
+ _CC,
459
+ 0,
460
+ () => CreateContainerInput,
461
+ () => CreateContainerOutput,
462
+ ];
463
+ var DeleteContainer = [
464
+ 9,
465
+ n0,
466
+ _DC,
467
+ 0,
468
+ () => DeleteContainerInput,
469
+ () => DeleteContainerOutput,
470
+ ];
471
+ var DeleteContainerPolicy = [
472
+ 9,
473
+ n0,
474
+ _DCP,
475
+ 0,
476
+ () => DeleteContainerPolicyInput,
477
+ () => DeleteContainerPolicyOutput,
478
+ ];
479
+ var DeleteCorsPolicy = [
480
+ 9,
481
+ n0,
482
+ _DCPe,
483
+ 0,
484
+ () => DeleteCorsPolicyInput,
485
+ () => DeleteCorsPolicyOutput,
486
+ ];
487
+ var DeleteLifecyclePolicy = [
488
+ 9,
489
+ n0,
490
+ _DLP,
491
+ 0,
492
+ () => DeleteLifecyclePolicyInput,
493
+ () => DeleteLifecyclePolicyOutput,
494
+ ];
495
+ var DeleteMetricPolicy = [
496
+ 9,
497
+ n0,
498
+ _DMP,
499
+ 0,
500
+ () => DeleteMetricPolicyInput,
501
+ () => DeleteMetricPolicyOutput,
502
+ ];
503
+ var DescribeContainer = [
504
+ 9,
505
+ n0,
506
+ _DCe,
507
+ 0,
508
+ () => DescribeContainerInput,
509
+ () => DescribeContainerOutput,
510
+ ];
511
+ var GetContainerPolicy = [
512
+ 9,
513
+ n0,
514
+ _GCP,
515
+ 0,
516
+ () => GetContainerPolicyInput,
517
+ () => GetContainerPolicyOutput,
518
+ ];
519
+ var GetCorsPolicy = [
520
+ 9,
521
+ n0,
522
+ _GCPe,
523
+ 0,
524
+ () => GetCorsPolicyInput,
525
+ () => GetCorsPolicyOutput,
526
+ ];
527
+ var GetLifecyclePolicy = [
528
+ 9,
529
+ n0,
530
+ _GLP,
531
+ 0,
532
+ () => GetLifecyclePolicyInput,
533
+ () => GetLifecyclePolicyOutput,
534
+ ];
535
+ var GetMetricPolicy = [
536
+ 9,
537
+ n0,
538
+ _GMP,
539
+ 0,
540
+ () => GetMetricPolicyInput,
541
+ () => GetMetricPolicyOutput,
542
+ ];
543
+ var ListContainers = [
544
+ 9,
545
+ n0,
546
+ _LC,
547
+ 0,
548
+ () => ListContainersInput,
549
+ () => ListContainersOutput,
550
+ ];
551
+ var ListTagsForResource = [
552
+ 9,
553
+ n0,
554
+ _LTFR,
555
+ 0,
556
+ () => ListTagsForResourceInput,
557
+ () => ListTagsForResourceOutput,
558
+ ];
559
+ var PutContainerPolicy = [
560
+ 9,
561
+ n0,
562
+ _PCP,
563
+ 0,
564
+ () => PutContainerPolicyInput,
565
+ () => PutContainerPolicyOutput,
566
+ ];
567
+ var PutCorsPolicy = [
568
+ 9,
569
+ n0,
570
+ _PCPu,
571
+ 0,
572
+ () => PutCorsPolicyInput,
573
+ () => PutCorsPolicyOutput,
574
+ ];
575
+ var PutLifecyclePolicy = [
576
+ 9,
577
+ n0,
578
+ _PLP,
579
+ 0,
580
+ () => PutLifecyclePolicyInput,
581
+ () => PutLifecyclePolicyOutput,
582
+ ];
583
+ var PutMetricPolicy = [
584
+ 9,
585
+ n0,
586
+ _PMP,
587
+ 0,
588
+ () => PutMetricPolicyInput,
589
+ () => PutMetricPolicyOutput,
590
+ ];
591
+ var StartAccessLogging = [
592
+ 9,
593
+ n0,
594
+ _SAL,
595
+ 0,
596
+ () => StartAccessLoggingInput,
597
+ () => StartAccessLoggingOutput,
598
+ ];
599
+ var StopAccessLogging = [
600
+ 9,
601
+ n0,
602
+ _SALt,
603
+ 0,
604
+ () => StopAccessLoggingInput,
605
+ () => StopAccessLoggingOutput,
606
+ ];
607
+ var TagResource = [9, n0, _TR, 0, () => TagResourceInput, () => TagResourceOutput];
608
+ var UntagResource = [9, n0, _UR, 0, () => UntagResourceInput, () => UntagResourceOutput];
769
609
 
770
610
  class CreateContainerCommand extends smithyClient.Command
771
611
  .classBuilder()
772
612
  .ep(commonParams)
773
613
  .m(function (Command, cs, config, o) {
774
- return [
775
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
776
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
777
- ];
614
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
778
615
  })
779
616
  .s("MediaStore_20170901", "CreateContainer", {})
780
617
  .n("MediaStoreClient", "CreateContainerCommand")
781
- .f(void 0, void 0)
782
- .ser(se_CreateContainerCommand)
783
- .de(de_CreateContainerCommand)
618
+ .sc(CreateContainer)
784
619
  .build() {
785
620
  }
786
621
 
@@ -788,16 +623,11 @@ class DeleteContainerCommand extends smithyClient.Command
788
623
  .classBuilder()
789
624
  .ep(commonParams)
790
625
  .m(function (Command, cs, config, o) {
791
- return [
792
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
793
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
794
- ];
626
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
795
627
  })
796
628
  .s("MediaStore_20170901", "DeleteContainer", {})
797
629
  .n("MediaStoreClient", "DeleteContainerCommand")
798
- .f(void 0, void 0)
799
- .ser(se_DeleteContainerCommand)
800
- .de(de_DeleteContainerCommand)
630
+ .sc(DeleteContainer)
801
631
  .build() {
802
632
  }
803
633
 
@@ -805,16 +635,11 @@ class DeleteContainerPolicyCommand extends smithyClient.Command
805
635
  .classBuilder()
806
636
  .ep(commonParams)
807
637
  .m(function (Command, cs, config, o) {
808
- return [
809
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
810
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
811
- ];
638
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
812
639
  })
813
640
  .s("MediaStore_20170901", "DeleteContainerPolicy", {})
814
641
  .n("MediaStoreClient", "DeleteContainerPolicyCommand")
815
- .f(void 0, void 0)
816
- .ser(se_DeleteContainerPolicyCommand)
817
- .de(de_DeleteContainerPolicyCommand)
642
+ .sc(DeleteContainerPolicy)
818
643
  .build() {
819
644
  }
820
645
 
@@ -822,16 +647,11 @@ class DeleteCorsPolicyCommand extends smithyClient.Command
822
647
  .classBuilder()
823
648
  .ep(commonParams)
824
649
  .m(function (Command, cs, config, o) {
825
- return [
826
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
827
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
828
- ];
650
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
829
651
  })
830
652
  .s("MediaStore_20170901", "DeleteCorsPolicy", {})
831
653
  .n("MediaStoreClient", "DeleteCorsPolicyCommand")
832
- .f(void 0, void 0)
833
- .ser(se_DeleteCorsPolicyCommand)
834
- .de(de_DeleteCorsPolicyCommand)
654
+ .sc(DeleteCorsPolicy)
835
655
  .build() {
836
656
  }
837
657
 
@@ -839,16 +659,11 @@ class DeleteLifecyclePolicyCommand extends smithyClient.Command
839
659
  .classBuilder()
840
660
  .ep(commonParams)
841
661
  .m(function (Command, cs, config, o) {
842
- return [
843
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
844
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
845
- ];
662
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
846
663
  })
847
664
  .s("MediaStore_20170901", "DeleteLifecyclePolicy", {})
848
665
  .n("MediaStoreClient", "DeleteLifecyclePolicyCommand")
849
- .f(void 0, void 0)
850
- .ser(se_DeleteLifecyclePolicyCommand)
851
- .de(de_DeleteLifecyclePolicyCommand)
666
+ .sc(DeleteLifecyclePolicy)
852
667
  .build() {
853
668
  }
854
669
 
@@ -856,16 +671,11 @@ class DeleteMetricPolicyCommand extends smithyClient.Command
856
671
  .classBuilder()
857
672
  .ep(commonParams)
858
673
  .m(function (Command, cs, config, o) {
859
- return [
860
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
861
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
862
- ];
674
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
863
675
  })
864
676
  .s("MediaStore_20170901", "DeleteMetricPolicy", {})
865
677
  .n("MediaStoreClient", "DeleteMetricPolicyCommand")
866
- .f(void 0, void 0)
867
- .ser(se_DeleteMetricPolicyCommand)
868
- .de(de_DeleteMetricPolicyCommand)
678
+ .sc(DeleteMetricPolicy)
869
679
  .build() {
870
680
  }
871
681
 
@@ -873,16 +683,11 @@ class DescribeContainerCommand extends smithyClient.Command
873
683
  .classBuilder()
874
684
  .ep(commonParams)
875
685
  .m(function (Command, cs, config, o) {
876
- return [
877
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
878
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
879
- ];
686
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
880
687
  })
881
688
  .s("MediaStore_20170901", "DescribeContainer", {})
882
689
  .n("MediaStoreClient", "DescribeContainerCommand")
883
- .f(void 0, void 0)
884
- .ser(se_DescribeContainerCommand)
885
- .de(de_DescribeContainerCommand)
690
+ .sc(DescribeContainer)
886
691
  .build() {
887
692
  }
888
693
 
@@ -890,16 +695,11 @@ class GetContainerPolicyCommand extends smithyClient.Command
890
695
  .classBuilder()
891
696
  .ep(commonParams)
892
697
  .m(function (Command, cs, config, o) {
893
- return [
894
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
895
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
896
- ];
698
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
897
699
  })
898
700
  .s("MediaStore_20170901", "GetContainerPolicy", {})
899
701
  .n("MediaStoreClient", "GetContainerPolicyCommand")
900
- .f(void 0, void 0)
901
- .ser(se_GetContainerPolicyCommand)
902
- .de(de_GetContainerPolicyCommand)
702
+ .sc(GetContainerPolicy)
903
703
  .build() {
904
704
  }
905
705
 
@@ -907,16 +707,11 @@ class GetCorsPolicyCommand extends smithyClient.Command
907
707
  .classBuilder()
908
708
  .ep(commonParams)
909
709
  .m(function (Command, cs, config, o) {
910
- return [
911
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
912
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
913
- ];
710
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
914
711
  })
915
712
  .s("MediaStore_20170901", "GetCorsPolicy", {})
916
713
  .n("MediaStoreClient", "GetCorsPolicyCommand")
917
- .f(void 0, void 0)
918
- .ser(se_GetCorsPolicyCommand)
919
- .de(de_GetCorsPolicyCommand)
714
+ .sc(GetCorsPolicy)
920
715
  .build() {
921
716
  }
922
717
 
@@ -924,16 +719,11 @@ class GetLifecyclePolicyCommand extends smithyClient.Command
924
719
  .classBuilder()
925
720
  .ep(commonParams)
926
721
  .m(function (Command, cs, config, o) {
927
- return [
928
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
929
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
930
- ];
722
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
931
723
  })
932
724
  .s("MediaStore_20170901", "GetLifecyclePolicy", {})
933
725
  .n("MediaStoreClient", "GetLifecyclePolicyCommand")
934
- .f(void 0, void 0)
935
- .ser(se_GetLifecyclePolicyCommand)
936
- .de(de_GetLifecyclePolicyCommand)
726
+ .sc(GetLifecyclePolicy)
937
727
  .build() {
938
728
  }
939
729
 
@@ -941,16 +731,11 @@ class GetMetricPolicyCommand extends smithyClient.Command
941
731
  .classBuilder()
942
732
  .ep(commonParams)
943
733
  .m(function (Command, cs, config, o) {
944
- return [
945
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
946
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
947
- ];
734
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
948
735
  })
949
736
  .s("MediaStore_20170901", "GetMetricPolicy", {})
950
737
  .n("MediaStoreClient", "GetMetricPolicyCommand")
951
- .f(void 0, void 0)
952
- .ser(se_GetMetricPolicyCommand)
953
- .de(de_GetMetricPolicyCommand)
738
+ .sc(GetMetricPolicy)
954
739
  .build() {
955
740
  }
956
741
 
@@ -958,16 +743,11 @@ class ListContainersCommand extends smithyClient.Command
958
743
  .classBuilder()
959
744
  .ep(commonParams)
960
745
  .m(function (Command, cs, config, o) {
961
- return [
962
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
963
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
964
- ];
746
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
965
747
  })
966
748
  .s("MediaStore_20170901", "ListContainers", {})
967
749
  .n("MediaStoreClient", "ListContainersCommand")
968
- .f(void 0, void 0)
969
- .ser(se_ListContainersCommand)
970
- .de(de_ListContainersCommand)
750
+ .sc(ListContainers)
971
751
  .build() {
972
752
  }
973
753
 
@@ -975,16 +755,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
975
755
  .classBuilder()
976
756
  .ep(commonParams)
977
757
  .m(function (Command, cs, config, o) {
978
- return [
979
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
980
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
981
- ];
758
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
982
759
  })
983
760
  .s("MediaStore_20170901", "ListTagsForResource", {})
984
761
  .n("MediaStoreClient", "ListTagsForResourceCommand")
985
- .f(void 0, void 0)
986
- .ser(se_ListTagsForResourceCommand)
987
- .de(de_ListTagsForResourceCommand)
762
+ .sc(ListTagsForResource)
988
763
  .build() {
989
764
  }
990
765
 
@@ -992,16 +767,11 @@ class PutContainerPolicyCommand extends smithyClient.Command
992
767
  .classBuilder()
993
768
  .ep(commonParams)
994
769
  .m(function (Command, cs, config, o) {
995
- return [
996
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
997
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
998
- ];
770
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
999
771
  })
1000
772
  .s("MediaStore_20170901", "PutContainerPolicy", {})
1001
773
  .n("MediaStoreClient", "PutContainerPolicyCommand")
1002
- .f(void 0, void 0)
1003
- .ser(se_PutContainerPolicyCommand)
1004
- .de(de_PutContainerPolicyCommand)
774
+ .sc(PutContainerPolicy)
1005
775
  .build() {
1006
776
  }
1007
777
 
@@ -1009,16 +779,11 @@ class PutCorsPolicyCommand extends smithyClient.Command
1009
779
  .classBuilder()
1010
780
  .ep(commonParams)
1011
781
  .m(function (Command, cs, config, o) {
1012
- return [
1013
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1014
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1015
- ];
782
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1016
783
  })
1017
784
  .s("MediaStore_20170901", "PutCorsPolicy", {})
1018
785
  .n("MediaStoreClient", "PutCorsPolicyCommand")
1019
- .f(void 0, void 0)
1020
- .ser(se_PutCorsPolicyCommand)
1021
- .de(de_PutCorsPolicyCommand)
786
+ .sc(PutCorsPolicy)
1022
787
  .build() {
1023
788
  }
1024
789
 
@@ -1026,16 +791,11 @@ class PutLifecyclePolicyCommand extends smithyClient.Command
1026
791
  .classBuilder()
1027
792
  .ep(commonParams)
1028
793
  .m(function (Command, cs, config, o) {
1029
- return [
1030
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1031
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1032
- ];
794
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1033
795
  })
1034
796
  .s("MediaStore_20170901", "PutLifecyclePolicy", {})
1035
797
  .n("MediaStoreClient", "PutLifecyclePolicyCommand")
1036
- .f(void 0, void 0)
1037
- .ser(se_PutLifecyclePolicyCommand)
1038
- .de(de_PutLifecyclePolicyCommand)
798
+ .sc(PutLifecyclePolicy)
1039
799
  .build() {
1040
800
  }
1041
801
 
@@ -1043,16 +803,11 @@ class PutMetricPolicyCommand extends smithyClient.Command
1043
803
  .classBuilder()
1044
804
  .ep(commonParams)
1045
805
  .m(function (Command, cs, config, o) {
1046
- return [
1047
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1048
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1049
- ];
806
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1050
807
  })
1051
808
  .s("MediaStore_20170901", "PutMetricPolicy", {})
1052
809
  .n("MediaStoreClient", "PutMetricPolicyCommand")
1053
- .f(void 0, void 0)
1054
- .ser(se_PutMetricPolicyCommand)
1055
- .de(de_PutMetricPolicyCommand)
810
+ .sc(PutMetricPolicy)
1056
811
  .build() {
1057
812
  }
1058
813
 
@@ -1060,16 +815,11 @@ class StartAccessLoggingCommand extends smithyClient.Command
1060
815
  .classBuilder()
1061
816
  .ep(commonParams)
1062
817
  .m(function (Command, cs, config, o) {
1063
- return [
1064
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1065
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1066
- ];
818
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1067
819
  })
1068
820
  .s("MediaStore_20170901", "StartAccessLogging", {})
1069
821
  .n("MediaStoreClient", "StartAccessLoggingCommand")
1070
- .f(void 0, void 0)
1071
- .ser(se_StartAccessLoggingCommand)
1072
- .de(de_StartAccessLoggingCommand)
822
+ .sc(StartAccessLogging)
1073
823
  .build() {
1074
824
  }
1075
825
 
@@ -1077,16 +827,11 @@ class StopAccessLoggingCommand extends smithyClient.Command
1077
827
  .classBuilder()
1078
828
  .ep(commonParams)
1079
829
  .m(function (Command, cs, config, o) {
1080
- return [
1081
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1082
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1083
- ];
830
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1084
831
  })
1085
832
  .s("MediaStore_20170901", "StopAccessLogging", {})
1086
833
  .n("MediaStoreClient", "StopAccessLoggingCommand")
1087
- .f(void 0, void 0)
1088
- .ser(se_StopAccessLoggingCommand)
1089
- .de(de_StopAccessLoggingCommand)
834
+ .sc(StopAccessLogging)
1090
835
  .build() {
1091
836
  }
1092
837
 
@@ -1094,16 +839,11 @@ class TagResourceCommand extends smithyClient.Command
1094
839
  .classBuilder()
1095
840
  .ep(commonParams)
1096
841
  .m(function (Command, cs, config, o) {
1097
- return [
1098
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1099
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1100
- ];
842
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1101
843
  })
1102
844
  .s("MediaStore_20170901", "TagResource", {})
1103
845
  .n("MediaStoreClient", "TagResourceCommand")
1104
- .f(void 0, void 0)
1105
- .ser(se_TagResourceCommand)
1106
- .de(de_TagResourceCommand)
846
+ .sc(TagResource)
1107
847
  .build() {
1108
848
  }
1109
849
 
@@ -1111,16 +851,11 @@ class UntagResourceCommand extends smithyClient.Command
1111
851
  .classBuilder()
1112
852
  .ep(commonParams)
1113
853
  .m(function (Command, cs, config, o) {
1114
- return [
1115
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1116
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1117
- ];
854
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1118
855
  })
1119
856
  .s("MediaStore_20170901", "UntagResource", {})
1120
857
  .n("MediaStoreClient", "UntagResourceCommand")
1121
- .f(void 0, void 0)
1122
- .ser(se_UntagResourceCommand)
1123
- .de(de_UntagResourceCommand)
858
+ .sc(UntagResource)
1124
859
  .build() {
1125
860
  }
1126
861
 
@@ -1161,11 +896,11 @@ Object.defineProperty(exports, "__Client", {
1161
896
  enumerable: true,
1162
897
  get: function () { return smithyClient.Client; }
1163
898
  });
1164
- exports.ContainerInUseException = ContainerInUseException;
899
+ exports.ContainerInUseException = ContainerInUseException$1;
1165
900
  exports.ContainerLevelMetrics = ContainerLevelMetrics;
1166
- exports.ContainerNotFoundException = ContainerNotFoundException;
901
+ exports.ContainerNotFoundException = ContainerNotFoundException$1;
1167
902
  exports.ContainerStatus = ContainerStatus;
1168
- exports.CorsPolicyNotFoundException = CorsPolicyNotFoundException;
903
+ exports.CorsPolicyNotFoundException = CorsPolicyNotFoundException$1;
1169
904
  exports.CreateContainerCommand = CreateContainerCommand;
1170
905
  exports.DeleteContainerCommand = DeleteContainerCommand;
1171
906
  exports.DeleteContainerPolicyCommand = DeleteContainerPolicyCommand;
@@ -1177,15 +912,15 @@ exports.GetContainerPolicyCommand = GetContainerPolicyCommand;
1177
912
  exports.GetCorsPolicyCommand = GetCorsPolicyCommand;
1178
913
  exports.GetLifecyclePolicyCommand = GetLifecyclePolicyCommand;
1179
914
  exports.GetMetricPolicyCommand = GetMetricPolicyCommand;
1180
- exports.InternalServerError = InternalServerError;
1181
- exports.LimitExceededException = LimitExceededException;
915
+ exports.InternalServerError = InternalServerError$1;
916
+ exports.LimitExceededException = LimitExceededException$1;
1182
917
  exports.ListContainersCommand = ListContainersCommand;
1183
918
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1184
919
  exports.MediaStore = MediaStore;
1185
920
  exports.MediaStoreClient = MediaStoreClient;
1186
- exports.MediaStoreServiceException = MediaStoreServiceException;
921
+ exports.MediaStoreServiceException = MediaStoreServiceException$1;
1187
922
  exports.MethodName = MethodName;
1188
- exports.PolicyNotFoundException = PolicyNotFoundException;
923
+ exports.PolicyNotFoundException = PolicyNotFoundException$1;
1189
924
  exports.PutContainerPolicyCommand = PutContainerPolicyCommand;
1190
925
  exports.PutCorsPolicyCommand = PutCorsPolicyCommand;
1191
926
  exports.PutLifecyclePolicyCommand = PutLifecyclePolicyCommand;