@aws-sdk/client-mediapackage 3.899.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1860 -2002
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,2035 +1,1893 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AdMarkers: () => AdMarkers,
25
- AdsOnDeliveryRestrictions: () => AdsOnDeliveryRestrictions,
26
- ChannelFilterSensitiveLog: () => ChannelFilterSensitiveLog,
27
- CmafEncryptionMethod: () => CmafEncryptionMethod,
28
- ConfigureLogsCommand: () => ConfigureLogsCommand,
29
- ConfigureLogsResponseFilterSensitiveLog: () => ConfigureLogsResponseFilterSensitiveLog,
30
- CreateChannelCommand: () => CreateChannelCommand,
31
- CreateChannelResponseFilterSensitiveLog: () => CreateChannelResponseFilterSensitiveLog,
32
- CreateHarvestJobCommand: () => CreateHarvestJobCommand,
33
- CreateOriginEndpointCommand: () => CreateOriginEndpointCommand,
34
- DeleteChannelCommand: () => DeleteChannelCommand,
35
- DeleteOriginEndpointCommand: () => DeleteOriginEndpointCommand,
36
- DescribeChannelCommand: () => DescribeChannelCommand,
37
- DescribeChannelResponseFilterSensitiveLog: () => DescribeChannelResponseFilterSensitiveLog,
38
- DescribeHarvestJobCommand: () => DescribeHarvestJobCommand,
39
- DescribeOriginEndpointCommand: () => DescribeOriginEndpointCommand,
40
- EncryptionMethod: () => EncryptionMethod,
41
- ForbiddenException: () => ForbiddenException,
42
- HlsIngestFilterSensitiveLog: () => HlsIngestFilterSensitiveLog,
43
- IngestEndpointFilterSensitiveLog: () => IngestEndpointFilterSensitiveLog,
44
- InternalServerErrorException: () => InternalServerErrorException,
45
- ListChannelsCommand: () => ListChannelsCommand,
46
- ListChannelsResponseFilterSensitiveLog: () => ListChannelsResponseFilterSensitiveLog,
47
- ListHarvestJobsCommand: () => ListHarvestJobsCommand,
48
- ListOriginEndpointsCommand: () => ListOriginEndpointsCommand,
49
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
50
- ManifestLayout: () => ManifestLayout,
51
- MediaPackage: () => MediaPackage,
52
- MediaPackageClient: () => MediaPackageClient,
53
- MediaPackageServiceException: () => MediaPackageServiceException,
54
- NotFoundException: () => NotFoundException,
55
- Origination: () => Origination,
56
- PlaylistType: () => PlaylistType,
57
- PresetSpeke20Audio: () => PresetSpeke20Audio,
58
- PresetSpeke20Video: () => PresetSpeke20Video,
59
- Profile: () => Profile,
60
- RotateChannelCredentialsCommand: () => RotateChannelCredentialsCommand,
61
- RotateChannelCredentialsResponseFilterSensitiveLog: () => RotateChannelCredentialsResponseFilterSensitiveLog,
62
- RotateIngestEndpointCredentialsCommand: () => RotateIngestEndpointCredentialsCommand,
63
- RotateIngestEndpointCredentialsResponseFilterSensitiveLog: () => RotateIngestEndpointCredentialsResponseFilterSensitiveLog,
64
- SegmentTemplateFormat: () => SegmentTemplateFormat,
65
- ServiceUnavailableException: () => ServiceUnavailableException,
66
- Status: () => Status,
67
- StreamOrder: () => StreamOrder,
68
- TagResourceCommand: () => TagResourceCommand,
69
- TooManyRequestsException: () => TooManyRequestsException,
70
- UnprocessableEntityException: () => UnprocessableEntityException,
71
- UntagResourceCommand: () => UntagResourceCommand,
72
- UpdateChannelCommand: () => UpdateChannelCommand,
73
- UpdateChannelResponseFilterSensitiveLog: () => UpdateChannelResponseFilterSensitiveLog,
74
- UpdateOriginEndpointCommand: () => UpdateOriginEndpointCommand,
75
- UtcTiming: () => UtcTiming,
76
- __AdTriggersElement: () => __AdTriggersElement,
77
- __Client: () => import_smithy_client.Client,
78
- __PeriodTriggersElement: () => __PeriodTriggersElement,
79
- paginateListChannels: () => paginateListChannels,
80
- paginateListHarvestJobs: () => paginateListHarvestJobs,
81
- paginateListOriginEndpoints: () => paginateListOriginEndpoints
82
- });
83
- module.exports = __toCommonJS(index_exports);
84
-
85
- // src/MediaPackageClient.ts
86
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
87
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
88
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
89
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
90
- var import_config_resolver = require("@smithy/config-resolver");
91
- var import_core = require("@smithy/core");
92
- var import_middleware_content_length = require("@smithy/middleware-content-length");
93
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
94
- var import_middleware_retry = require("@smithy/middleware-retry");
95
-
96
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
97
-
98
- // src/endpoint/EndpointParameters.ts
99
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
100
- return Object.assign(options, {
101
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
102
- useFipsEndpoint: options.useFipsEndpoint ?? false,
103
- defaultSigningName: "mediapackage"
104
- });
105
- }, "resolveClientEndpointParameters");
106
- var commonParams = {
107
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
108
- Endpoint: { type: "builtInParams", name: "endpoint" },
109
- Region: { type: "builtInParams", name: "region" },
110
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "mediapackage",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
111
32
  };
112
33
 
113
- // src/MediaPackageClient.ts
114
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
115
72
 
116
- // src/runtimeExtensions.ts
117
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
118
- var import_protocol_http = require("@smithy/protocol-http");
119
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
120
78
 
121
- // src/auth/httpAuthExtensionConfiguration.ts
122
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
123
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
124
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
125
- let _credentials = runtimeConfig.credentials;
126
- return {
127
- setHttpAuthScheme(httpAuthScheme) {
128
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
129
- if (index === -1) {
130
- _httpAuthSchemes.push(httpAuthScheme);
131
- } else {
132
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
133
- }
134
- },
135
- httpAuthSchemes() {
136
- return _httpAuthSchemes;
137
- },
138
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
139
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
140
- },
141
- httpAuthSchemeProvider() {
142
- return _httpAuthSchemeProvider;
143
- },
144
- setCredentials(credentials) {
145
- _credentials = credentials;
146
- },
147
- credentials() {
148
- return _credentials;
79
+ class MediaPackageClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMediaPackageHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
149
107
  }
150
- };
151
- }, "getHttpAuthExtensionConfiguration");
152
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
153
- return {
154
- httpAuthSchemes: config.httpAuthSchemes(),
155
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
156
- credentials: config.credentials()
157
- };
158
- }, "resolveHttpAuthRuntimeConfig");
159
-
160
- // src/runtimeExtensions.ts
161
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
162
- const extensionConfiguration = Object.assign(
163
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
164
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
165
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
166
- getHttpAuthExtensionConfiguration(runtimeConfig)
167
- );
168
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
169
- return Object.assign(
170
- runtimeConfig,
171
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
172
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
173
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
174
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
175
- );
176
- }, "resolveRuntimeExtensions");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
177
112
 
178
- // src/MediaPackageClient.ts
179
- var MediaPackageClient = class extends import_smithy_client.Client {
180
- static {
181
- __name(this, "MediaPackageClient");
182
- }
183
- /**
184
- * The resolved configuration of MediaPackageClient class. This is resolved and normalized from the {@link MediaPackageClientConfig | constructor configuration interface}.
185
- */
186
- config;
187
- constructor(...[configuration]) {
188
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
189
- super(_config_0);
190
- this.initConfig = _config_0;
191
- const _config_1 = resolveClientEndpointParameters(_config_0);
192
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
193
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
194
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
195
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
196
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
197
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
198
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
199
- this.config = _config_8;
200
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
201
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
202
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
203
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
204
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
205
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
206
- this.middlewareStack.use(
207
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
208
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMediaPackageHttpAuthSchemeParametersProvider,
209
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
210
- "aws.auth#sigv4": config.credentials
211
- }), "identityProviderConfigProvider")
212
- })
213
- );
214
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
215
- }
216
- /**
217
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
218
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
219
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
220
- */
221
- destroy() {
222
- super.destroy();
223
- }
113
+ class MediaPackageServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, MediaPackageServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ const __AdTriggersElement = {
121
+ BREAK: "BREAK",
122
+ DISTRIBUTOR_ADVERTISEMENT: "DISTRIBUTOR_ADVERTISEMENT",
123
+ DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY",
124
+ DISTRIBUTOR_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_PLACEMENT_OPPORTUNITY",
125
+ PROVIDER_ADVERTISEMENT: "PROVIDER_ADVERTISEMENT",
126
+ PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY: "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY",
127
+ PROVIDER_PLACEMENT_OPPORTUNITY: "PROVIDER_PLACEMENT_OPPORTUNITY",
128
+ SPLICE_INSERT: "SPLICE_INSERT",
224
129
  };
