@aws-sdk/client-mediastore 3.1074.0 → 3.1076.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
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultMediaStoreHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateContainer$, DeleteContainer$, DeleteContainerPolicy$, DeleteCorsPolicy$, DeleteLifecyclePolicy$, DeleteMetricPolicy$, DescribeContainer$, GetContainerPolicy$, GetCorsPolicy$, GetLifecyclePolicy$, GetMetricPolicy$, ListContainers$, ListTagsForResource$, PutContainerPolicy$, PutCorsPolicy$, PutLifecyclePolicy$, PutMetricPolicy$, StartAccessLogging$, StopAccessLogging$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { MediaStoreServiceException } = require("./models/MediaStoreServiceException");
18
- exports.MediaStoreServiceException = MediaStoreServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultMediaStoreHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "mediastore",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultMediaStoreHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,691 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://mediastore-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://mediastore-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://mediastore.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://mediastore.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class MediaStoreServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, MediaStoreServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class ContainerInUseException extends MediaStoreServiceException {
140
+ name = "ContainerInUseException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "ContainerInUseException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, ContainerInUseException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class ContainerNotFoundException extends MediaStoreServiceException {
154
+ name = "ContainerNotFoundException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ContainerNotFoundException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class CorsPolicyNotFoundException extends MediaStoreServiceException {
168
+ name = "CorsPolicyNotFoundException";
169
+ $fault = "client";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "CorsPolicyNotFoundException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, CorsPolicyNotFoundException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+ class InternalServerError extends MediaStoreServiceException {
182
+ name = "InternalServerError";
183
+ $fault = "server";
184
+ Message;
185
+ constructor(opts) {
186
+ super({
187
+ name: "InternalServerError",
188
+ $fault: "server",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, InternalServerError.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ }
195
+ class LimitExceededException extends MediaStoreServiceException {
196
+ name = "LimitExceededException";
197
+ $fault = "client";
198
+ Message;
199
+ constructor(opts) {
200
+ super({
201
+ name: "LimitExceededException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
206
+ this.Message = opts.Message;
207
+ }
208
+ }
209
+ class PolicyNotFoundException extends MediaStoreServiceException {
210
+ name = "PolicyNotFoundException";
211
+ $fault = "client";
212
+ Message;
213
+ constructor(opts) {
214
+ super({
215
+ name: "PolicyNotFoundException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+
224
+ const _AH = "AllowedHeaders";
225
+ const _ALE = "AccessLoggingEnabled";
226
+ const _AM = "AllowedMethods";
227
+ const _AO = "AllowedOrigins";
228
+ const _ARN = "ARN";
229
+ const _C = "Container";
230
+ const _CC = "CreateContainer";
231
+ const _CCI = "CreateContainerInput";
232
+ const _CCO = "CreateContainerOutput";
233
+ const _CIUE = "ContainerInUseException";
234
+ const _CL = "ContainerList";
235
+ const _CLM = "ContainerLevelMetrics";
236
+ const _CN = "ContainerName";
237
+ const _CNFE = "ContainerNotFoundException";
238
+ const _CP = "CorsPolicy";
239
+ const _CPNFE = "CorsPolicyNotFoundException";
240
+ const _CR = "CorsRule";
241
+ const _CT = "CreationTime";
242
+ const _Co = "Containers";
243
+ const _DC = "DeleteContainer";
244
+ const _DCI = "DeleteContainerInput";
245
+ const _DCIe = "DescribeContainerInput";
246
+ const _DCO = "DeleteContainerOutput";
247
+ const _DCOe = "DescribeContainerOutput";
248
+ const _DCP = "DeleteContainerPolicy";
249
+ const _DCPI = "DeleteContainerPolicyInput";
250
+ const _DCPIe = "DeleteCorsPolicyInput";
251
+ const _DCPO = "DeleteContainerPolicyOutput";
252
+ const _DCPOe = "DeleteCorsPolicyOutput";
253
+ const _DCPe = "DeleteCorsPolicy";
254
+ const _DCe = "DescribeContainer";
255
+ const _DLP = "DeleteLifecyclePolicy";
256
+ const _DLPI = "DeleteLifecyclePolicyInput";
257
+ const _DLPO = "DeleteLifecyclePolicyOutput";
258
+ const _DMP = "DeleteMetricPolicy";
259
+ const _DMPI = "DeleteMetricPolicyInput";
260
+ const _DMPO = "DeleteMetricPolicyOutput";
261
+ const _E = "Endpoint";
262
+ const _EH = "ExposeHeaders";
263
+ const _GCP = "GetContainerPolicy";
264
+ const _GCPI = "GetContainerPolicyInput";
265
+ const _GCPIe = "GetCorsPolicyInput";
266
+ const _GCPO = "GetContainerPolicyOutput";
267
+ const _GCPOe = "GetCorsPolicyOutput";
268
+ const _GCPe = "GetCorsPolicy";
269
+ const _GLP = "GetLifecyclePolicy";
270
+ const _GLPI = "GetLifecyclePolicyInput";
271
+ const _GLPO = "GetLifecyclePolicyOutput";
272
+ const _GMP = "GetMetricPolicy";
273
+ const _GMPI = "GetMetricPolicyInput";
274
+ const _GMPO = "GetMetricPolicyOutput";
275
+ const _ISE = "InternalServerError";
276
+ const _K = "Key";
277
+ const _LC = "ListContainers";
278
+ const _LCI = "ListContainersInput";
279
+ const _LCO = "ListContainersOutput";
280
+ const _LEE = "LimitExceededException";
281
+ const _LP = "LifecyclePolicy";
282
+ const _LTFR = "ListTagsForResource";
283
+ const _LTFRI = "ListTagsForResourceInput";
284
+ const _LTFRO = "ListTagsForResourceOutput";
285
+ const _M = "Message";
286
+ const _MAS = "MaxAgeSeconds";
287
+ const _MP = "MetricPolicy";
288
+ const _MPR = "MetricPolicyRules";
289
+ const _MPRe = "MetricPolicyRule";
290
+ const _MR = "MaxResults";
291
+ const _N = "Name";
292
+ const _NT = "NextToken";
293
+ const _OG = "ObjectGroup";
294
+ const _OGN = "ObjectGroupName";
295
+ const _P = "Policy";
296
+ const _PCP = "PutContainerPolicy";
297
+ const _PCPI = "PutContainerPolicyInput";
298
+ const _PCPIu = "PutCorsPolicyInput";
299
+ const _PCPO = "PutContainerPolicyOutput";
300
+ const _PCPOu = "PutCorsPolicyOutput";
301
+ const _PCPu = "PutCorsPolicy";
302
+ const _PLP = "PutLifecyclePolicy";
303
+ const _PLPI = "PutLifecyclePolicyInput";
304
+ const _PLPO = "PutLifecyclePolicyOutput";
305
+ const _PMP = "PutMetricPolicy";
306
+ const _PMPI = "PutMetricPolicyInput";
307
+ const _PMPO = "PutMetricPolicyOutput";
308
+ const _PNFE = "PolicyNotFoundException";
309
+ const _R = "Resource";
310
+ const _S = "Status";
311
+ const _SAL = "StartAccessLogging";
312
+ const _SALI = "StartAccessLoggingInput";
313
+ const _SALIt = "StopAccessLoggingInput";
314
+ const _SALO = "StartAccessLoggingOutput";
315
+ const _SALOt = "StopAccessLoggingOutput";
316
+ const _SALt = "StopAccessLogging";
317
+ const _T = "Tags";
318
+ const _TK = "TagKeys";
319
+ const _TL = "TagList";
320
+ const _TR = "TagResource";
321
+ const _TRI = "TagResourceInput";
322
+ const _TRO = "TagResourceOutput";
323
+ const _Ta = "Tag";
324
+ const _UR = "UntagResource";
325
+ const _URI = "UntagResourceInput";
326
+ const _URO = "UntagResourceOutput";
327
+ const _V = "Value";
328
+ const _c = "client";
329
+ const _e = "error";
330
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mediastore";
331
+ const _se = "server";
332
+ const n0 = "com.amazonaws.mediastore";
333
+ const _s_registry = TypeRegistry.for(_s);
334
+ var MediaStoreServiceException$ = [-3, _s, "MediaStoreServiceException", 0, [], []];
335
+ _s_registry.registerError(MediaStoreServiceException$, MediaStoreServiceException);
336
+ const n0_registry = TypeRegistry.for(n0);
337
+ var ContainerInUseException$ = [-3, n0, _CIUE,
338
+ { [_e]: _c },
339
+ [_M],
340
+ [0]
341
+ ];
342
+ n0_registry.registerError(ContainerInUseException$, ContainerInUseException);
343
+ var ContainerNotFoundException$ = [-3, n0, _CNFE,
344
+ { [_e]: _c },
345
+ [_M],
346
+ [0]
347
+ ];
348
+ n0_registry.registerError(ContainerNotFoundException$, ContainerNotFoundException);
349
+ var CorsPolicyNotFoundException$ = [-3, n0, _CPNFE,
350
+ { [_e]: _c },
351
+ [_M],
352
+ [0]
353
+ ];
354
+ n0_registry.registerError(CorsPolicyNotFoundException$, CorsPolicyNotFoundException);
355
+ var InternalServerError$ = [-3, n0, _ISE,
356
+ { [_e]: _se },
357
+ [_M],
358
+ [0]
359
+ ];
360
+ n0_registry.registerError(InternalServerError$, InternalServerError);
361
+ var LimitExceededException$ = [-3, n0, _LEE,
362
+ { [_e]: _c },
363
+ [_M],
364
+ [0]
365
+ ];
366
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
367
+ var PolicyNotFoundException$ = [-3, n0, _PNFE,
368
+ { [_e]: _c },
369
+ [_M],
370
+ [0]
371
+ ];
372
+ n0_registry.registerError(PolicyNotFoundException$, PolicyNotFoundException);
373
+ const errorTypeRegistries = [
374
+ _s_registry,
375
+ n0_registry,
376
+ ];
377
+ var Container$ = [3, n0, _C,
378
+ 0,
379
+ [_E, _CT, _ARN, _N, _S, _ALE],
380
+ [0, 4, 0, 0, 0, 2]
381
+ ];
382
+ var CorsRule$ = [3, n0, _CR,
383
+ 0,
384
+ [_AO, _AH, _AM, _MAS, _EH],
385
+ [64 | 0, 64 | 0, 64 | 0, 1, 64 | 0], 2
386
+ ];
387
+ var CreateContainerInput$ = [3, n0, _CCI,
388
+ 0,
389
+ [_CN, _T],
390
+ [0, () => TagList], 1
391
+ ];
392
+ var CreateContainerOutput$ = [3, n0, _CCO,
393
+ 0,
394
+ [_C],
395
+ [() => Container$], 1
396
+ ];
397
+ var DeleteContainerInput$ = [3, n0, _DCI,
398
+ 0,
399
+ [_CN],
400
+ [0], 1
401
+ ];
402
+ var DeleteContainerOutput$ = [3, n0, _DCO,
403
+ 0,
404
+ [],
405
+ []
406
+ ];
407
+ var DeleteContainerPolicyInput$ = [3, n0, _DCPI,
408
+ 0,
409
+ [_CN],
410
+ [0], 1
411
+ ];
412
+ var DeleteContainerPolicyOutput$ = [3, n0, _DCPO,
413
+ 0,
414
+ [],
415
+ []
416
+ ];
417
+ var DeleteCorsPolicyInput$ = [3, n0, _DCPIe,
418
+ 0,
419
+ [_CN],
420
+ [0], 1
421
+ ];
422
+ var DeleteCorsPolicyOutput$ = [3, n0, _DCPOe,
423
+ 0,
424
+ [],
425
+ []
426
+ ];
427
+ var DeleteLifecyclePolicyInput$ = [3, n0, _DLPI,
428
+ 0,
429
+ [_CN],
430
+ [0], 1
431
+ ];
432
+ var DeleteLifecyclePolicyOutput$ = [3, n0, _DLPO,
433
+ 0,
434
+ [],
435
+ []
436
+ ];
437
+ var DeleteMetricPolicyInput$ = [3, n0, _DMPI,
438
+ 0,
439
+ [_CN],
440
+ [0], 1
441
+ ];
442
+ var DeleteMetricPolicyOutput$ = [3, n0, _DMPO,
443
+ 0,
444
+ [],
445
+ []
446
+ ];
447
+ var DescribeContainerInput$ = [3, n0, _DCIe,
448
+ 0,
449
+ [_CN],
450
+ [0]
451
+ ];
452
+ var DescribeContainerOutput$ = [3, n0, _DCOe,
453
+ 0,
454
+ [_C],
455
+ [() => Container$]
456
+ ];
457
+ var GetContainerPolicyInput$ = [3, n0, _GCPI,
458
+ 0,
459
+ [_CN],
460
+ [0], 1
461
+ ];
462
+ var GetContainerPolicyOutput$ = [3, n0, _GCPO,
463
+ 0,
464
+ [_P],
465
+ [0], 1
466
+ ];
467
+ var GetCorsPolicyInput$ = [3, n0, _GCPIe,
468
+ 0,
469
+ [_CN],
470
+ [0], 1
471
+ ];
472
+ var GetCorsPolicyOutput$ = [3, n0, _GCPOe,
473
+ 0,
474
+ [_CP],
475
+ [() => CorsPolicy], 1
476
+ ];
477
+ var GetLifecyclePolicyInput$ = [3, n0, _GLPI,
478
+ 0,
479
+ [_CN],
480
+ [0], 1
481
+ ];
482
+ var GetLifecyclePolicyOutput$ = [3, n0, _GLPO,
483
+ 0,
484
+ [_LP],
485
+ [0], 1
486
+ ];
487
+ var GetMetricPolicyInput$ = [3, n0, _GMPI,
488
+ 0,
489
+ [_CN],
490
+ [0], 1
491
+ ];
492
+ var GetMetricPolicyOutput$ = [3, n0, _GMPO,
493
+ 0,
494
+ [_MP],
495
+ [() => MetricPolicy$], 1
496
+ ];
497
+ var ListContainersInput$ = [3, n0, _LCI,
498
+ 0,
499
+ [_NT, _MR],
500
+ [0, 1]
501
+ ];
502
+ var ListContainersOutput$ = [3, n0, _LCO,
503
+ 0,
504
+ [_Co, _NT],
505
+ [() => ContainerList, 0], 1
506
+ ];
507
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
508
+ 0,
509
+ [_R],
510
+ [0], 1
511
+ ];
512
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
513
+ 0,
514
+ [_T],
515
+ [() => TagList]
516
+ ];
517
+ var MetricPolicy$ = [3, n0, _MP,
518
+ 0,
519
+ [_CLM, _MPR],
520
+ [0, () => MetricPolicyRules], 1
521
+ ];
522
+ var MetricPolicyRule$ = [3, n0, _MPRe,
523
+ 0,
524
+ [_OG, _OGN],
525
+ [0, 0], 2
526
+ ];
527
+ var PutContainerPolicyInput$ = [3, n0, _PCPI,
528
+ 0,
529
+ [_CN, _P],
530
+ [0, 0], 2
531
+ ];
532
+ var PutContainerPolicyOutput$ = [3, n0, _PCPO,
533
+ 0,
534
+ [],
535
+ []
536
+ ];
537
+ var PutCorsPolicyInput$ = [3, n0, _PCPIu,
538
+ 0,
539
+ [_CN, _CP],
540
+ [0, () => CorsPolicy], 2
541
+ ];
542
+ var PutCorsPolicyOutput$ = [3, n0, _PCPOu,
543
+ 0,
544
+ [],
545
+ []
546
+ ];
547
+ var PutLifecyclePolicyInput$ = [3, n0, _PLPI,
548
+ 0,
549
+ [_CN, _LP],
550
+ [0, 0], 2
551
+ ];
552
+ var PutLifecyclePolicyOutput$ = [3, n0, _PLPO,
553
+ 0,
554
+ [],
555
+ []
556
+ ];
557
+ var PutMetricPolicyInput$ = [3, n0, _PMPI,
558
+ 0,
559
+ [_CN, _MP],
560
+ [0, () => MetricPolicy$], 2
561
+ ];
562
+ var PutMetricPolicyOutput$ = [3, n0, _PMPO,
563
+ 0,
564
+ [],
565
+ []
566
+ ];
567
+ var StartAccessLoggingInput$ = [3, n0, _SALI,
568
+ 0,
569
+ [_CN],
570
+ [0], 1
571
+ ];
572
+ var StartAccessLoggingOutput$ = [3, n0, _SALO,
573
+ 0,
574
+ [],
575
+ []
576
+ ];
577
+ var StopAccessLoggingInput$ = [3, n0, _SALIt,
578
+ 0,
579
+ [_CN],
580
+ [0], 1
581
+ ];
582
+ var StopAccessLoggingOutput$ = [3, n0, _SALOt,
583
+ 0,
584
+ [],
585
+ []
586
+ ];
587
+ var Tag$ = [3, n0, _Ta,
588
+ 0,
589
+ [_K, _V],
590
+ [0, 0], 1
591
+ ];
592
+ var TagResourceInput$ = [3, n0, _TRI,
593
+ 0,
594
+ [_R, _T],
595
+ [0, () => TagList], 2
596
+ ];
597
+ var TagResourceOutput$ = [3, n0, _TRO,
598
+ 0,
599
+ [],
600
+ []
601
+ ];
602
+ var UntagResourceInput$ = [3, n0, _URI,
603
+ 0,
604
+ [_R, _TK],
605
+ [0, 64 | 0], 2
606
+ ];
607
+ var UntagResourceOutput$ = [3, n0, _URO,
608
+ 0,
609
+ [],
610
+ []
611
+ ];
612
+ var ContainerList = [1, n0, _CL,
613
+ 0, () => Container$
614
+ ];
615
+ var CorsPolicy = [1, n0, _CP,
616
+ 0, () => CorsRule$
617
+ ];
618
+ var MetricPolicyRules = [1, n0, _MPR,
619
+ 0, () => MetricPolicyRule$
620
+ ];
621
+ var TagList = [1, n0, _TL,
622
+ 0, () => Tag$
623
+ ];
624
+ var CreateContainer$ = [9, n0, _CC,
625
+ 0, () => CreateContainerInput$, () => CreateContainerOutput$
626
+ ];
627
+ var DeleteContainer$ = [9, n0, _DC,
628
+ 0, () => DeleteContainerInput$, () => DeleteContainerOutput$
629
+ ];
630
+ var DeleteContainerPolicy$ = [9, n0, _DCP,
631
+ 0, () => DeleteContainerPolicyInput$, () => DeleteContainerPolicyOutput$
632
+ ];
633
+ var DeleteCorsPolicy$ = [9, n0, _DCPe,
634
+ 0, () => DeleteCorsPolicyInput$, () => DeleteCorsPolicyOutput$
635
+ ];
636
+ var DeleteLifecyclePolicy$ = [9, n0, _DLP,
637
+ 0, () => DeleteLifecyclePolicyInput$, () => DeleteLifecyclePolicyOutput$
638
+ ];
639
+ var DeleteMetricPolicy$ = [9, n0, _DMP,
640
+ 0, () => DeleteMetricPolicyInput$, () => DeleteMetricPolicyOutput$
641
+ ];
642
+ var DescribeContainer$ = [9, n0, _DCe,
643
+ 0, () => DescribeContainerInput$, () => DescribeContainerOutput$
644
+ ];
645
+ var GetContainerPolicy$ = [9, n0, _GCP,
646
+ 0, () => GetContainerPolicyInput$, () => GetContainerPolicyOutput$
647
+ ];
648
+ var GetCorsPolicy$ = [9, n0, _GCPe,
649
+ 0, () => GetCorsPolicyInput$, () => GetCorsPolicyOutput$
650
+ ];
651
+ var GetLifecyclePolicy$ = [9, n0, _GLP,
652
+ 0, () => GetLifecyclePolicyInput$, () => GetLifecyclePolicyOutput$
653
+ ];
654
+ var GetMetricPolicy$ = [9, n0, _GMP,
655
+ 0, () => GetMetricPolicyInput$, () => GetMetricPolicyOutput$
656
+ ];
657
+ var ListContainers$ = [9, n0, _LC,
658
+ 0, () => ListContainersInput$, () => ListContainersOutput$
659
+ ];
660
+ var ListTagsForResource$ = [9, n0, _LTFR,
661
+ 0, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
662
+ ];
663
+ var PutContainerPolicy$ = [9, n0, _PCP,
664
+ 0, () => PutContainerPolicyInput$, () => PutContainerPolicyOutput$
665
+ ];
666
+ var PutCorsPolicy$ = [9, n0, _PCPu,
667
+ 0, () => PutCorsPolicyInput$, () => PutCorsPolicyOutput$
668
+ ];
669
+ var PutLifecyclePolicy$ = [9, n0, _PLP,
670
+ 0, () => PutLifecyclePolicyInput$, () => PutLifecyclePolicyOutput$
671
+ ];
672
+ var PutMetricPolicy$ = [9, n0, _PMP,
673
+ 0, () => PutMetricPolicyInput$, () => PutMetricPolicyOutput$
674
+ ];
675
+ var StartAccessLogging$ = [9, n0, _SAL,
676
+ 0, () => StartAccessLoggingInput$, () => StartAccessLoggingOutput$
677
+ ];
678
+ var StopAccessLogging$ = [9, n0, _SALt,
679
+ 0, () => StopAccessLoggingInput$, () => StopAccessLoggingOutput$
680
+ ];
681
+ var TagResource$ = [9, n0, _TR,
682
+ 0, () => TagResourceInput$, () => TagResourceOutput$
683
+ ];
684
+ var UntagResource$ = [9, n0, _UR,
685
+ 0, () => UntagResourceInput$, () => UntagResourceOutput$
686
+ ];
687
+
688
+ const getRuntimeConfig$1 = (config) => {
689
+ return {
690
+ apiVersion: "2017-09-01",
691
+ base64Decoder: config?.base64Decoder ?? fromBase64,
692
+ base64Encoder: config?.base64Encoder ?? toBase64,
693
+ disableHostPrefix: config?.disableHostPrefix ?? false,
694
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
695
+ extensions: config?.extensions ?? [],
696
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMediaStoreHttpAuthSchemeProvider,
697
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
698
+ {
699
+ schemeId: "aws.auth#sigv4",
700
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
701
+ signer: new AwsSdkSigV4Signer(),
702
+ },
703
+ ],
704
+ logger: config?.logger ?? new NoOpLogger(),
705
+ protocol: config?.protocol ?? AwsJson1_1Protocol,
706
+ protocolSettings: config?.protocolSettings ?? {
707
+ defaultNamespace: "com.amazonaws.mediastore",
708
+ errorTypeRegistries,
709
+ xmlNamespace: "https://mediastore.amazonaws.com/doc/2017-09-01",
710
+ version: "2017-09-01",
711
+ serviceTarget: "MediaStore_20170901",
712
+ },
713
+ serviceId: config?.serviceId ?? "MediaStore",
714
+ urlParser: config?.urlParser ?? parseUrl,
715
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
716
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
717
+ };
718
+ };
719
+
720
+ const getRuntimeConfig = (config) => {
721
+ emitWarningIfUnsupportedVersion(process.version);
722
+ const defaultsMode = resolveDefaultsModeConfig(config);
723
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
724
+ const clientSharedValues = getRuntimeConfig$1(config);
725
+ emitWarningIfUnsupportedVersion$1(process.version);
726
+ const loaderConfig = {
727
+ profile: config?.profile,
728
+ logger: clientSharedValues.logger,
729
+ };
730
+ return {
731
+ ...clientSharedValues,
732
+ ...config,
733
+ runtime: "node",
734
+ defaultsMode,
735
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
736
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
737
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
738
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
739
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
740
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
741
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
742
+ retryMode: config?.retryMode ??
743
+ loadConfig({
744
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
745
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
746
+ }, config),
747
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
748
+ streamCollector: config?.streamCollector ?? streamCollector,
749
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
750
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
751
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
752
+ };
753
+ };
754
+
34
755
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
756
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
757
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -411,30 +1132,113 @@ const ContainerLevelMetrics = {
411
1132
  ENABLED: "ENABLED",
412
1133
  };
413
1134
 
1135
+ exports.Container$ = Container$;
1136
+ exports.ContainerInUseException = ContainerInUseException;
1137
+ exports.ContainerInUseException$ = ContainerInUseException$;
414
1138
  exports.ContainerLevelMetrics = ContainerLevelMetrics;
1139
+ exports.ContainerNotFoundException = ContainerNotFoundException;
1140
+ exports.ContainerNotFoundException$ = ContainerNotFoundException$;
415
1141
  exports.ContainerStatus = ContainerStatus;
1142
+ exports.CorsPolicyNotFoundException = CorsPolicyNotFoundException;
1143
+ exports.CorsPolicyNotFoundException$ = CorsPolicyNotFoundException$;
1144
+ exports.CorsRule$ = CorsRule$;
1145
+ exports.CreateContainer$ = CreateContainer$;
416
1146
  exports.CreateContainerCommand = CreateContainerCommand;
1147
+ exports.CreateContainerInput$ = CreateContainerInput$;
1148
+ exports.CreateContainerOutput$ = CreateContainerOutput$;
1149
+ exports.DeleteContainer$ = DeleteContainer$;
417
1150
  exports.DeleteContainerCommand = DeleteContainerCommand;
1151
+ exports.DeleteContainerInput$ = DeleteContainerInput$;
1152
+ exports.DeleteContainerOutput$ = DeleteContainerOutput$;
1153
+ exports.DeleteContainerPolicy$ = DeleteContainerPolicy$;
418
1154
  exports.DeleteContainerPolicyCommand = DeleteContainerPolicyCommand;
1155
+ exports.DeleteContainerPolicyInput$ = DeleteContainerPolicyInput$;
1156
+ exports.DeleteContainerPolicyOutput$ = DeleteContainerPolicyOutput$;
1157
+ exports.DeleteCorsPolicy$ = DeleteCorsPolicy$;
419
1158
  exports.DeleteCorsPolicyCommand = DeleteCorsPolicyCommand;
1159
+ exports.DeleteCorsPolicyInput$ = DeleteCorsPolicyInput$;
1160
+ exports.DeleteCorsPolicyOutput$ = DeleteCorsPolicyOutput$;
1161
+ exports.DeleteLifecyclePolicy$ = DeleteLifecyclePolicy$;
420
1162
  exports.DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand;
1163
+ exports.DeleteLifecyclePolicyInput$ = DeleteLifecyclePolicyInput$;
1164
+ exports.DeleteLifecyclePolicyOutput$ = DeleteLifecyclePolicyOutput$;
1165
+ exports.DeleteMetricPolicy$ = DeleteMetricPolicy$;
421
1166
  exports.DeleteMetricPolicyCommand = DeleteMetricPolicyCommand;
1167
+ exports.DeleteMetricPolicyInput$ = DeleteMetricPolicyInput$;
1168
+ exports.DeleteMetricPolicyOutput$ = DeleteMetricPolicyOutput$;
1169
+ exports.DescribeContainer$ = DescribeContainer$;
422
1170
  exports.DescribeContainerCommand = DescribeContainerCommand;
1171
+ exports.DescribeContainerInput$ = DescribeContainerInput$;
1172
+ exports.DescribeContainerOutput$ = DescribeContainerOutput$;
1173
+ exports.GetContainerPolicy$ = GetContainerPolicy$;
423
1174
  exports.GetContainerPolicyCommand = GetContainerPolicyCommand;
1175
+ exports.GetContainerPolicyInput$ = GetContainerPolicyInput$;
1176
+ exports.GetContainerPolicyOutput$ = GetContainerPolicyOutput$;
1177
+ exports.GetCorsPolicy$ = GetCorsPolicy$;
424
1178
  exports.GetCorsPolicyCommand = GetCorsPolicyCommand;
1179
+ exports.GetCorsPolicyInput$ = GetCorsPolicyInput$;
1180
+ exports.GetCorsPolicyOutput$ = GetCorsPolicyOutput$;
1181
+ exports.GetLifecyclePolicy$ = GetLifecyclePolicy$;
425
1182
  exports.GetLifecyclePolicyCommand = GetLifecyclePolicyCommand;
1183
+ exports.GetLifecyclePolicyInput$ = GetLifecyclePolicyInput$;
1184
+ exports.GetLifecyclePolicyOutput$ = GetLifecyclePolicyOutput$;
1185
+ exports.GetMetricPolicy$ = GetMetricPolicy$;
426
1186
  exports.GetMetricPolicyCommand = GetMetricPolicyCommand;
1187
+ exports.GetMetricPolicyInput$ = GetMetricPolicyInput$;
1188
+ exports.GetMetricPolicyOutput$ = GetMetricPolicyOutput$;
1189
+ exports.InternalServerError = InternalServerError;
1190
+ exports.InternalServerError$ = InternalServerError$;
1191
+ exports.LimitExceededException = LimitExceededException;
1192
+ exports.LimitExceededException$ = LimitExceededException$;
1193
+ exports.ListContainers$ = ListContainers$;
427
1194
  exports.ListContainersCommand = ListContainersCommand;
1195
+ exports.ListContainersInput$ = ListContainersInput$;
1196
+ exports.ListContainersOutput$ = ListContainersOutput$;
1197
+ exports.ListTagsForResource$ = ListTagsForResource$;
428
1198
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1199
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1200
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
429
1201
  exports.MediaStore = MediaStore;
430
1202
  exports.MediaStoreClient = MediaStoreClient;
1203
+ exports.MediaStoreServiceException = MediaStoreServiceException;
1204
+ exports.MediaStoreServiceException$ = MediaStoreServiceException$;
431
1205
  exports.MethodName = MethodName;
1206
+ exports.MetricPolicy$ = MetricPolicy$;
1207
+ exports.MetricPolicyRule$ = MetricPolicyRule$;
1208
+ exports.PolicyNotFoundException = PolicyNotFoundException;
1209
+ exports.PolicyNotFoundException$ = PolicyNotFoundException$;
1210
+ exports.PutContainerPolicy$ = PutContainerPolicy$;
432
1211
  exports.PutContainerPolicyCommand = PutContainerPolicyCommand;
1212
+ exports.PutContainerPolicyInput$ = PutContainerPolicyInput$;
1213
+ exports.PutContainerPolicyOutput$ = PutContainerPolicyOutput$;
1214
+ exports.PutCorsPolicy$ = PutCorsPolicy$;
433
1215
  exports.PutCorsPolicyCommand = PutCorsPolicyCommand;
1216
+ exports.PutCorsPolicyInput$ = PutCorsPolicyInput$;
1217
+ exports.PutCorsPolicyOutput$ = PutCorsPolicyOutput$;
1218
+ exports.PutLifecyclePolicy$ = PutLifecyclePolicy$;
434
1219
  exports.PutLifecyclePolicyCommand = PutLifecyclePolicyCommand;
1220
+ exports.PutLifecyclePolicyInput$ = PutLifecyclePolicyInput$;
1221
+ exports.PutLifecyclePolicyOutput$ = PutLifecyclePolicyOutput$;
1222
+ exports.PutMetricPolicy$ = PutMetricPolicy$;
435
1223
  exports.PutMetricPolicyCommand = PutMetricPolicyCommand;
1224
+ exports.PutMetricPolicyInput$ = PutMetricPolicyInput$;
1225
+ exports.PutMetricPolicyOutput$ = PutMetricPolicyOutput$;
1226
+ exports.StartAccessLogging$ = StartAccessLogging$;
436
1227
  exports.StartAccessLoggingCommand = StartAccessLoggingCommand;
1228
+ exports.StartAccessLoggingInput$ = StartAccessLoggingInput$;
1229
+ exports.StartAccessLoggingOutput$ = StartAccessLoggingOutput$;
1230
+ exports.StopAccessLogging$ = StopAccessLogging$;
437
1231
  exports.StopAccessLoggingCommand = StopAccessLoggingCommand;
1232
+ exports.StopAccessLoggingInput$ = StopAccessLoggingInput$;
1233
+ exports.StopAccessLoggingOutput$ = StopAccessLoggingOutput$;
1234
+ exports.Tag$ = Tag$;
1235
+ exports.TagResource$ = TagResource$;
438
1236
  exports.TagResourceCommand = TagResourceCommand;
1237
+ exports.TagResourceInput$ = TagResourceInput$;
1238
+ exports.TagResourceOutput$ = TagResourceOutput$;
1239
+ exports.UntagResource$ = UntagResource$;
439
1240
  exports.UntagResourceCommand = UntagResourceCommand;
1241
+ exports.UntagResourceInput$ = UntagResourceInput$;
1242
+ exports.UntagResourceOutput$ = UntagResourceOutput$;
1243
+ exports.errorTypeRegistries = errorTypeRegistries;
440
1244
  exports.paginateListContainers = paginateListContainers;