@aws-sdk/client-mediapackage 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, defaultMediaPackageHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { ConfigureLogs$, CreateChannel$, CreateHarvestJob$, CreateOriginEndpoint$, DeleteChannel$, DeleteOriginEndpoint$, DescribeChannel$, DescribeHarvestJob$, DescribeOriginEndpoint$, ListChannels$, ListHarvestJobs$, ListOriginEndpoints$, ListTagsForResource$, RotateChannelCredentials$, RotateIngestEndpointCredentials$, TagResource$, UntagResource$, UpdateChannel$, UpdateOriginEndpoint$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { MediaPackageServiceException } = require("./models/MediaPackageServiceException");
18
- exports.MediaPackageServiceException = MediaPackageServiceException;
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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultMediaPackageHttpAuthSchemeParametersProvider = 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: "mediapackage",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultMediaPackageHttpAuthSchemeProvider = (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,901 @@ 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://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://mediapackage.{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 MediaPackageServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, MediaPackageServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class ForbiddenException extends MediaPackageServiceException {
141
+ name = "ForbiddenException";
142
+ $fault = "client";
143
+ Message;
144
+ constructor(opts) {
145
+ super({
146
+ name: "ForbiddenException",
147
+ $fault: "client",
148
+ ...opts,
149
+ });
150
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
151
+ this.Message = opts.Message;
152
+ }
153
+ }
154
+ class InternalServerErrorException extends MediaPackageServiceException {
155
+ name = "InternalServerErrorException";
156
+ $fault = "server";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "InternalServerErrorException",
161
+ $fault: "server",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ class NotFoundException extends MediaPackageServiceException {
169
+ name = "NotFoundException";
170
+ $fault = "client";
171
+ Message;
172
+ constructor(opts) {
173
+ super({
174
+ name: "NotFoundException",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, NotFoundException.prototype);
179
+ this.Message = opts.Message;
180
+ }
181
+ }
182
+ class ServiceUnavailableException extends MediaPackageServiceException {
183
+ name = "ServiceUnavailableException";
184
+ $fault = "server";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "ServiceUnavailableException",
189
+ $fault: "server",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ class TooManyRequestsException extends MediaPackageServiceException {
197
+ name = "TooManyRequestsException";
198
+ $fault = "client";
199
+ Message;
200
+ constructor(opts) {
201
+ super({
202
+ name: "TooManyRequestsException",
203
+ $fault: "client",
204
+ ...opts,
205
+ });
206
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
207
+ this.Message = opts.Message;
208
+ }
209
+ }
210
+ class UnprocessableEntityException extends MediaPackageServiceException {
211
+ name = "UnprocessableEntityException";
212
+ $fault = "client";
213
+ Message;
214
+ constructor(opts) {
215
+ super({
216
+ name: "UnprocessableEntityException",
217
+ $fault: "client",
218
+ ...opts,
219
+ });
220
+ Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ }
224
+
225
+ const _A = "Authorization";
226
+ const _AM = "AdMarkers";
227
+ const _AODR = "AdsOnDeliveryRestrictions";
228
+ const _AT = "AdTriggers";
229
+ const _Ar = "Arn";
230
+ const _BN = "BucketName";
231
+ const _C = "Channel";
232
+ const _CA = "CreatedAt";
233
+ const _CAe = "CertificateArn";
234
+ const _CC = "CreateChannel";
235
+ const _CCR = "CreateChannelRequest";
236
+ const _CCRr = "CreateChannelResponse";
237
+ const _CE = "CmafEncryption";
238
+ const _CHJ = "CreateHarvestJob";
239
+ const _CHJR = "CreateHarvestJobRequest";
240
+ const _CHJRr = "CreateHarvestJobResponse";
241
+ const _CI = "ChannelId";
242
+ const _CIS = "CdnIdentifierSecret";
243
+ const _CIV = "ConstantInitializationVector";
244
+ const _CL = "ConfigureLogs";
245
+ const _CLR = "ConfigureLogsRequest";
246
+ const _CLRo = "ConfigureLogsResponse";
247
+ const _COE = "CreateOriginEndpoint";
248
+ const _COER = "CreateOriginEndpointRequest";
249
+ const _COERr = "CreateOriginEndpointResponse";
250
+ const _CP = "CmafPackage";
251
+ const _CPCOUP = "CmafPackageCreateOrUpdateParameters";
252
+ const _Ch = "Channels";
253
+ const _D = "Description";
254
+ const _DC = "DeleteChannel";
255
+ const _DCR = "DeleteChannelRequest";
256
+ const _DCRe = "DeleteChannelResponse";
257
+ const _DCRes = "DescribeChannelRequest";
258
+ const _DCResc = "DescribeChannelResponse";
259
+ const _DCe = "DescribeChannel";
260
+ const _DE = "DashEncryption";
261
+ const _DHJ = "DescribeHarvestJob";
262
+ const _DHJR = "DescribeHarvestJobRequest";
263
+ const _DHJRe = "DescribeHarvestJobResponse";
264
+ const _DOE = "DeleteOriginEndpoint";
265
+ const _DOER = "DeleteOriginEndpointRequest";
266
+ const _DOERe = "DeleteOriginEndpointResponse";
267
+ const _DOERes = "DescribeOriginEndpointRequest";
268
+ const _DOEResc = "DescribeOriginEndpointResponse";
269
+ const _DOEe = "DescribeOriginEndpoint";
270
+ const _DP = "DashPackage";
271
+ const _E = "Encryption";
272
+ const _EAL = "EgressAccessLogs";
273
+ const _ECC = "EncryptionContractConfiguration";
274
+ const _EM = "EncryptionMethod";
275
+ const _ET = "EndTime";
276
+ const _FE = "ForbiddenException";
277
+ const _HE = "HlsEncryption";
278
+ const _HI = "HlsIngest";
279
+ const _HJ = "HarvestJob";
280
+ const _HJa = "HarvestJobs";
281
+ const _HM = "HlsManifests";
282
+ const _HMCOUP = "HlsManifestCreateOrUpdateParameters";
283
+ const _HMl = "HlsManifest";
284
+ const _HP = "HlsPackage";
285
+ const _I = "Id";
286
+ const _IAL = "IngressAccessLogs";
287
+ const _ICI = "IncludeChannelId";
288
+ const _IDS = "IncludeDvbSubtitles";
289
+ const _IE = "IngestEndpoints";
290
+ const _IEI = "IngestEndpointId";
291
+ const _IEn = "IngestEndpoint";
292
+ const _IIOS = "IncludeIframeOnlyStream";
293
+ const _IS = "IncludeStatus";
294
+ const _ISEE = "InternalServerErrorException";
295
+ const _KRIS = "KeyRotationIntervalSeconds";
296
+ const _LC = "ListChannels";
297
+ const _LCR = "ListChannelsRequest";
298
+ const _LCRi = "ListChannelsResponse";
299
+ const _LGN = "LogGroupName";
300
+ const _LHJ = "ListHarvestJobs";
301
+ const _LHJR = "ListHarvestJobsRequest";
302
+ const _LHJRi = "ListHarvestJobsResponse";
303
+ const _LOE = "ListOriginEndpoints";
304
+ const _LOER = "ListOriginEndpointsRequest";
305
+ const _LOERi = "ListOriginEndpointsResponse";
306
+ const _LTFR = "ListTagsForResource";
307
+ const _LTFRR = "ListTagsForResourceRequest";
308
+ const _LTFRRi = "ListTagsForResourceResponse";
309
+ const _M = "Message";
310
+ const _MBTS = "MinBufferTimeSeconds";
311
+ const _ME = "MssEncryption";
312
+ const _MK = "ManifestKey";
313
+ const _ML = "ManifestLayout";
314
+ const _MN = "ManifestName";
315
+ const _MP = "MssPackage";
316
+ const _MR = "MaxResults";
317
+ const _MUPS = "MinUpdatePeriodSeconds";
318
+ const _MVBPS = "MaxVideoBitsPerSecond";
319
+ const _MVBPSi = "MinVideoBitsPerSecond";
320
+ const _MWS = "ManifestWindowSeconds";
321
+ const _NFE = "NotFoundException";
322
+ const _NT = "NextToken";
323
+ const _O = "Origination";
324
+ const _OE = "OriginEndpoints";
325
+ const _OEI = "OriginEndpointId";
326
+ const _OEr = "OriginEndpoint";
327
+ const _P = "Profile";
328
+ const _PDTIS = "ProgramDateTimeIntervalSeconds";
329
+ const _PSA = "PresetSpeke20Audio";
330
+ const _PSV = "PresetSpeke20Video";
331
+ const _PT = "PeriodTriggers";
332
+ const _PTl = "PlaylistType";
333
+ const _PWS = "PlaylistWindowSeconds";
334
+ const _Pa = "Password";
335
+ const _RA = "ResourceArn";
336
+ const _RAo = "RoleArn";
337
+ const _RCC = "RotateChannelCredentials";
338
+ const _RCCR = "RotateChannelCredentialsRequest";
339
+ const _RCCRo = "RotateChannelCredentialsResponse";
340
+ const _REXK = "RepeatExtXKey";
341
+ const _RI = "ResourceId";
342
+ const _RIEC = "RotateIngestEndpointCredentials";
343
+ const _RIECR = "RotateIngestEndpointCredentialsRequest";
344
+ const _RIECRo = "RotateIngestEndpointCredentialsResponse";
345
+ const _S = "Status";
346
+ const _SD = "S3Destination";
347
+ const _SDS = "SegmentDurationSeconds";
348
+ const _SI = "SystemIds";
349
+ const _SKP = "SpekeKeyProvider";
350
+ const _SO = "StreamOrder";
351
+ const _SP = "SegmentPrefix";
352
+ const _SPDS = "SuggestedPresentationDelaySeconds";
353
+ const _SRA = "SecretsRoleArn";
354
+ const _SS = "SensitiveString";
355
+ const _SSt = "StreamSelection";
356
+ const _ST = "StartTime";
357
+ const _STF = "SegmentTemplateFormat";
358
+ const _SUE = "ServiceUnavailableException";
359
+ const _SWS = "StartoverWindowSeconds";
360
+ const _T = "Tags";
361
+ const _TDS = "TimeDelaySeconds";
362
+ const _TK = "TagKeys";
363
+ const _TMRE = "TooManyRequestsException";
364
+ const _TR = "TagResource";
365
+ const _TRR = "TagResourceRequest";
366
+ const _U = "Url";
367
+ const _UARG = "UseAudioRenditionGroup";
368
+ const _UC = "UpdateChannel";
369
+ const _UCR = "UpdateChannelRequest";
370
+ const _UCRp = "UpdateChannelResponse";
371
+ const _UEE = "UnprocessableEntityException";
372
+ const _UOE = "UpdateOriginEndpoint";
373
+ const _UOER = "UpdateOriginEndpointRequest";
374
+ const _UOERp = "UpdateOriginEndpointResponse";
375
+ const _UR = "UntagResource";
376
+ const _URR = "UntagResourceRequest";
377
+ const _UT = "UtcTiming";
378
+ const _UTU = "UtcTimingUri";
379
+ const _Us = "Username";
380
+ const _W = "Whitelist";
381
+ const _a = "arn";
382
+ const _aM = "adMarkers";
383
+ const _aODR = "adsOnDeliveryRestrictions";
384
+ const _aT = "adTriggers";
385
+ const _au = "authorization";
386
+ const _bN = "bucketName";
387
+ const _c = "client";
388
+ const _cA = "createdAt";
389
+ const _cAe = "certificateArn";
390
+ const _cI = "channelId";
391
+ const _cIS = "cdnIdentifierSecret";
392
+ const _cIV = "constantInitializationVector";
393
+ const _cP = "cmafPackage";
394
+ const _ch = "channels";
395
+ const _d = "description";
396
+ const _dP = "dashPackage";
397
+ const _e = "error";
398
+ const _eAL = "egressAccessLogs";
399
+ const _eCC = "encryptionContractConfiguration";
400
+ const _eM = "encryptionMethod";
401
+ const _eT = "endTime";
402
+ const _en = "encryption";
403
+ const _h = "http";
404
+ const _hE = "httpError";
405
+ const _hI = "hlsIngest";
406
+ const _hJ = "harvestJobs";
407
+ const _hM = "hlsManifests";
408
+ const _hP = "hlsPackage";
409
+ const _hQ = "httpQuery";
410
+ const _i = "id";
411
+ const _iAL = "ingressAccessLogs";
412
+ const _iCI = "includeChannelId";
413
+ const _iDS = "includeDvbSubtitles";
414
+ const _iE = "ingestEndpoints";
415
+ const _iIOS = "includeIframeOnlyStream";
416
+ const _iS = "includeStatus";
417
+ const _jN = "jsonName";
418
+ const _kRIS = "keyRotationIntervalSeconds";
419
+ const _lGN = "logGroupName";
420
+ const _lOC = "__listOfChannel";
421
+ const _lOHJ = "__listOfHarvestJob";
422
+ const _lOHM = "__listOfHlsManifest";
423
+ const _lOHMCOUP = "__listOfHlsManifestCreateOrUpdateParameters";
424
+ const _lOIE = "__listOfIngestEndpoint";
425
+ const _lOOE = "__listOfOriginEndpoint";
426
+ const _m = "message";
427
+ const _mBTS = "minBufferTimeSeconds";
428
+ const _mK = "manifestKey";
429
+ const _mL = "manifestLayout";
430
+ const _mN = "manifestName";
431
+ const _mP = "mssPackage";
432
+ const _mR = "maxResults";
433
+ const _mUPS = "minUpdatePeriodSeconds";
434
+ const _mVBPS = "maxVideoBitsPerSecond";
435
+ const _mVBPSi = "minVideoBitsPerSecond";
436
+ const _mWS = "manifestWindowSeconds";
437
+ const _nT = "nextToken";
438
+ const _o = "origination";
439
+ const _oE = "originEndpoints";
440
+ const _oEI = "originEndpointId";
441
+ const _p = "profile";
442
+ const _pDTIS = "programDateTimeIntervalSeconds";
443
+ const _pSA = "presetSpeke20Audio";
444
+ const _pSV = "presetSpeke20Video";
445
+ const _pT = "periodTriggers";
446
+ const _pTl = "playlistType";
447
+ const _pWS = "playlistWindowSeconds";
448
+ const _pa = "password";
449
+ const _rA = "roleArn";
450
+ const _rEXK = "repeatExtXKey";
451
+ const _rI = "resourceId";
452
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mediapackage";
453
+ const _sD = "s3Destination";
454
+ const _sDS = "segmentDurationSeconds";
455
+ const _sI = "systemIds";
456
+ const _sKP = "spekeKeyProvider";
457
+ const _sO = "streamOrder";
458
+ const _sP = "segmentPrefix";
459
+ const _sPDS = "suggestedPresentationDelaySeconds";
460
+ const _sRA = "secretsRoleArn";
461
+ const _sS = "streamSelection";
462
+ const _sT = "startTime";
463
+ const _sTF = "segmentTemplateFormat";
464
+ const _sWS = "startoverWindowSeconds";
465
+ const _se = "server";
466
+ const _st = "status";
467
+ const _t = "tags";
468
+ const _tDS = "timeDelaySeconds";
469
+ const _tK = "tagKeys";
470
+ const _u = "url";
471
+ const _uARG = "useAudioRenditionGroup";
472
+ const _uT = "utcTiming";
473
+ const _uTU = "utcTimingUri";
474
+ const _us = "username";
475
+ const _w = "whitelist";
476
+ const n0 = "com.amazonaws.mediapackage";
477
+ const _s_registry = TypeRegistry.for(_s);
478
+ var MediaPackageServiceException$ = [-3, _s, "MediaPackageServiceException", 0, [], []];
479
+ _s_registry.registerError(MediaPackageServiceException$, MediaPackageServiceException);
480
+ const n0_registry = TypeRegistry.for(n0);
481
+ var ForbiddenException$ = [-3, n0, _FE,
482
+ { [_e]: _c, [_hE]: 403 },
483
+ [_M],
484
+ [[0, { [_jN]: _m }]]
485
+ ];
486
+ n0_registry.registerError(ForbiddenException$, ForbiddenException);
487
+ var InternalServerErrorException$ = [-3, n0, _ISEE,
488
+ { [_e]: _se, [_hE]: 500 },
489
+ [_M],
490
+ [[0, { [_jN]: _m }]]
491
+ ];
492
+ n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
493
+ var NotFoundException$ = [-3, n0, _NFE,
494
+ { [_e]: _c, [_hE]: 404 },
495
+ [_M],
496
+ [[0, { [_jN]: _m }]]
497
+ ];
498
+ n0_registry.registerError(NotFoundException$, NotFoundException);
499
+ var ServiceUnavailableException$ = [-3, n0, _SUE,
500
+ { [_e]: _se, [_hE]: 503 },
501
+ [_M],
502
+ [[0, { [_jN]: _m }]]
503
+ ];
504
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
505
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
506
+ { [_e]: _c, [_hE]: 429 },
507
+ [_M],
508
+ [[0, { [_jN]: _m }]]
509
+ ];
510
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
511
+ var UnprocessableEntityException$ = [-3, n0, _UEE,
512
+ { [_e]: _c, [_hE]: 422 },
513
+ [_M],
514
+ [[0, { [_jN]: _m }]]
515
+ ];
516
+ n0_registry.registerError(UnprocessableEntityException$, UnprocessableEntityException);
517
+ const errorTypeRegistries = [
518
+ _s_registry,
519
+ n0_registry,
520
+ ];
521
+ var SensitiveString = [0, n0, _SS, 8, 0];
522
+ var Authorization$ = [3, n0, _A,
523
+ 0,
524
+ [_CIS, _SRA],
525
+ [[0, { [_jN]: _cIS }], [0, { [_jN]: _sRA }]], 2
526
+ ];
527
+ var Channel$ = [3, n0, _C,
528
+ 0,
529
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
530
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
531
+ ];
532
+ var CmafEncryption$ = [3, n0, _CE,
533
+ 0,
534
+ [_SKP, _CIV, _EM, _KRIS],
535
+ [[() => SpekeKeyProvider$, { [_jN]: _sKP }], [0, { [_jN]: _cIV }], [0, { [_jN]: _eM }], [1, { [_jN]: _kRIS }]], 1
536
+ ];
537
+ var CmafPackage$ = [3, n0, _CP,
538
+ 0,
539
+ [_E, _HM, _SDS, _SP, _SSt],
540
+ [[() => CmafEncryption$, { [_jN]: _en }], [() => __listOfHlsManifest, { [_jN]: _hM }], [1, { [_jN]: _sDS }], [0, { [_jN]: _sP }], [() => StreamSelection$, { [_jN]: _sS }]]
541
+ ];
542
+ var CmafPackageCreateOrUpdateParameters$ = [3, n0, _CPCOUP,
543
+ 0,
544
+ [_E, _HM, _SDS, _SP, _SSt],
545
+ [[() => CmafEncryption$, { [_jN]: _en }], [() => __listOfHlsManifestCreateOrUpdateParameters, { [_jN]: _hM }], [1, { [_jN]: _sDS }], [0, { [_jN]: _sP }], [() => StreamSelection$, { [_jN]: _sS }]]
546
+ ];
547
+ var ConfigureLogsRequest$ = [3, n0, _CLR,
548
+ 0,
549
+ [_I, _EAL, _IAL],
550
+ [[0, 1], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => IngressAccessLogs$, { [_jN]: _iAL }]], 1
551
+ ];
552
+ var ConfigureLogsResponse$ = [3, n0, _CLRo,
553
+ 0,
554
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
555
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
556
+ ];
557
+ var CreateChannelRequest$ = [3, n0, _CCR,
558
+ 0,
559
+ [_I, _D, _T],
560
+ [[0, { [_jN]: _i }], [0, { [_jN]: _d }], [128 | 0, { [_jN]: _t }]], 1
561
+ ];
562
+ var CreateChannelResponse$ = [3, n0, _CCRr,
563
+ 0,
564
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
565
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
566
+ ];
567
+ var CreateHarvestJobRequest$ = [3, n0, _CHJR,
568
+ 0,
569
+ [_ET, _I, _OEI, _SD, _ST],
570
+ [[0, { [_jN]: _eT }], [0, { [_jN]: _i }], [0, { [_jN]: _oEI }], [() => S3Destination$, { [_jN]: _sD }], [0, { [_jN]: _sT }]], 5
571
+ ];
572
+ var CreateHarvestJobResponse$ = [3, n0, _CHJRr,
573
+ 0,
574
+ [_Ar, _CI, _CA, _ET, _I, _OEI, _SD, _ST, _S],
575
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cI }], [0, { [_jN]: _cA }], [0, { [_jN]: _eT }], [0, { [_jN]: _i }], [0, { [_jN]: _oEI }], [() => S3Destination$, { [_jN]: _sD }], [0, { [_jN]: _sT }], [0, { [_jN]: _st }]]
576
+ ];
577
+ var CreateOriginEndpointRequest$ = [3, n0, _COER,
578
+ 0,
579
+ [_CI, _I, _A, _CP, _DP, _D, _HP, _MN, _MP, _O, _SWS, _T, _TDS, _W],
580
+ [[0, { [_jN]: _cI }], [0, { [_jN]: _i }], [() => Authorization$, { [_jN]: _au }], [() => CmafPackageCreateOrUpdateParameters$, { [_jN]: _cP }], [() => DashPackage$, { [_jN]: _dP }], [0, { [_jN]: _d }], [() => HlsPackage$, { [_jN]: _hP }], [0, { [_jN]: _mN }], [() => MssPackage$, { [_jN]: _mP }], [0, { [_jN]: _o }], [1, { [_jN]: _sWS }], [128 | 0, { [_jN]: _t }], [1, { [_jN]: _tDS }], [64 | 0, { [_jN]: _w }]], 2
581
+ ];
582
+ var CreateOriginEndpointResponse$ = [3, n0, _COERr,
583
+ 0,
584
+ [_Ar, _A, _CI, _CP, _CA, _DP, _D, _HP, _I, _MN, _MP, _O, _SWS, _T, _TDS, _U, _W],
585
+ [[0, { [_jN]: _a }], [() => Authorization$, { [_jN]: _au }], [0, { [_jN]: _cI }], [() => CmafPackage$, { [_jN]: _cP }], [0, { [_jN]: _cA }], [() => DashPackage$, { [_jN]: _dP }], [0, { [_jN]: _d }], [() => HlsPackage$, { [_jN]: _hP }], [0, { [_jN]: _i }], [0, { [_jN]: _mN }], [() => MssPackage$, { [_jN]: _mP }], [0, { [_jN]: _o }], [1, { [_jN]: _sWS }], [128 | 0, { [_jN]: _t }], [1, { [_jN]: _tDS }], [0, { [_jN]: _u }], [64 | 0, { [_jN]: _w }]]
586
+ ];
587
+ var DashEncryption$ = [3, n0, _DE,
588
+ 0,
589
+ [_SKP, _KRIS],
590
+ [[() => SpekeKeyProvider$, { [_jN]: _sKP }], [1, { [_jN]: _kRIS }]], 1
591
+ ];
592
+ var DashPackage$ = [3, n0, _DP,
593
+ 0,
594
+ [_AT, _AODR, _E, _IIOS, _ML, _MWS, _MBTS, _MUPS, _PT, _P, _SDS, _STF, _SSt, _SPDS, _UT, _UTU],
595
+ [[64 | 0, { [_jN]: _aT }], [0, { [_jN]: _aODR }], [() => DashEncryption$, { [_jN]: _en }], [2, { [_jN]: _iIOS }], [0, { [_jN]: _mL }], [1, { [_jN]: _mWS }], [1, { [_jN]: _mBTS }], [1, { [_jN]: _mUPS }], [64 | 0, { [_jN]: _pT }], [0, { [_jN]: _p }], [1, { [_jN]: _sDS }], [0, { [_jN]: _sTF }], [() => StreamSelection$, { [_jN]: _sS }], [1, { [_jN]: _sPDS }], [0, { [_jN]: _uT }], [0, { [_jN]: _uTU }]]
596
+ ];
597
+ var DeleteChannelRequest$ = [3, n0, _DCR,
598
+ 0,
599
+ [_I],
600
+ [[0, 1]], 1
601
+ ];
602
+ var DeleteChannelResponse$ = [3, n0, _DCRe,
603
+ 0,
604
+ [],
605
+ []
606
+ ];
607
+ var DeleteOriginEndpointRequest$ = [3, n0, _DOER,
608
+ 0,
609
+ [_I],
610
+ [[0, 1]], 1
611
+ ];
612
+ var DeleteOriginEndpointResponse$ = [3, n0, _DOERe,
613
+ 0,
614
+ [],
615
+ []
616
+ ];
617
+ var DescribeChannelRequest$ = [3, n0, _DCRes,
618
+ 0,
619
+ [_I],
620
+ [[0, 1]], 1
621
+ ];
622
+ var DescribeChannelResponse$ = [3, n0, _DCResc,
623
+ 0,
624
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
625
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
626
+ ];
627
+ var DescribeHarvestJobRequest$ = [3, n0, _DHJR,
628
+ 0,
629
+ [_I],
630
+ [[0, 1]], 1
631
+ ];
632
+ var DescribeHarvestJobResponse$ = [3, n0, _DHJRe,
633
+ 0,
634
+ [_Ar, _CI, _CA, _ET, _I, _OEI, _SD, _ST, _S],
635
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cI }], [0, { [_jN]: _cA }], [0, { [_jN]: _eT }], [0, { [_jN]: _i }], [0, { [_jN]: _oEI }], [() => S3Destination$, { [_jN]: _sD }], [0, { [_jN]: _sT }], [0, { [_jN]: _st }]]
636
+ ];
637
+ var DescribeOriginEndpointRequest$ = [3, n0, _DOERes,
638
+ 0,
639
+ [_I],
640
+ [[0, 1]], 1
641
+ ];
642
+ var DescribeOriginEndpointResponse$ = [3, n0, _DOEResc,
643
+ 0,
644
+ [_Ar, _A, _CI, _CP, _CA, _DP, _D, _HP, _I, _MN, _MP, _O, _SWS, _T, _TDS, _U, _W],
645
+ [[0, { [_jN]: _a }], [() => Authorization$, { [_jN]: _au }], [0, { [_jN]: _cI }], [() => CmafPackage$, { [_jN]: _cP }], [0, { [_jN]: _cA }], [() => DashPackage$, { [_jN]: _dP }], [0, { [_jN]: _d }], [() => HlsPackage$, { [_jN]: _hP }], [0, { [_jN]: _i }], [0, { [_jN]: _mN }], [() => MssPackage$, { [_jN]: _mP }], [0, { [_jN]: _o }], [1, { [_jN]: _sWS }], [128 | 0, { [_jN]: _t }], [1, { [_jN]: _tDS }], [0, { [_jN]: _u }], [64 | 0, { [_jN]: _w }]]
646
+ ];
647
+ var EgressAccessLogs$ = [3, n0, _EAL,
648
+ 0,
649
+ [_LGN],
650
+ [[0, { [_jN]: _lGN }]]
651
+ ];
652
+ var EncryptionContractConfiguration$ = [3, n0, _ECC,
653
+ 0,
654
+ [_PSA, _PSV],
655
+ [[0, { [_jN]: _pSA }], [0, { [_jN]: _pSV }]], 2
656
+ ];
657
+ var HarvestJob$ = [3, n0, _HJ,
658
+ 0,
659
+ [_Ar, _CI, _CA, _ET, _I, _OEI, _SD, _ST, _S],
660
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cI }], [0, { [_jN]: _cA }], [0, { [_jN]: _eT }], [0, { [_jN]: _i }], [0, { [_jN]: _oEI }], [() => S3Destination$, { [_jN]: _sD }], [0, { [_jN]: _sT }], [0, { [_jN]: _st }]]
661
+ ];
662
+ var HlsEncryption$ = [3, n0, _HE,
663
+ 0,
664
+ [_SKP, _CIV, _EM, _KRIS, _REXK],
665
+ [[() => SpekeKeyProvider$, { [_jN]: _sKP }], [0, { [_jN]: _cIV }], [0, { [_jN]: _eM }], [1, { [_jN]: _kRIS }], [2, { [_jN]: _rEXK }]], 1
666
+ ];
667
+ var HlsIngest$ = [3, n0, _HI,
668
+ 0,
669
+ [_IE],
670
+ [[() => __listOfIngestEndpoint, { [_jN]: _iE }]]
671
+ ];
672
+ var HlsManifest$ = [3, n0, _HMl,
673
+ 0,
674
+ [_I, _AM, _IIOS, _MN, _PTl, _PWS, _PDTIS, _U, _AT, _AODR],
675
+ [[0, { [_jN]: _i }], [0, { [_jN]: _aM }], [2, { [_jN]: _iIOS }], [0, { [_jN]: _mN }], [0, { [_jN]: _pTl }], [1, { [_jN]: _pWS }], [1, { [_jN]: _pDTIS }], [0, { [_jN]: _u }], [64 | 0, { [_jN]: _aT }], [0, { [_jN]: _aODR }]], 1
676
+ ];
677
+ var HlsManifestCreateOrUpdateParameters$ = [3, n0, _HMCOUP,
678
+ 0,
679
+ [_I, _AM, _AT, _AODR, _IIOS, _MN, _PTl, _PWS, _PDTIS],
680
+ [[0, { [_jN]: _i }], [0, { [_jN]: _aM }], [64 | 0, { [_jN]: _aT }], [0, { [_jN]: _aODR }], [2, { [_jN]: _iIOS }], [0, { [_jN]: _mN }], [0, { [_jN]: _pTl }], [1, { [_jN]: _pWS }], [1, { [_jN]: _pDTIS }]], 1
681
+ ];
682
+ var HlsPackage$ = [3, n0, _HP,
683
+ 0,
684
+ [_AM, _AT, _AODR, _E, _IDS, _IIOS, _PTl, _PWS, _PDTIS, _SDS, _SSt, _UARG],
685
+ [[0, { [_jN]: _aM }], [64 | 0, { [_jN]: _aT }], [0, { [_jN]: _aODR }], [() => HlsEncryption$, { [_jN]: _en }], [2, { [_jN]: _iDS }], [2, { [_jN]: _iIOS }], [0, { [_jN]: _pTl }], [1, { [_jN]: _pWS }], [1, { [_jN]: _pDTIS }], [1, { [_jN]: _sDS }], [() => StreamSelection$, { [_jN]: _sS }], [2, { [_jN]: _uARG }]]
686
+ ];
687
+ var IngestEndpoint$ = [3, n0, _IEn,
688
+ 0,
689
+ [_I, _Pa, _U, _Us],
690
+ [[0, { [_jN]: _i }], [() => SensitiveString, { [_jN]: _pa }], [0, { [_jN]: _u }], [() => SensitiveString, { [_jN]: _us }]]
691
+ ];
692
+ var IngressAccessLogs$ = [3, n0, _IAL,
693
+ 0,
694
+ [_LGN],
695
+ [[0, { [_jN]: _lGN }]]
696
+ ];
697
+ var ListChannelsRequest$ = [3, n0, _LCR,
698
+ 0,
699
+ [_MR, _NT],
700
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
701
+ ];
702
+ var ListChannelsResponse$ = [3, n0, _LCRi,
703
+ 0,
704
+ [_Ch, _NT],
705
+ [[() => __listOfChannel, { [_jN]: _ch }], [0, { [_jN]: _nT }]]
706
+ ];
707
+ var ListHarvestJobsRequest$ = [3, n0, _LHJR,
708
+ 0,
709
+ [_ICI, _IS, _MR, _NT],
710
+ [[0, { [_hQ]: _iCI }], [0, { [_hQ]: _iS }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
711
+ ];
712
+ var ListHarvestJobsResponse$ = [3, n0, _LHJRi,
713
+ 0,
714
+ [_HJa, _NT],
715
+ [[() => __listOfHarvestJob, { [_jN]: _hJ }], [0, { [_jN]: _nT }]]
716
+ ];
717
+ var ListOriginEndpointsRequest$ = [3, n0, _LOER,
718
+ 0,
719
+ [_CI, _MR, _NT],
720
+ [[0, { [_hQ]: _cI }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
721
+ ];
722
+ var ListOriginEndpointsResponse$ = [3, n0, _LOERi,
723
+ 0,
724
+ [_NT, _OE],
725
+ [[0, { [_jN]: _nT }], [() => __listOfOriginEndpoint, { [_jN]: _oE }]]
726
+ ];
727
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
728
+ 0,
729
+ [_RA],
730
+ [[0, 1]], 1
731
+ ];
732
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
733
+ 0,
734
+ [_T],
735
+ [[128 | 0, { [_jN]: _t }]]
736
+ ];
737
+ var MssEncryption$ = [3, n0, _ME,
738
+ 0,
739
+ [_SKP],
740
+ [[() => SpekeKeyProvider$, { [_jN]: _sKP }]], 1
741
+ ];
742
+ var MssPackage$ = [3, n0, _MP,
743
+ 0,
744
+ [_E, _MWS, _SDS, _SSt],
745
+ [[() => MssEncryption$, { [_jN]: _en }], [1, { [_jN]: _mWS }], [1, { [_jN]: _sDS }], [() => StreamSelection$, { [_jN]: _sS }]]
746
+ ];
747
+ var OriginEndpoint$ = [3, n0, _OEr,
748
+ 0,
749
+ [_Ar, _A, _CI, _CP, _CA, _DP, _D, _HP, _I, _MN, _MP, _O, _SWS, _T, _TDS, _U, _W],
750
+ [[0, { [_jN]: _a }], [() => Authorization$, { [_jN]: _au }], [0, { [_jN]: _cI }], [() => CmafPackage$, { [_jN]: _cP }], [0, { [_jN]: _cA }], [() => DashPackage$, { [_jN]: _dP }], [0, { [_jN]: _d }], [() => HlsPackage$, { [_jN]: _hP }], [0, { [_jN]: _i }], [0, { [_jN]: _mN }], [() => MssPackage$, { [_jN]: _mP }], [0, { [_jN]: _o }], [1, { [_jN]: _sWS }], [128 | 0, { [_jN]: _t }], [1, { [_jN]: _tDS }], [0, { [_jN]: _u }], [64 | 0, { [_jN]: _w }]]
751
+ ];
752
+ var RotateChannelCredentialsRequest$ = [3, n0, _RCCR,
753
+ 0,
754
+ [_I],
755
+ [[0, 1]], 1
756
+ ];
757
+ var RotateChannelCredentialsResponse$ = [3, n0, _RCCRo,
758
+ 0,
759
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
760
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
761
+ ];
762
+ var RotateIngestEndpointCredentialsRequest$ = [3, n0, _RIECR,
763
+ 0,
764
+ [_I, _IEI],
765
+ [[0, 1], [0, 1]], 2
766
+ ];
767
+ var RotateIngestEndpointCredentialsResponse$ = [3, n0, _RIECRo,
768
+ 0,
769
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
770
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
771
+ ];
772
+ var S3Destination$ = [3, n0, _SD,
773
+ 0,
774
+ [_BN, _MK, _RAo],
775
+ [[0, { [_jN]: _bN }], [0, { [_jN]: _mK }], [0, { [_jN]: _rA }]], 3
776
+ ];
777
+ var SpekeKeyProvider$ = [3, n0, _SKP,
778
+ 0,
779
+ [_RI, _RAo, _SI, _U, _CAe, _ECC],
780
+ [[0, { [_jN]: _rI }], [0, { [_jN]: _rA }], [64 | 0, { [_jN]: _sI }], [0, { [_jN]: _u }], [0, { [_jN]: _cAe }], [() => EncryptionContractConfiguration$, { [_jN]: _eCC }]], 4
781
+ ];
782
+ var StreamSelection$ = [3, n0, _SSt,
783
+ 0,
784
+ [_MVBPS, _MVBPSi, _SO],
785
+ [[1, { [_jN]: _mVBPS }], [1, { [_jN]: _mVBPSi }], [0, { [_jN]: _sO }]]
786
+ ];
787
+ var TagResourceRequest$ = [3, n0, _TRR,
788
+ 0,
789
+ [_RA, _T],
790
+ [[0, 1], [128 | 0, { [_jN]: _t }]], 2
791
+ ];
792
+ var UntagResourceRequest$ = [3, n0, _URR,
793
+ 0,
794
+ [_RA, _TK],
795
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
796
+ ];
797
+ var UpdateChannelRequest$ = [3, n0, _UCR,
798
+ 0,
799
+ [_I, _D],
800
+ [[0, 1], [0, { [_jN]: _d }]], 1
801
+ ];
802
+ var UpdateChannelResponse$ = [3, n0, _UCRp,
803
+ 0,
804
+ [_Ar, _CA, _D, _EAL, _HI, _I, _IAL, _T],
805
+ [[0, { [_jN]: _a }], [0, { [_jN]: _cA }], [0, { [_jN]: _d }], [() => EgressAccessLogs$, { [_jN]: _eAL }], [() => HlsIngest$, { [_jN]: _hI }], [0, { [_jN]: _i }], [() => IngressAccessLogs$, { [_jN]: _iAL }], [128 | 0, { [_jN]: _t }]]
806
+ ];
807
+ var UpdateOriginEndpointRequest$ = [3, n0, _UOER,
808
+ 0,
809
+ [_I, _A, _CP, _DP, _D, _HP, _MN, _MP, _O, _SWS, _TDS, _W],
810
+ [[0, 1], [() => Authorization$, { [_jN]: _au }], [() => CmafPackageCreateOrUpdateParameters$, { [_jN]: _cP }], [() => DashPackage$, { [_jN]: _dP }], [0, { [_jN]: _d }], [() => HlsPackage$, { [_jN]: _hP }], [0, { [_jN]: _mN }], [() => MssPackage$, { [_jN]: _mP }], [0, { [_jN]: _o }], [1, { [_jN]: _sWS }], [1, { [_jN]: _tDS }], [64 | 0, { [_jN]: _w }]], 1
811
+ ];
812
+ var UpdateOriginEndpointResponse$ = [3, n0, _UOERp,
813
+ 0,
814
+ [_Ar, _A, _CI, _CP, _CA, _DP, _D, _HP, _I, _MN, _MP, _O, _SWS, _T, _TDS, _U, _W],
815
+ [[0, { [_jN]: _a }], [() => Authorization$, { [_jN]: _au }], [0, { [_jN]: _cI }], [() => CmafPackage$, { [_jN]: _cP }], [0, { [_jN]: _cA }], [() => DashPackage$, { [_jN]: _dP }], [0, { [_jN]: _d }], [() => HlsPackage$, { [_jN]: _hP }], [0, { [_jN]: _i }], [0, { [_jN]: _mN }], [() => MssPackage$, { [_jN]: _mP }], [0, { [_jN]: _o }], [1, { [_jN]: _sWS }], [128 | 0, { [_jN]: _t }], [1, { [_jN]: _tDS }], [0, { [_jN]: _u }], [64 | 0, { [_jN]: _w }]]
816
+ ];
817
+ var __Unit = "unit";
818
+ var __listOfChannel = [1, n0, _lOC,
819
+ 0, [() => Channel$,
820
+ 0]
821
+ ];
822
+ var __listOfHarvestJob = [1, n0, _lOHJ,
823
+ 0, [() => HarvestJob$,
824
+ 0]
825
+ ];
826
+ var __listOfHlsManifest = [1, n0, _lOHM,
827
+ 0, [() => HlsManifest$,
828
+ 0]
829
+ ];
830
+ var __listOfHlsManifestCreateOrUpdateParameters = [1, n0, _lOHMCOUP,
831
+ 0, [() => HlsManifestCreateOrUpdateParameters$,
832
+ 0]
833
+ ];
834
+ var __listOfIngestEndpoint = [1, n0, _lOIE,
835
+ 0, [() => IngestEndpoint$,
836
+ 0]
837
+ ];
838
+ var __listOfOriginEndpoint = [1, n0, _lOOE,
839
+ 0, [() => OriginEndpoint$,
840
+ 0]
841
+ ];
842
+ var ConfigureLogs$ = [9, n0, _CL,
843
+ { [_h]: ["PUT", "/channels/{Id}/configure_logs", 200] }, () => ConfigureLogsRequest$, () => ConfigureLogsResponse$
844
+ ];
845
+ var CreateChannel$ = [9, n0, _CC,
846
+ { [_h]: ["POST", "/channels", 200] }, () => CreateChannelRequest$, () => CreateChannelResponse$
847
+ ];
848
+ var CreateHarvestJob$ = [9, n0, _CHJ,
849
+ { [_h]: ["POST", "/harvest_jobs", 200] }, () => CreateHarvestJobRequest$, () => CreateHarvestJobResponse$
850
+ ];
851
+ var CreateOriginEndpoint$ = [9, n0, _COE,
852
+ { [_h]: ["POST", "/origin_endpoints", 200] }, () => CreateOriginEndpointRequest$, () => CreateOriginEndpointResponse$
853
+ ];
854
+ var DeleteChannel$ = [9, n0, _DC,
855
+ { [_h]: ["DELETE", "/channels/{Id}", 202] }, () => DeleteChannelRequest$, () => DeleteChannelResponse$
856
+ ];
857
+ var DeleteOriginEndpoint$ = [9, n0, _DOE,
858
+ { [_h]: ["DELETE", "/origin_endpoints/{Id}", 202] }, () => DeleteOriginEndpointRequest$, () => DeleteOriginEndpointResponse$
859
+ ];
860
+ var DescribeChannel$ = [9, n0, _DCe,
861
+ { [_h]: ["GET", "/channels/{Id}", 200] }, () => DescribeChannelRequest$, () => DescribeChannelResponse$
862
+ ];
863
+ var DescribeHarvestJob$ = [9, n0, _DHJ,
864
+ { [_h]: ["GET", "/harvest_jobs/{Id}", 200] }, () => DescribeHarvestJobRequest$, () => DescribeHarvestJobResponse$
865
+ ];
866
+ var DescribeOriginEndpoint$ = [9, n0, _DOEe,
867
+ { [_h]: ["GET", "/origin_endpoints/{Id}", 200] }, () => DescribeOriginEndpointRequest$, () => DescribeOriginEndpointResponse$
868
+ ];
869
+ var ListChannels$ = [9, n0, _LC,
870
+ { [_h]: ["GET", "/channels", 200] }, () => ListChannelsRequest$, () => ListChannelsResponse$
871
+ ];
872
+ var ListHarvestJobs$ = [9, n0, _LHJ,
873
+ { [_h]: ["GET", "/harvest_jobs", 200] }, () => ListHarvestJobsRequest$, () => ListHarvestJobsResponse$
874
+ ];
875
+ var ListOriginEndpoints$ = [9, n0, _LOE,
876
+ { [_h]: ["GET", "/origin_endpoints", 200] }, () => ListOriginEndpointsRequest$, () => ListOriginEndpointsResponse$
877
+ ];
878
+ var ListTagsForResource$ = [9, n0, _LTFR,
879
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
880
+ ];
881
+ var RotateChannelCredentials$ = [9, n0, _RCC,
882
+ { [_h]: ["PUT", "/channels/{Id}/credentials", 200] }, () => RotateChannelCredentialsRequest$, () => RotateChannelCredentialsResponse$
883
+ ];
884
+ var RotateIngestEndpointCredentials$ = [9, n0, _RIEC,
885
+ { [_h]: ["PUT", "/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials", 200] }, () => RotateIngestEndpointCredentialsRequest$, () => RotateIngestEndpointCredentialsResponse$
886
+ ];
887
+ var TagResource$ = [9, n0, _TR,
888
+ { [_h]: ["POST", "/tags/{ResourceArn}", 204] }, () => TagResourceRequest$, () => __Unit
889
+ ];
890
+ var UntagResource$ = [9, n0, _UR,
891
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => __Unit
892
+ ];
893
+ var UpdateChannel$ = [9, n0, _UC,
894
+ { [_h]: ["PUT", "/channels/{Id}", 200] }, () => UpdateChannelRequest$, () => UpdateChannelResponse$
895
+ ];
896
+ var UpdateOriginEndpoint$ = [9, n0, _UOE,
897
+ { [_h]: ["PUT", "/origin_endpoints/{Id}", 200] }, () => UpdateOriginEndpointRequest$, () => UpdateOriginEndpointResponse$
898
+ ];
899
+
900
+ const getRuntimeConfig$1 = (config) => {
901
+ return {
902
+ apiVersion: "2017-10-12",
903
+ base64Decoder: config?.base64Decoder ?? fromBase64,
904
+ base64Encoder: config?.base64Encoder ?? toBase64,
905
+ disableHostPrefix: config?.disableHostPrefix ?? false,
906
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
907
+ extensions: config?.extensions ?? [],
908
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMediaPackageHttpAuthSchemeProvider,
909
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
910
+ {
911
+ schemeId: "aws.auth#sigv4",
912
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
913
+ signer: new AwsSdkSigV4Signer(),
914
+ },
915
+ ],
916
+ logger: config?.logger ?? new NoOpLogger(),
917
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
918
+ protocolSettings: config?.protocolSettings ?? {
919
+ defaultNamespace: "com.amazonaws.mediapackage",
920
+ errorTypeRegistries,
921
+ version: "2017-10-12",
922
+ serviceTarget: "MediaPackage",
923
+ },
924
+ serviceId: config?.serviceId ?? "MediaPackage",
925
+ sha256: config?.sha256 ?? Sha256,
926
+ urlParser: config?.urlParser ?? parseUrl,
927
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
928
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
929
+ };
930
+ };
931
+
932
+ const getRuntimeConfig = (config) => {
933
+ emitWarningIfUnsupportedVersion(process.version);
934
+ const defaultsMode = resolveDefaultsModeConfig(config);
935
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
936
+ const clientSharedValues = getRuntimeConfig$1(config);
937
+ emitWarningIfUnsupportedVersion$1(process.version);
938
+ const loaderConfig = {
939
+ profile: config?.profile,
940
+ logger: clientSharedValues.logger,
941
+ };
942
+ return {
943
+ ...clientSharedValues,
944
+ ...config,
945
+ runtime: "node",
946
+ defaultsMode,
947
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
948
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
949
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
950
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
951
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
952
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
953
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
954
+ retryMode: config?.retryMode ??
955
+ loadConfig({
956
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
957
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
958
+ }, config),
959
+ streamCollector: config?.streamCollector ?? streamCollector,
960
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
961
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
962
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
963
+ };
964
+ };
965
+
34
966
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
967
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
968
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -471,41 +1403,134 @@ const Origination = {
471
1403
 
472
1404
  exports.AdMarkers = AdMarkers;
473
1405
  exports.AdsOnDeliveryRestrictions = AdsOnDeliveryRestrictions;
1406
+ exports.Authorization$ = Authorization$;
1407
+ exports.Channel$ = Channel$;
1408
+ exports.CmafEncryption$ = CmafEncryption$;
474
1409
  exports.CmafEncryptionMethod = CmafEncryptionMethod;
1410
+ exports.CmafPackage$ = CmafPackage$;
1411
+ exports.CmafPackageCreateOrUpdateParameters$ = CmafPackageCreateOrUpdateParameters$;
1412
+ exports.ConfigureLogs$ = ConfigureLogs$;
475
1413
  exports.ConfigureLogsCommand = ConfigureLogsCommand;
1414
+ exports.ConfigureLogsRequest$ = ConfigureLogsRequest$;
1415
+ exports.ConfigureLogsResponse$ = ConfigureLogsResponse$;
1416
+ exports.CreateChannel$ = CreateChannel$;
476
1417
  exports.CreateChannelCommand = CreateChannelCommand;
1418
+ exports.CreateChannelRequest$ = CreateChannelRequest$;
1419
+ exports.CreateChannelResponse$ = CreateChannelResponse$;
1420
+ exports.CreateHarvestJob$ = CreateHarvestJob$;
477
1421
  exports.CreateHarvestJobCommand = CreateHarvestJobCommand;
1422
+ exports.CreateHarvestJobRequest$ = CreateHarvestJobRequest$;
1423
+ exports.CreateHarvestJobResponse$ = CreateHarvestJobResponse$;
1424
+ exports.CreateOriginEndpoint$ = CreateOriginEndpoint$;
478
1425
  exports.CreateOriginEndpointCommand = CreateOriginEndpointCommand;
1426
+ exports.CreateOriginEndpointRequest$ = CreateOriginEndpointRequest$;
1427
+ exports.CreateOriginEndpointResponse$ = CreateOriginEndpointResponse$;
1428
+ exports.DashEncryption$ = DashEncryption$;
1429
+ exports.DashPackage$ = DashPackage$;
1430
+ exports.DeleteChannel$ = DeleteChannel$;
479
1431
  exports.DeleteChannelCommand = DeleteChannelCommand;
1432
+ exports.DeleteChannelRequest$ = DeleteChannelRequest$;
1433
+ exports.DeleteChannelResponse$ = DeleteChannelResponse$;
1434
+ exports.DeleteOriginEndpoint$ = DeleteOriginEndpoint$;
480
1435
  exports.DeleteOriginEndpointCommand = DeleteOriginEndpointCommand;
1436
+ exports.DeleteOriginEndpointRequest$ = DeleteOriginEndpointRequest$;
1437
+ exports.DeleteOriginEndpointResponse$ = DeleteOriginEndpointResponse$;
1438
+ exports.DescribeChannel$ = DescribeChannel$;
481
1439
  exports.DescribeChannelCommand = DescribeChannelCommand;
1440
+ exports.DescribeChannelRequest$ = DescribeChannelRequest$;
1441
+ exports.DescribeChannelResponse$ = DescribeChannelResponse$;
1442
+ exports.DescribeHarvestJob$ = DescribeHarvestJob$;
482
1443
  exports.DescribeHarvestJobCommand = DescribeHarvestJobCommand;
1444
+ exports.DescribeHarvestJobRequest$ = DescribeHarvestJobRequest$;
1445
+ exports.DescribeHarvestJobResponse$ = DescribeHarvestJobResponse$;
1446
+ exports.DescribeOriginEndpoint$ = DescribeOriginEndpoint$;
483
1447
  exports.DescribeOriginEndpointCommand = DescribeOriginEndpointCommand;
1448
+ exports.DescribeOriginEndpointRequest$ = DescribeOriginEndpointRequest$;
1449
+ exports.DescribeOriginEndpointResponse$ = DescribeOriginEndpointResponse$;
1450
+ exports.EgressAccessLogs$ = EgressAccessLogs$;
1451
+ exports.EncryptionContractConfiguration$ = EncryptionContractConfiguration$;
484
1452
  exports.EncryptionMethod = EncryptionMethod;
1453
+ exports.ForbiddenException = ForbiddenException;
1454
+ exports.ForbiddenException$ = ForbiddenException$;
1455
+ exports.HarvestJob$ = HarvestJob$;
1456
+ exports.HlsEncryption$ = HlsEncryption$;
1457
+ exports.HlsIngest$ = HlsIngest$;
1458
+ exports.HlsManifest$ = HlsManifest$;
1459
+ exports.HlsManifestCreateOrUpdateParameters$ = HlsManifestCreateOrUpdateParameters$;
1460
+ exports.HlsPackage$ = HlsPackage$;
1461
+ exports.IngestEndpoint$ = IngestEndpoint$;
1462
+ exports.IngressAccessLogs$ = IngressAccessLogs$;
1463
+ exports.InternalServerErrorException = InternalServerErrorException;
1464
+ exports.InternalServerErrorException$ = InternalServerErrorException$;
1465
+ exports.ListChannels$ = ListChannels$;
485
1466
  exports.ListChannelsCommand = ListChannelsCommand;
1467
+ exports.ListChannelsRequest$ = ListChannelsRequest$;
1468
+ exports.ListChannelsResponse$ = ListChannelsResponse$;
1469
+ exports.ListHarvestJobs$ = ListHarvestJobs$;
486
1470
  exports.ListHarvestJobsCommand = ListHarvestJobsCommand;
1471
+ exports.ListHarvestJobsRequest$ = ListHarvestJobsRequest$;
1472
+ exports.ListHarvestJobsResponse$ = ListHarvestJobsResponse$;
1473
+ exports.ListOriginEndpoints$ = ListOriginEndpoints$;
487
1474
  exports.ListOriginEndpointsCommand = ListOriginEndpointsCommand;
1475
+ exports.ListOriginEndpointsRequest$ = ListOriginEndpointsRequest$;
1476
+ exports.ListOriginEndpointsResponse$ = ListOriginEndpointsResponse$;
1477
+ exports.ListTagsForResource$ = ListTagsForResource$;
488
1478
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1479
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1480
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
489
1481
  exports.ManifestLayout = ManifestLayout;
490
1482
  exports.MediaPackage = MediaPackage;
491
1483
  exports.MediaPackageClient = MediaPackageClient;
1484
+ exports.MediaPackageServiceException = MediaPackageServiceException;
1485
+ exports.MediaPackageServiceException$ = MediaPackageServiceException$;
1486
+ exports.MssEncryption$ = MssEncryption$;
1487
+ exports.MssPackage$ = MssPackage$;
1488
+ exports.NotFoundException = NotFoundException;
1489
+ exports.NotFoundException$ = NotFoundException$;
1490
+ exports.OriginEndpoint$ = OriginEndpoint$;
492
1491
  exports.Origination = Origination;
493
1492
  exports.PlaylistType = PlaylistType;
494
1493
  exports.PresetSpeke20Audio = PresetSpeke20Audio;
495
1494
  exports.PresetSpeke20Video = PresetSpeke20Video;
496
1495
  exports.Profile = Profile;
1496
+ exports.RotateChannelCredentials$ = RotateChannelCredentials$;
497
1497
  exports.RotateChannelCredentialsCommand = RotateChannelCredentialsCommand;
1498
+ exports.RotateChannelCredentialsRequest$ = RotateChannelCredentialsRequest$;
1499
+ exports.RotateChannelCredentialsResponse$ = RotateChannelCredentialsResponse$;
1500
+ exports.RotateIngestEndpointCredentials$ = RotateIngestEndpointCredentials$;
498
1501
  exports.RotateIngestEndpointCredentialsCommand = RotateIngestEndpointCredentialsCommand;
1502
+ exports.RotateIngestEndpointCredentialsRequest$ = RotateIngestEndpointCredentialsRequest$;
1503
+ exports.RotateIngestEndpointCredentialsResponse$ = RotateIngestEndpointCredentialsResponse$;
1504
+ exports.S3Destination$ = S3Destination$;
499
1505
  exports.SegmentTemplateFormat = SegmentTemplateFormat;
1506
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1507
+ exports.ServiceUnavailableException$ = ServiceUnavailableException$;
1508
+ exports.SpekeKeyProvider$ = SpekeKeyProvider$;
500
1509
  exports.Status = Status;
501
1510
  exports.StreamOrder = StreamOrder;
1511
+ exports.StreamSelection$ = StreamSelection$;
1512
+ exports.TagResource$ = TagResource$;
502
1513
  exports.TagResourceCommand = TagResourceCommand;
1514
+ exports.TagResourceRequest$ = TagResourceRequest$;
1515
+ exports.TooManyRequestsException = TooManyRequestsException;
1516
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
1517
+ exports.UnprocessableEntityException = UnprocessableEntityException;
1518
+ exports.UnprocessableEntityException$ = UnprocessableEntityException$;
1519
+ exports.UntagResource$ = UntagResource$;
503
1520
  exports.UntagResourceCommand = UntagResourceCommand;
1521
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1522
+ exports.UpdateChannel$ = UpdateChannel$;
504
1523
  exports.UpdateChannelCommand = UpdateChannelCommand;
1524
+ exports.UpdateChannelRequest$ = UpdateChannelRequest$;
1525
+ exports.UpdateChannelResponse$ = UpdateChannelResponse$;
1526
+ exports.UpdateOriginEndpoint$ = UpdateOriginEndpoint$;
505
1527
  exports.UpdateOriginEndpointCommand = UpdateOriginEndpointCommand;
1528
+ exports.UpdateOriginEndpointRequest$ = UpdateOriginEndpointRequest$;
1529
+ exports.UpdateOriginEndpointResponse$ = UpdateOriginEndpointResponse$;
506
1530
  exports.UtcTiming = UtcTiming;
507
1531
  exports.__AdTriggersElement = __AdTriggersElement;
508
1532
  exports.__PeriodTriggersElement = __PeriodTriggersElement;
1533
+ exports.errorTypeRegistries = errorTypeRegistries;
509
1534
  exports.paginateListChannels = paginateListChannels;
510
1535
  exports.paginateListHarvestJobs = paginateListHarvestJobs;
511
1536
  exports.paginateListOriginEndpoints = paginateListOriginEndpoints;