225
-
226
- // src/MediaPackage.ts
227
-
228
-
229
- // src/commands/ConfigureLogsCommand.ts
230
-
231
- var import_middleware_serde = require("@smithy/middleware-serde");
232
-
233
-
234
- // src/models/models_0.ts
235
-
236
-
237
- // src/models/MediaPackageServiceException.ts
238
-
239
- var MediaPackageServiceException = class _MediaPackageServiceException extends import_smithy_client.ServiceException {
240
- static {
241
- __name(this, "MediaPackageServiceException");
242
- }
243
- /**
244
- * @internal
245
- */
246
- constructor(options) {
247
- super(options);
248
- Object.setPrototypeOf(this, _MediaPackageServiceException.prototype);
249
- }
130
+ const __PeriodTriggersElement = {
131
+ ADS: "ADS",
250
132
  };
251
-
252
- // src/models/models_0.ts
253
- var __AdTriggersElement = {
254
- BREAK: "BREAK",
255
- DISTRIBUTOR_ADVERTISEMENT: "DISTRIBUTOR_ADVERTISEMENT",
256
- DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY",
257
- DISTRIBUTOR_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_PLACEMENT_OPPORTUNITY",
258
- PROVIDER_ADVERTISEMENT: "PROVIDER_ADVERTISEMENT",
259
- PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY: "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY",
260
- PROVIDER_PLACEMENT_OPPORTUNITY: "PROVIDER_PLACEMENT_OPPORTUNITY",
261
- SPLICE_INSERT: "SPLICE_INSERT"
262
- };
263
- var __PeriodTriggersElement = {
264
- ADS: "ADS"
265
- };
266
- var Status = {
267
- FAILED: "FAILED",
268
- IN_PROGRESS: "IN_PROGRESS",
269
- SUCCEEDED: "SUCCEEDED"
270
- };
271
- var AdMarkers = {
272
- DATERANGE: "DATERANGE",
273
- NONE: "NONE",
274
- PASSTHROUGH: "PASSTHROUGH",
275
- SCTE35_ENHANCED: "SCTE35_ENHANCED"
276
- };
277
- var AdsOnDeliveryRestrictions = {
278
- BOTH: "BOTH",
279
- NONE: "NONE",
280
- RESTRICTED: "RESTRICTED",
281
- UNRESTRICTED: "UNRESTRICTED"
282
- };
283
- var PlaylistType = {
284
- EVENT: "EVENT",
285
- NONE: "NONE",
286
- VOD: "VOD"
287
- };
288
- var CmafEncryptionMethod = {
289
- AES_CTR: "AES_CTR",
290
- SAMPLE_AES: "SAMPLE_AES"
291
- };
292
- var PresetSpeke20Audio = {
293
- PRESET_AUDIO_1: "PRESET-AUDIO-1",
294
- PRESET_AUDIO_2: "PRESET-AUDIO-2",
295
- PRESET_AUDIO_3: "PRESET-AUDIO-3",
296
- SHARED: "SHARED",
297
- UNENCRYPTED: "UNENCRYPTED"
298
- };
299
- var PresetSpeke20Video = {
300
- PRESET_VIDEO_1: "PRESET-VIDEO-1",
301
- PRESET_VIDEO_2: "PRESET-VIDEO-2",
302
- PRESET_VIDEO_3: "PRESET-VIDEO-3",
303
- PRESET_VIDEO_4: "PRESET-VIDEO-4",
304
- PRESET_VIDEO_5: "PRESET-VIDEO-5",
305
- PRESET_VIDEO_6: "PRESET-VIDEO-6",
306
- PRESET_VIDEO_7: "PRESET-VIDEO-7",
307
- PRESET_VIDEO_8: "PRESET-VIDEO-8",
308
- SHARED: "SHARED",
309
- UNENCRYPTED: "UNENCRYPTED"
310
- };
311
- var StreamOrder = {
312
- ORIGINAL: "ORIGINAL",
313
- VIDEO_BITRATE_ASCENDING: "VIDEO_BITRATE_ASCENDING",
314
- VIDEO_BITRATE_DESCENDING: "VIDEO_BITRATE_DESCENDING"
315
- };
316
- var ManifestLayout = {
317
- COMPACT: "COMPACT",
318
- DRM_TOP_LEVEL_COMPACT: "DRM_TOP_LEVEL_COMPACT",
319
- FULL: "FULL"
320
- };
321
- var Profile = {
322
- DVB_DASH_2014: "DVB_DASH_2014",
323
- HBBTV_1_5: "HBBTV_1_5",
324
- HYBRIDCAST: "HYBRIDCAST",
325
- NONE: "NONE"
326
- };
327
- var SegmentTemplateFormat = {
328
- NUMBER_WITH_DURATION: "NUMBER_WITH_DURATION",
329
- NUMBER_WITH_TIMELINE: "NUMBER_WITH_TIMELINE",
330
- TIME_WITH_TIMELINE: "TIME_WITH_TIMELINE"
331
- };
332
- var UtcTiming = {
333
- HTTP_HEAD: "HTTP-HEAD",
334
- HTTP_ISO: "HTTP-ISO",
335
- HTTP_XSDATE: "HTTP-XSDATE",
336
- NONE: "NONE"
337
- };
338
- var EncryptionMethod = {
339
- AES_128: "AES_128",
340
- SAMPLE_AES: "SAMPLE_AES"
341
- };
342
- var Origination = {
343
- ALLOW: "ALLOW",
344
- DENY: "DENY"
345
- };
346
- var ForbiddenException = class _ForbiddenException extends MediaPackageServiceException {
347
- static {
348
- __name(this, "ForbiddenException");
349
- }
350
- name = "ForbiddenException";
351
- $fault = "client";
352
- Message;
353
- /**
354
- * @internal
355
- */
356
- constructor(opts) {
357
- super({
358
- name: "ForbiddenException",
359
- $fault: "client",
360
- ...opts
361
- });
362
- Object.setPrototypeOf(this, _ForbiddenException.prototype);
363
- this.Message = opts.Message;
364
- }
365
- };
366
- var InternalServerErrorException = class _InternalServerErrorException extends MediaPackageServiceException {
367
- static {
368
- __name(this, "InternalServerErrorException");
369
- }
370
- name = "InternalServerErrorException";
371
- $fault = "server";
372
- Message;
373
- /**
374
- * @internal
375
- */
376
- constructor(opts) {
377
- super({
378
- name: "InternalServerErrorException",
379
- $fault: "server",
380
- ...opts
381
- });
382
- Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
383
- this.Message = opts.Message;
384
- }
385
- };
386
- var NotFoundException = class _NotFoundException extends MediaPackageServiceException {
387
- static {
388
- __name(this, "NotFoundException");
389
- }
390
- name = "NotFoundException";
391
- $fault = "client";
392
- Message;
393
- /**
394
- * @internal
395
- */
396
- constructor(opts) {
397
- super({
398
- name: "NotFoundException",
399
- $fault: "client",
400
- ...opts
401
- });
402
- Object.setPrototypeOf(this, _NotFoundException.prototype);
403
- this.Message = opts.Message;
404
- }
405
- };
406
- var ServiceUnavailableException = class _ServiceUnavailableException extends MediaPackageServiceException {
407
- static {
408
- __name(this, "ServiceUnavailableException");
409
- }
410
- name = "ServiceUnavailableException";
411
- $fault = "server";
412
- Message;
413
- /**
414
- * @internal
415
- */
416
- constructor(opts) {
417
- super({
418
- name: "ServiceUnavailableException",
419
- $fault: "server",
420
- ...opts
421
- });
422
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
423
- this.Message = opts.Message;
424
- }
425
- };
426
- var TooManyRequestsException = class _TooManyRequestsException extends MediaPackageServiceException {
427
- static {
428
- __name(this, "TooManyRequestsException");
429
- }
430
- name = "TooManyRequestsException";
431
- $fault = "client";
432
- Message;
433
- /**
434
- * @internal
435
- */
436
- constructor(opts) {
437
- super({
438
- name: "TooManyRequestsException",
439
- $fault: "client",
440
- ...opts
441
- });
442
- Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
443
- this.Message = opts.Message;
444
- }
445
- };
446
- var UnprocessableEntityException = class _UnprocessableEntityException extends MediaPackageServiceException {
447
- static {
448
- __name(this, "UnprocessableEntityException");
449
- }
450
- name = "UnprocessableEntityException";
451
- $fault = "client";
452
- Message;
453
- /**
454
- * @internal
455
- */
456
- constructor(opts) {
457
- super({
458
- name: "UnprocessableEntityException",
459
- $fault: "client",
460
- ...opts
461
- });
462
- Object.setPrototypeOf(this, _UnprocessableEntityException.prototype);
463
- this.Message = opts.Message;
464
- }
465
- };
466
- var IngestEndpointFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
467
- ...obj,
468
- ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING },
469
- ...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
470
- }), "IngestEndpointFilterSensitiveLog");
471
- var HlsIngestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
472
- ...obj,
473
- ...obj.IngestEndpoints && {
474
- IngestEndpoints: obj.IngestEndpoints.map((item) => IngestEndpointFilterSensitiveLog(item))
475
- }
476
- }), "HlsIngestFilterSensitiveLog");
477
- var ChannelFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
478
- ...obj,
479
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
480
- }), "ChannelFilterSensitiveLog");
481
- var ConfigureLogsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
482
- ...obj,
483
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
484
- }), "ConfigureLogsResponseFilterSensitiveLog");
485
- var CreateChannelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
486
- ...obj,
487
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
488
- }), "CreateChannelResponseFilterSensitiveLog");
489
- var DescribeChannelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
490
- ...obj,
491
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
492
- }), "DescribeChannelResponseFilterSensitiveLog");
493
- var ListChannelsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
494
- ...obj
495
- }), "ListChannelsResponseFilterSensitiveLog");
496
- var RotateChannelCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
497
- ...obj,
498
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
499
- }), "RotateChannelCredentialsResponseFilterSensitiveLog");
500
- var RotateIngestEndpointCredentialsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
501
- ...obj,
502
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
503
- }), "RotateIngestEndpointCredentialsResponseFilterSensitiveLog");
504
- var UpdateChannelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
505
- ...obj,
506
- ...obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }
507
- }), "UpdateChannelResponseFilterSensitiveLog");
508
-
509
- // src/protocols/Aws_restJson1.ts
510
- var import_core2 = require("@aws-sdk/core");
511
-
512
-
513
- var se_ConfigureLogsCommand = /* @__PURE__ */ __name(async (input, context) => {
514
- const b = (0, import_core.requestBuilder)(input, context);
515
- const headers = {
516
- "content-type": "application/json"
517
- };
518
- b.bp("/channels/{Id}/configure_logs");
519
- b.p("Id", () => input.Id, "{Id}", false);
520
- let body;
521
- body = JSON.stringify(
522
- (0, import_smithy_client.take)(input, {
523
- egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
524
- ingressAccessLogs: [, (_) => se_IngressAccessLogs(_, context), `IngressAccessLogs`]
525
- })
526
- );
527
- b.m("PUT").h(headers).b(body);
528
- return b.build();
529
- }, "se_ConfigureLogsCommand");
530
- var se_CreateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
531
- const b = (0, import_core.requestBuilder)(input, context);
532
- const headers = {
533
- "content-type": "application/json"
534
- };
535
- b.bp("/channels");
536
- let body;
537
- body = JSON.stringify(
538
- (0, import_smithy_client.take)(input, {
539
- description: [, , `Description`],
540
- id: [, , `Id`],
541
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
542
- })
543
- );
544
- b.m("POST").h(headers).b(body);
545
- return b.build();
546
- }, "se_CreateChannelCommand");
547
- var se_CreateHarvestJobCommand = /* @__PURE__ */ __name(async (input, context) => {
548
- const b = (0, import_core.requestBuilder)(input, context);
549
- const headers = {
550
- "content-type": "application/json"
551
- };
552
- b.bp("/harvest_jobs");
553
- let body;
554
- body = JSON.stringify(
555
- (0, import_smithy_client.take)(input, {
556
- endTime: [, , `EndTime`],
557
- id: [, , `Id`],
558
- originEndpointId: [, , `OriginEndpointId`],
559
- s3Destination: [, (_) => se_S3Destination(_, context), `S3Destination`],
560
- startTime: [, , `StartTime`]
561
- })
562
- );
563
- b.m("POST").h(headers).b(body);
564
- return b.build();
565
- }, "se_CreateHarvestJobCommand");
566
- var se_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
567
- const b = (0, import_core.requestBuilder)(input, context);
568
- const headers = {
569
- "content-type": "application/json"
570
- };
571
- b.bp("/origin_endpoints");
572
- let body;
573
- body = JSON.stringify(
574
- (0, import_smithy_client.take)(input, {
575
- authorization: [, (_) => se_Authorization(_, context), `Authorization`],
576
- channelId: [, , `ChannelId`],
577
- cmafPackage: [, (_) => se_CmafPackageCreateOrUpdateParameters(_, context), `CmafPackage`],
578
- dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
579
- description: [, , `Description`],
580
- hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
581
- id: [, , `Id`],
582
- manifestName: [, , `ManifestName`],
583
- mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
584
- origination: [, , `Origination`],
585
- startoverWindowSeconds: [, , `StartoverWindowSeconds`],
586
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`],
587
- timeDelaySeconds: [, , `TimeDelaySeconds`],
588
- whitelist: [, (_) => (0, import_smithy_client._json)(_), `Whitelist`]
589
- })
590
- );
591
- b.m("POST").h(headers).b(body);
592
- return b.build();
593
- }, "se_CreateOriginEndpointCommand");
594
- var se_DeleteChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
595
- const b = (0, import_core.requestBuilder)(input, context);
596
- const headers = {};
597
- b.bp("/channels/{Id}");
598
- b.p("Id", () => input.Id, "{Id}", false);
599
- let body;
600
- b.m("DELETE").h(headers).b(body);
601
- return b.build();
602
- }, "se_DeleteChannelCommand");
603
- var se_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
604
- const b = (0, import_core.requestBuilder)(input, context);
605
- const headers = {};
606
- b.bp("/origin_endpoints/{Id}");
607
- b.p("Id", () => input.Id, "{Id}", false);
608
- let body;
609
- b.m("DELETE").h(headers).b(body);
610
- return b.build();
611
- }, "se_DeleteOriginEndpointCommand");
612
- var se_DescribeChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
613
- const b = (0, import_core.requestBuilder)(input, context);
614
- const headers = {};
615
- b.bp("/channels/{Id}");
616
- b.p("Id", () => input.Id, "{Id}", false);
617
- let body;
618
- b.m("GET").h(headers).b(body);
619
- return b.build();
620
- }, "se_DescribeChannelCommand");
621
- var se_DescribeHarvestJobCommand = /* @__PURE__ */ __name(async (input, context) => {
622
- const b = (0, import_core.requestBuilder)(input, context);
623
- const headers = {};
624
- b.bp("/harvest_jobs/{Id}");
625
- b.p("Id", () => input.Id, "{Id}", false);
626
- let body;
627
- b.m("GET").h(headers).b(body);
628
- return b.build();
629
- }, "se_DescribeHarvestJobCommand");
630
- var se_DescribeOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
631
- const b = (0, import_core.requestBuilder)(input, context);
632
- const headers = {};
633
- b.bp("/origin_endpoints/{Id}");
634
- b.p("Id", () => input.Id, "{Id}", false);
635
- let body;
636
- b.m("GET").h(headers).b(body);
637
- return b.build();
638
- }, "se_DescribeOriginEndpointCommand");
639
- var se_ListChannelsCommand = /* @__PURE__ */ __name(async (input, context) => {
640
- const b = (0, import_core.requestBuilder)(input, context);
641
- const headers = {};
642
- b.bp("/channels");
643
- const query = (0, import_smithy_client.map)({
644
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
645
- [_nT]: [, input[_NT]]
646
- });
647
- let body;
648
- b.m("GET").h(headers).q(query).b(body);
649
- return b.build();
650
- }, "se_ListChannelsCommand");
651
- var se_ListHarvestJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
652
- const b = (0, import_core.requestBuilder)(input, context);
653
- const headers = {};
654
- b.bp("/harvest_jobs");
655
- const query = (0, import_smithy_client.map)({
656
- [_iCI]: [, input[_ICI]],
657
- [_iS]: [, input[_IS]],
658
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
659
- [_nT]: [, input[_NT]]
660
- });
661
- let body;
662
- b.m("GET").h(headers).q(query).b(body);
663
- return b.build();
664
- }, "se_ListHarvestJobsCommand");
665
- var se_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
666
- const b = (0, import_core.requestBuilder)(input, context);
667
- const headers = {};
668
- b.bp("/origin_endpoints");
669
- const query = (0, import_smithy_client.map)({
670
- [_cI]: [, input[_CI]],
671
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
672
- [_nT]: [, input[_NT]]
673
- });
674
- let body;
675
- b.m("GET").h(headers).q(query).b(body);
676
- return b.build();
677
- }, "se_ListOriginEndpointsCommand");
678
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
679
- const b = (0, import_core.requestBuilder)(input, context);
680
- const headers = {};
681
- b.bp("/tags/{ResourceArn}");
682
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
683
- let body;
684
- b.m("GET").h(headers).b(body);
685
- return b.build();
686
- }, "se_ListTagsForResourceCommand");
687
- var se_RotateChannelCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
688
- const b = (0, import_core.requestBuilder)(input, context);
689
- const headers = {};
690
- b.bp("/channels/{Id}/credentials");
691
- b.p("Id", () => input.Id, "{Id}", false);
692
- let body;
693
- b.m("PUT").h(headers).b(body);
694
- return b.build();
695
- }, "se_RotateChannelCredentialsCommand");
696
- var se_RotateIngestEndpointCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
697
- const b = (0, import_core.requestBuilder)(input, context);
698
- const headers = {};
699
- b.bp("/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials");
700
- b.p("Id", () => input.Id, "{Id}", false);
701
- b.p("IngestEndpointId", () => input.IngestEndpointId, "{IngestEndpointId}", false);
702
- let body;
703
- b.m("PUT").h(headers).b(body);
704
- return b.build();
705
- }, "se_RotateIngestEndpointCredentialsCommand");
706
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
707
- const b = (0, import_core.requestBuilder)(input, context);
708
- const headers = {
709
- "content-type": "application/json"
710
- };
711
- b.bp("/tags/{ResourceArn}");
712
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
713
- let body;
714
- body = JSON.stringify(
715
- (0, import_smithy_client.take)(input, {
716
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
717
- })
718
- );
719
- b.m("POST").h(headers).b(body);
720
- return b.build();
721
- }, "se_TagResourceCommand");
722
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
723
- const b = (0, import_core.requestBuilder)(input, context);
724
- const headers = {};
725
- b.bp("/tags/{ResourceArn}");
726
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
727
- const query = (0, import_smithy_client.map)({
728
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
729
- });
730
- let body;
731
- b.m("DELETE").h(headers).q(query).b(body);
732
- return b.build();
733
- }, "se_UntagResourceCommand");
734
- var se_UpdateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
735
- const b = (0, import_core.requestBuilder)(input, context);
736
- const headers = {
737
- "content-type": "application/json"
738
- };
739
- b.bp("/channels/{Id}");
740
- b.p("Id", () => input.Id, "{Id}", false);
741
- let body;
742
- body = JSON.stringify(
743
- (0, import_smithy_client.take)(input, {
744
- description: [, , `Description`]
745
- })
746
- );
747
- b.m("PUT").h(headers).b(body);
748
- return b.build();
749
- }, "se_UpdateChannelCommand");
750
- var se_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
751
- const b = (0, import_core.requestBuilder)(input, context);
752
- const headers = {
753
- "content-type": "application/json"
754
- };
755
- b.bp("/origin_endpoints/{Id}");
756
- b.p("Id", () => input.Id, "{Id}", false);
757
- let body;
758
- body = JSON.stringify(
759
- (0, import_smithy_client.take)(input, {
760
- authorization: [, (_) => se_Authorization(_, context), `Authorization`],
761
- cmafPackage: [, (_) => se_CmafPackageCreateOrUpdateParameters(_, context), `CmafPackage`],
762
- dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
763
- description: [, , `Description`],
764
- hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
765
- manifestName: [, , `ManifestName`],
766
- mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
767
- origination: [, , `Origination`],
768
- startoverWindowSeconds: [, , `StartoverWindowSeconds`],
769
- timeDelaySeconds: [, , `TimeDelaySeconds`],
770
- whitelist: [, (_) => (0, import_smithy_client._json)(_), `Whitelist`]
771
- })
772
- );
773
- b.m("PUT").h(headers).b(body);
774
- return b.build();
775
- }, "se_UpdateOriginEndpointCommand");
776
- var de_ConfigureLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
777
- if (output.statusCode !== 200 && output.statusCode >= 300) {
778
- return de_CommandError(output, context);
779
- }
780
- const contents = (0, import_smithy_client.map)({
781
- $metadata: deserializeMetadata(output)
782
- });
783
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
784
- const doc = (0, import_smithy_client.take)(data, {
785
- Arn: [, import_smithy_client.expectString, `arn`],
786
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
787
- Description: [, import_smithy_client.expectString, `description`],
788
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
789
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
790
- Id: [, import_smithy_client.expectString, `id`],
791
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
792
- Tags: [, import_smithy_client._json, `tags`]
793
- });
794
- Object.assign(contents, doc);
795
- return contents;
796
- }, "de_ConfigureLogsCommand");
797
- var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
798
- if (output.statusCode !== 200 && output.statusCode >= 300) {
799
- return de_CommandError(output, context);
800
- }
801
- const contents = (0, import_smithy_client.map)({
802
- $metadata: deserializeMetadata(output)
803
- });
804
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
805
- const doc = (0, import_smithy_client.take)(data, {
806
- Arn: [, import_smithy_client.expectString, `arn`],
807
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
808
- Description: [, import_smithy_client.expectString, `description`],
809
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
810
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
811
- Id: [, import_smithy_client.expectString, `id`],
812
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
813
- Tags: [, import_smithy_client._json, `tags`]
814
- });
815
- Object.assign(contents, doc);
816
- return contents;
817
- }, "de_CreateChannelCommand");
818
- var de_CreateHarvestJobCommand = /* @__PURE__ */ __name(async (output, context) => {
819
- if (output.statusCode !== 200 && output.statusCode >= 300) {
820
- return de_CommandError(output, context);
821
- }
822
- const contents = (0, import_smithy_client.map)({
823
- $metadata: deserializeMetadata(output)
824
- });
825
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
826
- const doc = (0, import_smithy_client.take)(data, {
827
- Arn: [, import_smithy_client.expectString, `arn`],
828
- ChannelId: [, import_smithy_client.expectString, `channelId`],
829
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
830
- EndTime: [, import_smithy_client.expectString, `endTime`],
831
- Id: [, import_smithy_client.expectString, `id`],
832
- OriginEndpointId: [, import_smithy_client.expectString, `originEndpointId`],
833
- S3Destination: [, (_) => de_S3Destination(_, context), `s3Destination`],
834
- StartTime: [, import_smithy_client.expectString, `startTime`],
835
- Status: [, import_smithy_client.expectString, `status`]
836
- });
837
- Object.assign(contents, doc);
838
- return contents;
839
- }, "de_CreateHarvestJobCommand");
840
- var de_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
841
- if (output.statusCode !== 200 && output.statusCode >= 300) {
842
- return de_CommandError(output, context);
843
- }
844
- const contents = (0, import_smithy_client.map)({
845
- $metadata: deserializeMetadata(output)
846
- });
847
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
848
- const doc = (0, import_smithy_client.take)(data, {
849
- Arn: [, import_smithy_client.expectString, `arn`],
850
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
851
- ChannelId: [, import_smithy_client.expectString, `channelId`],
852
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
853
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
854
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
855
- Description: [, import_smithy_client.expectString, `description`],
856
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
857
- Id: [, import_smithy_client.expectString, `id`],
858
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
859
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
860
- Origination: [, import_smithy_client.expectString, `origination`],
861
- StartoverWindowSeconds: [, import_smithy_client.expectInt32, `startoverWindowSeconds`],
862
- Tags: [, import_smithy_client._json, `tags`],
863
- TimeDelaySeconds: [, import_smithy_client.expectInt32, `timeDelaySeconds`],
864
- Url: [, import_smithy_client.expectString, `url`],
865
- Whitelist: [, import_smithy_client._json, `whitelist`]
866
- });
867
- Object.assign(contents, doc);
868
- return contents;
869
- }, "de_CreateOriginEndpointCommand");
870
- var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
871
- if (output.statusCode !== 202 && output.statusCode >= 300) {
872
- return de_CommandError(output, context);
873
- }
874
- const contents = (0, import_smithy_client.map)({
875
- $metadata: deserializeMetadata(output)
876
- });
877
- await (0, import_smithy_client.collectBody)(output.body, context);
878
- return contents;
879
- }, "de_DeleteChannelCommand");
880
- var de_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
881
- if (output.statusCode !== 202 && output.statusCode >= 300) {
882
- return de_CommandError(output, context);
883
- }
884
- const contents = (0, import_smithy_client.map)({
885
- $metadata: deserializeMetadata(output)
886
- });
887
- await (0, import_smithy_client.collectBody)(output.body, context);
888
- return contents;
889
- }, "de_DeleteOriginEndpointCommand");
890
- var de_DescribeChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
891
- if (output.statusCode !== 200 && output.statusCode >= 300) {
892
- return de_CommandError(output, context);
893
- }
894
- const contents = (0, import_smithy_client.map)({
895
- $metadata: deserializeMetadata(output)
896
- });
897
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
898
- const doc = (0, import_smithy_client.take)(data, {
899
- Arn: [, import_smithy_client.expectString, `arn`],
900
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
901
- Description: [, import_smithy_client.expectString, `description`],
902
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
903
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
904
- Id: [, import_smithy_client.expectString, `id`],
905
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
906
- Tags: [, import_smithy_client._json, `tags`]
907
- });
908
- Object.assign(contents, doc);
909
- return contents;
910
- }, "de_DescribeChannelCommand");
911
- var de_DescribeHarvestJobCommand = /* @__PURE__ */ __name(async (output, context) => {
912
- if (output.statusCode !== 200 && output.statusCode >= 300) {
913
- return de_CommandError(output, context);
914
- }
915
- const contents = (0, import_smithy_client.map)({
916
- $metadata: deserializeMetadata(output)
917
- });
918
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
919
- const doc = (0, import_smithy_client.take)(data, {
920
- Arn: [, import_smithy_client.expectString, `arn`],
921
- ChannelId: [, import_smithy_client.expectString, `channelId`],
922
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
923
- EndTime: [, import_smithy_client.expectString, `endTime`],
924
- Id: [, import_smithy_client.expectString, `id`],
925
- OriginEndpointId: [, import_smithy_client.expectString, `originEndpointId`],
926
- S3Destination: [, (_) => de_S3Destination(_, context), `s3Destination`],
927
- StartTime: [, import_smithy_client.expectString, `startTime`],
928
- Status: [, import_smithy_client.expectString, `status`]
929
- });
930
- Object.assign(contents, doc);
931
- return contents;
932
- }, "de_DescribeHarvestJobCommand");
933
- var de_DescribeOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
934
- if (output.statusCode !== 200 && output.statusCode >= 300) {
935
- return de_CommandError(output, context);
936
- }
937
- const contents = (0, import_smithy_client.map)({
938
- $metadata: deserializeMetadata(output)
939
- });
940
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
941
- const doc = (0, import_smithy_client.take)(data, {
942
- Arn: [, import_smithy_client.expectString, `arn`],
943
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
944
- ChannelId: [, import_smithy_client.expectString, `channelId`],
945
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
946
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
947
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
948
- Description: [, import_smithy_client.expectString, `description`],
949
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
950
- Id: [, import_smithy_client.expectString, `id`],
951
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
952
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
953
- Origination: [, import_smithy_client.expectString, `origination`],
954
- StartoverWindowSeconds: [, import_smithy_client.expectInt32, `startoverWindowSeconds`],
955
- Tags: [, import_smithy_client._json, `tags`],
956
- TimeDelaySeconds: [, import_smithy_client.expectInt32, `timeDelaySeconds`],
957
- Url: [, import_smithy_client.expectString, `url`],
958
- Whitelist: [, import_smithy_client._json, `whitelist`]
959
- });
960
- Object.assign(contents, doc);
961
- return contents;
962
- }, "de_DescribeOriginEndpointCommand");
963
- var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
964
- if (output.statusCode !== 200 && output.statusCode >= 300) {
965
- return de_CommandError(output, context);
966
- }
967
- const contents = (0, import_smithy_client.map)({
968
- $metadata: deserializeMetadata(output)
969
- });
970
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
971
- const doc = (0, import_smithy_client.take)(data, {
972
- Channels: [, (_) => de___listOfChannel(_, context), `channels`],
973
- NextToken: [, import_smithy_client.expectString, `nextToken`]
974
- });
975
- Object.assign(contents, doc);
976
- return contents;
977
- }, "de_ListChannelsCommand");
978
- var de_ListHarvestJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
979
- if (output.statusCode !== 200 && output.statusCode >= 300) {
980
- return de_CommandError(output, context);
981
- }
982
- const contents = (0, import_smithy_client.map)({
983
- $metadata: deserializeMetadata(output)
984
- });
985
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
986
- const doc = (0, import_smithy_client.take)(data, {
987
- HarvestJobs: [, (_) => de___listOfHarvestJob(_, context), `harvestJobs`],
988
- NextToken: [, import_smithy_client.expectString, `nextToken`]
989
- });
990
- Object.assign(contents, doc);
991
- return contents;
992
- }, "de_ListHarvestJobsCommand");
993
- var de_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
994
- if (output.statusCode !== 200 && output.statusCode >= 300) {
995
- return de_CommandError(output, context);
996
- }
997
- const contents = (0, import_smithy_client.map)({
998
- $metadata: deserializeMetadata(output)
999
- });
1000
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1001
- const doc = (0, import_smithy_client.take)(data, {
1002
- NextToken: [, import_smithy_client.expectString, `nextToken`],
1003
- OriginEndpoints: [, (_) => de___listOfOriginEndpoint(_, context), `originEndpoints`]
1004
- });
1005
- Object.assign(contents, doc);
1006
- return contents;
1007
- }, "de_ListOriginEndpointsCommand");
1008
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1009
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1010
- return de_CommandError(output, context);
1011
- }
1012
- const contents = (0, import_smithy_client.map)({
1013
- $metadata: deserializeMetadata(output)
1014
- });
1015
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1016
- const doc = (0, import_smithy_client.take)(data, {
1017
- Tags: [, import_smithy_client._json, `tags`]
1018
- });
1019
- Object.assign(contents, doc);
1020
- return contents;
1021
- }, "de_ListTagsForResourceCommand");
1022
- var de_RotateChannelCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
1023
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1024
- return de_CommandError(output, context);
1025
- }
1026
- const contents = (0, import_smithy_client.map)({
1027
- $metadata: deserializeMetadata(output)
1028
- });
1029
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1030
- const doc = (0, import_smithy_client.take)(data, {
1031
- Arn: [, import_smithy_client.expectString, `arn`],
1032
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1033
- Description: [, import_smithy_client.expectString, `description`],
1034
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
1035
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
1036
- Id: [, import_smithy_client.expectString, `id`],
1037
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
1038
- Tags: [, import_smithy_client._json, `tags`]
1039
- });
1040
- Object.assign(contents, doc);
1041
- return contents;
1042
- }, "de_RotateChannelCredentialsCommand");
1043
- var de_RotateIngestEndpointCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
1044
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1045
- return de_CommandError(output, context);
1046
- }
1047
- const contents = (0, import_smithy_client.map)({
1048
- $metadata: deserializeMetadata(output)
1049
- });
1050
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1051
- const doc = (0, import_smithy_client.take)(data, {
1052
- Arn: [, import_smithy_client.expectString, `arn`],
1053
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1054
- Description: [, import_smithy_client.expectString, `description`],
1055
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
1056
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
1057
- Id: [, import_smithy_client.expectString, `id`],
1058
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
1059
- Tags: [, import_smithy_client._json, `tags`]
1060
- });
1061
- Object.assign(contents, doc);
1062
- return contents;
1063
- }, "de_RotateIngestEndpointCredentialsCommand");
1064
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1066
- return de_CommandError(output, context);
1067
- }
1068
- const contents = (0, import_smithy_client.map)({
1069
- $metadata: deserializeMetadata(output)
1070
- });
1071
- await (0, import_smithy_client.collectBody)(output.body, context);
1072
- return contents;
1073
- }, "de_TagResourceCommand");
1074
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1076
- return de_CommandError(output, context);
1077
- }
1078
- const contents = (0, import_smithy_client.map)({
1079
- $metadata: deserializeMetadata(output)
1080
- });
1081
- await (0, import_smithy_client.collectBody)(output.body, context);
1082
- return contents;
1083
- }, "de_UntagResourceCommand");
1084
- var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
1085
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1086
- return de_CommandError(output, context);
1087
- }
1088
- const contents = (0, import_smithy_client.map)({
1089
- $metadata: deserializeMetadata(output)
1090
- });
1091
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1092
- const doc = (0, import_smithy_client.take)(data, {
1093
- Arn: [, import_smithy_client.expectString, `arn`],
1094
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1095
- Description: [, import_smithy_client.expectString, `description`],
1096
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
1097
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
1098
- Id: [, import_smithy_client.expectString, `id`],
1099
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
1100
- Tags: [, import_smithy_client._json, `tags`]
1101
- });
1102
- Object.assign(contents, doc);
1103
- return contents;
1104
- }, "de_UpdateChannelCommand");
1105
- var de_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1106
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1107
- return de_CommandError(output, context);
1108
- }
1109
- const contents = (0, import_smithy_client.map)({
1110
- $metadata: deserializeMetadata(output)
1111
- });
1112
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1113
- const doc = (0, import_smithy_client.take)(data, {
1114
- Arn: [, import_smithy_client.expectString, `arn`],
1115
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
1116
- ChannelId: [, import_smithy_client.expectString, `channelId`],
1117
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
1118
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1119
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
1120
- Description: [, import_smithy_client.expectString, `description`],
1121
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
1122
- Id: [, import_smithy_client.expectString, `id`],
1123
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
1124
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
1125
- Origination: [, import_smithy_client.expectString, `origination`],
1126
- StartoverWindowSeconds: [, import_smithy_client.expectInt32, `startoverWindowSeconds`],
1127
- Tags: [, import_smithy_client._json, `tags`],
1128
- TimeDelaySeconds: [, import_smithy_client.expectInt32, `timeDelaySeconds`],
1129
- Url: [, import_smithy_client.expectString, `url`],
1130
- Whitelist: [, import_smithy_client._json, `whitelist`]
1131
- });
1132
- Object.assign(contents, doc);
1133
- return contents;
1134
- }, "de_UpdateOriginEndpointCommand");
1135
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1136
- const parsedOutput = {
1137
- ...output,
1138
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1139
- };
1140
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1141
- switch (errorCode) {
1142
- case "ForbiddenException":
1143
- case "com.amazonaws.mediapackage#ForbiddenException":
1144
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1145
- case "InternalServerErrorException":
1146
- case "com.amazonaws.mediapackage#InternalServerErrorException":
1147
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1148
- case "NotFoundException":
1149
- case "com.amazonaws.mediapackage#NotFoundException":
1150
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1151
- case "ServiceUnavailableException":
1152
- case "com.amazonaws.mediapackage#ServiceUnavailableException":
1153
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1154
- case "TooManyRequestsException":
1155
- case "com.amazonaws.mediapackage#TooManyRequestsException":
1156
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1157
- case "UnprocessableEntityException":
1158
- case "com.amazonaws.mediapackage#UnprocessableEntityException":
1159
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1160
- default:
1161
- const parsedBody = parsedOutput.body;
1162
- return throwDefaultError({
1163
- output,
1164
- parsedBody,
1165
- errorCode
1166
- });
1167
- }
1168
- }, "de_CommandError");
1169
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaPackageServiceException);
1170
- var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1171
- const contents = (0, import_smithy_client.map)({});
1172
- const data = parsedOutput.body;
1173
- const doc = (0, import_smithy_client.take)(data, {
1174
- Message: [, import_smithy_client.expectString, `message`]
1175
- });
1176
- Object.assign(contents, doc);
1177
- const exception = new ForbiddenException({
1178
- $metadata: deserializeMetadata(parsedOutput),
1179
- ...contents
1180
- });
1181
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1182
- }, "de_ForbiddenExceptionRes");
1183
- var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1184
- const contents = (0, import_smithy_client.map)({});
1185
- const data = parsedOutput.body;
1186
- const doc = (0, import_smithy_client.take)(data, {
1187
- Message: [, import_smithy_client.expectString, `message`]
1188
- });
1189
- Object.assign(contents, doc);
1190
- const exception = new InternalServerErrorException({
1191
- $metadata: deserializeMetadata(parsedOutput),
1192
- ...contents
1193
- });
1194
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1195
- }, "de_InternalServerErrorExceptionRes");
1196
- var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1197
- const contents = (0, import_smithy_client.map)({});
1198
- const data = parsedOutput.body;
1199
- const doc = (0, import_smithy_client.take)(data, {
1200
- Message: [, import_smithy_client.expectString, `message`]
1201
- });
1202
- Object.assign(contents, doc);
1203
- const exception = new NotFoundException({
1204
- $metadata: deserializeMetadata(parsedOutput),
1205
- ...contents
1206
- });
1207
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1208
- }, "de_NotFoundExceptionRes");
1209
- var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1210
- const contents = (0, import_smithy_client.map)({});
1211
- const data = parsedOutput.body;
1212
- const doc = (0, import_smithy_client.take)(data, {
1213
- Message: [, import_smithy_client.expectString, `message`]
1214
- });
1215
- Object.assign(contents, doc);
1216
- const exception = new ServiceUnavailableException({
1217
- $metadata: deserializeMetadata(parsedOutput),
1218
- ...contents
1219
- });
1220
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1221
- }, "de_ServiceUnavailableExceptionRes");
1222
- var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1223
- const contents = (0, import_smithy_client.map)({});
1224
- const data = parsedOutput.body;
1225
- const doc = (0, import_smithy_client.take)(data, {
1226
- Message: [, import_smithy_client.expectString, `message`]
1227
- });
1228
- Object.assign(contents, doc);
1229
- const exception = new TooManyRequestsException({
1230
- $metadata: deserializeMetadata(parsedOutput),
1231
- ...contents
1232
- });
1233
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1234
- }, "de_TooManyRequestsExceptionRes");
1235
- var de_UnprocessableEntityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1236
- const contents = (0, import_smithy_client.map)({});
1237
- const data = parsedOutput.body;
1238
- const doc = (0, import_smithy_client.take)(data, {
1239
- Message: [, import_smithy_client.expectString, `message`]
1240
- });
1241
- Object.assign(contents, doc);
1242
- const exception = new UnprocessableEntityException({
1243
- $metadata: deserializeMetadata(parsedOutput),
1244
- ...contents
1245
- });
1246
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1247
- }, "de_UnprocessableEntityExceptionRes");
1248
- var se___listOfHlsManifestCreateOrUpdateParameters = /* @__PURE__ */ __name((input, context) => {
1249
- return input.filter((e) => e != null).map((entry) => {
1250
- return se_HlsManifestCreateOrUpdateParameters(entry, context);
1251
- });
1252
- }, "se___listOfHlsManifestCreateOrUpdateParameters");
1253
- var se_Authorization = /* @__PURE__ */ __name((input, context) => {
1254
- return (0, import_smithy_client.take)(input, {
1255
- cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
1256
- secretsRoleArn: [, , `SecretsRoleArn`]
1257
- });
1258
- }, "se_Authorization");
1259
- var se_CmafEncryption = /* @__PURE__ */ __name((input, context) => {
1260
- return (0, import_smithy_client.take)(input, {
1261
- constantInitializationVector: [, , `ConstantInitializationVector`],
1262
- encryptionMethod: [, , `EncryptionMethod`],
1263
- keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
1264
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1265
- });
1266
- }, "se_CmafEncryption");
1267
- var se_CmafPackageCreateOrUpdateParameters = /* @__PURE__ */ __name((input, context) => {
1268
- return (0, import_smithy_client.take)(input, {
1269
- encryption: [, (_) => se_CmafEncryption(_, context), `Encryption`],
1270
- hlsManifests: [, (_) => se___listOfHlsManifestCreateOrUpdateParameters(_, context), `HlsManifests`],
1271
- segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1272
- segmentPrefix: [, , `SegmentPrefix`],
1273
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`]
1274
- });
1275
- }, "se_CmafPackageCreateOrUpdateParameters");
1276
- var se_DashEncryption = /* @__PURE__ */ __name((input, context) => {
1277
- return (0, import_smithy_client.take)(input, {
1278
- keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
1279
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1280
- });
1281
- }, "se_DashEncryption");
1282
- var se_DashPackage = /* @__PURE__ */ __name((input, context) => {
1283
- return (0, import_smithy_client.take)(input, {
1284
- adTriggers: [, import_smithy_client._json, `AdTriggers`],
1285
- adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
1286
- encryption: [, (_) => se_DashEncryption(_, context), `Encryption`],
1287
- includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1288
- manifestLayout: [, , `ManifestLayout`],
1289
- manifestWindowSeconds: [, , `ManifestWindowSeconds`],
1290
- minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
1291
- minUpdatePeriodSeconds: [, , `MinUpdatePeriodSeconds`],
1292
- periodTriggers: [, import_smithy_client._json, `PeriodTriggers`],
1293
- profile: [, , `Profile`],
1294
- segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1295
- segmentTemplateFormat: [, , `SegmentTemplateFormat`],
1296
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
1297
- suggestedPresentationDelaySeconds: [, , `SuggestedPresentationDelaySeconds`],
1298
- utcTiming: [, , `UtcTiming`],
1299
- utcTimingUri: [, , `UtcTimingUri`]
1300
- });
1301
- }, "se_DashPackage");
1302
- var se_EgressAccessLogs = /* @__PURE__ */ __name((input, context) => {
1303
- return (0, import_smithy_client.take)(input, {
1304
- logGroupName: [, , `LogGroupName`]
1305
- });
1306
- }, "se_EgressAccessLogs");
1307
- var se_EncryptionContractConfiguration = /* @__PURE__ */ __name((input, context) => {
1308
- return (0, import_smithy_client.take)(input, {
1309
- presetSpeke20Audio: [, , `PresetSpeke20Audio`],
1310
- presetSpeke20Video: [, , `PresetSpeke20Video`]
1311
- });
1312
- }, "se_EncryptionContractConfiguration");
1313
- var se_HlsEncryption = /* @__PURE__ */ __name((input, context) => {
1314
- return (0, import_smithy_client.take)(input, {
1315
- constantInitializationVector: [, , `ConstantInitializationVector`],
1316
- encryptionMethod: [, , `EncryptionMethod`],
1317
- keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
1318
- repeatExtXKey: [, , `RepeatExtXKey`],
1319
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1320
- });
1321
- }, "se_HlsEncryption");
1322
- var se_HlsManifestCreateOrUpdateParameters = /* @__PURE__ */ __name((input, context) => {
1323
- return (0, import_smithy_client.take)(input, {
1324
- adMarkers: [, , `AdMarkers`],
1325
- adTriggers: [, import_smithy_client._json, `AdTriggers`],
1326
- adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
1327
- id: [, , `Id`],
1328
- includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1329
- manifestName: [, , `ManifestName`],
1330
- playlistType: [, , `PlaylistType`],
1331
- playlistWindowSeconds: [, , `PlaylistWindowSeconds`],
1332
- programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`]
1333
- });
1334
- }, "se_HlsManifestCreateOrUpdateParameters");
1335
- var se_HlsPackage = /* @__PURE__ */ __name((input, context) => {
1336
- return (0, import_smithy_client.take)(input, {
1337
- adMarkers: [, , `AdMarkers`],
1338
- adTriggers: [, import_smithy_client._json, `AdTriggers`],
1339
- adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
1340
- encryption: [, (_) => se_HlsEncryption(_, context), `Encryption`],
1341
- includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
1342
- includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1343
- playlistType: [, , `PlaylistType`],
1344
- playlistWindowSeconds: [, , `PlaylistWindowSeconds`],
1345
- programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
1346
- segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1347
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
1348
- useAudioRenditionGroup: [, , `UseAudioRenditionGroup`]
1349
- });
1350
- }, "se_HlsPackage");
1351
- var se_IngressAccessLogs = /* @__PURE__ */ __name((input, context) => {
1352
- return (0, import_smithy_client.take)(input, {
1353
- logGroupName: [, , `LogGroupName`]
1354
- });
1355
- }, "se_IngressAccessLogs");
1356
- var se_MssEncryption = /* @__PURE__ */ __name((input, context) => {
1357
- return (0, import_smithy_client.take)(input, {
1358
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1359
- });
1360
- }, "se_MssEncryption");
1361
- var se_MssPackage = /* @__PURE__ */ __name((input, context) => {
1362
- return (0, import_smithy_client.take)(input, {
1363
- encryption: [, (_) => se_MssEncryption(_, context), `Encryption`],
1364
- manifestWindowSeconds: [, , `ManifestWindowSeconds`],
1365
- segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1366
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`]
1367
- });
1368
- }, "se_MssPackage");
1369
- var se_S3Destination = /* @__PURE__ */ __name((input, context) => {
1370
- return (0, import_smithy_client.take)(input, {
1371
- bucketName: [, , `BucketName`],
1372
- manifestKey: [, , `ManifestKey`],
1373
- roleArn: [, , `RoleArn`]
1374
- });
1375
- }, "se_S3Destination");
1376
- var se_SpekeKeyProvider = /* @__PURE__ */ __name((input, context) => {
1377
- return (0, import_smithy_client.take)(input, {
1378
- certificateArn: [, , `CertificateArn`],
1379
- encryptionContractConfiguration: [
1380
- ,
1381
- (_) => se_EncryptionContractConfiguration(_, context),
1382
- `EncryptionContractConfiguration`
1383
- ],
1384
- resourceId: [, , `ResourceId`],
1385
- roleArn: [, , `RoleArn`],
1386
- systemIds: [, import_smithy_client._json, `SystemIds`],
1387
- url: [, , `Url`]
1388
- });
1389
- }, "se_SpekeKeyProvider");
1390
- var se_StreamSelection = /* @__PURE__ */ __name((input, context) => {
1391
- return (0, import_smithy_client.take)(input, {
1392
- maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
1393
- minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
1394
- streamOrder: [, , `StreamOrder`]
1395
- });
1396
- }, "se_StreamSelection");
1397
- var de___listOfChannel = /* @__PURE__ */ __name((output, context) => {
1398
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1399
- return de_Channel(entry, context);
1400
- });
1401
- return retVal;
1402
- }, "de___listOfChannel");
1403
- var de___listOfHarvestJob = /* @__PURE__ */ __name((output, context) => {
1404
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1405
- return de_HarvestJob(entry, context);
1406
- });
1407
- return retVal;
1408
- }, "de___listOfHarvestJob");
1409
- var de___listOfHlsManifest = /* @__PURE__ */ __name((output, context) => {
1410
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1411
- return de_HlsManifest(entry, context);
1412
- });
1413
- return retVal;
1414
- }, "de___listOfHlsManifest");
1415
- var de___listOfIngestEndpoint = /* @__PURE__ */ __name((output, context) => {
1416
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1417
- return de_IngestEndpoint(entry, context);
1418
- });
1419
- return retVal;
1420
- }, "de___listOfIngestEndpoint");
1421
- var de___listOfOriginEndpoint = /* @__PURE__ */ __name((output, context) => {
1422
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1423
- return de_OriginEndpoint(entry, context);
1424
- });
1425
- return retVal;
1426
- }, "de___listOfOriginEndpoint");
1427
- var de_Authorization = /* @__PURE__ */ __name((output, context) => {
1428
- return (0, import_smithy_client.take)(output, {
1429
- CdnIdentifierSecret: [, import_smithy_client.expectString, `cdnIdentifierSecret`],
1430
- SecretsRoleArn: [, import_smithy_client.expectString, `secretsRoleArn`]
1431
- });
1432
- }, "de_Authorization");
1433
- var de_Channel = /* @__PURE__ */ __name((output, context) => {
1434
- return (0, import_smithy_client.take)(output, {
1435
- Arn: [, import_smithy_client.expectString, `arn`],
1436
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1437
- Description: [, import_smithy_client.expectString, `description`],
1438
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
1439
- HlsIngest: [, (_) => de_HlsIngest(_, context), `hlsIngest`],
1440
- Id: [, import_smithy_client.expectString, `id`],
1441
- IngressAccessLogs: [, (_) => de_IngressAccessLogs(_, context), `ingressAccessLogs`],
1442
- Tags: [, import_smithy_client._json, `tags`]
1443
- });
1444
- }, "de_Channel");
1445
- var de_CmafEncryption = /* @__PURE__ */ __name((output, context) => {
1446
- return (0, import_smithy_client.take)(output, {
1447
- ConstantInitializationVector: [, import_smithy_client.expectString, `constantInitializationVector`],
1448
- EncryptionMethod: [, import_smithy_client.expectString, `encryptionMethod`],
1449
- KeyRotationIntervalSeconds: [, import_smithy_client.expectInt32, `keyRotationIntervalSeconds`],
1450
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1451
- });
1452
- }, "de_CmafEncryption");
1453
- var de_CmafPackage = /* @__PURE__ */ __name((output, context) => {
1454
- return (0, import_smithy_client.take)(output, {
1455
- Encryption: [, (_) => de_CmafEncryption(_, context), `encryption`],
1456
- HlsManifests: [, (_) => de___listOfHlsManifest(_, context), `hlsManifests`],
1457
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`],
1458
- SegmentPrefix: [, import_smithy_client.expectString, `segmentPrefix`],
1459
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`]
1460
- });
1461
- }, "de_CmafPackage");
1462
- var de_DashEncryption = /* @__PURE__ */ __name((output, context) => {
1463
- return (0, import_smithy_client.take)(output, {
1464
- KeyRotationIntervalSeconds: [, import_smithy_client.expectInt32, `keyRotationIntervalSeconds`],
1465
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1466
- });
1467
- }, "de_DashEncryption");
1468
- var de_DashPackage = /* @__PURE__ */ __name((output, context) => {
1469
- return (0, import_smithy_client.take)(output, {
1470
- AdTriggers: [, import_smithy_client._json, `adTriggers`],
1471
- AdsOnDeliveryRestrictions: [, import_smithy_client.expectString, `adsOnDeliveryRestrictions`],
1472
- Encryption: [, (_) => de_DashEncryption(_, context), `encryption`],
1473
- IncludeIframeOnlyStream: [, import_smithy_client.expectBoolean, `includeIframeOnlyStream`],
1474
- ManifestLayout: [, import_smithy_client.expectString, `manifestLayout`],
1475
- ManifestWindowSeconds: [, import_smithy_client.expectInt32, `manifestWindowSeconds`],
1476
- MinBufferTimeSeconds: [, import_smithy_client.expectInt32, `minBufferTimeSeconds`],
1477
- MinUpdatePeriodSeconds: [, import_smithy_client.expectInt32, `minUpdatePeriodSeconds`],
1478
- PeriodTriggers: [, import_smithy_client._json, `periodTriggers`],
1479
- Profile: [, import_smithy_client.expectString, `profile`],
1480
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`],
1481
- SegmentTemplateFormat: [, import_smithy_client.expectString, `segmentTemplateFormat`],
1482
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`],
1483
- SuggestedPresentationDelaySeconds: [, import_smithy_client.expectInt32, `suggestedPresentationDelaySeconds`],
1484
- UtcTiming: [, import_smithy_client.expectString, `utcTiming`],
1485
- UtcTimingUri: [, import_smithy_client.expectString, `utcTimingUri`]
1486
- });
1487
- }, "de_DashPackage");
1488
- var de_EgressAccessLogs = /* @__PURE__ */ __name((output, context) => {
1489
- return (0, import_smithy_client.take)(output, {
1490
- LogGroupName: [, import_smithy_client.expectString, `logGroupName`]
1491
- });
1492
- }, "de_EgressAccessLogs");
1493
- var de_EncryptionContractConfiguration = /* @__PURE__ */ __name((output, context) => {
1494
- return (0, import_smithy_client.take)(output, {
1495
- PresetSpeke20Audio: [, import_smithy_client.expectString, `presetSpeke20Audio`],
1496
- PresetSpeke20Video: [, import_smithy_client.expectString, `presetSpeke20Video`]
1497
- });
1498
- }, "de_EncryptionContractConfiguration");
1499
- var de_HarvestJob = /* @__PURE__ */ __name((output, context) => {
1500
- return (0, import_smithy_client.take)(output, {
1501
- Arn: [, import_smithy_client.expectString, `arn`],
1502
- ChannelId: [, import_smithy_client.expectString, `channelId`],
1503
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1504
- EndTime: [, import_smithy_client.expectString, `endTime`],
1505
- Id: [, import_smithy_client.expectString, `id`],
1506
- OriginEndpointId: [, import_smithy_client.expectString, `originEndpointId`],
1507
- S3Destination: [, (_) => de_S3Destination(_, context), `s3Destination`],
1508
- StartTime: [, import_smithy_client.expectString, `startTime`],
1509
- Status: [, import_smithy_client.expectString, `status`]
1510
- });
1511
- }, "de_HarvestJob");
1512
- var de_HlsEncryption = /* @__PURE__ */ __name((output, context) => {
1513
- return (0, import_smithy_client.take)(output, {
1514
- ConstantInitializationVector: [, import_smithy_client.expectString, `constantInitializationVector`],
1515
- EncryptionMethod: [, import_smithy_client.expectString, `encryptionMethod`],
1516
- KeyRotationIntervalSeconds: [, import_smithy_client.expectInt32, `keyRotationIntervalSeconds`],
1517
- RepeatExtXKey: [, import_smithy_client.expectBoolean, `repeatExtXKey`],
1518
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1519
- });
1520
- }, "de_HlsEncryption");
1521
- var de_HlsIngest = /* @__PURE__ */ __name((output, context) => {
1522
- return (0, import_smithy_client.take)(output, {
1523
- IngestEndpoints: [, (_) => de___listOfIngestEndpoint(_, context), `ingestEndpoints`]
1524
- });
1525
- }, "de_HlsIngest");
1526
- var de_HlsManifest = /* @__PURE__ */ __name((output, context) => {
1527
- return (0, import_smithy_client.take)(output, {
1528
- AdMarkers: [, import_smithy_client.expectString, `adMarkers`],
1529
- AdTriggers: [, import_smithy_client._json, `adTriggers`],
1530
- AdsOnDeliveryRestrictions: [, import_smithy_client.expectString, `adsOnDeliveryRestrictions`],
1531
- Id: [, import_smithy_client.expectString, `id`],
1532
- IncludeIframeOnlyStream: [, import_smithy_client.expectBoolean, `includeIframeOnlyStream`],
1533
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
1534
- PlaylistType: [, import_smithy_client.expectString, `playlistType`],
1535
- PlaylistWindowSeconds: [, import_smithy_client.expectInt32, `playlistWindowSeconds`],
1536
- ProgramDateTimeIntervalSeconds: [, import_smithy_client.expectInt32, `programDateTimeIntervalSeconds`],
1537
- Url: [, import_smithy_client.expectString, `url`]
1538
- });
1539
- }, "de_HlsManifest");
1540
- var de_HlsPackage = /* @__PURE__ */ __name((output, context) => {
1541
- return (0, import_smithy_client.take)(output, {
1542
- AdMarkers: [, import_smithy_client.expectString, `adMarkers`],
1543
- AdTriggers: [, import_smithy_client._json, `adTriggers`],
1544
- AdsOnDeliveryRestrictions: [, import_smithy_client.expectString, `adsOnDeliveryRestrictions`],
1545
- Encryption: [, (_) => de_HlsEncryption(_, context), `encryption`],
1546
- IncludeDvbSubtitles: [, import_smithy_client.expectBoolean, `includeDvbSubtitles`],
1547
- IncludeIframeOnlyStream: [, import_smithy_client.expectBoolean, `includeIframeOnlyStream`],
1548
- PlaylistType: [, import_smithy_client.expectString, `playlistType`],
1549
- PlaylistWindowSeconds: [, import_smithy_client.expectInt32, `playlistWindowSeconds`],
1550
- ProgramDateTimeIntervalSeconds: [, import_smithy_client.expectInt32, `programDateTimeIntervalSeconds`],
1551
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`],
1552
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`],
1553
- UseAudioRenditionGroup: [, import_smithy_client.expectBoolean, `useAudioRenditionGroup`]
1554
- });
1555
- }, "de_HlsPackage");
1556
- var de_IngestEndpoint = /* @__PURE__ */ __name((output, context) => {
1557
- return (0, import_smithy_client.take)(output, {
1558
- Id: [, import_smithy_client.expectString, `id`],
1559
- Password: [, import_smithy_client.expectString, `password`],
1560
- Url: [, import_smithy_client.expectString, `url`],
1561
- Username: [, import_smithy_client.expectString, `username`]
1562
- });
1563
- }, "de_IngestEndpoint");
1564
- var de_IngressAccessLogs = /* @__PURE__ */ __name((output, context) => {
1565
- return (0, import_smithy_client.take)(output, {
1566
- LogGroupName: [, import_smithy_client.expectString, `logGroupName`]
1567
- });
1568
- }, "de_IngressAccessLogs");
1569
- var de_MssEncryption = /* @__PURE__ */ __name((output, context) => {
1570
- return (0, import_smithy_client.take)(output, {
1571
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1572
- });
1573
- }, "de_MssEncryption");
1574
- var de_MssPackage = /* @__PURE__ */ __name((output, context) => {
1575
- return (0, import_smithy_client.take)(output, {
1576
- Encryption: [, (_) => de_MssEncryption(_, context), `encryption`],
1577
- ManifestWindowSeconds: [, import_smithy_client.expectInt32, `manifestWindowSeconds`],
1578
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`],
1579
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`]
1580
- });
1581
- }, "de_MssPackage");
1582
- var de_OriginEndpoint = /* @__PURE__ */ __name((output, context) => {
1583
- return (0, import_smithy_client.take)(output, {
1584
- Arn: [, import_smithy_client.expectString, `arn`],
1585
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
1586
- ChannelId: [, import_smithy_client.expectString, `channelId`],
1587
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
1588
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1589
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
1590
- Description: [, import_smithy_client.expectString, `description`],
1591
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
1592
- Id: [, import_smithy_client.expectString, `id`],
1593
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
1594
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
1595
- Origination: [, import_smithy_client.expectString, `origination`],
1596
- StartoverWindowSeconds: [, import_smithy_client.expectInt32, `startoverWindowSeconds`],
1597
- Tags: [, import_smithy_client._json, `tags`],
1598
- TimeDelaySeconds: [, import_smithy_client.expectInt32, `timeDelaySeconds`],
1599
- Url: [, import_smithy_client.expectString, `url`],
1600
- Whitelist: [, import_smithy_client._json, `whitelist`]
1601
- });
1602
- }, "de_OriginEndpoint");
1603
- var de_S3Destination = /* @__PURE__ */ __name((output, context) => {
1604
- return (0, import_smithy_client.take)(output, {
1605
- BucketName: [, import_smithy_client.expectString, `bucketName`],
1606
- ManifestKey: [, import_smithy_client.expectString, `manifestKey`],
1607
- RoleArn: [, import_smithy_client.expectString, `roleArn`]
1608
- });
1609
- }, "de_S3Destination");
1610
- var de_SpekeKeyProvider = /* @__PURE__ */ __name((output, context) => {
1611
- return (0, import_smithy_client.take)(output, {
1612
- CertificateArn: [, import_smithy_client.expectString, `certificateArn`],
1613
- EncryptionContractConfiguration: [
1614
- ,
1615
- (_) => de_EncryptionContractConfiguration(_, context),
1616
- `encryptionContractConfiguration`
1617
- ],
1618
- ResourceId: [, import_smithy_client.expectString, `resourceId`],
1619
- RoleArn: [, import_smithy_client.expectString, `roleArn`],
1620
- SystemIds: [, import_smithy_client._json, `systemIds`],
1621
- Url: [, import_smithy_client.expectString, `url`]
1622
- });
1623
- }, "de_SpekeKeyProvider");
1624
- var de_StreamSelection = /* @__PURE__ */ __name((output, context) => {
1625
- return (0, import_smithy_client.take)(output, {
1626
- MaxVideoBitsPerSecond: [, import_smithy_client.expectInt32, `maxVideoBitsPerSecond`],
1627
- MinVideoBitsPerSecond: [, import_smithy_client.expectInt32, `minVideoBitsPerSecond`],
1628
- StreamOrder: [, import_smithy_client.expectString, `streamOrder`]
1629
- });
1630
- }, "de_StreamSelection");
1631
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1632
- httpStatusCode: output.statusCode,
1633
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1634
- extendedRequestId: output.headers["x-amz-id-2"],
1635
- cfId: output.headers["x-amz-cf-id"]
1636
- }), "deserializeMetadata");
1637
- var _CI = "ChannelId";
1638
- var _ICI = "IncludeChannelId";
1639
- var _IS = "IncludeStatus";
1640
- var _MR = "MaxResults";
1641
- var _NT = "NextToken";
1642
- var _TK = "TagKeys";
1643
- var _cI = "channelId";
1644
- var _iCI = "includeChannelId";
1645
- var _iS = "includeStatus";
1646
- var _mR = "maxResults";
1647
- var _nT = "nextToken";
1648
- var _tK = "tagKeys";
1649
-
1650
- // src/commands/ConfigureLogsCommand.ts
1651
- var ConfigureLogsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1652
- return [
1653
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1654
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1655
- ];
1656
- }).s("MediaPackage", "ConfigureLogs", {}).n("MediaPackageClient", "ConfigureLogsCommand").f(void 0, ConfigureLogsResponseFilterSensitiveLog).ser(se_ConfigureLogsCommand).de(de_ConfigureLogsCommand).build() {
1657
- static {
1658
- __name(this, "ConfigureLogsCommand");
1659
- }
133
+ const Status = {
134
+ FAILED: "FAILED",
135
+ IN_PROGRESS: "IN_PROGRESS",
136
+ SUCCEEDED: "SUCCEEDED",
1660
137
  };
1661
-
1662
- // src/commands/CreateChannelCommand.ts
1663
-
1664
-
1665
-
1666
- var CreateChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1667
- return [
1668
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1669
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1670
- ];
1671
- }).s("MediaPackage", "CreateChannel", {}).n("MediaPackageClient", "CreateChannelCommand").f(void 0, CreateChannelResponseFilterSensitiveLog).ser(se_CreateChannelCommand).de(de_CreateChannelCommand).build() {
1672
- static {
1673
- __name(this, "CreateChannelCommand");
1674
- }
138
+ const AdMarkers = {
139
+ DATERANGE: "DATERANGE",
140
+ NONE: "NONE",
141
+ PASSTHROUGH: "PASSTHROUGH",
142
+ SCTE35_ENHANCED: "SCTE35_ENHANCED",
1675
143
  };
1676
-
1677
- // src/commands/CreateHarvestJobCommand.ts
1678
-
1679
-
1680
-
1681
- var CreateHarvestJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1682
- return [
1683
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1684
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1685
- ];
1686
- }).s("MediaPackage", "CreateHarvestJob", {}).n("MediaPackageClient", "CreateHarvestJobCommand").f(void 0, void 0).ser(se_CreateHarvestJobCommand).de(de_CreateHarvestJobCommand).build() {
1687
- static {
1688
- __name(this, "CreateHarvestJobCommand");
1689
- }
144
+ const AdsOnDeliveryRestrictions = {
145
+ BOTH: "BOTH",
146
+ NONE: "NONE",
147
+ RESTRICTED: "RESTRICTED",
148
+ UNRESTRICTED: "UNRESTRICTED",
1690
149
  };
1691
-
1692
- // src/commands/CreateOriginEndpointCommand.ts
1693
-
1694
-
1695
-
1696
- var CreateOriginEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1697
- return [
1698
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1699
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1700
- ];
1701
- }).s("MediaPackage", "CreateOriginEndpoint", {}).n("MediaPackageClient", "CreateOriginEndpointCommand").f(void 0, void 0).ser(se_CreateOriginEndpointCommand).de(de_CreateOriginEndpointCommand).build() {
1702
- static {
1703
- __name(this, "CreateOriginEndpointCommand");
1704
- }
150
+ const PlaylistType = {
151
+ EVENT: "EVENT",
152
+ NONE: "NONE",
153
+ VOD: "VOD",
1705
154
  };
1706
-
1707
- // src/commands/DeleteChannelCommand.ts
1708
-
1709
-
1710
-
1711
- var DeleteChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1712
- return [
1713
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1714
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1715
- ];
1716
- }).s("MediaPackage", "DeleteChannel", {}).n("MediaPackageClient", "DeleteChannelCommand").f(void 0, void 0).ser(se_DeleteChannelCommand).de(de_DeleteChannelCommand).build() {
1717
- static {
1718
- __name(this, "DeleteChannelCommand");
1719
- }
155
+ const CmafEncryptionMethod = {
156
+ AES_CTR: "AES_CTR",
157
+ SAMPLE_AES: "SAMPLE_AES",
1720
158
  };
1721
-
1722
- // src/commands/DeleteOriginEndpointCommand.ts
1723
-
1724
-
1725
-
1726
- var DeleteOriginEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1727
- return [
1728
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1729
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1730
- ];
1731
- }).s("MediaPackage", "DeleteOriginEndpoint", {}).n("MediaPackageClient", "DeleteOriginEndpointCommand").f(void 0, void 0).ser(se_DeleteOriginEndpointCommand).de(de_DeleteOriginEndpointCommand).build() {
1732
- static {
1733
- __name(this, "DeleteOriginEndpointCommand");
1734
- }
159
+ const PresetSpeke20Audio = {
160
+ PRESET_AUDIO_1: "PRESET-AUDIO-1",
161
+ PRESET_AUDIO_2: "PRESET-AUDIO-2",
162
+ PRESET_AUDIO_3: "PRESET-AUDIO-3",
163
+ SHARED: "SHARED",
164
+ UNENCRYPTED: "UNENCRYPTED",
1735
165
  };
1736
-
1737
- // src/commands/DescribeChannelCommand.ts
1738
-
1739
-
1740
-
1741
- var DescribeChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1742
- return [
1743
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1744
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1745
- ];
1746
- }).s("MediaPackage", "DescribeChannel", {}).n("MediaPackageClient", "DescribeChannelCommand").f(void 0, DescribeChannelResponseFilterSensitiveLog).ser(se_DescribeChannelCommand).de(de_DescribeChannelCommand).build() {
1747
- static {
1748
- __name(this, "DescribeChannelCommand");
1749
- }
166
+ const PresetSpeke20Video = {
167
+ PRESET_VIDEO_1: "PRESET-VIDEO-1",
168
+ PRESET_VIDEO_2: "PRESET-VIDEO-2",
169
+ PRESET_VIDEO_3: "PRESET-VIDEO-3",
170
+ PRESET_VIDEO_4: "PRESET-VIDEO-4",
171
+ PRESET_VIDEO_5: "PRESET-VIDEO-5",
172
+ PRESET_VIDEO_6: "PRESET-VIDEO-6",
173
+ PRESET_VIDEO_7: "PRESET-VIDEO-7",
174
+ PRESET_VIDEO_8: "PRESET-VIDEO-8",
175
+ SHARED: "SHARED",
176
+ UNENCRYPTED: "UNENCRYPTED",
1750
177
  };
1751
-
1752
- // src/commands/DescribeHarvestJobCommand.ts
1753
-
1754
-
1755
-
1756
- var DescribeHarvestJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1757
- return [
1758
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1759
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1760
- ];
1761
- }).s("MediaPackage", "DescribeHarvestJob", {}).n("MediaPackageClient", "DescribeHarvestJobCommand").f(void 0, void 0).ser(se_DescribeHarvestJobCommand).de(de_DescribeHarvestJobCommand).build() {
1762
- static {
1763
- __name(this, "DescribeHarvestJobCommand");
1764
- }
178
+ const StreamOrder = {
179
+ ORIGINAL: "ORIGINAL",
180
+ VIDEO_BITRATE_ASCENDING: "VIDEO_BITRATE_ASCENDING",
181
+ VIDEO_BITRATE_DESCENDING: "VIDEO_BITRATE_DESCENDING",
1765
182
  };
1766
-
1767
- // src/commands/DescribeOriginEndpointCommand.ts
1768
-
1769
-
1770
-
1771
- var DescribeOriginEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1772
- return [
1773
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1774
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1775
- ];
1776
- }).s("MediaPackage", "DescribeOriginEndpoint", {}).n("MediaPackageClient", "DescribeOriginEndpointCommand").f(void 0, void 0).ser(se_DescribeOriginEndpointCommand).de(de_DescribeOriginEndpointCommand).build() {
1777
- static {
1778
- __name(this, "DescribeOriginEndpointCommand");
1779
- }
183
+ const ManifestLayout = {
184
+ COMPACT: "COMPACT",
185
+ DRM_TOP_LEVEL_COMPACT: "DRM_TOP_LEVEL_COMPACT",
186
+ FULL: "FULL",
1780
187
  };
1781
-
1782
- // src/commands/ListChannelsCommand.ts
1783
-
1784
-
1785
-
1786
- var ListChannelsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1787
- return [
1788
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1789
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1790
- ];
1791
- }).s("MediaPackage", "ListChannels", {}).n("MediaPackageClient", "ListChannelsCommand").f(void 0, ListChannelsResponseFilterSensitiveLog).ser(se_ListChannelsCommand).de(de_ListChannelsCommand).build() {
1792
- static {
1793
- __name(this, "ListChannelsCommand");
1794
- }
188
+ const Profile = {
189
+ DVB_DASH_2014: "DVB_DASH_2014",
190
+ HBBTV_1_5: "HBBTV_1_5",
191
+ HYBRIDCAST: "HYBRIDCAST",
192
+ NONE: "NONE",
1795
193
  };
1796
-
1797
- // src/commands/ListHarvestJobsCommand.ts
1798
-
1799
-
1800
-
1801
- var ListHarvestJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1802
- return [
1803
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1804
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1805
- ];
1806
- }).s("MediaPackage", "ListHarvestJobs", {}).n("MediaPackageClient", "ListHarvestJobsCommand").f(void 0, void 0).ser(se_ListHarvestJobsCommand).de(de_ListHarvestJobsCommand).build() {
1807
- static {
1808
- __name(this, "ListHarvestJobsCommand");
1809
- }
194
+ const SegmentTemplateFormat = {
195
+ NUMBER_WITH_DURATION: "NUMBER_WITH_DURATION",
196
+ NUMBER_WITH_TIMELINE: "NUMBER_WITH_TIMELINE",
197
+ TIME_WITH_TIMELINE: "TIME_WITH_TIMELINE",
1810
198
  };
1811
-
1812
- // src/commands/ListOriginEndpointsCommand.ts
1813
-
1814
-
1815
-
1816
- var ListOriginEndpointsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1817
- return [
1818
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1819
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1820
- ];
1821
- }).s("MediaPackage", "ListOriginEndpoints", {}).n("MediaPackageClient", "ListOriginEndpointsCommand").f(void 0, void 0).ser(se_ListOriginEndpointsCommand).de(de_ListOriginEndpointsCommand).build() {
1822
- static {
1823
- __name(this, "ListOriginEndpointsCommand");
1824
- }
199
+ const UtcTiming = {
200
+ HTTP_HEAD: "HTTP-HEAD",
201
+ HTTP_ISO: "HTTP-ISO",
202
+ HTTP_XSDATE: "HTTP-XSDATE",
203
+ NONE: "NONE",
1825
204
  };
1826
-
1827
- // src/commands/ListTagsForResourceCommand.ts
1828
-
1829
-
1830
-
1831
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1832
- return [
1833
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1834
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1835
- ];
1836
- }).s("MediaPackage", "ListTagsForResource", {}).n("MediaPackageClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1837
- static {
1838
- __name(this, "ListTagsForResourceCommand");
1839
- }
205
+ const EncryptionMethod = {
206
+ AES_128: "AES_128",
207
+ SAMPLE_AES: "SAMPLE_AES",
1840
208
  };
1841
-
1842
- // src/commands/RotateChannelCredentialsCommand.ts
1843
-
1844
-
1845
-
1846
- var RotateChannelCredentialsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1847
- return [
1848
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1849
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1850
- ];
1851
- }).s("MediaPackage", "RotateChannelCredentials", {}).n("MediaPackageClient", "RotateChannelCredentialsCommand").f(void 0, RotateChannelCredentialsResponseFilterSensitiveLog).ser(se_RotateChannelCredentialsCommand).de(de_RotateChannelCredentialsCommand).build() {
1852
- static {
1853
- __name(this, "RotateChannelCredentialsCommand");
1854
- }
209
+ const Origination = {
210
+ ALLOW: "ALLOW",
211
+ DENY: "DENY",
1855
212
  };
213
+ class ForbiddenException extends MediaPackageServiceException {
214
+ name = "ForbiddenException";
215
+ $fault = "client";
216
+ Message;
217
+ constructor(opts) {
218
+ super({
219
+ name: "ForbiddenException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
224
+ this.Message = opts.Message;
225
+ }
226
+ }
227
+ class InternalServerErrorException extends MediaPackageServiceException {
228
+ name = "InternalServerErrorException";
229
+ $fault = "server";
230
+ Message;
231
+ constructor(opts) {
232
+ super({
233
+ name: "InternalServerErrorException",
234
+ $fault: "server",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
238
+ this.Message = opts.Message;
239
+ }
240
+ }
241
+ class NotFoundException extends MediaPackageServiceException {
242
+ name = "NotFoundException";
243
+ $fault = "client";
244
+ Message;
245
+ constructor(opts) {
246
+ super({
247
+ name: "NotFoundException",
248
+ $fault: "client",
249
+ ...opts,
250
+ });
251
+ Object.setPrototypeOf(this, NotFoundException.prototype);
252
+ this.Message = opts.Message;
253
+ }
254
+ }
255
+ class ServiceUnavailableException extends MediaPackageServiceException {
256
+ name = "ServiceUnavailableException";
257
+ $fault = "server";
258
+ Message;
259
+ constructor(opts) {
260
+ super({
261
+ name: "ServiceUnavailableException",
262
+ $fault: "server",
263
+ ...opts,
264
+ });
265
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
266
+ this.Message = opts.Message;
267
+ }
268
+ }
269
+ class TooManyRequestsException extends MediaPackageServiceException {
270
+ name = "TooManyRequestsException";
271
+ $fault = "client";
272
+ Message;
273
+ constructor(opts) {
274
+ super({
275
+ name: "TooManyRequestsException",
276
+ $fault: "client",
277
+ ...opts,
278
+ });
279
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
280
+ this.Message = opts.Message;
281
+ }
282
+ }
283
+ class UnprocessableEntityException extends MediaPackageServiceException {
284
+ name = "UnprocessableEntityException";
285
+ $fault = "client";
286
+ Message;
287
+ constructor(opts) {
288
+ super({
289
+ name: "UnprocessableEntityException",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
294
+ this.Message = opts.Message;
295
+ }
296
+ }
297
+ const IngestEndpointFilterSensitiveLog = (obj) => ({
298
+ ...obj,
299
+ ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
300
+ ...(obj.Username && { Username: smithyClient.SENSITIVE_STRING }),
301
+ });
302
+ const HlsIngestFilterSensitiveLog = (obj) => ({
303
+ ...obj,
304
+ ...(obj.IngestEndpoints && {
305
+ IngestEndpoints: obj.IngestEndpoints.map((item) => IngestEndpointFilterSensitiveLog(item)),
306
+ }),
307
+ });
308
+ const ChannelFilterSensitiveLog = (obj) => ({
309
+ ...obj,
310
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
311
+ });
312
+ const ConfigureLogsResponseFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
315
+ });
316
+ const CreateChannelResponseFilterSensitiveLog = (obj) => ({
317
+ ...obj,
318
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
319
+ });
320
+ const DescribeChannelResponseFilterSensitiveLog = (obj) => ({
321
+ ...obj,
322
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
323
+ });
324
+ const ListChannelsResponseFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ });
327
+ const RotateChannelCredentialsResponseFilterSensitiveLog = (obj) => ({
328
+ ...obj,
329
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
330
+ });
331
+ const RotateIngestEndpointCredentialsResponseFilterSensitiveLog = (obj) => ({
332
+ ...obj,
333
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
334
+ });
335
+ const UpdateChannelResponseFilterSensitiveLog = (obj) => ({
336
+ ...obj,
337
+ ...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
338
+ });
1856
339
 
1857
- // src/commands/RotateIngestEndpointCredentialsCommand.ts
1858
-
1859
-
1860
-
1861
- var RotateIngestEndpointCredentialsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1862
- return [
1863
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1864
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1865
- ];
1866
- }).s("MediaPackage", "RotateIngestEndpointCredentials", {}).n("MediaPackageClient", "RotateIngestEndpointCredentialsCommand").f(void 0, RotateIngestEndpointCredentialsResponseFilterSensitiveLog).ser(se_RotateIngestEndpointCredentialsCommand).de(de_RotateIngestEndpointCredentialsCommand).build() {
1867
- static {
1868
- __name(this, "RotateIngestEndpointCredentialsCommand");
1869
- }
340
+ const se_ConfigureLogsCommand = async (input, context) => {
341
+ const b = core.requestBuilder(input, context);
342
+ const headers = {
343
+ "content-type": "application/json",
344
+ };
345
+ b.bp("/channels/{Id}/configure_logs");
346
+ b.p("Id", () => input.Id, "{Id}", false);
347
+ let body;
348
+ body = JSON.stringify(smithyClient.take(input, {
349
+ egressAccessLogs: [, (_) => se_EgressAccessLogs(_), `EgressAccessLogs`],
350
+ ingressAccessLogs: [, (_) => se_IngressAccessLogs(_), `IngressAccessLogs`],
351
+ }));
352
+ b.m("PUT").h(headers).b(body);
353
+ return b.build();
1870
354
  };
1871
-
1872
- // src/commands/TagResourceCommand.ts
1873
-
1874
-
1875
-
1876
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1877
- return [
1878
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1879
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1880
- ];
1881
- }).s("MediaPackage", "TagResource", {}).n("MediaPackageClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1882
- static {
1883
- __name(this, "TagResourceCommand");
1884
- }
355
+ const se_CreateChannelCommand = async (input, context) => {
356
+ const b = core.requestBuilder(input, context);
357
+ const headers = {
358
+ "content-type": "application/json",
359
+ };
360
+ b.bp("/channels");
361
+ let body;
362
+ body = JSON.stringify(smithyClient.take(input, {
363
+ description: [, , `Description`],
364
+ id: [, , `Id`],
365
+ tags: [, (_) => smithyClient._json(_), `Tags`],
366
+ }));
367
+ b.m("POST").h(headers).b(body);
368
+ return b.build();
1885
369
  };
1886
-
1887
- // src/commands/UntagResourceCommand.ts
1888
-
1889
-
1890
-
1891
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1892
- return [
1893
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1894
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1895
- ];
1896
- }).s("MediaPackage", "UntagResource", {}).n("MediaPackageClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1897
- static {
1898
- __name(this, "UntagResourceCommand");
1899
- }
370
+ const se_CreateHarvestJobCommand = async (input, context) => {
371
+ const b = core.requestBuilder(input, context);
372
+ const headers = {
373
+ "content-type": "application/json",
374
+ };
375
+ b.bp("/harvest_jobs");
376
+ let body;
377
+ body = JSON.stringify(smithyClient.take(input, {
378
+ endTime: [, , `EndTime`],
379
+ id: [, , `Id`],
380
+ originEndpointId: [, , `OriginEndpointId`],
381
+ s3Destination: [, (_) => se_S3Destination(_), `S3Destination`],
382
+ startTime: [, , `StartTime`],
383
+ }));
384
+ b.m("POST").h(headers).b(body);
385
+ return b.build();
1900
386
  };
1901
-
1902
- // src/commands/UpdateChannelCommand.ts
1903
-
1904
-
1905
-
1906
- var UpdateChannelCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1907
- return [
1908
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1909
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1910
- ];
1911
- }).s("MediaPackage", "UpdateChannel", {}).n("MediaPackageClient", "UpdateChannelCommand").f(void 0, UpdateChannelResponseFilterSensitiveLog).ser(se_UpdateChannelCommand).de(de_UpdateChannelCommand).build() {
1912
- static {
1913
- __name(this, "UpdateChannelCommand");
1914
- }
387
+ const se_CreateOriginEndpointCommand = async (input, context) => {
388
+ const b = core.requestBuilder(input, context);
389
+ const headers = {
390
+ "content-type": "application/json",
391
+ };
392
+ b.bp("/origin_endpoints");
393
+ let body;
394
+ body = JSON.stringify(smithyClient.take(input, {
395
+ authorization: [, (_) => se_Authorization(_), `Authorization`],
396
+ channelId: [, , `ChannelId`],
397
+ cmafPackage: [, (_) => se_CmafPackageCreateOrUpdateParameters(_), `CmafPackage`],
398
+ dashPackage: [, (_) => se_DashPackage(_), `DashPackage`],
399
+ description: [, , `Description`],
400
+ hlsPackage: [, (_) => se_HlsPackage(_), `HlsPackage`],
401
+ id: [, , `Id`],
402
+ manifestName: [, , `ManifestName`],
403
+ mssPackage: [, (_) => se_MssPackage(_), `MssPackage`],
404
+ origination: [, , `Origination`],
405
+ startoverWindowSeconds: [, , `StartoverWindowSeconds`],
406
+ tags: [, (_) => smithyClient._json(_), `Tags`],
407
+ timeDelaySeconds: [, , `TimeDelaySeconds`],
408
+ whitelist: [, (_) => smithyClient._json(_), `Whitelist`],
409
+ }));
410
+ b.m("POST").h(headers).b(body);
411
+ return b.build();
1915
412
  };
1916
-
1917
- // src/commands/UpdateOriginEndpointCommand.ts
1918
-
1919
-
1920
-
1921
- var UpdateOriginEndpointCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1922
- return [
1923
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1924
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1925
- ];
1926
- }).s("MediaPackage", "UpdateOriginEndpoint", {}).n("MediaPackageClient", "UpdateOriginEndpointCommand").f(void 0, void 0).ser(se_UpdateOriginEndpointCommand).de(de_UpdateOriginEndpointCommand).build() {
1927
- static {
1928
- __name(this, "UpdateOriginEndpointCommand");
1929
- }
413
+ const se_DeleteChannelCommand = async (input, context) => {
414
+ const b = core.requestBuilder(input, context);
415
+ const headers = {};
416
+ b.bp("/channels/{Id}");
417
+ b.p("Id", () => input.Id, "{Id}", false);
418
+ let body;
419
+ b.m("DELETE").h(headers).b(body);
420
+ return b.build();
1930
421
  };
422
+ const se_DeleteOriginEndpointCommand = async (input, context) => {
423
+ const b = core.requestBuilder(input, context);
424
+ const headers = {};
425
+ b.bp("/origin_endpoints/{Id}");
426
+ b.p("Id", () => input.Id, "{Id}", false);
427
+ let body;
428
+ b.m("DELETE").h(headers).b(body);
429
+ return b.build();
430
+ };
431
+ const se_DescribeChannelCommand = async (input, context) => {
432
+ const b = core.requestBuilder(input, context);
433
+ const headers = {};
434
+ b.bp("/channels/{Id}");
435
+ b.p("Id", () => input.Id, "{Id}", false);
436
+ let body;
437
+ b.m("GET").h(headers).b(body);
438
+ return b.build();
439
+ };
440
+ const se_DescribeHarvestJobCommand = async (input, context) => {
441
+ const b = core.requestBuilder(input, context);
442
+ const headers = {};
443
+ b.bp("/harvest_jobs/{Id}");
444
+ b.p("Id", () => input.Id, "{Id}", false);
445
+ let body;
446
+ b.m("GET").h(headers).b(body);
447
+ return b.build();
448
+ };
449
+ const se_DescribeOriginEndpointCommand = async (input, context) => {
450
+ const b = core.requestBuilder(input, context);
451
+ const headers = {};
452
+ b.bp("/origin_endpoints/{Id}");
453
+ b.p("Id", () => input.Id, "{Id}", false);
454
+ let body;
455
+ b.m("GET").h(headers).b(body);
456
+ return b.build();
457
+ };
458
+ const se_ListChannelsCommand = async (input, context) => {
459
+ const b = core.requestBuilder(input, context);
460
+ const headers = {};
461
+ b.bp("/channels");
462
+ const query = smithyClient.map({
463
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
464
+ [_nT]: [, input[_NT]],
465
+ });
466
+ let body;
467
+ b.m("GET").h(headers).q(query).b(body);
468
+ return b.build();
469
+ };
470
+ const se_ListHarvestJobsCommand = async (input, context) => {
471
+ const b = core.requestBuilder(input, context);
472
+ const headers = {};
473
+ b.bp("/harvest_jobs");
474
+ const query = smithyClient.map({
475
+ [_iCI]: [, input[_ICI]],
476
+ [_iS]: [, input[_IS]],
477
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
478
+ [_nT]: [, input[_NT]],
479
+ });
480
+ let body;
481
+ b.m("GET").h(headers).q(query).b(body);
482
+ return b.build();
483
+ };
484
+ const se_ListOriginEndpointsCommand = async (input, context) => {
485
+ const b = core.requestBuilder(input, context);
486
+ const headers = {};
487
+ b.bp("/origin_endpoints");
488
+ const query = smithyClient.map({
489
+ [_cI]: [, input[_CI]],
490
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
491
+ [_nT]: [, input[_NT]],
492
+ });
493
+ let body;
494
+ b.m("GET").h(headers).q(query).b(body);
495
+ return b.build();
496
+ };
497
+ const se_ListTagsForResourceCommand = async (input, context) => {
498
+ const b = core.requestBuilder(input, context);
499
+ const headers = {};
500
+ b.bp("/tags/{ResourceArn}");
501
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
502
+ let body;
503
+ b.m("GET").h(headers).b(body);
504
+ return b.build();
505
+ };
506
+ const se_RotateChannelCredentialsCommand = async (input, context) => {
507
+ const b = core.requestBuilder(input, context);
508
+ const headers = {};
509
+ b.bp("/channels/{Id}/credentials");
510
+ b.p("Id", () => input.Id, "{Id}", false);
511
+ let body;
512
+ b.m("PUT").h(headers).b(body);
513
+ return b.build();
514
+ };
515
+ const se_RotateIngestEndpointCredentialsCommand = async (input, context) => {
516
+ const b = core.requestBuilder(input, context);
517
+ const headers = {};
518
+ b.bp("/channels/{Id}/ingest_endpoints/{IngestEndpointId}/credentials");
519
+ b.p("Id", () => input.Id, "{Id}", false);
520
+ b.p("IngestEndpointId", () => input.IngestEndpointId, "{IngestEndpointId}", false);
521
+ let body;
522
+ b.m("PUT").h(headers).b(body);
523
+ return b.build();
524
+ };
525
+ const se_TagResourceCommand = async (input, context) => {
526
+ const b = core.requestBuilder(input, context);
527
+ const headers = {
528
+ "content-type": "application/json",
529
+ };
530
+ b.bp("/tags/{ResourceArn}");
531
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
532
+ let body;
533
+ body = JSON.stringify(smithyClient.take(input, {
534
+ tags: [, (_) => smithyClient._json(_), `Tags`],
535
+ }));
536
+ b.m("POST").h(headers).b(body);
537
+ return b.build();
538
+ };
539
+ const se_UntagResourceCommand = async (input, context) => {
540
+ const b = core.requestBuilder(input, context);
541
+ const headers = {};
542
+ b.bp("/tags/{ResourceArn}");
543
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
544
+ const query = smithyClient.map({
545
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
546
+ });
547
+ let body;
548
+ b.m("DELETE").h(headers).q(query).b(body);
549
+ return b.build();
550
+ };
551
+ const se_UpdateChannelCommand = async (input, context) => {
552
+ const b = core.requestBuilder(input, context);
553
+ const headers = {
554
+ "content-type": "application/json",
555
+ };
556
+ b.bp("/channels/{Id}");
557
+ b.p("Id", () => input.Id, "{Id}", false);
558
+ let body;
559
+ body = JSON.stringify(smithyClient.take(input, {
560
+ description: [, , `Description`],
561
+ }));
562
+ b.m("PUT").h(headers).b(body);
563
+ return b.build();
564
+ };
565
+ const se_UpdateOriginEndpointCommand = async (input, context) => {
566
+ const b = core.requestBuilder(input, context);
567
+ const headers = {
568
+ "content-type": "application/json",
569
+ };
570
+ b.bp("/origin_endpoints/{Id}");
571
+ b.p("Id", () => input.Id, "{Id}", false);
572
+ let body;
573
+ body = JSON.stringify(smithyClient.take(input, {
574
+ authorization: [, (_) => se_Authorization(_), `Authorization`],
575
+ cmafPackage: [, (_) => se_CmafPackageCreateOrUpdateParameters(_), `CmafPackage`],
576
+ dashPackage: [, (_) => se_DashPackage(_), `DashPackage`],
577
+ description: [, , `Description`],
578
+ hlsPackage: [, (_) => se_HlsPackage(_), `HlsPackage`],
579
+ manifestName: [, , `ManifestName`],
580
+ mssPackage: [, (_) => se_MssPackage(_), `MssPackage`],
581
+ origination: [, , `Origination`],
582
+ startoverWindowSeconds: [, , `StartoverWindowSeconds`],
583
+ timeDelaySeconds: [, , `TimeDelaySeconds`],
584
+ whitelist: [, (_) => smithyClient._json(_), `Whitelist`],
585
+ }));
586
+ b.m("PUT").h(headers).b(body);
587
+ return b.build();
588
+ };
589
+ const de_ConfigureLogsCommand = async (output, context) => {
590
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
591
+ return de_CommandError(output, context);
592
+ }
593
+ const contents = smithyClient.map({
594
+ $metadata: deserializeMetadata(output),
595
+ });
596
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
597
+ const doc = smithyClient.take(data, {
598
+ Arn: [, smithyClient.expectString, `arn`],
599
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
600
+ Description: [, smithyClient.expectString, `description`],
601
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
602
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
603
+ Id: [, smithyClient.expectString, `id`],
604
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
605
+ Tags: [, smithyClient._json, `tags`],
606
+ });
607
+ Object.assign(contents, doc);
608
+ return contents;
609
+ };
610
+ const de_CreateChannelCommand = async (output, context) => {
611
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
612
+ return de_CommandError(output, context);
613
+ }
614
+ const contents = smithyClient.map({
615
+ $metadata: deserializeMetadata(output),
616
+ });
617
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
618
+ const doc = smithyClient.take(data, {
619
+ Arn: [, smithyClient.expectString, `arn`],
620
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
621
+ Description: [, smithyClient.expectString, `description`],
622
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
623
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
624
+ Id: [, smithyClient.expectString, `id`],
625
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
626
+ Tags: [, smithyClient._json, `tags`],
627
+ });
628
+ Object.assign(contents, doc);
629
+ return contents;
630
+ };
631
+ const de_CreateHarvestJobCommand = async (output, context) => {
632
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
633
+ return de_CommandError(output, context);
634
+ }
635
+ const contents = smithyClient.map({
636
+ $metadata: deserializeMetadata(output),
637
+ });
638
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
639
+ const doc = smithyClient.take(data, {
640
+ Arn: [, smithyClient.expectString, `arn`],
641
+ ChannelId: [, smithyClient.expectString, `channelId`],
642
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
643
+ EndTime: [, smithyClient.expectString, `endTime`],
644
+ Id: [, smithyClient.expectString, `id`],
645
+ OriginEndpointId: [, smithyClient.expectString, `originEndpointId`],
646
+ S3Destination: [, (_) => de_S3Destination(_), `s3Destination`],
647
+ StartTime: [, smithyClient.expectString, `startTime`],
648
+ Status: [, smithyClient.expectString, `status`],
649
+ });
650
+ Object.assign(contents, doc);
651
+ return contents;
652
+ };
653
+ const de_CreateOriginEndpointCommand = async (output, context) => {
654
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
655
+ return de_CommandError(output, context);
656
+ }
657
+ const contents = smithyClient.map({
658
+ $metadata: deserializeMetadata(output),
659
+ });
660
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
661
+ const doc = smithyClient.take(data, {
662
+ Arn: [, smithyClient.expectString, `arn`],
663
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
664
+ ChannelId: [, smithyClient.expectString, `channelId`],
665
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
666
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
667
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
668
+ Description: [, smithyClient.expectString, `description`],
669
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
670
+ Id: [, smithyClient.expectString, `id`],
671
+ ManifestName: [, smithyClient.expectString, `manifestName`],
672
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
673
+ Origination: [, smithyClient.expectString, `origination`],
674
+ StartoverWindowSeconds: [, smithyClient.expectInt32, `startoverWindowSeconds`],
675
+ Tags: [, smithyClient._json, `tags`],
676
+ TimeDelaySeconds: [, smithyClient.expectInt32, `timeDelaySeconds`],
677
+ Url: [, smithyClient.expectString, `url`],
678
+ Whitelist: [, smithyClient._json, `whitelist`],
679
+ });
680
+ Object.assign(contents, doc);
681
+ return contents;
682
+ };
683
+ const de_DeleteChannelCommand = async (output, context) => {
684
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
685
+ return de_CommandError(output, context);
686
+ }
687
+ const contents = smithyClient.map({
688
+ $metadata: deserializeMetadata(output),
689
+ });
690
+ await smithyClient.collectBody(output.body, context);
691
+ return contents;
692
+ };
693
+ const de_DeleteOriginEndpointCommand = async (output, context) => {
694
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
695
+ return de_CommandError(output, context);
696
+ }
697
+ const contents = smithyClient.map({
698
+ $metadata: deserializeMetadata(output),
699
+ });
700
+ await smithyClient.collectBody(output.body, context);
701
+ return contents;
702
+ };
703
+ const de_DescribeChannelCommand = async (output, context) => {
704
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
705
+ return de_CommandError(output, context);
706
+ }
707
+ const contents = smithyClient.map({
708
+ $metadata: deserializeMetadata(output),
709
+ });
710
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
711
+ const doc = smithyClient.take(data, {
712
+ Arn: [, smithyClient.expectString, `arn`],
713
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
714
+ Description: [, smithyClient.expectString, `description`],
715
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
716
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
717
+ Id: [, smithyClient.expectString, `id`],
718
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
719
+ Tags: [, smithyClient._json, `tags`],
720
+ });
721
+ Object.assign(contents, doc);
722
+ return contents;
723
+ };
724
+ const de_DescribeHarvestJobCommand = async (output, context) => {
725
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
726
+ return de_CommandError(output, context);
727
+ }
728
+ const contents = smithyClient.map({
729
+ $metadata: deserializeMetadata(output),
730
+ });
731
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
732
+ const doc = smithyClient.take(data, {
733
+ Arn: [, smithyClient.expectString, `arn`],
734
+ ChannelId: [, smithyClient.expectString, `channelId`],
735
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
736
+ EndTime: [, smithyClient.expectString, `endTime`],
737
+ Id: [, smithyClient.expectString, `id`],
738
+ OriginEndpointId: [, smithyClient.expectString, `originEndpointId`],
739
+ S3Destination: [, (_) => de_S3Destination(_), `s3Destination`],
740
+ StartTime: [, smithyClient.expectString, `startTime`],
741
+ Status: [, smithyClient.expectString, `status`],
742
+ });
743
+ Object.assign(contents, doc);
744
+ return contents;
745
+ };
746
+ const de_DescribeOriginEndpointCommand = async (output, context) => {
747
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
748
+ return de_CommandError(output, context);
749
+ }
750
+ const contents = smithyClient.map({
751
+ $metadata: deserializeMetadata(output),
752
+ });
753
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
754
+ const doc = smithyClient.take(data, {
755
+ Arn: [, smithyClient.expectString, `arn`],
756
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
757
+ ChannelId: [, smithyClient.expectString, `channelId`],
758
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
759
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
760
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
761
+ Description: [, smithyClient.expectString, `description`],
762
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
763
+ Id: [, smithyClient.expectString, `id`],
764
+ ManifestName: [, smithyClient.expectString, `manifestName`],
765
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
766
+ Origination: [, smithyClient.expectString, `origination`],
767
+ StartoverWindowSeconds: [, smithyClient.expectInt32, `startoverWindowSeconds`],
768
+ Tags: [, smithyClient._json, `tags`],
769
+ TimeDelaySeconds: [, smithyClient.expectInt32, `timeDelaySeconds`],
770
+ Url: [, smithyClient.expectString, `url`],
771
+ Whitelist: [, smithyClient._json, `whitelist`],
772
+ });
773
+ Object.assign(contents, doc);
774
+ return contents;
775
+ };
776
+ const de_ListChannelsCommand = async (output, context) => {
777
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
778
+ return de_CommandError(output, context);
779
+ }
780
+ const contents = smithyClient.map({
781
+ $metadata: deserializeMetadata(output),
782
+ });
783
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
784
+ const doc = smithyClient.take(data, {
785
+ Channels: [, (_) => de___listOfChannel(_), `channels`],
786
+ NextToken: [, smithyClient.expectString, `nextToken`],
787
+ });
788
+ Object.assign(contents, doc);
789
+ return contents;
790
+ };
791
+ const de_ListHarvestJobsCommand = async (output, context) => {
792
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
793
+ return de_CommandError(output, context);
794
+ }
795
+ const contents = smithyClient.map({
796
+ $metadata: deserializeMetadata(output),
797
+ });
798
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
799
+ const doc = smithyClient.take(data, {
800
+ HarvestJobs: [, (_) => de___listOfHarvestJob(_), `harvestJobs`],
801
+ NextToken: [, smithyClient.expectString, `nextToken`],
802
+ });
803
+ Object.assign(contents, doc);
804
+ return contents;
805
+ };
806
+ const de_ListOriginEndpointsCommand = async (output, context) => {
807
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
808
+ return de_CommandError(output, context);
809
+ }
810
+ const contents = smithyClient.map({
811
+ $metadata: deserializeMetadata(output),
812
+ });
813
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
814
+ const doc = smithyClient.take(data, {
815
+ NextToken: [, smithyClient.expectString, `nextToken`],
816
+ OriginEndpoints: [, (_) => de___listOfOriginEndpoint(_), `originEndpoints`],
817
+ });
818
+ Object.assign(contents, doc);
819
+ return contents;
820
+ };
821
+ const de_ListTagsForResourceCommand = async (output, context) => {
822
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
823
+ return de_CommandError(output, context);
824
+ }
825
+ const contents = smithyClient.map({
826
+ $metadata: deserializeMetadata(output),
827
+ });
828
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
829
+ const doc = smithyClient.take(data, {
830
+ Tags: [, smithyClient._json, `tags`],
831
+ });
832
+ Object.assign(contents, doc);
833
+ return contents;
834
+ };
835
+ const de_RotateChannelCredentialsCommand = async (output, context) => {
836
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
837
+ return de_CommandError(output, context);
838
+ }
839
+ const contents = smithyClient.map({
840
+ $metadata: deserializeMetadata(output),
841
+ });
842
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
843
+ const doc = smithyClient.take(data, {
844
+ Arn: [, smithyClient.expectString, `arn`],
845
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
846
+ Description: [, smithyClient.expectString, `description`],
847
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
848
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
849
+ Id: [, smithyClient.expectString, `id`],
850
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
851
+ Tags: [, smithyClient._json, `tags`],
852
+ });
853
+ Object.assign(contents, doc);
854
+ return contents;
855
+ };
856
+ const de_RotateIngestEndpointCredentialsCommand = async (output, context) => {
857
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
858
+ return de_CommandError(output, context);
859
+ }
860
+ const contents = smithyClient.map({
861
+ $metadata: deserializeMetadata(output),
862
+ });
863
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
864
+ const doc = smithyClient.take(data, {
865
+ Arn: [, smithyClient.expectString, `arn`],
866
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
867
+ Description: [, smithyClient.expectString, `description`],
868
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
869
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
870
+ Id: [, smithyClient.expectString, `id`],
871
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
872
+ Tags: [, smithyClient._json, `tags`],
873
+ });
874
+ Object.assign(contents, doc);
875
+ return contents;
876
+ };
877
+ const de_TagResourceCommand = async (output, context) => {
878
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
879
+ return de_CommandError(output, context);
880
+ }
881
+ const contents = smithyClient.map({
882
+ $metadata: deserializeMetadata(output),
883
+ });
884
+ await smithyClient.collectBody(output.body, context);
885
+ return contents;
886
+ };
887
+ const de_UntagResourceCommand = async (output, context) => {
888
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
889
+ return de_CommandError(output, context);
890
+ }
891
+ const contents = smithyClient.map({
892
+ $metadata: deserializeMetadata(output),
893
+ });
894
+ await smithyClient.collectBody(output.body, context);
895
+ return contents;
896
+ };
897
+ const de_UpdateChannelCommand = async (output, context) => {
898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
899
+ return de_CommandError(output, context);
900
+ }
901
+ const contents = smithyClient.map({
902
+ $metadata: deserializeMetadata(output),
903
+ });
904
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
905
+ const doc = smithyClient.take(data, {
906
+ Arn: [, smithyClient.expectString, `arn`],
907
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
908
+ Description: [, smithyClient.expectString, `description`],
909
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
910
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
911
+ Id: [, smithyClient.expectString, `id`],
912
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
913
+ Tags: [, smithyClient._json, `tags`],
914
+ });
915
+ Object.assign(contents, doc);
916
+ return contents;
917
+ };
918
+ const de_UpdateOriginEndpointCommand = async (output, context) => {
919
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
920
+ return de_CommandError(output, context);
921
+ }
922
+ const contents = smithyClient.map({
923
+ $metadata: deserializeMetadata(output),
924
+ });
925
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
926
+ const doc = smithyClient.take(data, {
927
+ Arn: [, smithyClient.expectString, `arn`],
928
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
929
+ ChannelId: [, smithyClient.expectString, `channelId`],
930
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
931
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
932
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
933
+ Description: [, smithyClient.expectString, `description`],
934
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
935
+ Id: [, smithyClient.expectString, `id`],
936
+ ManifestName: [, smithyClient.expectString, `manifestName`],
937
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
938
+ Origination: [, smithyClient.expectString, `origination`],
939
+ StartoverWindowSeconds: [, smithyClient.expectInt32, `startoverWindowSeconds`],
940
+ Tags: [, smithyClient._json, `tags`],
941
+ TimeDelaySeconds: [, smithyClient.expectInt32, `timeDelaySeconds`],
942
+ Url: [, smithyClient.expectString, `url`],
943
+ Whitelist: [, smithyClient._json, `whitelist`],
944
+ });
945
+ Object.assign(contents, doc);
946
+ return contents;
947
+ };
948
+ const de_CommandError = async (output, context) => {
949
+ const parsedOutput = {
950
+ ...output,
951
+ body: await core$1.parseJsonErrorBody(output.body, context),
952
+ };
953
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
954
+ switch (errorCode) {
955
+ case "ForbiddenException":
956
+ case "com.amazonaws.mediapackage#ForbiddenException":
957
+ throw await de_ForbiddenExceptionRes(parsedOutput);
958
+ case "InternalServerErrorException":
959
+ case "com.amazonaws.mediapackage#InternalServerErrorException":
960
+ throw await de_InternalServerErrorExceptionRes(parsedOutput);
961
+ case "NotFoundException":
962
+ case "com.amazonaws.mediapackage#NotFoundException":
963
+ throw await de_NotFoundExceptionRes(parsedOutput);
964
+ case "ServiceUnavailableException":
965
+ case "com.amazonaws.mediapackage#ServiceUnavailableException":
966
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput);
967
+ case "TooManyRequestsException":
968
+ case "com.amazonaws.mediapackage#TooManyRequestsException":
969
+ throw await de_TooManyRequestsExceptionRes(parsedOutput);
970
+ case "UnprocessableEntityException":
971
+ case "com.amazonaws.mediapackage#UnprocessableEntityException":
972
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput);
973
+ default:
974
+ const parsedBody = parsedOutput.body;
975
+ return throwDefaultError({
976
+ output,
977
+ parsedBody,
978
+ errorCode,
979
+ });
980
+ }
981
+ };
982
+ const throwDefaultError = smithyClient.withBaseException(MediaPackageServiceException);
983
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
984
+ const contents = smithyClient.map({});
985
+ const data = parsedOutput.body;
986
+ const doc = smithyClient.take(data, {
987
+ Message: [, smithyClient.expectString, `message`],
988
+ });
989
+ Object.assign(contents, doc);
990
+ const exception = new ForbiddenException({
991
+ $metadata: deserializeMetadata(parsedOutput),
992
+ ...contents,
993
+ });
994
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
995
+ };
996
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
997
+ const contents = smithyClient.map({});
998
+ const data = parsedOutput.body;
999
+ const doc = smithyClient.take(data, {
1000
+ Message: [, smithyClient.expectString, `message`],
1001
+ });
1002
+ Object.assign(contents, doc);
1003
+ const exception = new InternalServerErrorException({
1004
+ $metadata: deserializeMetadata(parsedOutput),
1005
+ ...contents,
1006
+ });
1007
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1008
+ };
1009
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1010
+ const contents = smithyClient.map({});
1011
+ const data = parsedOutput.body;
1012
+ const doc = smithyClient.take(data, {
1013
+ Message: [, smithyClient.expectString, `message`],
1014
+ });
1015
+ Object.assign(contents, doc);
1016
+ const exception = new NotFoundException({
1017
+ $metadata: deserializeMetadata(parsedOutput),
1018
+ ...contents,
1019
+ });
1020
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1021
+ };
1022
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1023
+ const contents = smithyClient.map({});
1024
+ const data = parsedOutput.body;
1025
+ const doc = smithyClient.take(data, {
1026
+ Message: [, smithyClient.expectString, `message`],
1027
+ });
1028
+ Object.assign(contents, doc);
1029
+ const exception = new ServiceUnavailableException({
1030
+ $metadata: deserializeMetadata(parsedOutput),
1031
+ ...contents,
1032
+ });
1033
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1034
+ };
1035
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1036
+ const contents = smithyClient.map({});
1037
+ const data = parsedOutput.body;
1038
+ const doc = smithyClient.take(data, {
1039
+ Message: [, smithyClient.expectString, `message`],
1040
+ });
1041
+ Object.assign(contents, doc);
1042
+ const exception = new TooManyRequestsException({
1043
+ $metadata: deserializeMetadata(parsedOutput),
1044
+ ...contents,
1045
+ });
1046
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1047
+ };
1048
+ const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
1049
+ const contents = smithyClient.map({});
1050
+ const data = parsedOutput.body;
1051
+ const doc = smithyClient.take(data, {
1052
+ Message: [, smithyClient.expectString, `message`],
1053
+ });
1054
+ Object.assign(contents, doc);
1055
+ const exception = new UnprocessableEntityException({
1056
+ $metadata: deserializeMetadata(parsedOutput),
1057
+ ...contents,
1058
+ });
1059
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1060
+ };
1061
+ const se___listOfHlsManifestCreateOrUpdateParameters = (input, context) => {
1062
+ return input
1063
+ .filter((e) => e != null)
1064
+ .map((entry) => {
1065
+ return se_HlsManifestCreateOrUpdateParameters(entry);
1066
+ });
1067
+ };
1068
+ const se_Authorization = (input, context) => {
1069
+ return smithyClient.take(input, {
1070
+ cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
1071
+ secretsRoleArn: [, , `SecretsRoleArn`],
1072
+ });
1073
+ };
1074
+ const se_CmafEncryption = (input, context) => {
1075
+ return smithyClient.take(input, {
1076
+ constantInitializationVector: [, , `ConstantInitializationVector`],
1077
+ encryptionMethod: [, , `EncryptionMethod`],
1078
+ keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
1079
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
1080
+ });
1081
+ };
1082
+ const se_CmafPackageCreateOrUpdateParameters = (input, context) => {
1083
+ return smithyClient.take(input, {
1084
+ encryption: [, (_) => se_CmafEncryption(_), `Encryption`],
1085
+ hlsManifests: [, (_) => se___listOfHlsManifestCreateOrUpdateParameters(_), `HlsManifests`],
1086
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1087
+ segmentPrefix: [, , `SegmentPrefix`],
1088
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
1089
+ });
1090
+ };
1091
+ const se_DashEncryption = (input, context) => {
1092
+ return smithyClient.take(input, {
1093
+ keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
1094
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
1095
+ });
1096
+ };
1097
+ const se_DashPackage = (input, context) => {
1098
+ return smithyClient.take(input, {
1099
+ adTriggers: [, smithyClient._json, `AdTriggers`],
1100
+ adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
1101
+ encryption: [, (_) => se_DashEncryption(_), `Encryption`],
1102
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1103
+ manifestLayout: [, , `ManifestLayout`],
1104
+ manifestWindowSeconds: [, , `ManifestWindowSeconds`],
1105
+ minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
1106
+ minUpdatePeriodSeconds: [, , `MinUpdatePeriodSeconds`],
1107
+ periodTriggers: [, smithyClient._json, `PeriodTriggers`],
1108
+ profile: [, , `Profile`],
1109
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1110
+ segmentTemplateFormat: [, , `SegmentTemplateFormat`],
1111
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
1112
+ suggestedPresentationDelaySeconds: [, , `SuggestedPresentationDelaySeconds`],
1113
+ utcTiming: [, , `UtcTiming`],
1114
+ utcTimingUri: [, , `UtcTimingUri`],
1115
+ });
1116
+ };
1117
+ const se_EgressAccessLogs = (input, context) => {
1118
+ return smithyClient.take(input, {
1119
+ logGroupName: [, , `LogGroupName`],
1120
+ });
1121
+ };
1122
+ const se_EncryptionContractConfiguration = (input, context) => {
1123
+ return smithyClient.take(input, {
1124
+ presetSpeke20Audio: [, , `PresetSpeke20Audio`],
1125
+ presetSpeke20Video: [, , `PresetSpeke20Video`],
1126
+ });
1127
+ };
1128
+ const se_HlsEncryption = (input, context) => {
1129
+ return smithyClient.take(input, {
1130
+ constantInitializationVector: [, , `ConstantInitializationVector`],
1131
+ encryptionMethod: [, , `EncryptionMethod`],
1132
+ keyRotationIntervalSeconds: [, , `KeyRotationIntervalSeconds`],
1133
+ repeatExtXKey: [, , `RepeatExtXKey`],
1134
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
1135
+ });
1136
+ };
1137
+ const se_HlsManifestCreateOrUpdateParameters = (input, context) => {
1138
+ return smithyClient.take(input, {
1139
+ adMarkers: [, , `AdMarkers`],
1140
+ adTriggers: [, smithyClient._json, `AdTriggers`],
1141
+ adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
1142
+ id: [, , `Id`],
1143
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1144
+ manifestName: [, , `ManifestName`],
1145
+ playlistType: [, , `PlaylistType`],
1146
+ playlistWindowSeconds: [, , `PlaylistWindowSeconds`],
1147
+ programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
1148
+ });
1149
+ };
1150
+ const se_HlsPackage = (input, context) => {
1151
+ return smithyClient.take(input, {
1152
+ adMarkers: [, , `AdMarkers`],
1153
+ adTriggers: [, smithyClient._json, `AdTriggers`],
1154
+ adsOnDeliveryRestrictions: [, , `AdsOnDeliveryRestrictions`],
1155
+ encryption: [, (_) => se_HlsEncryption(_), `Encryption`],
1156
+ includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
1157
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1158
+ playlistType: [, , `PlaylistType`],
1159
+ playlistWindowSeconds: [, , `PlaylistWindowSeconds`],
1160
+ programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
1161
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1162
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
1163
+ useAudioRenditionGroup: [, , `UseAudioRenditionGroup`],
1164
+ });
1165
+ };
1166
+ const se_IngressAccessLogs = (input, context) => {
1167
+ return smithyClient.take(input, {
1168
+ logGroupName: [, , `LogGroupName`],
1169
+ });
1170
+ };
1171
+ const se_MssEncryption = (input, context) => {
1172
+ return smithyClient.take(input, {
1173
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
1174
+ });
1175
+ };
1176
+ const se_MssPackage = (input, context) => {
1177
+ return smithyClient.take(input, {
1178
+ encryption: [, (_) => se_MssEncryption(_), `Encryption`],
1179
+ manifestWindowSeconds: [, , `ManifestWindowSeconds`],
1180
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1181
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
1182
+ });
1183
+ };
1184
+ const se_S3Destination = (input, context) => {
1185
+ return smithyClient.take(input, {
1186
+ bucketName: [, , `BucketName`],
1187
+ manifestKey: [, , `ManifestKey`],
1188
+ roleArn: [, , `RoleArn`],
1189
+ });
1190
+ };
1191
+ const se_SpekeKeyProvider = (input, context) => {
1192
+ return smithyClient.take(input, {
1193
+ certificateArn: [, , `CertificateArn`],
1194
+ encryptionContractConfiguration: [
1195
+ ,
1196
+ (_) => se_EncryptionContractConfiguration(_),
1197
+ `EncryptionContractConfiguration`,
1198
+ ],
1199
+ resourceId: [, , `ResourceId`],
1200
+ roleArn: [, , `RoleArn`],
1201
+ systemIds: [, smithyClient._json, `SystemIds`],
1202
+ url: [, , `Url`],
1203
+ });
1204
+ };
1205
+ const se_StreamSelection = (input, context) => {
1206
+ return smithyClient.take(input, {
1207
+ maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
1208
+ minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
1209
+ streamOrder: [, , `StreamOrder`],
1210
+ });
1211
+ };
1212
+ const de___listOfChannel = (output, context) => {
1213
+ const retVal = (output || [])
1214
+ .filter((e) => e != null)
1215
+ .map((entry) => {
1216
+ return de_Channel(entry);
1217
+ });
1218
+ return retVal;
1219
+ };
1220
+ const de___listOfHarvestJob = (output, context) => {
1221
+ const retVal = (output || [])
1222
+ .filter((e) => e != null)
1223
+ .map((entry) => {
1224
+ return de_HarvestJob(entry);
1225
+ });
1226
+ return retVal;
1227
+ };
1228
+ const de___listOfHlsManifest = (output, context) => {
1229
+ const retVal = (output || [])
1230
+ .filter((e) => e != null)
1231
+ .map((entry) => {
1232
+ return de_HlsManifest(entry);
1233
+ });
1234
+ return retVal;
1235
+ };
1236
+ const de___listOfIngestEndpoint = (output, context) => {
1237
+ const retVal = (output || [])
1238
+ .filter((e) => e != null)
1239
+ .map((entry) => {
1240
+ return de_IngestEndpoint(entry);
1241
+ });
1242
+ return retVal;
1243
+ };
1244
+ const de___listOfOriginEndpoint = (output, context) => {
1245
+ const retVal = (output || [])
1246
+ .filter((e) => e != null)
1247
+ .map((entry) => {
1248
+ return de_OriginEndpoint(entry);
1249
+ });
1250
+ return retVal;
1251
+ };
1252
+ const de_Authorization = (output, context) => {
1253
+ return smithyClient.take(output, {
1254
+ CdnIdentifierSecret: [, smithyClient.expectString, `cdnIdentifierSecret`],
1255
+ SecretsRoleArn: [, smithyClient.expectString, `secretsRoleArn`],
1256
+ });
1257
+ };
1258
+ const de_Channel = (output, context) => {
1259
+ return smithyClient.take(output, {
1260
+ Arn: [, smithyClient.expectString, `arn`],
1261
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
1262
+ Description: [, smithyClient.expectString, `description`],
1263
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
1264
+ HlsIngest: [, (_) => de_HlsIngest(_), `hlsIngest`],
1265
+ Id: [, smithyClient.expectString, `id`],
1266
+ IngressAccessLogs: [, (_) => de_IngressAccessLogs(_), `ingressAccessLogs`],
1267
+ Tags: [, smithyClient._json, `tags`],
1268
+ });
1269
+ };
1270
+ const de_CmafEncryption = (output, context) => {
1271
+ return smithyClient.take(output, {
1272
+ ConstantInitializationVector: [, smithyClient.expectString, `constantInitializationVector`],
1273
+ EncryptionMethod: [, smithyClient.expectString, `encryptionMethod`],
1274
+ KeyRotationIntervalSeconds: [, smithyClient.expectInt32, `keyRotationIntervalSeconds`],
1275
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1276
+ });
1277
+ };
1278
+ const de_CmafPackage = (output, context) => {
1279
+ return smithyClient.take(output, {
1280
+ Encryption: [, (_) => de_CmafEncryption(_), `encryption`],
1281
+ HlsManifests: [, (_) => de___listOfHlsManifest(_), `hlsManifests`],
1282
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1283
+ SegmentPrefix: [, smithyClient.expectString, `segmentPrefix`],
1284
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1285
+ });
1286
+ };
1287
+ const de_DashEncryption = (output, context) => {
1288
+ return smithyClient.take(output, {
1289
+ KeyRotationIntervalSeconds: [, smithyClient.expectInt32, `keyRotationIntervalSeconds`],
1290
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1291
+ });
1292
+ };
1293
+ const de_DashPackage = (output, context) => {
1294
+ return smithyClient.take(output, {
1295
+ AdTriggers: [, smithyClient._json, `adTriggers`],
1296
+ AdsOnDeliveryRestrictions: [, smithyClient.expectString, `adsOnDeliveryRestrictions`],
1297
+ Encryption: [, (_) => de_DashEncryption(_), `encryption`],
1298
+ IncludeIframeOnlyStream: [, smithyClient.expectBoolean, `includeIframeOnlyStream`],
1299
+ ManifestLayout: [, smithyClient.expectString, `manifestLayout`],
1300
+ ManifestWindowSeconds: [, smithyClient.expectInt32, `manifestWindowSeconds`],
1301
+ MinBufferTimeSeconds: [, smithyClient.expectInt32, `minBufferTimeSeconds`],
1302
+ MinUpdatePeriodSeconds: [, smithyClient.expectInt32, `minUpdatePeriodSeconds`],
1303
+ PeriodTriggers: [, smithyClient._json, `periodTriggers`],
1304
+ Profile: [, smithyClient.expectString, `profile`],
1305
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1306
+ SegmentTemplateFormat: [, smithyClient.expectString, `segmentTemplateFormat`],
1307
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1308
+ SuggestedPresentationDelaySeconds: [, smithyClient.expectInt32, `suggestedPresentationDelaySeconds`],
1309
+ UtcTiming: [, smithyClient.expectString, `utcTiming`],
1310
+ UtcTimingUri: [, smithyClient.expectString, `utcTimingUri`],
1311
+ });
1312
+ };
1313
+ const de_EgressAccessLogs = (output, context) => {
1314
+ return smithyClient.take(output, {
1315
+ LogGroupName: [, smithyClient.expectString, `logGroupName`],
1316
+ });
1317
+ };
1318
+ const de_EncryptionContractConfiguration = (output, context) => {
1319
+ return smithyClient.take(output, {
1320
+ PresetSpeke20Audio: [, smithyClient.expectString, `presetSpeke20Audio`],
1321
+ PresetSpeke20Video: [, smithyClient.expectString, `presetSpeke20Video`],
1322
+ });
1323
+ };
1324
+ const de_HarvestJob = (output, context) => {
1325
+ return smithyClient.take(output, {
1326
+ Arn: [, smithyClient.expectString, `arn`],
1327
+ ChannelId: [, smithyClient.expectString, `channelId`],
1328
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
1329
+ EndTime: [, smithyClient.expectString, `endTime`],
1330
+ Id: [, smithyClient.expectString, `id`],
1331
+ OriginEndpointId: [, smithyClient.expectString, `originEndpointId`],
1332
+ S3Destination: [, (_) => de_S3Destination(_), `s3Destination`],
1333
+ StartTime: [, smithyClient.expectString, `startTime`],
1334
+ Status: [, smithyClient.expectString, `status`],
1335
+ });
1336
+ };
1337
+ const de_HlsEncryption = (output, context) => {
1338
+ return smithyClient.take(output, {
1339
+ ConstantInitializationVector: [, smithyClient.expectString, `constantInitializationVector`],
1340
+ EncryptionMethod: [, smithyClient.expectString, `encryptionMethod`],
1341
+ KeyRotationIntervalSeconds: [, smithyClient.expectInt32, `keyRotationIntervalSeconds`],
1342
+ RepeatExtXKey: [, smithyClient.expectBoolean, `repeatExtXKey`],
1343
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1344
+ });
1345
+ };
1346
+ const de_HlsIngest = (output, context) => {
1347
+ return smithyClient.take(output, {
1348
+ IngestEndpoints: [, (_) => de___listOfIngestEndpoint(_), `ingestEndpoints`],
1349
+ });
1350
+ };
1351
+ const de_HlsManifest = (output, context) => {
1352
+ return smithyClient.take(output, {
1353
+ AdMarkers: [, smithyClient.expectString, `adMarkers`],
1354
+ AdTriggers: [, smithyClient._json, `adTriggers`],
1355
+ AdsOnDeliveryRestrictions: [, smithyClient.expectString, `adsOnDeliveryRestrictions`],
1356
+ Id: [, smithyClient.expectString, `id`],
1357
+ IncludeIframeOnlyStream: [, smithyClient.expectBoolean, `includeIframeOnlyStream`],
1358
+ ManifestName: [, smithyClient.expectString, `manifestName`],
1359
+ PlaylistType: [, smithyClient.expectString, `playlistType`],
1360
+ PlaylistWindowSeconds: [, smithyClient.expectInt32, `playlistWindowSeconds`],
1361
+ ProgramDateTimeIntervalSeconds: [, smithyClient.expectInt32, `programDateTimeIntervalSeconds`],
1362
+ Url: [, smithyClient.expectString, `url`],
1363
+ });
1364
+ };
1365
+ const de_HlsPackage = (output, context) => {
1366
+ return smithyClient.take(output, {
1367
+ AdMarkers: [, smithyClient.expectString, `adMarkers`],
1368
+ AdTriggers: [, smithyClient._json, `adTriggers`],
1369
+ AdsOnDeliveryRestrictions: [, smithyClient.expectString, `adsOnDeliveryRestrictions`],
1370
+ Encryption: [, (_) => de_HlsEncryption(_), `encryption`],
1371
+ IncludeDvbSubtitles: [, smithyClient.expectBoolean, `includeDvbSubtitles`],
1372
+ IncludeIframeOnlyStream: [, smithyClient.expectBoolean, `includeIframeOnlyStream`],
1373
+ PlaylistType: [, smithyClient.expectString, `playlistType`],
1374
+ PlaylistWindowSeconds: [, smithyClient.expectInt32, `playlistWindowSeconds`],
1375
+ ProgramDateTimeIntervalSeconds: [, smithyClient.expectInt32, `programDateTimeIntervalSeconds`],
1376
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1377
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1378
+ UseAudioRenditionGroup: [, smithyClient.expectBoolean, `useAudioRenditionGroup`],
1379
+ });
1380
+ };
1381
+ const de_IngestEndpoint = (output, context) => {
1382
+ return smithyClient.take(output, {
1383
+ Id: [, smithyClient.expectString, `id`],
1384
+ Password: [, smithyClient.expectString, `password`],
1385
+ Url: [, smithyClient.expectString, `url`],
1386
+ Username: [, smithyClient.expectString, `username`],
1387
+ });
1388
+ };
1389
+ const de_IngressAccessLogs = (output, context) => {
1390
+ return smithyClient.take(output, {
1391
+ LogGroupName: [, smithyClient.expectString, `logGroupName`],
1392
+ });
1393
+ };
1394
+ const de_MssEncryption = (output, context) => {
1395
+ return smithyClient.take(output, {
1396
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1397
+ });
1398
+ };
1399
+ const de_MssPackage = (output, context) => {
1400
+ return smithyClient.take(output, {
1401
+ Encryption: [, (_) => de_MssEncryption(_), `encryption`],
1402
+ ManifestWindowSeconds: [, smithyClient.expectInt32, `manifestWindowSeconds`],
1403
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1404
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1405
+ });
1406
+ };
1407
+ const de_OriginEndpoint = (output, context) => {
1408
+ return smithyClient.take(output, {
1409
+ Arn: [, smithyClient.expectString, `arn`],
1410
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
1411
+ ChannelId: [, smithyClient.expectString, `channelId`],
1412
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
1413
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
1414
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
1415
+ Description: [, smithyClient.expectString, `description`],
1416
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
1417
+ Id: [, smithyClient.expectString, `id`],
1418
+ ManifestName: [, smithyClient.expectString, `manifestName`],
1419
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
1420
+ Origination: [, smithyClient.expectString, `origination`],
1421
+ StartoverWindowSeconds: [, smithyClient.expectInt32, `startoverWindowSeconds`],
1422
+ Tags: [, smithyClient._json, `tags`],
1423
+ TimeDelaySeconds: [, smithyClient.expectInt32, `timeDelaySeconds`],
1424
+ Url: [, smithyClient.expectString, `url`],
1425
+ Whitelist: [, smithyClient._json, `whitelist`],
1426
+ });
1427
+ };
1428
+ const de_S3Destination = (output, context) => {
1429
+ return smithyClient.take(output, {
1430
+ BucketName: [, smithyClient.expectString, `bucketName`],
1431
+ ManifestKey: [, smithyClient.expectString, `manifestKey`],
1432
+ RoleArn: [, smithyClient.expectString, `roleArn`],
1433
+ });
1434
+ };
1435
+ const de_SpekeKeyProvider = (output, context) => {
1436
+ return smithyClient.take(output, {
1437
+ CertificateArn: [, smithyClient.expectString, `certificateArn`],
1438
+ EncryptionContractConfiguration: [
1439
+ ,
1440
+ (_) => de_EncryptionContractConfiguration(_),
1441
+ `encryptionContractConfiguration`,
1442
+ ],
1443
+ ResourceId: [, smithyClient.expectString, `resourceId`],
1444
+ RoleArn: [, smithyClient.expectString, `roleArn`],
1445
+ SystemIds: [, smithyClient._json, `systemIds`],
1446
+ Url: [, smithyClient.expectString, `url`],
1447
+ });
1448
+ };
1449
+ const de_StreamSelection = (output, context) => {
1450
+ return smithyClient.take(output, {
1451
+ MaxVideoBitsPerSecond: [, smithyClient.expectInt32, `maxVideoBitsPerSecond`],
1452
+ MinVideoBitsPerSecond: [, smithyClient.expectInt32, `minVideoBitsPerSecond`],
1453
+ StreamOrder: [, smithyClient.expectString, `streamOrder`],
1454
+ });
1455
+ };
1456
+ const deserializeMetadata = (output) => ({
1457
+ httpStatusCode: output.statusCode,
1458
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1459
+ extendedRequestId: output.headers["x-amz-id-2"],
1460
+ cfId: output.headers["x-amz-cf-id"],
1461
+ });
1462
+ const _CI = "ChannelId";
1463
+ const _ICI = "IncludeChannelId";
1464
+ const _IS = "IncludeStatus";
1465
+ const _MR = "MaxResults";
1466
+ const _NT = "NextToken";
1467
+ const _TK = "TagKeys";
1468
+ const _cI = "channelId";
1469
+ const _iCI = "includeChannelId";
1470
+ const _iS = "includeStatus";
1471
+ const _mR = "maxResults";
1472
+ const _nT = "nextToken";
1473
+ const _tK = "tagKeys";
1474
+
1475
+ class ConfigureLogsCommand extends smithyClient.Command
1476
+ .classBuilder()
1477
+ .ep(commonParams)
1478
+ .m(function (Command, cs, config, o) {
1479
+ return [
1480
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1481
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1482
+ ];
1483
+ })
1484
+ .s("MediaPackage", "ConfigureLogs", {})
1485
+ .n("MediaPackageClient", "ConfigureLogsCommand")
1486
+ .f(void 0, ConfigureLogsResponseFilterSensitiveLog)
1487
+ .ser(se_ConfigureLogsCommand)
1488
+ .de(de_ConfigureLogsCommand)
1489
+ .build() {
1490
+ }
1491
+
1492
+ class CreateChannelCommand extends smithyClient.Command
1493
+ .classBuilder()
1494
+ .ep(commonParams)
1495
+ .m(function (Command, cs, config, o) {
1496
+ return [
1497
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1498
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1499
+ ];
1500
+ })
1501
+ .s("MediaPackage", "CreateChannel", {})
1502
+ .n("MediaPackageClient", "CreateChannelCommand")
1503
+ .f(void 0, CreateChannelResponseFilterSensitiveLog)
1504
+ .ser(se_CreateChannelCommand)
1505
+ .de(de_CreateChannelCommand)
1506
+ .build() {
1507
+ }
1508
+
1509
+ class CreateHarvestJobCommand extends smithyClient.Command
1510
+ .classBuilder()
1511
+ .ep(commonParams)
1512
+ .m(function (Command, cs, config, o) {
1513
+ return [
1514
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1515
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1516
+ ];
1517
+ })
1518
+ .s("MediaPackage", "CreateHarvestJob", {})
1519
+ .n("MediaPackageClient", "CreateHarvestJobCommand")
1520
+ .f(void 0, void 0)
1521
+ .ser(se_CreateHarvestJobCommand)
1522
+ .de(de_CreateHarvestJobCommand)
1523
+ .build() {
1524
+ }
1525
+
1526
+ class CreateOriginEndpointCommand extends smithyClient.Command
1527
+ .classBuilder()
1528
+ .ep(commonParams)
1529
+ .m(function (Command, cs, config, o) {
1530
+ return [
1531
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1532
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1533
+ ];
1534
+ })
1535
+ .s("MediaPackage", "CreateOriginEndpoint", {})
1536
+ .n("MediaPackageClient", "CreateOriginEndpointCommand")
1537
+ .f(void 0, void 0)
1538
+ .ser(se_CreateOriginEndpointCommand)
1539
+ .de(de_CreateOriginEndpointCommand)
1540
+ .build() {
1541
+ }
1542
+
1543
+ class DeleteChannelCommand extends smithyClient.Command
1544
+ .classBuilder()
1545
+ .ep(commonParams)
1546
+ .m(function (Command, cs, config, o) {
1547
+ return [
1548
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1549
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1550
+ ];
1551
+ })
1552
+ .s("MediaPackage", "DeleteChannel", {})
1553
+ .n("MediaPackageClient", "DeleteChannelCommand")
1554
+ .f(void 0, void 0)
1555
+ .ser(se_DeleteChannelCommand)
1556
+ .de(de_DeleteChannelCommand)
1557
+ .build() {
1558
+ }
1559
+
1560
+ class DeleteOriginEndpointCommand extends smithyClient.Command
1561
+ .classBuilder()
1562
+ .ep(commonParams)
1563
+ .m(function (Command, cs, config, o) {
1564
+ return [
1565
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1566
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1567
+ ];
1568
+ })
1569
+ .s("MediaPackage", "DeleteOriginEndpoint", {})
1570
+ .n("MediaPackageClient", "DeleteOriginEndpointCommand")
1571
+ .f(void 0, void 0)
1572
+ .ser(se_DeleteOriginEndpointCommand)
1573
+ .de(de_DeleteOriginEndpointCommand)
1574
+ .build() {
1575
+ }
1576
+
1577
+ class DescribeChannelCommand extends smithyClient.Command
1578
+ .classBuilder()
1579
+ .ep(commonParams)
1580
+ .m(function (Command, cs, config, o) {
1581
+ return [
1582
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1583
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1584
+ ];
1585
+ })
1586
+ .s("MediaPackage", "DescribeChannel", {})
1587
+ .n("MediaPackageClient", "DescribeChannelCommand")
1588
+ .f(void 0, DescribeChannelResponseFilterSensitiveLog)
1589
+ .ser(se_DescribeChannelCommand)
1590
+ .de(de_DescribeChannelCommand)
1591
+ .build() {
1592
+ }
1593
+
1594
+ class DescribeHarvestJobCommand extends smithyClient.Command
1595
+ .classBuilder()
1596
+ .ep(commonParams)
1597
+ .m(function (Command, cs, config, o) {
1598
+ return [
1599
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1600
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1601
+ ];
1602
+ })
1603
+ .s("MediaPackage", "DescribeHarvestJob", {})
1604
+ .n("MediaPackageClient", "DescribeHarvestJobCommand")
1605
+ .f(void 0, void 0)
1606
+ .ser(se_DescribeHarvestJobCommand)
1607
+ .de(de_DescribeHarvestJobCommand)
1608
+ .build() {
1609
+ }
1610
+
1611
+ class DescribeOriginEndpointCommand extends smithyClient.Command
1612
+ .classBuilder()
1613
+ .ep(commonParams)
1614
+ .m(function (Command, cs, config, o) {
1615
+ return [
1616
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1617
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1618
+ ];
1619
+ })
1620
+ .s("MediaPackage", "DescribeOriginEndpoint", {})
1621
+ .n("MediaPackageClient", "DescribeOriginEndpointCommand")
1622
+ .f(void 0, void 0)
1623
+ .ser(se_DescribeOriginEndpointCommand)
1624
+ .de(de_DescribeOriginEndpointCommand)
1625
+ .build() {
1626
+ }
1627
+
1628
+ class ListChannelsCommand extends smithyClient.Command
1629
+ .classBuilder()
1630
+ .ep(commonParams)
1631
+ .m(function (Command, cs, config, o) {
1632
+ return [
1633
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1634
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1635
+ ];
1636
+ })
1637
+ .s("MediaPackage", "ListChannels", {})
1638
+ .n("MediaPackageClient", "ListChannelsCommand")
1639
+ .f(void 0, ListChannelsResponseFilterSensitiveLog)
1640
+ .ser(se_ListChannelsCommand)
1641
+ .de(de_ListChannelsCommand)
1642
+ .build() {
1643
+ }
1644
+
1645
+ class ListHarvestJobsCommand extends smithyClient.Command
1646
+ .classBuilder()
1647
+ .ep(commonParams)
1648
+ .m(function (Command, cs, config, o) {
1649
+ return [
1650
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1651
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1652
+ ];
1653
+ })
1654
+ .s("MediaPackage", "ListHarvestJobs", {})
1655
+ .n("MediaPackageClient", "ListHarvestJobsCommand")
1656
+ .f(void 0, void 0)
1657
+ .ser(se_ListHarvestJobsCommand)
1658
+ .de(de_ListHarvestJobsCommand)
1659
+ .build() {
1660
+ }
1661
+
1662
+ class ListOriginEndpointsCommand extends smithyClient.Command
1663
+ .classBuilder()
1664
+ .ep(commonParams)
1665
+ .m(function (Command, cs, config, o) {
1666
+ return [
1667
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1668
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1669
+ ];
1670
+ })
1671
+ .s("MediaPackage", "ListOriginEndpoints", {})
1672
+ .n("MediaPackageClient", "ListOriginEndpointsCommand")
1673
+ .f(void 0, void 0)
1674
+ .ser(se_ListOriginEndpointsCommand)
1675
+ .de(de_ListOriginEndpointsCommand)
1676
+ .build() {
1677
+ }
1678
+
1679
+ class ListTagsForResourceCommand extends smithyClient.Command
1680
+ .classBuilder()
1681
+ .ep(commonParams)
1682
+ .m(function (Command, cs, config, o) {
1683
+ return [
1684
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1685
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1686
+ ];
1687
+ })
1688
+ .s("MediaPackage", "ListTagsForResource", {})
1689
+ .n("MediaPackageClient", "ListTagsForResourceCommand")
1690
+ .f(void 0, void 0)
1691
+ .ser(se_ListTagsForResourceCommand)
1692
+ .de(de_ListTagsForResourceCommand)
1693
+ .build() {
1694
+ }
1695
+
1696
+ class RotateChannelCredentialsCommand extends smithyClient.Command
1697
+ .classBuilder()
1698
+ .ep(commonParams)
1699
+ .m(function (Command, cs, config, o) {
1700
+ return [
1701
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1702
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1703
+ ];
1704
+ })
1705
+ .s("MediaPackage", "RotateChannelCredentials", {})
1706
+ .n("MediaPackageClient", "RotateChannelCredentialsCommand")
1707
+ .f(void 0, RotateChannelCredentialsResponseFilterSensitiveLog)
1708
+ .ser(se_RotateChannelCredentialsCommand)
1709
+ .de(de_RotateChannelCredentialsCommand)
1710
+ .build() {
1711
+ }
1712
+
1713
+ class RotateIngestEndpointCredentialsCommand extends smithyClient.Command
1714
+ .classBuilder()
1715
+ .ep(commonParams)
1716
+ .m(function (Command, cs, config, o) {
1717
+ return [
1718
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1719
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1720
+ ];
1721
+ })
1722
+ .s("MediaPackage", "RotateIngestEndpointCredentials", {})
1723
+ .n("MediaPackageClient", "RotateIngestEndpointCredentialsCommand")
1724
+ .f(void 0, RotateIngestEndpointCredentialsResponseFilterSensitiveLog)
1725
+ .ser(se_RotateIngestEndpointCredentialsCommand)
1726
+ .de(de_RotateIngestEndpointCredentialsCommand)
1727
+ .build() {
1728
+ }
1729
+
1730
+ class TagResourceCommand extends smithyClient.Command
1731
+ .classBuilder()
1732
+ .ep(commonParams)
1733
+ .m(function (Command, cs, config, o) {
1734
+ return [
1735
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1736
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1737
+ ];
1738
+ })
1739
+ .s("MediaPackage", "TagResource", {})
1740
+ .n("MediaPackageClient", "TagResourceCommand")
1741
+ .f(void 0, void 0)
1742
+ .ser(se_TagResourceCommand)
1743
+ .de(de_TagResourceCommand)
1744
+ .build() {
1745
+ }
1746
+
1747
+ class UntagResourceCommand extends smithyClient.Command
1748
+ .classBuilder()
1749
+ .ep(commonParams)
1750
+ .m(function (Command, cs, config, o) {
1751
+ return [
1752
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1753
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1754
+ ];
1755
+ })
1756
+ .s("MediaPackage", "UntagResource", {})
1757
+ .n("MediaPackageClient", "UntagResourceCommand")
1758
+ .f(void 0, void 0)
1759
+ .ser(se_UntagResourceCommand)
1760
+ .de(de_UntagResourceCommand)
1761
+ .build() {
1762
+ }
1763
+
1764
+ class UpdateChannelCommand extends smithyClient.Command
1765
+ .classBuilder()
1766
+ .ep(commonParams)
1767
+ .m(function (Command, cs, config, o) {
1768
+ return [
1769
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1770
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1771
+ ];
1772
+ })
1773
+ .s("MediaPackage", "UpdateChannel", {})
1774
+ .n("MediaPackageClient", "UpdateChannelCommand")
1775
+ .f(void 0, UpdateChannelResponseFilterSensitiveLog)
1776
+ .ser(se_UpdateChannelCommand)
1777
+ .de(de_UpdateChannelCommand)
1778
+ .build() {
1779
+ }
1780
+
1781
+ class UpdateOriginEndpointCommand extends smithyClient.Command
1782
+ .classBuilder()
1783
+ .ep(commonParams)
1784
+ .m(function (Command, cs, config, o) {
1785
+ return [
1786
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1787
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1788
+ ];
1789
+ })
1790
+ .s("MediaPackage", "UpdateOriginEndpoint", {})
1791
+ .n("MediaPackageClient", "UpdateOriginEndpointCommand")
1792
+ .f(void 0, void 0)
1793
+ .ser(se_UpdateOriginEndpointCommand)
1794
+ .de(de_UpdateOriginEndpointCommand)
1795
+ .build() {
1796
+ }
1797
+
1798
+ const commands = {
1799
+ ConfigureLogsCommand,
1800
+ CreateChannelCommand,
1801
+ CreateHarvestJobCommand,
1802
+ CreateOriginEndpointCommand,
1803
+ DeleteChannelCommand,
1804
+ DeleteOriginEndpointCommand,
1805
+ DescribeChannelCommand,
1806
+ DescribeHarvestJobCommand,
1807
+ DescribeOriginEndpointCommand,
1808
+ ListChannelsCommand,
1809
+ ListHarvestJobsCommand,
1810
+ ListOriginEndpointsCommand,
1811
+ ListTagsForResourceCommand,
1812
+ RotateChannelCredentialsCommand,
1813
+ RotateIngestEndpointCredentialsCommand,
1814
+ TagResourceCommand,
1815
+ UntagResourceCommand,
1816
+ UpdateChannelCommand,
1817
+ UpdateOriginEndpointCommand,
1818
+ };
1819
+ class MediaPackage extends MediaPackageClient {
1820
+ }
1821
+ smithyClient.createAggregatedClient(commands, MediaPackage);
1931
1822
 
