@aws-sdk/client-mediapackagev2 3.489.0 → 3.495.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 (41) hide show
  1. package/dist-cjs/MediaPackageV2.js +1 -59
  2. package/dist-cjs/MediaPackageV2Client.js +1 -43
  3. package/dist-cjs/commands/CreateChannelCommand.js +1 -28
  4. package/dist-cjs/commands/CreateChannelGroupCommand.js +1 -28
  5. package/dist-cjs/commands/CreateOriginEndpointCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteChannelCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteChannelGroupCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteChannelPolicyCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteOriginEndpointCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteOriginEndpointPolicyCommand.js +1 -28
  11. package/dist-cjs/commands/GetChannelCommand.js +1 -28
  12. package/dist-cjs/commands/GetChannelGroupCommand.js +1 -28
  13. package/dist-cjs/commands/GetChannelPolicyCommand.js +1 -28
  14. package/dist-cjs/commands/GetOriginEndpointCommand.js +1 -28
  15. package/dist-cjs/commands/GetOriginEndpointPolicyCommand.js +1 -28
  16. package/dist-cjs/commands/ListChannelGroupsCommand.js +1 -28
  17. package/dist-cjs/commands/ListChannelsCommand.js +1 -28
  18. package/dist-cjs/commands/ListOriginEndpointsCommand.js +1 -28
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  20. package/dist-cjs/commands/PutChannelPolicyCommand.js +1 -28
  21. package/dist-cjs/commands/PutOriginEndpointPolicyCommand.js +1 -28
  22. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  23. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  24. package/dist-cjs/commands/UpdateChannelCommand.js +1 -28
  25. package/dist-cjs/commands/UpdateChannelGroupCommand.js +1 -28
  26. package/dist-cjs/commands/UpdateOriginEndpointCommand.js +1 -28
  27. package/dist-cjs/commands/index.js +1 -27
  28. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  29. package/dist-cjs/extensionConfiguration.js +1 -2
  30. package/dist-cjs/index.js +2660 -11
  31. package/dist-cjs/models/MediaPackageV2ServiceException.js +1 -12
  32. package/dist-cjs/models/index.js +1 -4
  33. package/dist-cjs/models/models_0.js +1 -206
  34. package/dist-cjs/pagination/Interfaces.js +1 -2
  35. package/dist-cjs/pagination/ListChannelGroupsPaginator.js +1 -7
  36. package/dist-cjs/pagination/ListChannelsPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListOriginEndpointsPaginator.js +1 -7
  38. package/dist-cjs/pagination/index.js +1 -7
  39. package/dist-cjs/protocols/Aws_restJson1.js +1 -1792
  40. package/dist-cjs/runtimeExtensions.js +1 -22
  41. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2661 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaPackageV2ServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./MediaPackageV2Client"), exports);
