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