1932
- // src/MediaPackage.ts
1933
- var commands = {
1934
- ConfigureLogsCommand,
1935
- CreateChannelCommand,
1936
- CreateHarvestJobCommand,
1937
- CreateOriginEndpointCommand,
1938
- DeleteChannelCommand,
1939
- DeleteOriginEndpointCommand,
1940
- DescribeChannelCommand,
1941
- DescribeHarvestJobCommand,
1942
- DescribeOriginEndpointCommand,
1943
- ListChannelsCommand,
1944
- ListHarvestJobsCommand,
1945
- ListOriginEndpointsCommand,
1946
- ListTagsForResourceCommand,
1947
- RotateChannelCredentialsCommand,
1948
- RotateIngestEndpointCredentialsCommand,
1949
- TagResourceCommand,
1950
- UntagResourceCommand,
1951
- UpdateChannelCommand,
1952
- UpdateOriginEndpointCommand
1953
- };
1954
- var MediaPackage = class extends MediaPackageClient {
1955
- static {
1956
- __name(this, "MediaPackage");
1957
- }
1958
- };
1959
- (0, import_smithy_client.createAggregatedClient)(commands, MediaPackage);
1960
-
1961
- // src/pagination/ListChannelsPaginator.ts
1962
-
1963
- var paginateListChannels = (0, import_core.createPaginator)(MediaPackageClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
1964
-
1965
- // src/pagination/ListHarvestJobsPaginator.ts
1966
-
1967
- var paginateListHarvestJobs = (0, import_core.createPaginator)(MediaPackageClient, ListHarvestJobsCommand, "NextToken", "NextToken", "MaxResults");
1823
+ const paginateListChannels = core.createPaginator(MediaPackageClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
1968
1824
 
1969
- // src/pagination/ListOriginEndpointsPaginator.ts
1825
+ const paginateListHarvestJobs = core.createPaginator(MediaPackageClient, ListHarvestJobsCommand, "NextToken", "NextToken", "MaxResults");
1970
1826
 
1971
- var paginateListOriginEndpoints = (0, import_core.createPaginator)(MediaPackageClient, ListOriginEndpointsCommand, "NextToken", "NextToken", "MaxResults");
1972
- // Annotate the CommonJS export names for ESM import in node:
1827
+ const paginateListOriginEndpoints = core.createPaginator(MediaPackageClient, ListOriginEndpointsCommand, "NextToken", "NextToken", "MaxResults");
1973
1828
 
1974
- 0 && (module.exports = {
1975
- MediaPackageServiceException,
1976
- __Client,
1977
- MediaPackageClient,
1978
- MediaPackage,
1979
- $Command,
1980
- ConfigureLogsCommand,
1981
- CreateChannelCommand,
1982
- CreateHarvestJobCommand,
1983
- CreateOriginEndpointCommand,
1984
- DeleteChannelCommand,
1985
- DeleteOriginEndpointCommand,
1986
- DescribeChannelCommand,
1987
- DescribeHarvestJobCommand,
1988
- DescribeOriginEndpointCommand,
1989
- ListChannelsCommand,
1990
- ListHarvestJobsCommand,
1991
- ListOriginEndpointsCommand,
1992
- ListTagsForResourceCommand,
1993
- RotateChannelCredentialsCommand,
1994
- RotateIngestEndpointCredentialsCommand,
1995
- TagResourceCommand,
1996
- UntagResourceCommand,
1997
- UpdateChannelCommand,
1998
- UpdateOriginEndpointCommand,
1999
- paginateListChannels,
2000
- paginateListHarvestJobs,
2001
- paginateListOriginEndpoints,
2002
- __AdTriggersElement,
2003
- __PeriodTriggersElement,
2004
- Status,
2005
- AdMarkers,
2006
- AdsOnDeliveryRestrictions,
2007
- PlaylistType,
2008
- CmafEncryptionMethod,
2009
- PresetSpeke20Audio,
2010
- PresetSpeke20Video,
2011
- StreamOrder,
2012
- ManifestLayout,
2013
- Profile,
2014
- SegmentTemplateFormat,
2015
- UtcTiming,
2016
- EncryptionMethod,
2017
- Origination,
2018
- ForbiddenException,
2019
- InternalServerErrorException,
2020
- NotFoundException,
2021
- ServiceUnavailableException,
2022
- TooManyRequestsException,
2023
- UnprocessableEntityException,
2024
- IngestEndpointFilterSensitiveLog,
2025
- HlsIngestFilterSensitiveLog,
2026
- ChannelFilterSensitiveLog,
2027
- ConfigureLogsResponseFilterSensitiveLog,
2028
- CreateChannelResponseFilterSensitiveLog,
2029
- DescribeChannelResponseFilterSensitiveLog,
2030
- ListChannelsResponseFilterSensitiveLog,
2031
- RotateChannelCredentialsResponseFilterSensitiveLog,
2032
- RotateIngestEndpointCredentialsResponseFilterSensitiveLog,
2033
- UpdateChannelResponseFilterSensitiveLog
1829
+ Object.defineProperty(exports, "$Command", {
1830
+ enumerable: true,
1831
+ get: function () { return smithyClient.Command; }
2034
1832
  });
2035
-
1833
+ Object.defineProperty(exports, "__Client", {
1834
+ enumerable: true,
1835
+ get: function () { return smithyClient.Client; }
1836
+ });
1837
+ exports.AdMarkers = AdMarkers;
1838
+ exports.AdsOnDeliveryRestrictions = AdsOnDeliveryRestrictions;
1839
+ exports.ChannelFilterSensitiveLog = ChannelFilterSensitiveLog;
1840
+ exports.CmafEncryptionMethod = CmafEncryptionMethod;
1841
+ exports.ConfigureLogsCommand = ConfigureLogsCommand;
1842
+ exports.ConfigureLogsResponseFilterSensitiveLog = ConfigureLogsResponseFilterSensitiveLog;
1843
+ exports.CreateChannelCommand = CreateChannelCommand;
1844
+ exports.CreateChannelResponseFilterSensitiveLog = CreateChannelResponseFilterSensitiveLog;
1845
+ exports.CreateHarvestJobCommand = CreateHarvestJobCommand;
1846
+ exports.CreateOriginEndpointCommand = CreateOriginEndpointCommand;
1847
+ exports.DeleteChannelCommand = DeleteChannelCommand;
1848
+ exports.DeleteOriginEndpointCommand = DeleteOriginEndpointCommand;
1849
+ exports.DescribeChannelCommand = DescribeChannelCommand;
1850
+ exports.DescribeChannelResponseFilterSensitiveLog = DescribeChannelResponseFilterSensitiveLog;
1851
+ exports.DescribeHarvestJobCommand = DescribeHarvestJobCommand;
1852
+ exports.DescribeOriginEndpointCommand = DescribeOriginEndpointCommand;
1853
+ exports.EncryptionMethod = EncryptionMethod;
1854
+ exports.ForbiddenException = ForbiddenException;
1855
+ exports.HlsIngestFilterSensitiveLog = HlsIngestFilterSensitiveLog;
1856
+ exports.IngestEndpointFilterSensitiveLog = IngestEndpointFilterSensitiveLog;
1857
+ exports.InternalServerErrorException = InternalServerErrorException;
1858
+ exports.ListChannelsCommand = ListChannelsCommand;
1859
+ exports.ListChannelsResponseFilterSensitiveLog = ListChannelsResponseFilterSensitiveLog;
1860
+ exports.ListHarvestJobsCommand = ListHarvestJobsCommand;
1861
+ exports.ListOriginEndpointsCommand = ListOriginEndpointsCommand;
1862
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1863
+ exports.ManifestLayout = ManifestLayout;
1864
+ exports.MediaPackage = MediaPackage;
1865
+ exports.MediaPackageClient = MediaPackageClient;
1866
+ exports.MediaPackageServiceException = MediaPackageServiceException;
1867
+ exports.NotFoundException = NotFoundException;
1868
+ exports.Origination = Origination;
1869
+ exports.PlaylistType = PlaylistType;
1870
+ exports.PresetSpeke20Audio = PresetSpeke20Audio;
1871
+ exports.PresetSpeke20Video = PresetSpeke20Video;
1872
+ exports.Profile = Profile;
1873
+ exports.RotateChannelCredentialsCommand = RotateChannelCredentialsCommand;
1874
+ exports.RotateChannelCredentialsResponseFilterSensitiveLog = RotateChannelCredentialsResponseFilterSensitiveLog;
1875
+ exports.RotateIngestEndpointCredentialsCommand = RotateIngestEndpointCredentialsCommand;
1876
+ exports.RotateIngestEndpointCredentialsResponseFilterSensitiveLog = RotateIngestEndpointCredentialsResponseFilterSensitiveLog;
1877
+ exports.SegmentTemplateFormat = SegmentTemplateFormat;
1878
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1879
+ exports.Status = Status;
1880
+ exports.StreamOrder = StreamOrder;
1881
+ exports.TagResourceCommand = TagResourceCommand;
1882
+ exports.TooManyRequestsException = TooManyRequestsException;
1883
+ exports.UnprocessableEntityException = UnprocessableEntityException;
1884
+ exports.UntagResourceCommand = UntagResourceCommand;
1885
+ exports.UpdateChannelCommand = UpdateChannelCommand;
1886
+ exports.UpdateChannelResponseFilterSensitiveLog = UpdateChannelResponseFilterSensitiveLog;
1887
+ exports.UpdateOriginEndpointCommand = UpdateOriginEndpointCommand;
1888
+ exports.UtcTiming = UtcTiming;
1889
+ exports.__AdTriggersElement = __AdTriggersElement;
1890
+ exports.__PeriodTriggersElement = __PeriodTriggersElement;
1891
+ exports.paginateListChannels = paginateListChannels;
1892
+ exports.paginateListHarvestJobs = paginateListHarvestJobs;
1893
+ exports.paginateListOriginEndpoints = paginateListOriginEndpoints;