6
- tslib_1.__exportStar(require("./MediaPackageV2"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var MediaPackageV2ServiceException_1 = require("./models/MediaPackageV2ServiceException");
12
- Object.defineProperty(exports, "MediaPackageV2ServiceException", { enumerable: true, get: function () { return MediaPackageV2ServiceException_1.MediaPackageV2ServiceException; } });
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 src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AdMarkerHls: () => AdMarkerHls,
26
+ CmafEncryptionMethod: () => CmafEncryptionMethod,
27
+ ConflictException: () => ConflictException,
28
+ ConflictExceptionType: () => ConflictExceptionType,
29
+ ContainerType: () => ContainerType,
30
+ CreateChannelCommand: () => CreateChannelCommand,
31
+ CreateChannelGroupCommand: () => CreateChannelGroupCommand,
32
+ CreateOriginEndpointCommand: () => CreateOriginEndpointCommand,
33
+ DeleteChannelCommand: () => DeleteChannelCommand,
34
+ DeleteChannelGroupCommand: () => DeleteChannelGroupCommand,
35
+ DeleteChannelPolicyCommand: () => DeleteChannelPolicyCommand,
36
+ DeleteOriginEndpointCommand: () => DeleteOriginEndpointCommand,
37
+ DeleteOriginEndpointPolicyCommand: () => DeleteOriginEndpointPolicyCommand,
38
+ DrmSystem: () => DrmSystem,
39
+ GetChannelCommand: () => GetChannelCommand,
40
+ GetChannelGroupCommand: () => GetChannelGroupCommand,
41
+ GetChannelPolicyCommand: () => GetChannelPolicyCommand,
42
+ GetOriginEndpointCommand: () => GetOriginEndpointCommand,
43
+ GetOriginEndpointPolicyCommand: () => GetOriginEndpointPolicyCommand,
44
+ InternalServerException: () => InternalServerException,
45
+ ListChannelGroupsCommand: () => ListChannelGroupsCommand,
46
+ ListChannelsCommand: () => ListChannelsCommand,
47
+ ListOriginEndpointsCommand: () => ListOriginEndpointsCommand,
48
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
49
+ MediaPackageV2: () => MediaPackageV2,
50
+ MediaPackageV2Client: () => MediaPackageV2Client,
51
+ MediaPackageV2ServiceException: () => MediaPackageV2ServiceException,
52
+ PresetSpeke20Audio: () => PresetSpeke20Audio,
53
+ PresetSpeke20Video: () => PresetSpeke20Video,
54
+ PutChannelPolicyCommand: () => PutChannelPolicyCommand,
55
+ PutOriginEndpointPolicyCommand: () => PutOriginEndpointPolicyCommand,
56
+ ResourceNotFoundException: () => ResourceNotFoundException,
57
+ ResourceTypeNotFound: () => ResourceTypeNotFound,
58
+ ScteFilter: () => ScteFilter,
59
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
60
+ TagResourceCommand: () => TagResourceCommand,
61
+ ThrottlingException: () => ThrottlingException,
62
+ TsEncryptionMethod: () => TsEncryptionMethod,
63
+ UntagResourceCommand: () => UntagResourceCommand,
64
+ UpdateChannelCommand: () => UpdateChannelCommand,
65
+ UpdateChannelGroupCommand: () => UpdateChannelGroupCommand,
66
+ UpdateOriginEndpointCommand: () => UpdateOriginEndpointCommand,
67
+ ValidationException: () => ValidationException,
68
+ ValidationExceptionType: () => ValidationExceptionType,
69
+ __Client: () => import_smithy_client.Client,
70
+ paginateListChannelGroups: () => paginateListChannelGroups,
71
+ paginateListChannels: () => paginateListChannels,
72
+ paginateListOriginEndpoints: () => paginateListOriginEndpoints
73
+ });
74
+ module.exports = __toCommonJS(src_exports);
75
+
76
+ // src/MediaPackageV2Client.ts
77
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
78
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
79
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
80
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
81
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
82
+ var import_config_resolver = require("@smithy/config-resolver");
83
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
84
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
85
+ var import_middleware_retry = require("@smithy/middleware-retry");
86
+
87
+
88
+ // src/endpoint/EndpointParameters.ts
89
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
90
+ return {
91
+ ...options,
92
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
93
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
94
+ defaultSigningName: "mediapackagev2"
95
+ };
96
+ }, "resolveClientEndpointParameters");
97
+ var commonParams = {
98
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
99
+ Endpoint: { type: "builtInParams", name: "endpoint" },
100
+ Region: { type: "builtInParams", name: "region" },
101
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
102
+ };
103
+
104
+ // src/MediaPackageV2Client.ts
105
+ var import_runtimeConfig = require("././runtimeConfig");
106
+
107
+ // src/runtimeExtensions.ts
108
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
109
+ var import_protocol_http = require("@smithy/protocol-http");
110
+ var import_smithy_client = require("@smithy/smithy-client");
111
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
112
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
113
+ const extensionConfiguration = {
114
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
115
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
116
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
117
+ };
118
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
119
+ return {
120
+ ...runtimeConfig,
121
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
122
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
123
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
124
+ };
125
+ }, "resolveRuntimeExtensions");
126
+
127
+ // src/MediaPackageV2Client.ts
128
+ var _MediaPackageV2Client = class _MediaPackageV2Client extends import_smithy_client.Client {
129
+ constructor(...[configuration]) {
130
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
131
+ const _config_1 = resolveClientEndpointParameters(_config_0);
132
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
133
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
134
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
135
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
136
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
137
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
138
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
139
+ super(_config_8);
140
+ this.config = _config_8;
141
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
142
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
143
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
144
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
145
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
146
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
147
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
148
+ }
149
+ /**
150
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
151
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
152
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
153
+ */
154
+ destroy() {
155
+ super.destroy();
156
+ }
157
+ };
158
+ __name(_MediaPackageV2Client, "MediaPackageV2Client");
159
+ var MediaPackageV2Client = _MediaPackageV2Client;
160
+
161
+ // src/MediaPackageV2.ts
162
+
163
+
164
+ // src/commands/CreateChannelCommand.ts
165
+
166
+ var import_middleware_serde = require("@smithy/middleware-serde");
167
+
168
+ var import_types = require("@smithy/types");
169
+
170
+ // src/protocols/Aws_restJson1.ts
171
+ var import_core = require("@smithy/core");
172
+
173
+
174
+ // src/models/MediaPackageV2ServiceException.ts
175
+
176
+ var _MediaPackageV2ServiceException = class _MediaPackageV2ServiceException extends import_smithy_client.ServiceException {
177
+ /**
178
+ * @internal
179
+ */
180
+ constructor(options) {
181
+ super(options);
182
+ Object.setPrototypeOf(this, _MediaPackageV2ServiceException.prototype);
183
+ }
184
+ };
185
+ __name(_MediaPackageV2ServiceException, "MediaPackageV2ServiceException");
186
+ var MediaPackageV2ServiceException = _MediaPackageV2ServiceException;
187
+
188
+ // src/models/models_0.ts
189
+ var _AccessDeniedException = class _AccessDeniedException extends MediaPackageV2ServiceException {
190
+ /**
191
+ * @internal
192
+ */
193
+ constructor(opts) {
194
+ super({
195
+ name: "AccessDeniedException",
196
+ $fault: "client",
197
+ ...opts
198
+ });
199
+ this.name = "AccessDeniedException";
200
+ this.$fault = "client";
201
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
202
+ this.Message = opts.Message;
203
+ }
204
+ };
205
+ __name(_AccessDeniedException, "AccessDeniedException");
206
+ var AccessDeniedException = _AccessDeniedException;
207
+ var AdMarkerHls = {
208
+ DATERANGE: "DATERANGE"
209
+ };
210
+ var ConflictExceptionType = {
211
+ CONFLICTING_OPERATION: "CONFLICTING_OPERATION",
212
+ IDEMPOTENT_PARAMETER_MISMATCH: "IDEMPOTENT_PARAMETER_MISMATCH",
213
+ RESOURCE_ALREADY_EXISTS: "RESOURCE_ALREADY_EXISTS",
214
+ RESOURCE_IN_USE: "RESOURCE_IN_USE"
215
+ };
216
+ var _ConflictException = class _ConflictException extends MediaPackageV2ServiceException {
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(opts) {
221
+ super({
222
+ name: "ConflictException",
223
+ $fault: "client",
224
+ ...opts
225
+ });
226
+ this.name = "ConflictException";
227
+ this.$fault = "client";
228
+ Object.setPrototypeOf(this, _ConflictException.prototype);
229
+ this.Message = opts.Message;
230
+ this.ConflictExceptionType = opts.ConflictExceptionType;
231
+ }
232
+ };
233
+ __name(_ConflictException, "ConflictException");
234
+ var ConflictException = _ConflictException;
235
+ var _InternalServerException = class _InternalServerException extends MediaPackageV2ServiceException {
236
+ /**
237
+ * @internal
238
+ */
239
+ constructor(opts) {
240
+ super({
241
+ name: "InternalServerException",
242
+ $fault: "server",
243
+ ...opts
244
+ });
245
+ this.name = "InternalServerException";
246
+ this.$fault = "server";
247
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
248
+ this.Message = opts.Message;
249
+ }
250
+ };
251
+ __name(_InternalServerException, "InternalServerException");
252
+ var InternalServerException = _InternalServerException;
253
+ var _ThrottlingException = class _ThrottlingException extends MediaPackageV2ServiceException {
254
+ /**
255
+ * @internal
256
+ */
257
+ constructor(opts) {
258
+ super({
259
+ name: "ThrottlingException",
260
+ $fault: "client",
261
+ ...opts
262
+ });
263
+ this.name = "ThrottlingException";
264
+ this.$fault = "client";
265
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
266
+ this.Message = opts.Message;
267
+ }
268
+ };
269
+ __name(_ThrottlingException, "ThrottlingException");
270
+ var ThrottlingException = _ThrottlingException;
271
+ var ValidationExceptionType = {
272
+ CENC_IV_INCOMPATIBLE: "CENC_IV_INCOMPATIBLE",
273
+ CONTAINER_TYPE_IMMUTABLE: "CONTAINER_TYPE_IMMUTABLE",
274
+ DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE: "DRM_SYSTEMS_ENCRYPTION_METHOD_INCOMPATIBLE",
275
+ ENCRYPTION_CONTRACT_SHARED: "ENCRYPTION_CONTRACT_SHARED",
276
+ ENCRYPTION_CONTRACT_UNENCRYPTED: "ENCRYPTION_CONTRACT_UNENCRYPTED",
277
+ ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE: "ENCRYPTION_CONTRACT_WITHOUT_AUDIO_RENDITION_INCOMPATIBLE",
278
+ ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH: "ENCRYPTION_METHOD_CONTAINER_TYPE_MISMATCH",
279
+ END_TIME_EARLIER_THAN_START_TIME: "END_TIME_EARLIER_THAN_START_TIME",
280
+ INVALID_MANIFEST_FILTER: "INVALID_MANIFEST_FILTER",
281
+ INVALID_PAGINATION_MAX_RESULTS: "INVALID_PAGINATION_MAX_RESULTS",
282
+ INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
283
+ INVALID_POLICY: "INVALID_POLICY",
284
+ INVALID_ROLE_ARN: "INVALID_ROLE_ARN",
285
+ INVALID_TIME_DELAY_SECONDS: "INVALID_TIME_DELAY_SECONDS",
286
+ MANIFEST_NAME_COLLISION: "MANIFEST_NAME_COLLISION",
287
+ MEMBER_DOES_NOT_MATCH_PATTERN: "MEMBER_DOES_NOT_MATCH_PATTERN",
288
+ MEMBER_INVALID: "MEMBER_INVALID",
289
+ MEMBER_INVALID_ENUM_VALUE: "MEMBER_INVALID_ENUM_VALUE",
290
+ MEMBER_MAX_LENGTH: "MEMBER_MAX_LENGTH",
291
+ MEMBER_MAX_VALUE: "MEMBER_MAX_VALUE",
292
+ MEMBER_MIN_LENGTH: "MEMBER_MIN_LENGTH",
293
+ MEMBER_MIN_VALUE: "MEMBER_MIN_VALUE",
294
+ MEMBER_MISSING: "MEMBER_MISSING",
295
+ NUM_MANIFESTS_HIGH: "NUM_MANIFESTS_HIGH",
296
+ NUM_MANIFESTS_LOW: "NUM_MANIFESTS_LOW",
297
+ ROLE_ARN_INVALID_FORMAT: "ROLE_ARN_INVALID_FORMAT",
298
+ ROLE_ARN_LENGTH_OUT_OF_RANGE: "ROLE_ARN_LENGTH_OUT_OF_RANGE",
299
+ ROLE_ARN_NOT_ASSUMABLE: "ROLE_ARN_NOT_ASSUMABLE",
300
+ URL_INVALID: "URL_INVALID",
301
+ URL_LINK_LOCAL_ADDRESS: "URL_LINK_LOCAL_ADDRESS",
302
+ URL_LOCAL_ADDRESS: "URL_LOCAL_ADDRESS",
303
+ URL_LOOPBACK_ADDRESS: "URL_LOOPBACK_ADDRESS",
304
+ URL_MULTICAST_ADDRESS: "URL_MULTICAST_ADDRESS",
305
+ URL_PORT: "URL_PORT",
306
+ URL_SCHEME: "URL_SCHEME",
307
+ URL_UNKNOWN_HOST: "URL_UNKNOWN_HOST",
308
+ URL_USER_INFO: "URL_USER_INFO"
309
+ };
310
+ var _ValidationException = class _ValidationException extends MediaPackageV2ServiceException {
311
+ /**
312
+ * @internal
313
+ */
314
+ constructor(opts) {
315
+ super({
316
+ name: "ValidationException",
317
+ $fault: "client",
318
+ ...opts
319
+ });
320
+ this.name = "ValidationException";
321
+ this.$fault = "client";
322
+ Object.setPrototypeOf(this, _ValidationException.prototype);
323
+ this.Message = opts.Message;
324
+ this.ValidationExceptionType = opts.ValidationExceptionType;
325
+ }
326
+ };
327
+ __name(_ValidationException, "ValidationException");
328
+ var ValidationException = _ValidationException;
329
+ var ResourceTypeNotFound = {
330
+ CHANNEL: "CHANNEL",
331
+ CHANNEL_GROUP: "CHANNEL_GROUP",
332
+ ORIGIN_ENDPOINT: "ORIGIN_ENDPOINT"
333
+ };
334
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends MediaPackageV2ServiceException {
335
+ /**
336
+ * @internal
337
+ */
338
+ constructor(opts) {
339
+ super({
340
+ name: "ResourceNotFoundException",
341
+ $fault: "client",
342
+ ...opts
343
+ });
344
+ this.name = "ResourceNotFoundException";
345
+ this.$fault = "client";
346
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
347
+ this.Message = opts.Message;
348
+ this.ResourceTypeNotFound = opts.ResourceTypeNotFound;
349
+ }
350
+ };
351
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
352
+ var ResourceNotFoundException = _ResourceNotFoundException;
353
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends MediaPackageV2ServiceException {
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts) {
358
+ super({
359
+ name: "ServiceQuotaExceededException",
360
+ $fault: "client",
361
+ ...opts
362
+ });
363
+ this.name = "ServiceQuotaExceededException";
364
+ this.$fault = "client";
365
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
366
+ this.Message = opts.Message;
367
+ }
368
+ };
369
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
370
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
371
+ var ContainerType = {
372
+ CMAF: "CMAF",
373
+ TS: "TS"
374
+ };
375
+ var CmafEncryptionMethod = {
376
+ CBCS: "CBCS",
377
+ CENC: "CENC"
378
+ };
379
+ var TsEncryptionMethod = {
380
+ AES_128: "AES_128",
381
+ SAMPLE_AES: "SAMPLE_AES"
382
+ };
383
+ var DrmSystem = {
384
+ CLEAR_KEY_AES_128: "CLEAR_KEY_AES_128",
385
+ FAIRPLAY: "FAIRPLAY",
386
+ PLAYREADY: "PLAYREADY",
387
+ WIDEVINE: "WIDEVINE"
388
+ };
389
+ var PresetSpeke20Audio = {
390
+ PRESET_AUDIO_1: "PRESET_AUDIO_1",
391
+ PRESET_AUDIO_2: "PRESET_AUDIO_2",
392
+ PRESET_AUDIO_3: "PRESET_AUDIO_3",
393
+ SHARED: "SHARED",
394
+ UNENCRYPTED: "UNENCRYPTED"
395
+ };
396
+ var PresetSpeke20Video = {
397
+ PRESET_VIDEO_1: "PRESET_VIDEO_1",
398
+ PRESET_VIDEO_2: "PRESET_VIDEO_2",
399
+ PRESET_VIDEO_3: "PRESET_VIDEO_3",
400
+ PRESET_VIDEO_4: "PRESET_VIDEO_4",
401
+ PRESET_VIDEO_5: "PRESET_VIDEO_5",
402
+ PRESET_VIDEO_6: "PRESET_VIDEO_6",
403
+ PRESET_VIDEO_7: "PRESET_VIDEO_7",
404
+ PRESET_VIDEO_8: "PRESET_VIDEO_8",
405
+ SHARED: "SHARED",
406
+ UNENCRYPTED: "UNENCRYPTED"
407
+ };
408
+ var ScteFilter = {
409
+ BREAK: "BREAK",
410
+ DISTRIBUTOR_ADVERTISEMENT: "DISTRIBUTOR_ADVERTISEMENT",
411
+ DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY",
412
+ DISTRIBUTOR_PLACEMENT_OPPORTUNITY: "DISTRIBUTOR_PLACEMENT_OPPORTUNITY",
413
+ PROGRAM: "PROGRAM",
414
+ PROVIDER_ADVERTISEMENT: "PROVIDER_ADVERTISEMENT",
415
+ PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY: "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY",
416
+ PROVIDER_PLACEMENT_OPPORTUNITY: "PROVIDER_PLACEMENT_OPPORTUNITY",
417
+ SPLICE_INSERT: "SPLICE_INSERT"
418
+ };
419
+
420
+ // src/protocols/Aws_restJson1.ts
421
+ var se_CreateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
422
+ const b = (0, import_core.requestBuilder)(input, context);
423
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
424
+ "content-type": "application/json",
425
+ [_xact]: input[_CT]
426
+ });
427
+ b.bp("/channelGroup/{ChannelGroupName}/channel");
428
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
429
+ let body;
430
+ body = JSON.stringify(
431
+ (0, import_smithy_client.take)(input, {
432
+ ChannelName: [],
433
+ Description: [],
434
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
435
+ })
436
+ );
437
+ b.m("POST").h(headers).b(body);
438
+ return b.build();
439
+ }, "se_CreateChannelCommand");
440
+ var se_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
441
+ const b = (0, import_core.requestBuilder)(input, context);
442
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
443
+ "content-type": "application/json",
444
+ [_xact]: input[_CT]
445
+ });
446
+ b.bp("/channelGroup");
447
+ let body;
448
+ body = JSON.stringify(
449
+ (0, import_smithy_client.take)(input, {
450
+ ChannelGroupName: [],
451
+ Description: [],
452
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
453
+ })
454
+ );
455
+ b.m("POST").h(headers).b(body);
456
+ return b.build();
457
+ }, "se_CreateChannelGroupCommand");
458
+ var se_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
459
+ const b = (0, import_core.requestBuilder)(input, context);
460
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
461
+ "content-type": "application/json",
462
+ [_xact]: input[_CT]
463
+ });
464
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint");
465
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
466
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
467
+ let body;
468
+ body = JSON.stringify(
469
+ (0, import_smithy_client.take)(input, {
470
+ ContainerType: [],
471
+ Description: [],
472
+ HlsManifests: (_) => se_CreateHlsManifests(_, context),
473
+ LowLatencyHlsManifests: (_) => se_CreateLowLatencyHlsManifests(_, context),
474
+ OriginEndpointName: [],
475
+ Segment: (_) => (0, import_smithy_client._json)(_),
476
+ StartoverWindowSeconds: [],
477
+ Tags: (_) => (0, import_smithy_client._json)(_)
478
+ })
479
+ );
480
+ b.m("POST").h(headers).b(body);
481
+ return b.build();
482
+ }, "se_CreateOriginEndpointCommand");
483
+ var se_DeleteChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
484
+ const b = (0, import_core.requestBuilder)(input, context);
485
+ const headers = {};
486
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}");
487
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
488
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
489
+ let body;
490
+ b.m("DELETE").h(headers).b(body);
491
+ return b.build();
492
+ }, "se_DeleteChannelCommand");
493
+ var se_DeleteChannelGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
494
+ const b = (0, import_core.requestBuilder)(input, context);
495
+ const headers = {};
496
+ b.bp("/channelGroup/{ChannelGroupName}");
497
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
498
+ let body;
499
+ b.m("DELETE").h(headers).b(body);
500
+ return b.build();
501
+ }, "se_DeleteChannelGroupCommand");
502
+ var se_DeleteChannelPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
503
+ const b = (0, import_core.requestBuilder)(input, context);
504
+ const headers = {};
505
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy");
506
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
507
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
508
+ let body;
509
+ b.m("DELETE").h(headers).b(body);
510
+ return b.build();
511
+ }, "se_DeleteChannelPolicyCommand");
512
+ var se_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
513
+ const b = (0, import_core.requestBuilder)(input, context);
514
+ const headers = {};
515
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}");
516
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
517
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
518
+ b.p("OriginEndpointName", () => input.OriginEndpointName, "{OriginEndpointName}", false);
519
+ let body;
520
+ b.m("DELETE").h(headers).b(body);
521
+ return b.build();
522
+ }, "se_DeleteOriginEndpointCommand");
523
+ var se_DeleteOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
524
+ const b = (0, import_core.requestBuilder)(input, context);
525
+ const headers = {};
526
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy");
527
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
528
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
529
+ b.p("OriginEndpointName", () => input.OriginEndpointName, "{OriginEndpointName}", false);
530
+ let body;
531
+ b.m("DELETE").h(headers).b(body);
532
+ return b.build();
533
+ }, "se_DeleteOriginEndpointPolicyCommand");
534
+ var se_GetChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
535
+ const b = (0, import_core.requestBuilder)(input, context);
536
+ const headers = {};
537
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}");
538
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
539
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
540
+ let body;
541
+ b.m("GET").h(headers).b(body);
542
+ return b.build();
543
+ }, "se_GetChannelCommand");
544
+ var se_GetChannelGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
545
+ const b = (0, import_core.requestBuilder)(input, context);
546
+ const headers = {};
547
+ b.bp("/channelGroup/{ChannelGroupName}");
548
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
549
+ let body;
550
+ b.m("GET").h(headers).b(body);
551
+ return b.build();
552
+ }, "se_GetChannelGroupCommand");
553
+ var se_GetChannelPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
554
+ const b = (0, import_core.requestBuilder)(input, context);
555
+ const headers = {};
556
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy");
557
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
558
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
559
+ let body;
560
+ b.m("GET").h(headers).b(body);
561
+ return b.build();
562
+ }, "se_GetChannelPolicyCommand");
563
+ var se_GetOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
564
+ const b = (0, import_core.requestBuilder)(input, context);
565
+ const headers = {};
566
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}");
567
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
568
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
569
+ b.p("OriginEndpointName", () => input.OriginEndpointName, "{OriginEndpointName}", false);
570
+ let body;
571
+ b.m("GET").h(headers).b(body);
572
+ return b.build();
573
+ }, "se_GetOriginEndpointCommand");
574
+ var se_GetOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
575
+ const b = (0, import_core.requestBuilder)(input, context);
576
+ const headers = {};
577
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy");
578
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
579
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
580
+ b.p("OriginEndpointName", () => input.OriginEndpointName, "{OriginEndpointName}", false);
581
+ let body;
582
+ b.m("GET").h(headers).b(body);
583
+ return b.build();
584
+ }, "se_GetOriginEndpointPolicyCommand");
585
+ var se_ListChannelGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
586
+ const b = (0, import_core.requestBuilder)(input, context);
587
+ const headers = {};
588
+ b.bp("/channelGroup");
589
+ const query = (0, import_smithy_client.map)({
590
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
591
+ [_nT]: [, input[_NT]]
592
+ });
593
+ let body;
594
+ b.m("GET").h(headers).q(query).b(body);
595
+ return b.build();
596
+ }, "se_ListChannelGroupsCommand");
597
+ var se_ListChannelsCommand = /* @__PURE__ */ __name(async (input, context) => {
598
+ const b = (0, import_core.requestBuilder)(input, context);
599
+ const headers = {};
600
+ b.bp("/channelGroup/{ChannelGroupName}/channel");
601
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
602
+ const query = (0, import_smithy_client.map)({
603
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
604
+ [_nT]: [, input[_NT]]
605
+ });
606
+ let body;
607
+ b.m("GET").h(headers).q(query).b(body);
608
+ return b.build();
609
+ }, "se_ListChannelsCommand");
610
+ var se_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (input, context) => {
611
+ const b = (0, import_core.requestBuilder)(input, context);
612
+ const headers = {};
613
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint");
614
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
615
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
616
+ const query = (0, import_smithy_client.map)({
617
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
618
+ [_nT]: [, input[_NT]]
619
+ });
620
+ let body;
621
+ b.m("GET").h(headers).q(query).b(body);
622
+ return b.build();
623
+ }, "se_ListOriginEndpointsCommand");
624
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
625
+ const b = (0, import_core.requestBuilder)(input, context);
626
+ const headers = {};
627
+ b.bp("/tags/{ResourceArn}");
628
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
629
+ let body;
630
+ b.m("GET").h(headers).b(body);
631
+ return b.build();
632
+ }, "se_ListTagsForResourceCommand");
633
+ var se_PutChannelPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const b = (0, import_core.requestBuilder)(input, context);
635
+ const headers = {
636
+ "content-type": "application/json"
637
+ };
638
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/policy");
639
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
640
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
641
+ let body;
642
+ body = JSON.stringify(
643
+ (0, import_smithy_client.take)(input, {
644
+ Policy: []
645
+ })
646
+ );
647
+ b.m("PUT").h(headers).b(body);
648
+ return b.build();
649
+ }, "se_PutChannelPolicyCommand");
650
+ var se_PutOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
651
+ const b = (0, import_core.requestBuilder)(input, context);
652
+ const headers = {
653
+ "content-type": "application/json"
654
+ };
655
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}/policy");
656
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
657
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
658
+ b.p("OriginEndpointName", () => input.OriginEndpointName, "{OriginEndpointName}", false);
659
+ let body;
660
+ body = JSON.stringify(
661
+ (0, import_smithy_client.take)(input, {
662
+ Policy: []
663
+ })
664
+ );
665
+ b.m("POST").h(headers).b(body);
666
+ return b.build();
667
+ }, "se_PutOriginEndpointPolicyCommand");
668
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
669
+ const b = (0, import_core.requestBuilder)(input, context);
670
+ const headers = {
671
+ "content-type": "application/json"
672
+ };
673
+ b.bp("/tags/{ResourceArn}");
674
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
675
+ let body;
676
+ body = JSON.stringify(
677
+ (0, import_smithy_client.take)(input, {
678
+ tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
679
+ })
680
+ );
681
+ b.m("POST").h(headers).b(body);
682
+ return b.build();
683
+ }, "se_TagResourceCommand");
684
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
685
+ const b = (0, import_core.requestBuilder)(input, context);
686
+ const headers = {};
687
+ b.bp("/tags/{ResourceArn}");
688
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
689
+ const query = (0, import_smithy_client.map)({
690
+ [_tK]: [
691
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
692
+ () => (input[_TK] || []).map((_entry) => _entry)
693
+ ]
694
+ });
695
+ let body;
696
+ b.m("DELETE").h(headers).q(query).b(body);
697
+ return b.build();
698
+ }, "se_UntagResourceCommand");
699
+ var se_UpdateChannelCommand = /* @__PURE__ */ __name(async (input, context) => {
700
+ const b = (0, import_core.requestBuilder)(input, context);
701
+ const headers = {
702
+ "content-type": "application/json"
703
+ };
704
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}");
705
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
706
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
707
+ let body;
708
+ body = JSON.stringify(
709
+ (0, import_smithy_client.take)(input, {
710
+ Description: []
711
+ })
712
+ );
713
+ b.m("PUT").h(headers).b(body);
714
+ return b.build();
715
+ }, "se_UpdateChannelCommand");
716
+ var se_UpdateChannelGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
717
+ const b = (0, import_core.requestBuilder)(input, context);
718
+ const headers = {
719
+ "content-type": "application/json"
720
+ };
721
+ b.bp("/channelGroup/{ChannelGroupName}");
722
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
723
+ let body;
724
+ body = JSON.stringify(
725
+ (0, import_smithy_client.take)(input, {
726
+ Description: []
727
+ })
728
+ );
729
+ b.m("PUT").h(headers).b(body);
730
+ return b.build();
731
+ }, "se_UpdateChannelGroupCommand");
732
+ var se_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (input, context) => {
733
+ const b = (0, import_core.requestBuilder)(input, context);
734
+ const headers = {
735
+ "content-type": "application/json"
736
+ };
737
+ b.bp("/channelGroup/{ChannelGroupName}/channel/{ChannelName}/originEndpoint/{OriginEndpointName}");
738
+ b.p("ChannelGroupName", () => input.ChannelGroupName, "{ChannelGroupName}", false);
739
+ b.p("ChannelName", () => input.ChannelName, "{ChannelName}", false);
740
+ b.p("OriginEndpointName", () => input.OriginEndpointName, "{OriginEndpointName}", false);
741
+ let body;
742
+ body = JSON.stringify(
743
+ (0, import_smithy_client.take)(input, {
744
+ ContainerType: [],
745
+ Description: [],
746
+ HlsManifests: (_) => se_CreateHlsManifests(_, context),
747
+ LowLatencyHlsManifests: (_) => se_CreateLowLatencyHlsManifests(_, context),
748
+ Segment: (_) => (0, import_smithy_client._json)(_),
749
+ StartoverWindowSeconds: []
750
+ })
751
+ );
752
+ b.m("PUT").h(headers).b(body);
753
+ return b.build();
754
+ }, "se_UpdateOriginEndpointCommand");
755
+ var de_CreateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
756
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
757
+ return de_CreateChannelCommandError(output, context);
758
+ }
759
+ const contents = (0, import_smithy_client.map)({
760
+ $metadata: deserializeMetadata(output)
761
+ });
762
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
763
+ const doc = (0, import_smithy_client.take)(data, {
764
+ Arn: import_smithy_client.expectString,
765
+ ChannelGroupName: import_smithy_client.expectString,
766
+ ChannelName: import_smithy_client.expectString,
767
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
768
+ Description: import_smithy_client.expectString,
769
+ IngestEndpoints: import_smithy_client._json,
770
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
771
+ Tags: import_smithy_client._json
772
+ });
773
+ Object.assign(contents, doc);
774
+ return contents;
775
+ }, "de_CreateChannelCommand");
776
+ var de_CreateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
777
+ const parsedOutput = {
778
+ ...output,
779
+ body: await parseErrorBody(output.body, context)
780
+ };
781
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
782
+ switch (errorCode) {
783
+ case "AccessDeniedException":
784
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
785
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
786
+ case "ConflictException":
787
+ case "com.amazonaws.mediapackagev2#ConflictException":
788
+ throw await de_ConflictExceptionRes(parsedOutput, context);
789
+ case "InternalServerException":
790
+ case "com.amazonaws.mediapackagev2#InternalServerException":
791
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
792
+ case "ResourceNotFoundException":
793
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
794
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
795
+ case "ServiceQuotaExceededException":
796
+ case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
797
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
798
+ case "ThrottlingException":
799
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
800
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
801
+ case "ValidationException":
802
+ case "com.amazonaws.mediapackagev2#ValidationException":
803
+ throw await de_ValidationExceptionRes(parsedOutput, context);
804
+ default:
805
+ const parsedBody = parsedOutput.body;
806
+ return throwDefaultError({
807
+ output,
808
+ parsedBody,
809
+ errorCode
810
+ });
811
+ }
812
+ }, "de_CreateChannelCommandError");
813
+ var de_CreateChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
814
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
815
+ return de_CreateChannelGroupCommandError(output, context);
816
+ }
817
+ const contents = (0, import_smithy_client.map)({
818
+ $metadata: deserializeMetadata(output)
819
+ });
820
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
821
+ const doc = (0, import_smithy_client.take)(data, {
822
+ Arn: import_smithy_client.expectString,
823
+ ChannelGroupName: import_smithy_client.expectString,
824
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
825
+ Description: import_smithy_client.expectString,
826
+ EgressDomain: import_smithy_client.expectString,
827
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
828
+ Tags: import_smithy_client._json
829
+ });
830
+ Object.assign(contents, doc);
831
+ return contents;
832
+ }, "de_CreateChannelGroupCommand");
833
+ var de_CreateChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
834
+ const parsedOutput = {
835
+ ...output,
836
+ body: await parseErrorBody(output.body, context)
837
+ };
838
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
839
+ switch (errorCode) {
840
+ case "AccessDeniedException":
841
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
842
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
843
+ case "ConflictException":
844
+ case "com.amazonaws.mediapackagev2#ConflictException":
845
+ throw await de_ConflictExceptionRes(parsedOutput, context);
846
+ case "InternalServerException":
847
+ case "com.amazonaws.mediapackagev2#InternalServerException":
848
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
849
+ case "ResourceNotFoundException":
850
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
851
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
852
+ case "ServiceQuotaExceededException":
853
+ case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
854
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
855
+ case "ThrottlingException":
856
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
857
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
858
+ case "ValidationException":
859
+ case "com.amazonaws.mediapackagev2#ValidationException":
860
+ throw await de_ValidationExceptionRes(parsedOutput, context);
861
+ default:
862
+ const parsedBody = parsedOutput.body;
863
+ return throwDefaultError({
864
+ output,
865
+ parsedBody,
866
+ errorCode
867
+ });
868
+ }
869
+ }, "de_CreateChannelGroupCommandError");
870
+ var de_CreateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
871
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
872
+ return de_CreateOriginEndpointCommandError(output, context);
873
+ }
874
+ const contents = (0, import_smithy_client.map)({
875
+ $metadata: deserializeMetadata(output)
876
+ });
877
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
878
+ const doc = (0, import_smithy_client.take)(data, {
879
+ Arn: import_smithy_client.expectString,
880
+ ChannelGroupName: import_smithy_client.expectString,
881
+ ChannelName: import_smithy_client.expectString,
882
+ ContainerType: import_smithy_client.expectString,
883
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
884
+ Description: import_smithy_client.expectString,
885
+ HlsManifests: (_) => de_GetHlsManifests(_, context),
886
+ LowLatencyHlsManifests: (_) => de_GetLowLatencyHlsManifests(_, context),
887
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
888
+ OriginEndpointName: import_smithy_client.expectString,
889
+ Segment: import_smithy_client._json,
890
+ StartoverWindowSeconds: import_smithy_client.expectInt32,
891
+ Tags: import_smithy_client._json
892
+ });
893
+ Object.assign(contents, doc);
894
+ return contents;
895
+ }, "de_CreateOriginEndpointCommand");
896
+ var de_CreateOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
897
+ const parsedOutput = {
898
+ ...output,
899
+ body: await parseErrorBody(output.body, context)
900
+ };
901
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
902
+ switch (errorCode) {
903
+ case "AccessDeniedException":
904
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
905
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
906
+ case "ConflictException":
907
+ case "com.amazonaws.mediapackagev2#ConflictException":
908
+ throw await de_ConflictExceptionRes(parsedOutput, context);
909
+ case "InternalServerException":
910
+ case "com.amazonaws.mediapackagev2#InternalServerException":
911
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
912
+ case "ResourceNotFoundException":
913
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
914
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
915
+ case "ServiceQuotaExceededException":
916
+ case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
917
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
918
+ case "ThrottlingException":
919
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
920
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
921
+ case "ValidationException":
922
+ case "com.amazonaws.mediapackagev2#ValidationException":
923
+ throw await de_ValidationExceptionRes(parsedOutput, context);
924
+ default:
925
+ const parsedBody = parsedOutput.body;
926
+ return throwDefaultError({
927
+ output,
928
+ parsedBody,
929
+ errorCode
930
+ });
931
+ }
932
+ }, "de_CreateOriginEndpointCommandError");
933
+ var de_DeleteChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
934
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
935
+ return de_DeleteChannelCommandError(output, context);
936
+ }
937
+ const contents = (0, import_smithy_client.map)({
938
+ $metadata: deserializeMetadata(output)
939
+ });
940
+ await (0, import_smithy_client.collectBody)(output.body, context);
941
+ return contents;
942
+ }, "de_DeleteChannelCommand");
943
+ var de_DeleteChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
944
+ const parsedOutput = {
945
+ ...output,
946
+ body: await parseErrorBody(output.body, context)
947
+ };
948
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
949
+ switch (errorCode) {
950
+ case "AccessDeniedException":
951
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
952
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
953
+ case "ConflictException":
954
+ case "com.amazonaws.mediapackagev2#ConflictException":
955
+ throw await de_ConflictExceptionRes(parsedOutput, context);
956
+ case "InternalServerException":
957
+ case "com.amazonaws.mediapackagev2#InternalServerException":
958
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
959
+ case "ThrottlingException":
960
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
961
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
962
+ case "ValidationException":
963
+ case "com.amazonaws.mediapackagev2#ValidationException":
964
+ throw await de_ValidationExceptionRes(parsedOutput, context);
965
+ default:
966
+ const parsedBody = parsedOutput.body;
967
+ return throwDefaultError({
968
+ output,
969
+ parsedBody,
970
+ errorCode
971
+ });
972
+ }
973
+ }, "de_DeleteChannelCommandError");
974
+ var de_DeleteChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
975
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
976
+ return de_DeleteChannelGroupCommandError(output, context);
977
+ }
978
+ const contents = (0, import_smithy_client.map)({
979
+ $metadata: deserializeMetadata(output)
980
+ });
981
+ await (0, import_smithy_client.collectBody)(output.body, context);
982
+ return contents;
983
+ }, "de_DeleteChannelGroupCommand");
984
+ var de_DeleteChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
985
+ const parsedOutput = {
986
+ ...output,
987
+ body: await parseErrorBody(output.body, context)
988
+ };
989
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
990
+ switch (errorCode) {
991
+ case "AccessDeniedException":
992
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
993
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
994
+ case "ConflictException":
995
+ case "com.amazonaws.mediapackagev2#ConflictException":
996
+ throw await de_ConflictExceptionRes(parsedOutput, context);
997
+ case "InternalServerException":
998
+ case "com.amazonaws.mediapackagev2#InternalServerException":
999
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1000
+ case "ThrottlingException":
1001
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1002
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1003
+ case "ValidationException":
1004
+ case "com.amazonaws.mediapackagev2#ValidationException":
1005
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1006
+ default:
1007
+ const parsedBody = parsedOutput.body;
1008
+ return throwDefaultError({
1009
+ output,
1010
+ parsedBody,
1011
+ errorCode
1012
+ });
1013
+ }
1014
+ }, "de_DeleteChannelGroupCommandError");
1015
+ var de_DeleteChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1016
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1017
+ return de_DeleteChannelPolicyCommandError(output, context);
1018
+ }
1019
+ const contents = (0, import_smithy_client.map)({
1020
+ $metadata: deserializeMetadata(output)
1021
+ });
1022
+ await (0, import_smithy_client.collectBody)(output.body, context);
1023
+ return contents;
1024
+ }, "de_DeleteChannelPolicyCommand");
1025
+ var de_DeleteChannelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1026
+ const parsedOutput = {
1027
+ ...output,
1028
+ body: await parseErrorBody(output.body, context)
1029
+ };
1030
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1031
+ switch (errorCode) {
1032
+ case "AccessDeniedException":
1033
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1034
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1035
+ case "ConflictException":
1036
+ case "com.amazonaws.mediapackagev2#ConflictException":
1037
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1038
+ case "InternalServerException":
1039
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1040
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1041
+ case "ThrottlingException":
1042
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1043
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1044
+ case "ValidationException":
1045
+ case "com.amazonaws.mediapackagev2#ValidationException":
1046
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1047
+ default:
1048
+ const parsedBody = parsedOutput.body;
1049
+ return throwDefaultError({
1050
+ output,
1051
+ parsedBody,
1052
+ errorCode
1053
+ });
1054
+ }
1055
+ }, "de_DeleteChannelPolicyCommandError");
1056
+ var de_DeleteOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1057
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1058
+ return de_DeleteOriginEndpointCommandError(output, context);
1059
+ }
1060
+ const contents = (0, import_smithy_client.map)({
1061
+ $metadata: deserializeMetadata(output)
1062
+ });
1063
+ await (0, import_smithy_client.collectBody)(output.body, context);
1064
+ return contents;
1065
+ }, "de_DeleteOriginEndpointCommand");
1066
+ var de_DeleteOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1067
+ const parsedOutput = {
1068
+ ...output,
1069
+ body: await parseErrorBody(output.body, context)
1070
+ };
1071
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
+ switch (errorCode) {
1073
+ case "AccessDeniedException":
1074
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1075
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1076
+ case "InternalServerException":
1077
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1078
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1079
+ case "ThrottlingException":
1080
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1081
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1082
+ case "ValidationException":
1083
+ case "com.amazonaws.mediapackagev2#ValidationException":
1084
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1085
+ default:
1086
+ const parsedBody = parsedOutput.body;
1087
+ return throwDefaultError({
1088
+ output,
1089
+ parsedBody,
1090
+ errorCode
1091
+ });
1092
+ }
1093
+ }, "de_DeleteOriginEndpointCommandError");
1094
+ var de_DeleteOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1095
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
+ return de_DeleteOriginEndpointPolicyCommandError(output, context);
1097
+ }
1098
+ const contents = (0, import_smithy_client.map)({
1099
+ $metadata: deserializeMetadata(output)
1100
+ });
1101
+ await (0, import_smithy_client.collectBody)(output.body, context);
1102
+ return contents;
1103
+ }, "de_DeleteOriginEndpointPolicyCommand");
1104
+ var de_DeleteOriginEndpointPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1105
+ const parsedOutput = {
1106
+ ...output,
1107
+ body: await parseErrorBody(output.body, context)
1108
+ };
1109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
+ switch (errorCode) {
1111
+ case "AccessDeniedException":
1112
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1113
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1114
+ case "ConflictException":
1115
+ case "com.amazonaws.mediapackagev2#ConflictException":
1116
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1117
+ case "InternalServerException":
1118
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1119
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1120
+ case "ThrottlingException":
1121
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1122
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1123
+ case "ValidationException":
1124
+ case "com.amazonaws.mediapackagev2#ValidationException":
1125
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1126
+ default:
1127
+ const parsedBody = parsedOutput.body;
1128
+ return throwDefaultError({
1129
+ output,
1130
+ parsedBody,
1131
+ errorCode
1132
+ });
1133
+ }
1134
+ }, "de_DeleteOriginEndpointPolicyCommandError");
1135
+ var de_GetChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
1136
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
+ return de_GetChannelCommandError(output, context);
1138
+ }
1139
+ const contents = (0, import_smithy_client.map)({
1140
+ $metadata: deserializeMetadata(output)
1141
+ });
1142
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1143
+ const doc = (0, import_smithy_client.take)(data, {
1144
+ Arn: import_smithy_client.expectString,
1145
+ ChannelGroupName: import_smithy_client.expectString,
1146
+ ChannelName: import_smithy_client.expectString,
1147
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1148
+ Description: import_smithy_client.expectString,
1149
+ IngestEndpoints: import_smithy_client._json,
1150
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1151
+ Tags: import_smithy_client._json
1152
+ });
1153
+ Object.assign(contents, doc);
1154
+ return contents;
1155
+ }, "de_GetChannelCommand");
1156
+ var de_GetChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1157
+ const parsedOutput = {
1158
+ ...output,
1159
+ body: await parseErrorBody(output.body, context)
1160
+ };
1161
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1162
+ switch (errorCode) {
1163
+ case "AccessDeniedException":
1164
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1165
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1166
+ case "InternalServerException":
1167
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1168
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1169
+ case "ResourceNotFoundException":
1170
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1171
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1172
+ case "ThrottlingException":
1173
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1174
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1175
+ case "ValidationException":
1176
+ case "com.amazonaws.mediapackagev2#ValidationException":
1177
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1178
+ default:
1179
+ const parsedBody = parsedOutput.body;
1180
+ return throwDefaultError({
1181
+ output,
1182
+ parsedBody,
1183
+ errorCode
1184
+ });
1185
+ }
1186
+ }, "de_GetChannelCommandError");
1187
+ var de_GetChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
+ return de_GetChannelGroupCommandError(output, context);
1190
+ }
1191
+ const contents = (0, import_smithy_client.map)({
1192
+ $metadata: deserializeMetadata(output)
1193
+ });
1194
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1195
+ const doc = (0, import_smithy_client.take)(data, {
1196
+ Arn: import_smithy_client.expectString,
1197
+ ChannelGroupName: import_smithy_client.expectString,
1198
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1199
+ Description: import_smithy_client.expectString,
1200
+ EgressDomain: import_smithy_client.expectString,
1201
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1202
+ Tags: [, import_smithy_client._json, `tags`]
1203
+ });
1204
+ Object.assign(contents, doc);
1205
+ return contents;
1206
+ }, "de_GetChannelGroupCommand");
1207
+ var de_GetChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1208
+ const parsedOutput = {
1209
+ ...output,
1210
+ body: await parseErrorBody(output.body, context)
1211
+ };
1212
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1213
+ switch (errorCode) {
1214
+ case "AccessDeniedException":
1215
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1216
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1217
+ case "InternalServerException":
1218
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1219
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1220
+ case "ResourceNotFoundException":
1221
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1222
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1223
+ case "ThrottlingException":
1224
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1225
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1226
+ case "ValidationException":
1227
+ case "com.amazonaws.mediapackagev2#ValidationException":
1228
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1229
+ default:
1230
+ const parsedBody = parsedOutput.body;
1231
+ return throwDefaultError({
1232
+ output,
1233
+ parsedBody,
1234
+ errorCode
1235
+ });
1236
+ }
1237
+ }, "de_GetChannelGroupCommandError");
1238
+ var de_GetChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1239
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1240
+ return de_GetChannelPolicyCommandError(output, context);
1241
+ }
1242
+ const contents = (0, import_smithy_client.map)({
1243
+ $metadata: deserializeMetadata(output)
1244
+ });
1245
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1246
+ const doc = (0, import_smithy_client.take)(data, {
1247
+ ChannelGroupName: import_smithy_client.expectString,
1248
+ ChannelName: import_smithy_client.expectString,
1249
+ Policy: import_smithy_client.expectString
1250
+ });
1251
+ Object.assign(contents, doc);
1252
+ return contents;
1253
+ }, "de_GetChannelPolicyCommand");
1254
+ var de_GetChannelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1255
+ const parsedOutput = {
1256
+ ...output,
1257
+ body: await parseErrorBody(output.body, context)
1258
+ };
1259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
+ switch (errorCode) {
1261
+ case "AccessDeniedException":
1262
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1263
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1264
+ case "InternalServerException":
1265
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1266
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1267
+ case "ResourceNotFoundException":
1268
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1269
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1270
+ case "ThrottlingException":
1271
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1272
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1273
+ case "ValidationException":
1274
+ case "com.amazonaws.mediapackagev2#ValidationException":
1275
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1276
+ default:
1277
+ const parsedBody = parsedOutput.body;
1278
+ return throwDefaultError({
1279
+ output,
1280
+ parsedBody,
1281
+ errorCode
1282
+ });
1283
+ }
1284
+ }, "de_GetChannelPolicyCommandError");
1285
+ var de_GetOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1286
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1287
+ return de_GetOriginEndpointCommandError(output, context);
1288
+ }
1289
+ const contents = (0, import_smithy_client.map)({
1290
+ $metadata: deserializeMetadata(output)
1291
+ });
1292
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1293
+ const doc = (0, import_smithy_client.take)(data, {
1294
+ Arn: import_smithy_client.expectString,
1295
+ ChannelGroupName: import_smithy_client.expectString,
1296
+ ChannelName: import_smithy_client.expectString,
1297
+ ContainerType: import_smithy_client.expectString,
1298
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1299
+ Description: import_smithy_client.expectString,
1300
+ HlsManifests: (_) => de_GetHlsManifests(_, context),
1301
+ LowLatencyHlsManifests: (_) => de_GetLowLatencyHlsManifests(_, context),
1302
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1303
+ OriginEndpointName: import_smithy_client.expectString,
1304
+ Segment: import_smithy_client._json,
1305
+ StartoverWindowSeconds: import_smithy_client.expectInt32,
1306
+ Tags: import_smithy_client._json
1307
+ });
1308
+ Object.assign(contents, doc);
1309
+ return contents;
1310
+ }, "de_GetOriginEndpointCommand");
1311
+ var de_GetOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1312
+ const parsedOutput = {
1313
+ ...output,
1314
+ body: await parseErrorBody(output.body, context)
1315
+ };
1316
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1317
+ switch (errorCode) {
1318
+ case "AccessDeniedException":
1319
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1320
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1321
+ case "InternalServerException":
1322
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1323
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1324
+ case "ResourceNotFoundException":
1325
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1326
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1327
+ case "ThrottlingException":
1328
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1329
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1330
+ case "ValidationException":
1331
+ case "com.amazonaws.mediapackagev2#ValidationException":
1332
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1333
+ default:
1334
+ const parsedBody = parsedOutput.body;
1335
+ return throwDefaultError({
1336
+ output,
1337
+ parsedBody,
1338
+ errorCode
1339
+ });
1340
+ }
1341
+ }, "de_GetOriginEndpointCommandError");
1342
+ var de_GetOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1343
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
+ return de_GetOriginEndpointPolicyCommandError(output, context);
1345
+ }
1346
+ const contents = (0, import_smithy_client.map)({
1347
+ $metadata: deserializeMetadata(output)
1348
+ });
1349
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1350
+ const doc = (0, import_smithy_client.take)(data, {
1351
+ ChannelGroupName: import_smithy_client.expectString,
1352
+ ChannelName: import_smithy_client.expectString,
1353
+ OriginEndpointName: import_smithy_client.expectString,
1354
+ Policy: import_smithy_client.expectString
1355
+ });
1356
+ Object.assign(contents, doc);
1357
+ return contents;
1358
+ }, "de_GetOriginEndpointPolicyCommand");
1359
+ var de_GetOriginEndpointPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1360
+ const parsedOutput = {
1361
+ ...output,
1362
+ body: await parseErrorBody(output.body, context)
1363
+ };
1364
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1365
+ switch (errorCode) {
1366
+ case "AccessDeniedException":
1367
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1368
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1369
+ case "InternalServerException":
1370
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1371
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1372
+ case "ResourceNotFoundException":
1373
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1374
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1375
+ case "ThrottlingException":
1376
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1377
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1378
+ case "ValidationException":
1379
+ case "com.amazonaws.mediapackagev2#ValidationException":
1380
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1381
+ default:
1382
+ const parsedBody = parsedOutput.body;
1383
+ return throwDefaultError({
1384
+ output,
1385
+ parsedBody,
1386
+ errorCode
1387
+ });
1388
+ }
1389
+ }, "de_GetOriginEndpointPolicyCommandError");
1390
+ var de_ListChannelGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1391
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1392
+ return de_ListChannelGroupsCommandError(output, context);
1393
+ }
1394
+ const contents = (0, import_smithy_client.map)({
1395
+ $metadata: deserializeMetadata(output)
1396
+ });
1397
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1398
+ const doc = (0, import_smithy_client.take)(data, {
1399
+ Items: (_) => de_ChannelGroupsList(_, context),
1400
+ NextToken: import_smithy_client.expectString
1401
+ });
1402
+ Object.assign(contents, doc);
1403
+ return contents;
1404
+ }, "de_ListChannelGroupsCommand");
1405
+ var de_ListChannelGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1406
+ const parsedOutput = {
1407
+ ...output,
1408
+ body: await parseErrorBody(output.body, context)
1409
+ };
1410
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1411
+ switch (errorCode) {
1412
+ case "AccessDeniedException":
1413
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1414
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1415
+ case "InternalServerException":
1416
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1417
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1418
+ case "ThrottlingException":
1419
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1420
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1421
+ case "ValidationException":
1422
+ case "com.amazonaws.mediapackagev2#ValidationException":
1423
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1424
+ default:
1425
+ const parsedBody = parsedOutput.body;
1426
+ return throwDefaultError({
1427
+ output,
1428
+ parsedBody,
1429
+ errorCode
1430
+ });
1431
+ }
1432
+ }, "de_ListChannelGroupsCommandError");
1433
+ var de_ListChannelsCommand = /* @__PURE__ */ __name(async (output, context) => {
1434
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1435
+ return de_ListChannelsCommandError(output, context);
1436
+ }
1437
+ const contents = (0, import_smithy_client.map)({
1438
+ $metadata: deserializeMetadata(output)
1439
+ });
1440
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1441
+ const doc = (0, import_smithy_client.take)(data, {
1442
+ Items: (_) => de_ChannelList(_, context),
1443
+ NextToken: import_smithy_client.expectString
1444
+ });
1445
+ Object.assign(contents, doc);
1446
+ return contents;
1447
+ }, "de_ListChannelsCommand");
1448
+ var de_ListChannelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1449
+ const parsedOutput = {
1450
+ ...output,
1451
+ body: await parseErrorBody(output.body, context)
1452
+ };
1453
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1454
+ switch (errorCode) {
1455
+ case "AccessDeniedException":
1456
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1457
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1458
+ case "InternalServerException":
1459
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1460
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1461
+ case "ResourceNotFoundException":
1462
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1463
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1464
+ case "ThrottlingException":
1465
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1466
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1467
+ case "ValidationException":
1468
+ case "com.amazonaws.mediapackagev2#ValidationException":
1469
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1470
+ default:
1471
+ const parsedBody = parsedOutput.body;
1472
+ return throwDefaultError({
1473
+ output,
1474
+ parsedBody,
1475
+ errorCode
1476
+ });
1477
+ }
1478
+ }, "de_ListChannelsCommandError");
1479
+ var de_ListOriginEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1480
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1481
+ return de_ListOriginEndpointsCommandError(output, context);
1482
+ }
1483
+ const contents = (0, import_smithy_client.map)({
1484
+ $metadata: deserializeMetadata(output)
1485
+ });
1486
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1487
+ const doc = (0, import_smithy_client.take)(data, {
1488
+ Items: (_) => de_OriginEndpointsList(_, context),
1489
+ NextToken: import_smithy_client.expectString
1490
+ });
1491
+ Object.assign(contents, doc);
1492
+ return contents;
1493
+ }, "de_ListOriginEndpointsCommand");
1494
+ var de_ListOriginEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1495
+ const parsedOutput = {
1496
+ ...output,
1497
+ body: await parseErrorBody(output.body, context)
1498
+ };
1499
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1500
+ switch (errorCode) {
1501
+ case "AccessDeniedException":
1502
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1503
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1504
+ case "InternalServerException":
1505
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1506
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1507
+ case "ResourceNotFoundException":
1508
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1509
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1510
+ case "ThrottlingException":
1511
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1512
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1513
+ case "ValidationException":
1514
+ case "com.amazonaws.mediapackagev2#ValidationException":
1515
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1516
+ default:
1517
+ const parsedBody = parsedOutput.body;
1518
+ return throwDefaultError({
1519
+ output,
1520
+ parsedBody,
1521
+ errorCode
1522
+ });
1523
+ }
1524
+ }, "de_ListOriginEndpointsCommandError");
1525
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1526
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1527
+ return de_ListTagsForResourceCommandError(output, context);
1528
+ }
1529
+ const contents = (0, import_smithy_client.map)({
1530
+ $metadata: deserializeMetadata(output)
1531
+ });
1532
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1533
+ const doc = (0, import_smithy_client.take)(data, {
1534
+ Tags: [, import_smithy_client._json, `tags`]
1535
+ });
1536
+ Object.assign(contents, doc);
1537
+ return contents;
1538
+ }, "de_ListTagsForResourceCommand");
1539
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1540
+ const parsedOutput = {
1541
+ ...output,
1542
+ body: await parseErrorBody(output.body, context)
1543
+ };
1544
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1545
+ switch (errorCode) {
1546
+ case "ValidationException":
1547
+ case "com.amazonaws.mediapackagev2#ValidationException":
1548
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1549
+ default:
1550
+ const parsedBody = parsedOutput.body;
1551
+ return throwDefaultError({
1552
+ output,
1553
+ parsedBody,
1554
+ errorCode
1555
+ });
1556
+ }
1557
+ }, "de_ListTagsForResourceCommandError");
1558
+ var de_PutChannelPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1559
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1560
+ return de_PutChannelPolicyCommandError(output, context);
1561
+ }
1562
+ const contents = (0, import_smithy_client.map)({
1563
+ $metadata: deserializeMetadata(output)
1564
+ });
1565
+ await (0, import_smithy_client.collectBody)(output.body, context);
1566
+ return contents;
1567
+ }, "de_PutChannelPolicyCommand");
1568
+ var de_PutChannelPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1569
+ const parsedOutput = {
1570
+ ...output,
1571
+ body: await parseErrorBody(output.body, context)
1572
+ };
1573
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1574
+ switch (errorCode) {
1575
+ case "AccessDeniedException":
1576
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1577
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1578
+ case "ConflictException":
1579
+ case "com.amazonaws.mediapackagev2#ConflictException":
1580
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1581
+ case "InternalServerException":
1582
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1583
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1584
+ case "ResourceNotFoundException":
1585
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1586
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1587
+ case "ThrottlingException":
1588
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1589
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1590
+ case "ValidationException":
1591
+ case "com.amazonaws.mediapackagev2#ValidationException":
1592
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1593
+ default:
1594
+ const parsedBody = parsedOutput.body;
1595
+ return throwDefaultError({
1596
+ output,
1597
+ parsedBody,
1598
+ errorCode
1599
+ });
1600
+ }
1601
+ }, "de_PutChannelPolicyCommandError");
1602
+ var de_PutOriginEndpointPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1604
+ return de_PutOriginEndpointPolicyCommandError(output, context);
1605
+ }
1606
+ const contents = (0, import_smithy_client.map)({
1607
+ $metadata: deserializeMetadata(output)
1608
+ });
1609
+ await (0, import_smithy_client.collectBody)(output.body, context);
1610
+ return contents;
1611
+ }, "de_PutOriginEndpointPolicyCommand");
1612
+ var de_PutOriginEndpointPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1613
+ const parsedOutput = {
1614
+ ...output,
1615
+ body: await parseErrorBody(output.body, context)
1616
+ };
1617
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1618
+ switch (errorCode) {
1619
+ case "AccessDeniedException":
1620
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1621
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1622
+ case "ConflictException":
1623
+ case "com.amazonaws.mediapackagev2#ConflictException":
1624
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1625
+ case "InternalServerException":
1626
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1627
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1628
+ case "ResourceNotFoundException":
1629
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1630
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1631
+ case "ThrottlingException":
1632
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1633
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1634
+ case "ValidationException":
1635
+ case "com.amazonaws.mediapackagev2#ValidationException":
1636
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1637
+ default:
1638
+ const parsedBody = parsedOutput.body;
1639
+ return throwDefaultError({
1640
+ output,
1641
+ parsedBody,
1642
+ errorCode
1643
+ });
1644
+ }
1645
+ }, "de_PutOriginEndpointPolicyCommandError");
1646
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1647
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1648
+ return de_TagResourceCommandError(output, context);
1649
+ }
1650
+ const contents = (0, import_smithy_client.map)({
1651
+ $metadata: deserializeMetadata(output)
1652
+ });
1653
+ await (0, import_smithy_client.collectBody)(output.body, context);
1654
+ return contents;
1655
+ }, "de_TagResourceCommand");
1656
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1657
+ const parsedOutput = {
1658
+ ...output,
1659
+ body: await parseErrorBody(output.body, context)
1660
+ };
1661
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1662
+ switch (errorCode) {
1663
+ case "ValidationException":
1664
+ case "com.amazonaws.mediapackagev2#ValidationException":
1665
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1666
+ default:
1667
+ const parsedBody = parsedOutput.body;
1668
+ return throwDefaultError({
1669
+ output,
1670
+ parsedBody,
1671
+ errorCode
1672
+ });
1673
+ }
1674
+ }, "de_TagResourceCommandError");
1675
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1676
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1677
+ return de_UntagResourceCommandError(output, context);
1678
+ }
1679
+ const contents = (0, import_smithy_client.map)({
1680
+ $metadata: deserializeMetadata(output)
1681
+ });
1682
+ await (0, import_smithy_client.collectBody)(output.body, context);
1683
+ return contents;
1684
+ }, "de_UntagResourceCommand");
1685
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1686
+ const parsedOutput = {
1687
+ ...output,
1688
+ body: await parseErrorBody(output.body, context)
1689
+ };
1690
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1691
+ switch (errorCode) {
1692
+ case "ValidationException":
1693
+ case "com.amazonaws.mediapackagev2#ValidationException":
1694
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1695
+ default:
1696
+ const parsedBody = parsedOutput.body;
1697
+ return throwDefaultError({
1698
+ output,
1699
+ parsedBody,
1700
+ errorCode
1701
+ });
1702
+ }
1703
+ }, "de_UntagResourceCommandError");
1704
+ var de_UpdateChannelCommand = /* @__PURE__ */ __name(async (output, context) => {
1705
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1706
+ return de_UpdateChannelCommandError(output, context);
1707
+ }
1708
+ const contents = (0, import_smithy_client.map)({
1709
+ $metadata: deserializeMetadata(output)
1710
+ });
1711
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1712
+ const doc = (0, import_smithy_client.take)(data, {
1713
+ Arn: import_smithy_client.expectString,
1714
+ ChannelGroupName: import_smithy_client.expectString,
1715
+ ChannelName: import_smithy_client.expectString,
1716
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1717
+ Description: import_smithy_client.expectString,
1718
+ IngestEndpoints: import_smithy_client._json,
1719
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1720
+ Tags: [, import_smithy_client._json, `tags`]
1721
+ });
1722
+ Object.assign(contents, doc);
1723
+ return contents;
1724
+ }, "de_UpdateChannelCommand");
1725
+ var de_UpdateChannelCommandError = /* @__PURE__ */ __name(async (output, context) => {
1726
+ const parsedOutput = {
1727
+ ...output,
1728
+ body: await parseErrorBody(output.body, context)
1729
+ };
1730
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1731
+ switch (errorCode) {
1732
+ case "AccessDeniedException":
1733
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1734
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1735
+ case "ConflictException":
1736
+ case "com.amazonaws.mediapackagev2#ConflictException":
1737
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1738
+ case "InternalServerException":
1739
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1740
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1741
+ case "ResourceNotFoundException":
1742
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1743
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1744
+ case "ThrottlingException":
1745
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1746
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1747
+ case "ValidationException":
1748
+ case "com.amazonaws.mediapackagev2#ValidationException":
1749
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1750
+ default:
1751
+ const parsedBody = parsedOutput.body;
1752
+ return throwDefaultError({
1753
+ output,
1754
+ parsedBody,
1755
+ errorCode
1756
+ });
1757
+ }
1758
+ }, "de_UpdateChannelCommandError");
1759
+ var de_UpdateChannelGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1760
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1761
+ return de_UpdateChannelGroupCommandError(output, context);
1762
+ }
1763
+ const contents = (0, import_smithy_client.map)({
1764
+ $metadata: deserializeMetadata(output)
1765
+ });
1766
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1767
+ const doc = (0, import_smithy_client.take)(data, {
1768
+ Arn: import_smithy_client.expectString,
1769
+ ChannelGroupName: import_smithy_client.expectString,
1770
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1771
+ Description: import_smithy_client.expectString,
1772
+ EgressDomain: import_smithy_client.expectString,
1773
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1774
+ Tags: [, import_smithy_client._json, `tags`]
1775
+ });
1776
+ Object.assign(contents, doc);
1777
+ return contents;
1778
+ }, "de_UpdateChannelGroupCommand");
1779
+ var de_UpdateChannelGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1780
+ const parsedOutput = {
1781
+ ...output,
1782
+ body: await parseErrorBody(output.body, context)
1783
+ };
1784
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1785
+ switch (errorCode) {
1786
+ case "AccessDeniedException":
1787
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1788
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1789
+ case "ConflictException":
1790
+ case "com.amazonaws.mediapackagev2#ConflictException":
1791
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1792
+ case "InternalServerException":
1793
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1794
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1795
+ case "ResourceNotFoundException":
1796
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1797
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1798
+ case "ThrottlingException":
1799
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1800
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1801
+ case "ValidationException":
1802
+ case "com.amazonaws.mediapackagev2#ValidationException":
1803
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1804
+ default:
1805
+ const parsedBody = parsedOutput.body;
1806
+ return throwDefaultError({
1807
+ output,
1808
+ parsedBody,
1809
+ errorCode
1810
+ });
1811
+ }
1812
+ }, "de_UpdateChannelGroupCommandError");
1813
+ var de_UpdateOriginEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
1814
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1815
+ return de_UpdateOriginEndpointCommandError(output, context);
1816
+ }
1817
+ const contents = (0, import_smithy_client.map)({
1818
+ $metadata: deserializeMetadata(output)
1819
+ });
1820
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1821
+ const doc = (0, import_smithy_client.take)(data, {
1822
+ Arn: import_smithy_client.expectString,
1823
+ ChannelGroupName: import_smithy_client.expectString,
1824
+ ChannelName: import_smithy_client.expectString,
1825
+ ContainerType: import_smithy_client.expectString,
1826
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1827
+ Description: import_smithy_client.expectString,
1828
+ HlsManifests: (_) => de_GetHlsManifests(_, context),
1829
+ LowLatencyHlsManifests: (_) => de_GetLowLatencyHlsManifests(_, context),
1830
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1831
+ OriginEndpointName: import_smithy_client.expectString,
1832
+ Segment: import_smithy_client._json,
1833
+ StartoverWindowSeconds: import_smithy_client.expectInt32,
1834
+ Tags: [, import_smithy_client._json, `tags`]
1835
+ });
1836
+ Object.assign(contents, doc);
1837
+ return contents;
1838
+ }, "de_UpdateOriginEndpointCommand");
1839
+ var de_UpdateOriginEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
1840
+ const parsedOutput = {
1841
+ ...output,
1842
+ body: await parseErrorBody(output.body, context)
1843
+ };
1844
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1845
+ switch (errorCode) {
1846
+ case "AccessDeniedException":
1847
+ case "com.amazonaws.mediapackagev2#AccessDeniedException":
1848
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1849
+ case "ConflictException":
1850
+ case "com.amazonaws.mediapackagev2#ConflictException":
1851
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1852
+ case "InternalServerException":
1853
+ case "com.amazonaws.mediapackagev2#InternalServerException":
1854
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1855
+ case "ResourceNotFoundException":
1856
+ case "com.amazonaws.mediapackagev2#ResourceNotFoundException":
1857
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1858
+ case "ServiceQuotaExceededException":
1859
+ case "com.amazonaws.mediapackagev2#ServiceQuotaExceededException":
1860
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1861
+ case "ThrottlingException":
1862
+ case "com.amazonaws.mediapackagev2#ThrottlingException":
1863
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1864
+ case "ValidationException":
1865
+ case "com.amazonaws.mediapackagev2#ValidationException":
1866
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1867
+ default:
1868
+ const parsedBody = parsedOutput.body;
1869
+ return throwDefaultError({
1870
+ output,
1871
+ parsedBody,
1872
+ errorCode
1873
+ });
1874
+ }
1875
+ }, "de_UpdateOriginEndpointCommandError");
1876
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaPackageV2ServiceException);
1877
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1878
+ const contents = (0, import_smithy_client.map)({});
1879
+ const data = parsedOutput.body;
1880
+ const doc = (0, import_smithy_client.take)(data, {
1881
+ Message: import_smithy_client.expectString
1882
+ });
1883
+ Object.assign(contents, doc);
1884
+ const exception = new AccessDeniedException({
1885
+ $metadata: deserializeMetadata(parsedOutput),
1886
+ ...contents
1887
+ });
1888
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1889
+ }, "de_AccessDeniedExceptionRes");
1890
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1891
+ const contents = (0, import_smithy_client.map)({});
1892
+ const data = parsedOutput.body;
1893
+ const doc = (0, import_smithy_client.take)(data, {
1894
+ ConflictExceptionType: import_smithy_client.expectString,
1895
+ Message: import_smithy_client.expectString
1896
+ });
1897
+ Object.assign(contents, doc);
1898
+ const exception = new ConflictException({
1899
+ $metadata: deserializeMetadata(parsedOutput),
1900
+ ...contents
1901
+ });
1902
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1903
+ }, "de_ConflictExceptionRes");
1904
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1905
+ const contents = (0, import_smithy_client.map)({});
1906
+ const data = parsedOutput.body;
1907
+ const doc = (0, import_smithy_client.take)(data, {
1908
+ Message: import_smithy_client.expectString
1909
+ });
1910
+ Object.assign(contents, doc);
1911
+ const exception = new InternalServerException({
1912
+ $metadata: deserializeMetadata(parsedOutput),
1913
+ ...contents
1914
+ });
1915
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1916
+ }, "de_InternalServerExceptionRes");
1917
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1918
+ const contents = (0, import_smithy_client.map)({});
1919
+ const data = parsedOutput.body;
1920
+ const doc = (0, import_smithy_client.take)(data, {
1921
+ Message: import_smithy_client.expectString,
1922
+ ResourceTypeNotFound: import_smithy_client.expectString
1923
+ });
1924
+ Object.assign(contents, doc);
1925
+ const exception = new ResourceNotFoundException({
1926
+ $metadata: deserializeMetadata(parsedOutput),
1927
+ ...contents
1928
+ });
1929
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1930
+ }, "de_ResourceNotFoundExceptionRes");
1931
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1932
+ const contents = (0, import_smithy_client.map)({});
1933
+ const data = parsedOutput.body;
1934
+ const doc = (0, import_smithy_client.take)(data, {
1935
+ Message: import_smithy_client.expectString
1936
+ });
1937
+ Object.assign(contents, doc);
1938
+ const exception = new ServiceQuotaExceededException({
1939
+ $metadata: deserializeMetadata(parsedOutput),
1940
+ ...contents
1941
+ });
1942
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1943
+ }, "de_ServiceQuotaExceededExceptionRes");
1944
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1945
+ const contents = (0, import_smithy_client.map)({});
1946
+ const data = parsedOutput.body;
1947
+ const doc = (0, import_smithy_client.take)(data, {
1948
+ Message: import_smithy_client.expectString
1949
+ });
1950
+ Object.assign(contents, doc);
1951
+ const exception = new ThrottlingException({
1952
+ $metadata: deserializeMetadata(parsedOutput),
1953
+ ...contents
1954
+ });
1955
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1956
+ }, "de_ThrottlingExceptionRes");
1957
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1958
+ const contents = (0, import_smithy_client.map)({});
1959
+ const data = parsedOutput.body;
1960
+ const doc = (0, import_smithy_client.take)(data, {
1961
+ Message: import_smithy_client.expectString,
1962
+ ValidationExceptionType: import_smithy_client.expectString
1963
+ });
1964
+ Object.assign(contents, doc);
1965
+ const exception = new ValidationException({
1966
+ $metadata: deserializeMetadata(parsedOutput),
1967
+ ...contents
1968
+ });
1969
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1970
+ }, "de_ValidationExceptionRes");
1971
+ var se_CreateHlsManifestConfiguration = /* @__PURE__ */ __name((input, context) => {
1972
+ return (0, import_smithy_client.take)(input, {
1973
+ ChildManifestName: [],
1974
+ FilterConfiguration: (_) => se_FilterConfiguration(_, context),
1975
+ ManifestName: [],
1976
+ ManifestWindowSeconds: [],
1977
+ ProgramDateTimeIntervalSeconds: [],
1978
+ ScteHls: import_smithy_client._json
1979
+ });
1980
+ }, "se_CreateHlsManifestConfiguration");
1981
+ var se_CreateHlsManifests = /* @__PURE__ */ __name((input, context) => {
1982
+ return input.filter((e) => e != null).map((entry) => {
1983
+ return se_CreateHlsManifestConfiguration(entry, context);
1984
+ });
1985
+ }, "se_CreateHlsManifests");
1986
+ var se_CreateLowLatencyHlsManifestConfiguration = /* @__PURE__ */ __name((input, context) => {
1987
+ return (0, import_smithy_client.take)(input, {
1988
+ ChildManifestName: [],
1989
+ FilterConfiguration: (_) => se_FilterConfiguration(_, context),
1990
+ ManifestName: [],
1991
+ ManifestWindowSeconds: [],
1992
+ ProgramDateTimeIntervalSeconds: [],
1993
+ ScteHls: import_smithy_client._json
1994
+ });
1995
+ }, "se_CreateLowLatencyHlsManifestConfiguration");
1996
+ var se_CreateLowLatencyHlsManifests = /* @__PURE__ */ __name((input, context) => {
1997
+ return input.filter((e) => e != null).map((entry) => {
1998
+ return se_CreateLowLatencyHlsManifestConfiguration(entry, context);
1999
+ });
2000
+ }, "se_CreateLowLatencyHlsManifests");
2001
+ var se_FilterConfiguration = /* @__PURE__ */ __name((input, context) => {
2002
+ return (0, import_smithy_client.take)(input, {
2003
+ End: (_) => Math.round(_.getTime() / 1e3),
2004
+ ManifestFilter: [],
2005
+ Start: (_) => Math.round(_.getTime() / 1e3),
2006
+ TimeDelaySeconds: []
2007
+ });
2008
+ }, "se_FilterConfiguration");
2009
+ var de_ChannelGroupListConfiguration = /* @__PURE__ */ __name((output, context) => {
2010
+ return (0, import_smithy_client.take)(output, {
2011
+ Arn: import_smithy_client.expectString,
2012
+ ChannelGroupName: import_smithy_client.expectString,
2013
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2014
+ Description: import_smithy_client.expectString,
2015
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2016
+ });
2017
+ }, "de_ChannelGroupListConfiguration");
2018
+ var de_ChannelGroupsList = /* @__PURE__ */ __name((output, context) => {
2019
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2020
+ return de_ChannelGroupListConfiguration(entry, context);
2021
+ });
2022
+ return retVal;
2023
+ }, "de_ChannelGroupsList");
2024
+ var de_ChannelList = /* @__PURE__ */ __name((output, context) => {
2025
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2026
+ return de_ChannelListConfiguration(entry, context);
2027
+ });
2028
+ return retVal;
2029
+ }, "de_ChannelList");
2030
+ var de_ChannelListConfiguration = /* @__PURE__ */ __name((output, context) => {
2031
+ return (0, import_smithy_client.take)(output, {
2032
+ Arn: import_smithy_client.expectString,
2033
+ ChannelGroupName: import_smithy_client.expectString,
2034
+ ChannelName: import_smithy_client.expectString,
2035
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2036
+ Description: import_smithy_client.expectString,
2037
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2038
+ });
2039
+ }, "de_ChannelListConfiguration");
2040
+ var de_FilterConfiguration = /* @__PURE__ */ __name((output, context) => {
2041
+ return (0, import_smithy_client.take)(output, {
2042
+ End: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2043
+ ManifestFilter: import_smithy_client.expectString,
2044
+ Start: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2045
+ TimeDelaySeconds: import_smithy_client.expectInt32
2046
+ });
2047
+ }, "de_FilterConfiguration");
2048
+ var de_GetHlsManifestConfiguration = /* @__PURE__ */ __name((output, context) => {
2049
+ return (0, import_smithy_client.take)(output, {
2050
+ ChildManifestName: import_smithy_client.expectString,
2051
+ FilterConfiguration: (_) => de_FilterConfiguration(_, context),
2052
+ ManifestName: import_smithy_client.expectString,
2053
+ ManifestWindowSeconds: import_smithy_client.expectInt32,
2054
+ ProgramDateTimeIntervalSeconds: import_smithy_client.expectInt32,
2055
+ ScteHls: import_smithy_client._json,
2056
+ Url: import_smithy_client.expectString
2057
+ });
2058
+ }, "de_GetHlsManifestConfiguration");
2059
+ var de_GetHlsManifests = /* @__PURE__ */ __name((output, context) => {
2060
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2061
+ return de_GetHlsManifestConfiguration(entry, context);
2062
+ });
2063
+ return retVal;
2064
+ }, "de_GetHlsManifests");
2065
+ var de_GetLowLatencyHlsManifestConfiguration = /* @__PURE__ */ __name((output, context) => {
2066
+ return (0, import_smithy_client.take)(output, {
2067
+ ChildManifestName: import_smithy_client.expectString,
2068
+ FilterConfiguration: (_) => de_FilterConfiguration(_, context),
2069
+ ManifestName: import_smithy_client.expectString,
2070
+ ManifestWindowSeconds: import_smithy_client.expectInt32,
2071
+ ProgramDateTimeIntervalSeconds: import_smithy_client.expectInt32,
2072
+ ScteHls: import_smithy_client._json,
2073
+ Url: import_smithy_client.expectString
2074
+ });
2075
+ }, "de_GetLowLatencyHlsManifestConfiguration");
2076
+ var de_GetLowLatencyHlsManifests = /* @__PURE__ */ __name((output, context) => {
2077
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2078
+ return de_GetLowLatencyHlsManifestConfiguration(entry, context);
2079
+ });
2080
+ return retVal;
2081
+ }, "de_GetLowLatencyHlsManifests");
2082
+ var de_OriginEndpointListConfiguration = /* @__PURE__ */ __name((output, context) => {
2083
+ return (0, import_smithy_client.take)(output, {
2084
+ Arn: import_smithy_client.expectString,
2085
+ ChannelGroupName: import_smithy_client.expectString,
2086
+ ChannelName: import_smithy_client.expectString,
2087
+ ContainerType: import_smithy_client.expectString,
2088
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2089
+ Description: import_smithy_client.expectString,
2090
+ HlsManifests: import_smithy_client._json,
2091
+ LowLatencyHlsManifests: import_smithy_client._json,
2092
+ ModifiedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2093
+ OriginEndpointName: import_smithy_client.expectString
2094
+ });
2095
+ }, "de_OriginEndpointListConfiguration");
2096
+ var de_OriginEndpointsList = /* @__PURE__ */ __name((output, context) => {
2097
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2098
+ return de_OriginEndpointListConfiguration(entry, context);
2099
+ });
2100
+ return retVal;
2101
+ }, "de_OriginEndpointsList");
2102
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2103
+ httpStatusCode: output.statusCode,
2104
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2105
+ extendedRequestId: output.headers["x-amz-id-2"],
2106
+ cfId: output.headers["x-amz-cf-id"]
2107
+ }), "deserializeMetadata");
2108
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2109
+ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
2110
+ var _CT = "ClientToken";
2111
+ var _MR = "MaxResults";
2112
+ var _NT = "NextToken";
2113
+ var _TK = "TagKeys";
2114
+ var _mR = "maxResults";
2115
+ var _nT = "nextToken";
2116
+ var _tK = "tagKeys";
2117
+ var _xact = "x-amzn-client-token";
2118
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2119
+ if (encoded.length) {
2120
+ return JSON.parse(encoded);
2121
+ }
2122
+ return {};
2123
+ }), "parseBody");
2124
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2125
+ const value = await parseBody(errorBody, context);
2126
+ value.message = value.message ?? value.Message;
2127
+ return value;
2128
+ }, "parseErrorBody");
2129
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2130
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2131
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2132
+ let cleanValue = rawValue;
2133
+ if (typeof cleanValue === "number") {
2134
+ cleanValue = cleanValue.toString();
2135
+ }
2136
+ if (cleanValue.indexOf(",") >= 0) {
2137
+ cleanValue = cleanValue.split(",")[0];
2138
+ }
2139
+ if (cleanValue.indexOf(":") >= 0) {
2140
+ cleanValue = cleanValue.split(":")[0];
2141
+ }
2142
+ if (cleanValue.indexOf("#") >= 0) {
2143
+ cleanValue = cleanValue.split("#")[1];
2144
+ }
2145
+ return cleanValue;
2146
+ }, "sanitizeErrorCode");
2147
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2148
+ if (headerKey !== void 0) {
2149
+ return sanitizeErrorCode(output.headers[headerKey]);
2150
+ }
2151
+ if (data.code !== void 0) {
2152
+ return sanitizeErrorCode(data.code);
2153
+ }
2154
+ if (data["__type"] !== void 0) {
2155
+ return sanitizeErrorCode(data["__type"]);
2156
+ }
2157
+ }, "loadRestJsonErrorCode");
2158
+
2159
+ // src/commands/CreateChannelCommand.ts
2160
+ var _CreateChannelCommand = class _CreateChannelCommand extends import_smithy_client.Command.classBuilder().ep({
2161
+ ...commonParams
2162
+ }).m(function(Command, cs, config, o) {
2163
+ return [
2164
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2165
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2166
+ ];
2167
+ }).s("mediapackagev2", "CreateChannel", {}).n("MediaPackageV2Client", "CreateChannelCommand").f(void 0, void 0).ser(se_CreateChannelCommand).de(de_CreateChannelCommand).build() {
2168
+ };
2169
+ __name(_CreateChannelCommand, "CreateChannelCommand");
2170
+ var CreateChannelCommand = _CreateChannelCommand;
2171
+
2172
+ // src/commands/CreateChannelGroupCommand.ts
2173
+
2174
+
2175
+
2176
+
2177
+ var _CreateChannelGroupCommand = class _CreateChannelGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2178
+ ...commonParams
2179
+ }).m(function(Command, cs, config, o) {
2180
+ return [
2181
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2182
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2183
+ ];
2184
+ }).s("mediapackagev2", "CreateChannelGroup", {}).n("MediaPackageV2Client", "CreateChannelGroupCommand").f(void 0, void 0).ser(se_CreateChannelGroupCommand).de(de_CreateChannelGroupCommand).build() {
2185
+ };
2186
+ __name(_CreateChannelGroupCommand, "CreateChannelGroupCommand");
2187
+ var CreateChannelGroupCommand = _CreateChannelGroupCommand;
2188
+
2189
+ // src/commands/CreateOriginEndpointCommand.ts
2190
+
2191
+
2192
+
2193
+
2194
+ var _CreateOriginEndpointCommand = class _CreateOriginEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
2195
+ ...commonParams
2196
+ }).m(function(Command, cs, config, o) {
2197
+ return [
2198
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2199
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2200
+ ];
2201
+ }).s("mediapackagev2", "CreateOriginEndpoint", {}).n("MediaPackageV2Client", "CreateOriginEndpointCommand").f(void 0, void 0).ser(se_CreateOriginEndpointCommand).de(de_CreateOriginEndpointCommand).build() {
2202
+ };
2203
+ __name(_CreateOriginEndpointCommand, "CreateOriginEndpointCommand");
2204
+ var CreateOriginEndpointCommand = _CreateOriginEndpointCommand;
2205
+
2206
+ // src/commands/DeleteChannelCommand.ts
2207
+
2208
+
2209
+
2210
+
2211
+ var _DeleteChannelCommand = class _DeleteChannelCommand extends import_smithy_client.Command.classBuilder().ep({
2212
+ ...commonParams
2213
+ }).m(function(Command, cs, config, o) {
2214
+ return [
2215
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2216
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2217
+ ];
2218
+ }).s("mediapackagev2", "DeleteChannel", {}).n("MediaPackageV2Client", "DeleteChannelCommand").f(void 0, void 0).ser(se_DeleteChannelCommand).de(de_DeleteChannelCommand).build() {
2219
+ };
2220
+ __name(_DeleteChannelCommand, "DeleteChannelCommand");
2221
+ var DeleteChannelCommand = _DeleteChannelCommand;
2222
+
2223
+ // src/commands/DeleteChannelGroupCommand.ts
2224
+
2225
+
2226
+
2227
+
2228
+ var _DeleteChannelGroupCommand = class _DeleteChannelGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2229
+ ...commonParams
2230
+ }).m(function(Command, cs, config, o) {
2231
+ return [
2232
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2233
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2234
+ ];
2235
+ }).s("mediapackagev2", "DeleteChannelGroup", {}).n("MediaPackageV2Client", "DeleteChannelGroupCommand").f(void 0, void 0).ser(se_DeleteChannelGroupCommand).de(de_DeleteChannelGroupCommand).build() {
2236
+ };
2237
+ __name(_DeleteChannelGroupCommand, "DeleteChannelGroupCommand");
2238
+ var DeleteChannelGroupCommand = _DeleteChannelGroupCommand;
2239
+
2240
+ // src/commands/DeleteChannelPolicyCommand.ts
2241
+
2242
+
2243
+
2244
+
2245
+ var _DeleteChannelPolicyCommand = class _DeleteChannelPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2246
+ ...commonParams
2247
+ }).m(function(Command, cs, config, o) {
2248
+ return [
2249
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2250
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2251
+ ];
2252
+ }).s("mediapackagev2", "DeleteChannelPolicy", {}).n("MediaPackageV2Client", "DeleteChannelPolicyCommand").f(void 0, void 0).ser(se_DeleteChannelPolicyCommand).de(de_DeleteChannelPolicyCommand).build() {
2253
+ };
2254
+ __name(_DeleteChannelPolicyCommand, "DeleteChannelPolicyCommand");
2255
+ var DeleteChannelPolicyCommand = _DeleteChannelPolicyCommand;
2256
+
2257
+ // src/commands/DeleteOriginEndpointCommand.ts
2258
+
2259
+
2260
+
2261
+
2262
+ var _DeleteOriginEndpointCommand = class _DeleteOriginEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
2263
+ ...commonParams
2264
+ }).m(function(Command, cs, config, o) {
2265
+ return [
2266
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2267
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2268
+ ];
2269
+ }).s("mediapackagev2", "DeleteOriginEndpoint", {}).n("MediaPackageV2Client", "DeleteOriginEndpointCommand").f(void 0, void 0).ser(se_DeleteOriginEndpointCommand).de(de_DeleteOriginEndpointCommand).build() {
2270
+ };
2271
+ __name(_DeleteOriginEndpointCommand, "DeleteOriginEndpointCommand");
2272
+ var DeleteOriginEndpointCommand = _DeleteOriginEndpointCommand;
2273
+
2274
+ // src/commands/DeleteOriginEndpointPolicyCommand.ts
2275
+
2276
+
2277
+
2278
+
2279
+ var _DeleteOriginEndpointPolicyCommand = class _DeleteOriginEndpointPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2280
+ ...commonParams
2281
+ }).m(function(Command, cs, config, o) {
2282
+ return [
2283
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2284
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2285
+ ];
2286
+ }).s("mediapackagev2", "DeleteOriginEndpointPolicy", {}).n("MediaPackageV2Client", "DeleteOriginEndpointPolicyCommand").f(void 0, void 0).ser(se_DeleteOriginEndpointPolicyCommand).de(de_DeleteOriginEndpointPolicyCommand).build() {
2287
+ };
2288
+ __name(_DeleteOriginEndpointPolicyCommand, "DeleteOriginEndpointPolicyCommand");
2289
+ var DeleteOriginEndpointPolicyCommand = _DeleteOriginEndpointPolicyCommand;
2290
+
2291
+ // src/commands/GetChannelCommand.ts
2292
+
2293
+
2294
+
2295
+
2296
+ var _GetChannelCommand = class _GetChannelCommand extends import_smithy_client.Command.classBuilder().ep({
2297
+ ...commonParams
2298
+ }).m(function(Command, cs, config, o) {
2299
+ return [
2300
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2301
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2302
+ ];
2303
+ }).s("mediapackagev2", "GetChannel", {}).n("MediaPackageV2Client", "GetChannelCommand").f(void 0, void 0).ser(se_GetChannelCommand).de(de_GetChannelCommand).build() {
2304
+ };
2305
+ __name(_GetChannelCommand, "GetChannelCommand");
2306
+ var GetChannelCommand = _GetChannelCommand;
2307
+
2308
+ // src/commands/GetChannelGroupCommand.ts
2309
+
2310
+
2311
+
2312
+
2313
+ var _GetChannelGroupCommand = class _GetChannelGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2314
+ ...commonParams
2315
+ }).m(function(Command, cs, config, o) {
2316
+ return [
2317
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2318
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2319
+ ];
2320
+ }).s("mediapackagev2", "GetChannelGroup", {}).n("MediaPackageV2Client", "GetChannelGroupCommand").f(void 0, void 0).ser(se_GetChannelGroupCommand).de(de_GetChannelGroupCommand).build() {
2321
+ };
2322
+ __name(_GetChannelGroupCommand, "GetChannelGroupCommand");
2323
+ var GetChannelGroupCommand = _GetChannelGroupCommand;
2324
+
2325
+ // src/commands/GetChannelPolicyCommand.ts
2326
+
2327
+
2328
+
2329
+
2330
+ var _GetChannelPolicyCommand = class _GetChannelPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2331
+ ...commonParams
2332
+ }).m(function(Command, cs, config, o) {
2333
+ return [
2334
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2335
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2336
+ ];
2337
+ }).s("mediapackagev2", "GetChannelPolicy", {}).n("MediaPackageV2Client", "GetChannelPolicyCommand").f(void 0, void 0).ser(se_GetChannelPolicyCommand).de(de_GetChannelPolicyCommand).build() {
2338
+ };
2339
+ __name(_GetChannelPolicyCommand, "GetChannelPolicyCommand");
2340
+ var GetChannelPolicyCommand = _GetChannelPolicyCommand;
2341
+
2342
+ // src/commands/GetOriginEndpointCommand.ts
2343
+
2344
+
2345
+
2346
+
2347
+ var _GetOriginEndpointCommand = class _GetOriginEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
2348
+ ...commonParams
2349
+ }).m(function(Command, cs, config, o) {
2350
+ return [
2351
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2352
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2353
+ ];
2354
+ }).s("mediapackagev2", "GetOriginEndpoint", {}).n("MediaPackageV2Client", "GetOriginEndpointCommand").f(void 0, void 0).ser(se_GetOriginEndpointCommand).de(de_GetOriginEndpointCommand).build() {
2355
+ };
2356
+ __name(_GetOriginEndpointCommand, "GetOriginEndpointCommand");
2357
+ var GetOriginEndpointCommand = _GetOriginEndpointCommand;
2358
+
2359
+ // src/commands/GetOriginEndpointPolicyCommand.ts
2360
+
2361
+
2362
+
2363
+
2364
+ var _GetOriginEndpointPolicyCommand = class _GetOriginEndpointPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2365
+ ...commonParams
2366
+ }).m(function(Command, cs, config, o) {
2367
+ return [
2368
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2369
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2370
+ ];
2371
+ }).s("mediapackagev2", "GetOriginEndpointPolicy", {}).n("MediaPackageV2Client", "GetOriginEndpointPolicyCommand").f(void 0, void 0).ser(se_GetOriginEndpointPolicyCommand).de(de_GetOriginEndpointPolicyCommand).build() {
2372
+ };
2373
+ __name(_GetOriginEndpointPolicyCommand, "GetOriginEndpointPolicyCommand");
2374
+ var GetOriginEndpointPolicyCommand = _GetOriginEndpointPolicyCommand;
2375
+
2376
+ // src/commands/ListChannelGroupsCommand.ts
2377
+
2378
+
2379
+
2380
+
2381
+ var _ListChannelGroupsCommand = class _ListChannelGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
2382
+ ...commonParams
2383
+ }).m(function(Command, cs, config, o) {
2384
+ return [
2385
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2386
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2387
+ ];
2388
+ }).s("mediapackagev2", "ListChannelGroups", {}).n("MediaPackageV2Client", "ListChannelGroupsCommand").f(void 0, void 0).ser(se_ListChannelGroupsCommand).de(de_ListChannelGroupsCommand).build() {
2389
+ };
2390
+ __name(_ListChannelGroupsCommand, "ListChannelGroupsCommand");
2391
+ var ListChannelGroupsCommand = _ListChannelGroupsCommand;
2392
+
2393
+ // src/commands/ListChannelsCommand.ts
2394
+
2395
+
2396
+
2397
+
2398
+ var _ListChannelsCommand = class _ListChannelsCommand extends import_smithy_client.Command.classBuilder().ep({
2399
+ ...commonParams
2400
+ }).m(function(Command, cs, config, o) {
2401
+ return [
2402
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2403
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2404
+ ];
2405
+ }).s("mediapackagev2", "ListChannels", {}).n("MediaPackageV2Client", "ListChannelsCommand").f(void 0, void 0).ser(se_ListChannelsCommand).de(de_ListChannelsCommand).build() {
2406
+ };
2407
+ __name(_ListChannelsCommand, "ListChannelsCommand");
2408
+ var ListChannelsCommand = _ListChannelsCommand;
2409
+
2410
+ // src/commands/ListOriginEndpointsCommand.ts
2411
+
2412
+
2413
+
2414
+
2415
+ var _ListOriginEndpointsCommand = class _ListOriginEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
2416
+ ...commonParams
2417
+ }).m(function(Command, cs, config, o) {
2418
+ return [
2419
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2420
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2421
+ ];
2422
+ }).s("mediapackagev2", "ListOriginEndpoints", {}).n("MediaPackageV2Client", "ListOriginEndpointsCommand").f(void 0, void 0).ser(se_ListOriginEndpointsCommand).de(de_ListOriginEndpointsCommand).build() {
2423
+ };
2424
+ __name(_ListOriginEndpointsCommand, "ListOriginEndpointsCommand");
2425
+ var ListOriginEndpointsCommand = _ListOriginEndpointsCommand;
2426
+
2427
+ // src/commands/ListTagsForResourceCommand.ts
2428
+
2429
+
2430
+
2431
+
2432
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2433
+ ...commonParams
2434
+ }).m(function(Command, cs, config, o) {
2435
+ return [
2436
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2437
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2438
+ ];
2439
+ }).s("mediapackagev2", "ListTagsForResource", {}).n("MediaPackageV2Client", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2440
+ };
2441
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2442
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2443
+
2444
+ // src/commands/PutChannelPolicyCommand.ts
2445
+
2446
+
2447
+
2448
+
2449
+ var _PutChannelPolicyCommand = class _PutChannelPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2450
+ ...commonParams
2451
+ }).m(function(Command, cs, config, o) {
2452
+ return [
2453
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2454
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2455
+ ];
2456
+ }).s("mediapackagev2", "PutChannelPolicy", {}).n("MediaPackageV2Client", "PutChannelPolicyCommand").f(void 0, void 0).ser(se_PutChannelPolicyCommand).de(de_PutChannelPolicyCommand).build() {
2457
+ };
2458
+ __name(_PutChannelPolicyCommand, "PutChannelPolicyCommand");
2459
+ var PutChannelPolicyCommand = _PutChannelPolicyCommand;
2460
+
2461
+ // src/commands/PutOriginEndpointPolicyCommand.ts
2462
+
2463
+
2464
+
2465
+
2466
+ var _PutOriginEndpointPolicyCommand = class _PutOriginEndpointPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2467
+ ...commonParams
2468
+ }).m(function(Command, cs, config, o) {
2469
+ return [
2470
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2471
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2472
+ ];
2473
+ }).s("mediapackagev2", "PutOriginEndpointPolicy", {}).n("MediaPackageV2Client", "PutOriginEndpointPolicyCommand").f(void 0, void 0).ser(se_PutOriginEndpointPolicyCommand).de(de_PutOriginEndpointPolicyCommand).build() {
2474
+ };
2475
+ __name(_PutOriginEndpointPolicyCommand, "PutOriginEndpointPolicyCommand");
2476
+ var PutOriginEndpointPolicyCommand = _PutOriginEndpointPolicyCommand;
2477
+
2478
+ // src/commands/TagResourceCommand.ts
2479
+
2480
+
2481
+
2482
+
2483
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2484
+ ...commonParams
2485
+ }).m(function(Command, cs, config, o) {
2486
+ return [
2487
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2488
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2489
+ ];
2490
+ }).s("mediapackagev2", "TagResource", {}).n("MediaPackageV2Client", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2491
+ };
2492
+ __name(_TagResourceCommand, "TagResourceCommand");
2493
+ var TagResourceCommand = _TagResourceCommand;
2494
+
2495
+ // src/commands/UntagResourceCommand.ts
2496
+
2497
+
2498
+
2499
+
2500
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2501
+ ...commonParams
2502
+ }).m(function(Command, cs, config, o) {
2503
+ return [
2504
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2505
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2506
+ ];
2507
+ }).s("mediapackagev2", "UntagResource", {}).n("MediaPackageV2Client", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2508
+ };
2509
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2510
+ var UntagResourceCommand = _UntagResourceCommand;
2511
+
2512
+ // src/commands/UpdateChannelCommand.ts
2513
+
2514
+
2515
+
2516
+
2517
+ var _UpdateChannelCommand = class _UpdateChannelCommand extends import_smithy_client.Command.classBuilder().ep({
2518
+ ...commonParams
2519
+ }).m(function(Command, cs, config, o) {
2520
+ return [
2521
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2522
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2523
+ ];
2524
+ }).s("mediapackagev2", "UpdateChannel", {}).n("MediaPackageV2Client", "UpdateChannelCommand").f(void 0, void 0).ser(se_UpdateChannelCommand).de(de_UpdateChannelCommand).build() {
2525
+ };
2526
+ __name(_UpdateChannelCommand, "UpdateChannelCommand");
2527
+ var UpdateChannelCommand = _UpdateChannelCommand;
2528
+
2529
+ // src/commands/UpdateChannelGroupCommand.ts
2530
+
2531
+
2532
+
2533
+
2534
+ var _UpdateChannelGroupCommand = class _UpdateChannelGroupCommand extends import_smithy_client.Command.classBuilder().ep({
2535
+ ...commonParams
2536
+ }).m(function(Command, cs, config, o) {
2537
+ return [
2538
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2539
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2540
+ ];
2541
+ }).s("mediapackagev2", "UpdateChannelGroup", {}).n("MediaPackageV2Client", "UpdateChannelGroupCommand").f(void 0, void 0).ser(se_UpdateChannelGroupCommand).de(de_UpdateChannelGroupCommand).build() {
2542
+ };
2543
+ __name(_UpdateChannelGroupCommand, "UpdateChannelGroupCommand");
2544
+ var UpdateChannelGroupCommand = _UpdateChannelGroupCommand;
2545
+
2546
+ // src/commands/UpdateOriginEndpointCommand.ts
2547
+
2548
+
2549
+
2550
+
2551
+ var _UpdateOriginEndpointCommand = class _UpdateOriginEndpointCommand extends import_smithy_client.Command.classBuilder().ep({
2552
+ ...commonParams
2553
+ }).m(function(Command, cs, config, o) {
2554
+ return [
2555
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2556
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2557
+ ];
2558
+ }).s("mediapackagev2", "UpdateOriginEndpoint", {}).n("MediaPackageV2Client", "UpdateOriginEndpointCommand").f(void 0, void 0).ser(se_UpdateOriginEndpointCommand).de(de_UpdateOriginEndpointCommand).build() {
2559
+ };
2560
+ __name(_UpdateOriginEndpointCommand, "UpdateOriginEndpointCommand");
2561
+ var UpdateOriginEndpointCommand = _UpdateOriginEndpointCommand;
2562
+
2563
+ // src/MediaPackageV2.ts
2564
+ var commands = {
2565
+ CreateChannelCommand,
2566
+ CreateChannelGroupCommand,
2567
+ CreateOriginEndpointCommand,
2568
+ DeleteChannelCommand,
2569
+ DeleteChannelGroupCommand,
2570
+ DeleteChannelPolicyCommand,
2571
+ DeleteOriginEndpointCommand,
2572
+ DeleteOriginEndpointPolicyCommand,
2573
+ GetChannelCommand,
2574
+ GetChannelGroupCommand,
2575
+ GetChannelPolicyCommand,
2576
+ GetOriginEndpointCommand,
2577
+ GetOriginEndpointPolicyCommand,
2578
+ ListChannelGroupsCommand,
2579
+ ListChannelsCommand,
2580
+ ListOriginEndpointsCommand,
2581
+ ListTagsForResourceCommand,
2582
+ PutChannelPolicyCommand,
2583
+ PutOriginEndpointPolicyCommand,
2584
+ TagResourceCommand,
2585
+ UntagResourceCommand,
2586
+ UpdateChannelCommand,
2587
+ UpdateChannelGroupCommand,
2588
+ UpdateOriginEndpointCommand
2589
+ };
2590
+ var _MediaPackageV2 = class _MediaPackageV2 extends MediaPackageV2Client {
2591
+ };
2592
+ __name(_MediaPackageV2, "MediaPackageV2");
2593
+ var MediaPackageV2 = _MediaPackageV2;
2594
+ (0, import_smithy_client.createAggregatedClient)(commands, MediaPackageV2);
2595
+
2596
+ // src/pagination/ListChannelGroupsPaginator.ts
2597
+
2598
+ var paginateListChannelGroups = (0, import_core.createPaginator)(MediaPackageV2Client, ListChannelGroupsCommand, "NextToken", "NextToken", "MaxResults");
2599
+
2600
+ // src/pagination/ListChannelsPaginator.ts
2601
+
2602
+ var paginateListChannels = (0, import_core.createPaginator)(MediaPackageV2Client, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
2603
+
2604
+ // src/pagination/ListOriginEndpointsPaginator.ts
2605
+
2606
+ var paginateListOriginEndpoints = (0, import_core.createPaginator)(MediaPackageV2Client, ListOriginEndpointsCommand, "NextToken", "NextToken", "MaxResults");
2607
+
2608
+ // src/index.ts
2609
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2610
+ // Annotate the CommonJS export names for ESM import in node:
2611
+ 0 && (module.exports = {
2612
+ AccessDeniedException,
2613
+ AdMarkerHls,
2614
+ CmafEncryptionMethod,
2615
+ ConflictException,
2616
+ ConflictExceptionType,
2617
+ ContainerType,
2618
+ CreateChannelCommand,
2619
+ CreateChannelGroupCommand,
2620
+ CreateOriginEndpointCommand,
2621
+ DeleteChannelCommand,
2622
+ DeleteChannelGroupCommand,
2623
+ DeleteChannelPolicyCommand,
2624
+ DeleteOriginEndpointCommand,
2625
+ DeleteOriginEndpointPolicyCommand,
2626
+ DrmSystem,
2627
+ GetChannelCommand,
2628
+ GetChannelGroupCommand,
2629
+ GetChannelPolicyCommand,
2630
+ GetOriginEndpointCommand,
2631
+ GetOriginEndpointPolicyCommand,
2632
+ InternalServerException,
2633
+ ListChannelGroupsCommand,
2634
+ ListChannelsCommand,
2635
+ ListOriginEndpointsCommand,
2636
+ ListTagsForResourceCommand,
2637
+ MediaPackageV2,
2638
+ MediaPackageV2Client,
2639
+ MediaPackageV2ServiceException,
2640
+ PresetSpeke20Audio,
2641
+ PresetSpeke20Video,
2642
+ PutChannelPolicyCommand,
2643
+ PutOriginEndpointPolicyCommand,
2644
+ ResourceNotFoundException,
2645
+ ResourceTypeNotFound,
2646
+ ScteFilter,
2647
+ ServiceQuotaExceededException,
2648
+ TagResourceCommand,
2649
+ ThrottlingException,
2650
+ TsEncryptionMethod,
2651
+ UntagResourceCommand,
2652
+ UpdateChannelCommand,
2653
+ UpdateChannelGroupCommand,
2654
+ UpdateOriginEndpointCommand,
2655
+ ValidationException,
2656
+ ValidationExceptionType,
2657
+ __Client,
2658
+ paginateListChannelGroups,
2659
+ paginateListChannels,
2660
+ paginateListOriginEndpoints
2661
+ });