@aws-sdk/client-mediapackage-vod 3.899.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1566 -1683
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,1715 +1,1598 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AdMarkers: () => AdMarkers,
25
- ConfigureLogsCommand: () => ConfigureLogsCommand,
26
- CreateAssetCommand: () => CreateAssetCommand,
27
- CreatePackagingConfigurationCommand: () => CreatePackagingConfigurationCommand,
28
- CreatePackagingGroupCommand: () => CreatePackagingGroupCommand,
29
- DeleteAssetCommand: () => DeleteAssetCommand,
30
- DeletePackagingConfigurationCommand: () => DeletePackagingConfigurationCommand,
31
- DeletePackagingGroupCommand: () => DeletePackagingGroupCommand,
32
- DescribeAssetCommand: () => DescribeAssetCommand,
33
- DescribePackagingConfigurationCommand: () => DescribePackagingConfigurationCommand,
34
- DescribePackagingGroupCommand: () => DescribePackagingGroupCommand,
35
- EncryptionMethod: () => EncryptionMethod,
36
- ForbiddenException: () => ForbiddenException,
37
- InternalServerErrorException: () => InternalServerErrorException,
38
- ListAssetsCommand: () => ListAssetsCommand,
39
- ListPackagingConfigurationsCommand: () => ListPackagingConfigurationsCommand,
40
- ListPackagingGroupsCommand: () => ListPackagingGroupsCommand,
41
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
42
- ManifestLayout: () => ManifestLayout,
43
- MediaPackageVod: () => MediaPackageVod,
44
- MediaPackageVodClient: () => MediaPackageVodClient,
45
- MediaPackageVodServiceException: () => MediaPackageVodServiceException,
46
- NotFoundException: () => NotFoundException,
47
- PresetSpeke20Audio: () => PresetSpeke20Audio,
48
- PresetSpeke20Video: () => PresetSpeke20Video,
49
- Profile: () => Profile,
50
- ScteMarkersSource: () => ScteMarkersSource,
51
- SegmentTemplateFormat: () => SegmentTemplateFormat,
52
- ServiceUnavailableException: () => ServiceUnavailableException,
53
- StreamOrder: () => StreamOrder,
54
- TagResourceCommand: () => TagResourceCommand,
55
- TooManyRequestsException: () => TooManyRequestsException,
56
- UnprocessableEntityException: () => UnprocessableEntityException,
57
- UntagResourceCommand: () => UntagResourceCommand,
58
- UpdatePackagingGroupCommand: () => UpdatePackagingGroupCommand,
59
- __Client: () => import_smithy_client.Client,
60
- __PeriodTriggersElement: () => __PeriodTriggersElement,
61
- paginateListAssets: () => paginateListAssets,
62
- paginateListPackagingConfigurations: () => paginateListPackagingConfigurations,
63
- paginateListPackagingGroups: () => paginateListPackagingGroups
64
- });
65
- module.exports = __toCommonJS(index_exports);
66
-
67
- // src/MediaPackageVodClient.ts
68
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
69
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
70
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
71
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
72
- var import_config_resolver = require("@smithy/config-resolver");
73
- var import_core = require("@smithy/core");
74
- var import_middleware_content_length = require("@smithy/middleware-content-length");
75
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
76
- var import_middleware_retry = require("@smithy/middleware-retry");
77
-
78
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
79
-
80
- // src/endpoint/EndpointParameters.ts
81
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
82
- return Object.assign(options, {
83
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
84
- useFipsEndpoint: options.useFipsEndpoint ?? false,
85
- defaultSigningName: "mediapackage-vod"
86
- });
87
- }, "resolveClientEndpointParameters");
88
- var commonParams = {
89
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
90
- Endpoint: { type: "builtInParams", name: "endpoint" },
91
- Region: { type: "builtInParams", name: "region" },
92
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "mediapackage-vod",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
93
32
  };
94
33
 
95
- // src/MediaPackageVodClient.ts
96
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
97
72
 
98
- // src/runtimeExtensions.ts
99
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
100
- var import_protocol_http = require("@smithy/protocol-http");
101
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
102
78
 
103
- // src/auth/httpAuthExtensionConfiguration.ts
104
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
105
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
106
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
107
- let _credentials = runtimeConfig.credentials;
108
- return {
109
- setHttpAuthScheme(httpAuthScheme) {
110
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
111
- if (index === -1) {
112
- _httpAuthSchemes.push(httpAuthScheme);
113
- } else {
114
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
115
- }
116
- },
117
- httpAuthSchemes() {
118
- return _httpAuthSchemes;
119
- },
120
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
121
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
122
- },
123
- httpAuthSchemeProvider() {
124
- return _httpAuthSchemeProvider;
125
- },
126
- setCredentials(credentials) {
127
- _credentials = credentials;
128
- },
129
- credentials() {
130
- return _credentials;
79
+ class MediaPackageVodClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMediaPackageVodHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
131
107
  }
132
- };
133
- }, "getHttpAuthExtensionConfiguration");
134
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
135
- return {
136
- httpAuthSchemes: config.httpAuthSchemes(),
137
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
138
- credentials: config.credentials()
139
- };
140
- }, "resolveHttpAuthRuntimeConfig");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
141
112
 
142
- // src/runtimeExtensions.ts
143
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
144
- const extensionConfiguration = Object.assign(
145
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
146
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
147
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
148
- getHttpAuthExtensionConfiguration(runtimeConfig)
149
- );
150
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
151
- return Object.assign(
152
- runtimeConfig,
153
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
154
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
155
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
156
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
157
- );
158
- }, "resolveRuntimeExtensions");
113
+ class MediaPackageVodServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, MediaPackageVodServiceException.prototype);
117
+ }
118
+ }
159
119
 
160
- // src/MediaPackageVodClient.ts
161
- var MediaPackageVodClient = class extends import_smithy_client.Client {
162
- static {
163
- __name(this, "MediaPackageVodClient");
164
- }
165
- /**
166
- * The resolved configuration of MediaPackageVodClient class. This is resolved and normalized from the {@link MediaPackageVodClientConfig | constructor configuration interface}.
167
- */
168
- config;
169
- constructor(...[configuration]) {
170
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
171
- super(_config_0);
172
- this.initConfig = _config_0;
173
- const _config_1 = resolveClientEndpointParameters(_config_0);
174
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
175
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
176
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
177
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
178
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
179
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
180
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
181
- this.config = _config_8;
182
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
183
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
184
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
185
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
186
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
187
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
188
- this.middlewareStack.use(
189
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
190
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMediaPackageVodHttpAuthSchemeParametersProvider,
191
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
192
- "aws.auth#sigv4": config.credentials
193
- }), "identityProviderConfigProvider")
194
- })
195
- );
196
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
197
- }
198
- /**
199
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
200
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
201
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
202
- */
203
- destroy() {
204
- super.destroy();
205
- }
120
+ const __PeriodTriggersElement = {
121
+ ADS: "ADS",
206
122
  };
207
-
208
- // src/MediaPackageVod.ts
209
-
210
-
211
- // src/commands/ConfigureLogsCommand.ts
212
-
213
- var import_middleware_serde = require("@smithy/middleware-serde");
214
-
215
-
216
- // src/protocols/Aws_restJson1.ts
217
- var import_core2 = require("@aws-sdk/core");
218
-
219
-
220
-
221
- // src/models/MediaPackageVodServiceException.ts
222
-
223
- var MediaPackageVodServiceException = class _MediaPackageVodServiceException extends import_smithy_client.ServiceException {
224
- static {
225
- __name(this, "MediaPackageVodServiceException");
226
- }
227
- /**
228
- * @internal
229
- */
230
- constructor(options) {
231
- super(options);
232
- Object.setPrototypeOf(this, _MediaPackageVodServiceException.prototype);
233
- }
123
+ const ManifestLayout = {
124
+ COMPACT: "COMPACT",
125
+ FULL: "FULL",
234
126
  };
235
-
236
- // src/models/models_0.ts
237
- var __PeriodTriggersElement = {
238
- ADS: "ADS"
239
- };
240
- var ManifestLayout = {
241
- COMPACT: "COMPACT",
242
- FULL: "FULL"
243
- };
244
- var Profile = {
245
- HBBTV_1_5: "HBBTV_1_5",
246
- NONE: "NONE"
247
- };
248
- var ScteMarkersSource = {
249
- MANIFEST: "MANIFEST",
250
- SEGMENTS: "SEGMENTS"
251
- };
252
- var StreamOrder = {
253
- ORIGINAL: "ORIGINAL",
254
- VIDEO_BITRATE_ASCENDING: "VIDEO_BITRATE_ASCENDING",
255
- VIDEO_BITRATE_DESCENDING: "VIDEO_BITRATE_DESCENDING"
256
- };
257
- var AdMarkers = {
258
- NONE: "NONE",
259
- PASSTHROUGH: "PASSTHROUGH",
260
- SCTE35_ENHANCED: "SCTE35_ENHANCED"
261
- };
262
- var PresetSpeke20Audio = {
263
- PRESET_AUDIO_1: "PRESET-AUDIO-1",
264
- PRESET_AUDIO_2: "PRESET-AUDIO-2",
265
- PRESET_AUDIO_3: "PRESET-AUDIO-3",
266
- SHARED: "SHARED",
267
- UNENCRYPTED: "UNENCRYPTED"
268
- };
269
- var PresetSpeke20Video = {
270
- PRESET_VIDEO_1: "PRESET-VIDEO-1",
271
- PRESET_VIDEO_2: "PRESET-VIDEO-2",
272
- PRESET_VIDEO_3: "PRESET-VIDEO-3",
273
- PRESET_VIDEO_4: "PRESET-VIDEO-4",
274
- PRESET_VIDEO_5: "PRESET-VIDEO-5",
275
- PRESET_VIDEO_6: "PRESET-VIDEO-6",
276
- PRESET_VIDEO_7: "PRESET-VIDEO-7",
277
- PRESET_VIDEO_8: "PRESET-VIDEO-8",
278
- SHARED: "SHARED",
279
- UNENCRYPTED: "UNENCRYPTED"
280
- };
281
- var SegmentTemplateFormat = {
282
- NUMBER_WITH_DURATION: "NUMBER_WITH_DURATION",
283
- NUMBER_WITH_TIMELINE: "NUMBER_WITH_TIMELINE",
284
- TIME_WITH_TIMELINE: "TIME_WITH_TIMELINE"
285
- };
286
- var EncryptionMethod = {
287
- AES_128: "AES_128",
288
- SAMPLE_AES: "SAMPLE_AES"
289
- };
290
- var ForbiddenException = class _ForbiddenException extends MediaPackageVodServiceException {
291
- static {
292
- __name(this, "ForbiddenException");
293
- }
294
- name = "ForbiddenException";
295
- $fault = "client";
296
- Message;
297
- /**
298
- * @internal
299
- */
300
- constructor(opts) {
301
- super({
302
- name: "ForbiddenException",
303
- $fault: "client",
304
- ...opts
305
- });
306
- Object.setPrototypeOf(this, _ForbiddenException.prototype);
307
- this.Message = opts.Message;
308
- }
309
- };
310
- var InternalServerErrorException = class _InternalServerErrorException extends MediaPackageVodServiceException {
311
- static {
312
- __name(this, "InternalServerErrorException");
313
- }
314
- name = "InternalServerErrorException";
315
- $fault = "server";
316
- Message;
317
- /**
318
- * @internal
319
- */
320
- constructor(opts) {
321
- super({
322
- name: "InternalServerErrorException",
323
- $fault: "server",
324
- ...opts
325
- });
326
- Object.setPrototypeOf(this, _InternalServerErrorException.prototype);
327
- this.Message = opts.Message;
328
- }
329
- };
330
- var NotFoundException = class _NotFoundException extends MediaPackageVodServiceException {
331
- static {
332
- __name(this, "NotFoundException");
333
- }
334
- name = "NotFoundException";
335
- $fault = "client";
336
- Message;
337
- /**
338
- * @internal
339
- */
340
- constructor(opts) {
341
- super({
342
- name: "NotFoundException",
343
- $fault: "client",
344
- ...opts
345
- });
346
- Object.setPrototypeOf(this, _NotFoundException.prototype);
347
- this.Message = opts.Message;
348
- }
349
- };
350
- var ServiceUnavailableException = class _ServiceUnavailableException extends MediaPackageVodServiceException {
351
- static {
352
- __name(this, "ServiceUnavailableException");
353
- }
354
- name = "ServiceUnavailableException";
355
- $fault = "server";
356
- Message;
357
- /**
358
- * @internal
359
- */
360
- constructor(opts) {
361
- super({
362
- name: "ServiceUnavailableException",
363
- $fault: "server",
364
- ...opts
365
- });
366
- Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
367
- this.Message = opts.Message;
368
- }
369
- };
370
- var TooManyRequestsException = class _TooManyRequestsException extends MediaPackageVodServiceException {
371
- static {
372
- __name(this, "TooManyRequestsException");
373
- }
374
- name = "TooManyRequestsException";
375
- $fault = "client";
376
- Message;
377
- /**
378
- * @internal
379
- */
380
- constructor(opts) {
381
- super({
382
- name: "TooManyRequestsException",
383
- $fault: "client",
384
- ...opts
385
- });
386
- Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
387
- this.Message = opts.Message;
388
- }
389
- };
390
- var UnprocessableEntityException = class _UnprocessableEntityException extends MediaPackageVodServiceException {
391
- static {
392
- __name(this, "UnprocessableEntityException");
393
- }
394
- name = "UnprocessableEntityException";
395
- $fault = "client";
396
- Message;
397
- /**
398
- * @internal
399
- */
400
- constructor(opts) {
401
- super({
402
- name: "UnprocessableEntityException",
403
- $fault: "client",
404
- ...opts
405
- });
406
- Object.setPrototypeOf(this, _UnprocessableEntityException.prototype);
407
- this.Message = opts.Message;
408
- }
127
+ const Profile = {
128
+ HBBTV_1_5: "HBBTV_1_5",
129
+ NONE: "NONE",
409
130
  };
410
-
411
- // src/protocols/Aws_restJson1.ts
412
- var se_ConfigureLogsCommand = /* @__PURE__ */ __name(async (input, context) => {
413
- const b = (0, import_core.requestBuilder)(input, context);
414
- const headers = {
415
- "content-type": "application/json"
416
- };
417
- b.bp("/packaging_groups/{Id}/configure_logs");
418
- b.p("Id", () => input.Id, "{Id}", false);
419
- let body;
420
- body = JSON.stringify(
421
- (0, import_smithy_client.take)(input, {
422
- egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`]
423
- })
424
- );
425
- b.m("PUT").h(headers).b(body);
426
- return b.build();
427
- }, "se_ConfigureLogsCommand");
428
- var se_CreateAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
429
- const b = (0, import_core.requestBuilder)(input, context);
430
- const headers = {
431
- "content-type": "application/json"
432
- };
433
- b.bp("/assets");
434
- let body;
435
- body = JSON.stringify(
436
- (0, import_smithy_client.take)(input, {
437
- id: [, , `Id`],
438
- packagingGroupId: [, , `PackagingGroupId`],
439
- resourceId: [, , `ResourceId`],
440
- sourceArn: [, , `SourceArn`],
441
- sourceRoleArn: [, , `SourceRoleArn`],
442
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
443
- })
444
- );
445
- b.m("POST").h(headers).b(body);
446
- return b.build();
447
- }, "se_CreateAssetCommand");
448
- var se_CreatePackagingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
449
- const b = (0, import_core.requestBuilder)(input, context);
450
- const headers = {
451
- "content-type": "application/json"
452
- };
453
- b.bp("/packaging_configurations");
454
- let body;
455
- body = JSON.stringify(
456
- (0, import_smithy_client.take)(input, {
457
- cmafPackage: [, (_) => se_CmafPackage(_, context), `CmafPackage`],
458
- dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
459
- hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
460
- id: [, , `Id`],
461
- mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
462
- packagingGroupId: [, , `PackagingGroupId`],
463
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
464
- })
465
- );
466
- b.m("POST").h(headers).b(body);
467
- return b.build();
468
- }, "se_CreatePackagingConfigurationCommand");
469
- var se_CreatePackagingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
470
- const b = (0, import_core.requestBuilder)(input, context);
471
- const headers = {
472
- "content-type": "application/json"
473
- };
474
- b.bp("/packaging_groups");
475
- let body;
476
- body = JSON.stringify(
477
- (0, import_smithy_client.take)(input, {
478
- authorization: [, (_) => se_Authorization(_, context), `Authorization`],
479
- egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
480
- id: [, , `Id`],
481
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
482
- })
483
- );
484
- b.m("POST").h(headers).b(body);
485
- return b.build();
486
- }, "se_CreatePackagingGroupCommand");
487
- var se_DeleteAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
488
- const b = (0, import_core.requestBuilder)(input, context);
489
- const headers = {};
490
- b.bp("/assets/{Id}");
491
- b.p("Id", () => input.Id, "{Id}", false);
492
- let body;
493
- b.m("DELETE").h(headers).b(body);
494
- return b.build();
495
- }, "se_DeleteAssetCommand");
496
- var se_DeletePackagingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
497
- const b = (0, import_core.requestBuilder)(input, context);
498
- const headers = {};
499
- b.bp("/packaging_configurations/{Id}");
500
- b.p("Id", () => input.Id, "{Id}", false);
501
- let body;
502
- b.m("DELETE").h(headers).b(body);
503
- return b.build();
504
- }, "se_DeletePackagingConfigurationCommand");
505
- var se_DeletePackagingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
506
- const b = (0, import_core.requestBuilder)(input, context);
507
- const headers = {};
508
- b.bp("/packaging_groups/{Id}");
509
- b.p("Id", () => input.Id, "{Id}", false);
510
- let body;
511
- b.m("DELETE").h(headers).b(body);
512
- return b.build();
513
- }, "se_DeletePackagingGroupCommand");
514
- var se_DescribeAssetCommand = /* @__PURE__ */ __name(async (input, context) => {
515
- const b = (0, import_core.requestBuilder)(input, context);
516
- const headers = {};
517
- b.bp("/assets/{Id}");
518
- b.p("Id", () => input.Id, "{Id}", false);
519
- let body;
520
- b.m("GET").h(headers).b(body);
521
- return b.build();
522
- }, "se_DescribeAssetCommand");
523
- var se_DescribePackagingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
524
- const b = (0, import_core.requestBuilder)(input, context);
525
- const headers = {};
526
- b.bp("/packaging_configurations/{Id}");
527
- b.p("Id", () => input.Id, "{Id}", false);
528
- let body;
529
- b.m("GET").h(headers).b(body);
530
- return b.build();
531
- }, "se_DescribePackagingConfigurationCommand");
532
- var se_DescribePackagingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
533
- const b = (0, import_core.requestBuilder)(input, context);
534
- const headers = {};
535
- b.bp("/packaging_groups/{Id}");
536
- b.p("Id", () => input.Id, "{Id}", false);
537
- let body;
538
- b.m("GET").h(headers).b(body);
539
- return b.build();
540
- }, "se_DescribePackagingGroupCommand");
541
- var se_ListAssetsCommand = /* @__PURE__ */ __name(async (input, context) => {
542
- const b = (0, import_core.requestBuilder)(input, context);
543
- const headers = {};
544
- b.bp("/assets");
545
- const query = (0, import_smithy_client.map)({
546
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
547
- [_nT]: [, input[_NT]],
548
- [_pGI]: [, input[_PGI]]
549
- });
550
- let body;
551
- b.m("GET").h(headers).q(query).b(body);
552
- return b.build();
553
- }, "se_ListAssetsCommand");
554
- var se_ListPackagingConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
555
- const b = (0, import_core.requestBuilder)(input, context);
556
- const headers = {};
557
- b.bp("/packaging_configurations");
558
- const query = (0, import_smithy_client.map)({
559
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
560
- [_nT]: [, input[_NT]],
561
- [_pGI]: [, input[_PGI]]
562
- });
563
- let body;
564
- b.m("GET").h(headers).q(query).b(body);
565
- return b.build();
566
- }, "se_ListPackagingConfigurationsCommand");
567
- var se_ListPackagingGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
568
- const b = (0, import_core.requestBuilder)(input, context);
569
- const headers = {};
570
- b.bp("/packaging_groups");
571
- const query = (0, import_smithy_client.map)({
572
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
573
- [_nT]: [, input[_NT]]
574
- });
575
- let body;
576
- b.m("GET").h(headers).q(query).b(body);
577
- return b.build();
578
- }, "se_ListPackagingGroupsCommand");
579
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
580
- const b = (0, import_core.requestBuilder)(input, context);
581
- const headers = {};
582
- b.bp("/tags/{ResourceArn}");
583
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
584
- let body;
585
- b.m("GET").h(headers).b(body);
586
- return b.build();
587
- }, "se_ListTagsForResourceCommand");
588
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
589
- const b = (0, import_core.requestBuilder)(input, context);
590
- const headers = {
591
- "content-type": "application/json"
592
- };
593
- b.bp("/tags/{ResourceArn}");
594
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
595
- let body;
596
- body = JSON.stringify(
597
- (0, import_smithy_client.take)(input, {
598
- tags: [, (_) => (0, import_smithy_client._json)(_), `Tags`]
599
- })
600
- );
601
- b.m("POST").h(headers).b(body);
602
- return b.build();
603
- }, "se_TagResourceCommand");
604
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
605
- const b = (0, import_core.requestBuilder)(input, context);
606
- const headers = {};
607
- b.bp("/tags/{ResourceArn}");
608
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
609
- const query = (0, import_smithy_client.map)({
610
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
611
- });
612
- let body;
613
- b.m("DELETE").h(headers).q(query).b(body);
614
- return b.build();
615
- }, "se_UntagResourceCommand");
616
- var se_UpdatePackagingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
617
- const b = (0, import_core.requestBuilder)(input, context);
618
- const headers = {
619
- "content-type": "application/json"
620
- };
621
- b.bp("/packaging_groups/{Id}");
622
- b.p("Id", () => input.Id, "{Id}", false);
623
- let body;
624
- body = JSON.stringify(
625
- (0, import_smithy_client.take)(input, {
626
- authorization: [, (_) => se_Authorization(_, context), `Authorization`]
627
- })
628
- );
629
- b.m("PUT").h(headers).b(body);
630
- return b.build();
631
- }, "se_UpdatePackagingGroupCommand");
632
- var de_ConfigureLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
633
- if (output.statusCode !== 200 && output.statusCode >= 300) {
634
- return de_CommandError(output, context);
635
- }
636
- const contents = (0, import_smithy_client.map)({
637
- $metadata: deserializeMetadata(output)
638
- });
639
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
640
- const doc = (0, import_smithy_client.take)(data, {
641
- Arn: [, import_smithy_client.expectString, `arn`],
642
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
643
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
644
- DomainName: [, import_smithy_client.expectString, `domainName`],
645
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
646
- Id: [, import_smithy_client.expectString, `id`],
647
- Tags: [, import_smithy_client._json, `tags`]
648
- });
649
- Object.assign(contents, doc);
650
- return contents;
651
- }, "de_ConfigureLogsCommand");
652
- var de_CreateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
653
- if (output.statusCode !== 200 && output.statusCode >= 300) {
654
- return de_CommandError(output, context);
655
- }
656
- const contents = (0, import_smithy_client.map)({
657
- $metadata: deserializeMetadata(output)
658
- });
659
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
660
- const doc = (0, import_smithy_client.take)(data, {
661
- Arn: [, import_smithy_client.expectString, `arn`],
662
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
663
- EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_, context), `egressEndpoints`],
664
- Id: [, import_smithy_client.expectString, `id`],
665
- PackagingGroupId: [, import_smithy_client.expectString, `packagingGroupId`],
666
- ResourceId: [, import_smithy_client.expectString, `resourceId`],
667
- SourceArn: [, import_smithy_client.expectString, `sourceArn`],
668
- SourceRoleArn: [, import_smithy_client.expectString, `sourceRoleArn`],
669
- Tags: [, import_smithy_client._json, `tags`]
670
- });
671
- Object.assign(contents, doc);
672
- return contents;
673
- }, "de_CreateAssetCommand");
674
- var de_CreatePackagingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
675
- if (output.statusCode !== 200 && output.statusCode >= 300) {
676
- return de_CommandError(output, context);
677
- }
678
- const contents = (0, import_smithy_client.map)({
679
- $metadata: deserializeMetadata(output)
680
- });
681
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
682
- const doc = (0, import_smithy_client.take)(data, {
683
- Arn: [, import_smithy_client.expectString, `arn`],
684
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
685
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
686
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
687
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
688
- Id: [, import_smithy_client.expectString, `id`],
689
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
690
- PackagingGroupId: [, import_smithy_client.expectString, `packagingGroupId`],
691
- Tags: [, import_smithy_client._json, `tags`]
692
- });
693
- Object.assign(contents, doc);
694
- return contents;
695
- }, "de_CreatePackagingConfigurationCommand");
696
- var de_CreatePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
697
- if (output.statusCode !== 200 && output.statusCode >= 300) {
698
- return de_CommandError(output, context);
699
- }
700
- const contents = (0, import_smithy_client.map)({
701
- $metadata: deserializeMetadata(output)
702
- });
703
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
704
- const doc = (0, import_smithy_client.take)(data, {
705
- Arn: [, import_smithy_client.expectString, `arn`],
706
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
707
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
708
- DomainName: [, import_smithy_client.expectString, `domainName`],
709
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
710
- Id: [, import_smithy_client.expectString, `id`],
711
- Tags: [, import_smithy_client._json, `tags`]
712
- });
713
- Object.assign(contents, doc);
714
- return contents;
715
- }, "de_CreatePackagingGroupCommand");
716
- var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
717
- if (output.statusCode !== 202 && output.statusCode >= 300) {
718
- return de_CommandError(output, context);
719
- }
720
- const contents = (0, import_smithy_client.map)({
721
- $metadata: deserializeMetadata(output)
722
- });
723
- await (0, import_smithy_client.collectBody)(output.body, context);
724
- return contents;
725
- }, "de_DeleteAssetCommand");
726
- var de_DeletePackagingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
727
- if (output.statusCode !== 202 && output.statusCode >= 300) {
728
- return de_CommandError(output, context);
729
- }
730
- const contents = (0, import_smithy_client.map)({
731
- $metadata: deserializeMetadata(output)
732
- });
733
- await (0, import_smithy_client.collectBody)(output.body, context);
734
- return contents;
735
- }, "de_DeletePackagingConfigurationCommand");
736
- var de_DeletePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
737
- if (output.statusCode !== 202 && output.statusCode >= 300) {
738
- return de_CommandError(output, context);
739
- }
740
- const contents = (0, import_smithy_client.map)({
741
- $metadata: deserializeMetadata(output)
742
- });
743
- await (0, import_smithy_client.collectBody)(output.body, context);
744
- return contents;
745
- }, "de_DeletePackagingGroupCommand");
746
- var de_DescribeAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
747
- if (output.statusCode !== 200 && output.statusCode >= 300) {
748
- return de_CommandError(output, context);
749
- }
750
- const contents = (0, import_smithy_client.map)({
751
- $metadata: deserializeMetadata(output)
752
- });
753
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
754
- const doc = (0, import_smithy_client.take)(data, {
755
- Arn: [, import_smithy_client.expectString, `arn`],
756
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
757
- EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_, context), `egressEndpoints`],
758
- Id: [, import_smithy_client.expectString, `id`],
759
- PackagingGroupId: [, import_smithy_client.expectString, `packagingGroupId`],
760
- ResourceId: [, import_smithy_client.expectString, `resourceId`],
761
- SourceArn: [, import_smithy_client.expectString, `sourceArn`],
762
- SourceRoleArn: [, import_smithy_client.expectString, `sourceRoleArn`],
763
- Tags: [, import_smithy_client._json, `tags`]
764
- });
765
- Object.assign(contents, doc);
766
- return contents;
767
- }, "de_DescribeAssetCommand");
768
- var de_DescribePackagingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
769
- if (output.statusCode !== 200 && output.statusCode >= 300) {
770
- return de_CommandError(output, context);
771
- }
772
- const contents = (0, import_smithy_client.map)({
773
- $metadata: deserializeMetadata(output)
774
- });
775
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
776
- const doc = (0, import_smithy_client.take)(data, {
777
- Arn: [, import_smithy_client.expectString, `arn`],
778
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
779
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
780
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
781
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
782
- Id: [, import_smithy_client.expectString, `id`],
783
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
784
- PackagingGroupId: [, import_smithy_client.expectString, `packagingGroupId`],
785
- Tags: [, import_smithy_client._json, `tags`]
786
- });
787
- Object.assign(contents, doc);
788
- return contents;
789
- }, "de_DescribePackagingConfigurationCommand");
790
- var de_DescribePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
791
- if (output.statusCode !== 200 && output.statusCode >= 300) {
792
- return de_CommandError(output, context);
793
- }
794
- const contents = (0, import_smithy_client.map)({
795
- $metadata: deserializeMetadata(output)
796
- });
797
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
798
- const doc = (0, import_smithy_client.take)(data, {
799
- ApproximateAssetCount: [, import_smithy_client.expectInt32, `approximateAssetCount`],
800
- Arn: [, import_smithy_client.expectString, `arn`],
801
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
802
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
803
- DomainName: [, import_smithy_client.expectString, `domainName`],
804
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
805
- Id: [, import_smithy_client.expectString, `id`],
806
- Tags: [, import_smithy_client._json, `tags`]
807
- });
808
- Object.assign(contents, doc);
809
- return contents;
810
- }, "de_DescribePackagingGroupCommand");
811
- var de_ListAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
812
- if (output.statusCode !== 200 && output.statusCode >= 300) {
813
- return de_CommandError(output, context);
814
- }
815
- const contents = (0, import_smithy_client.map)({
816
- $metadata: deserializeMetadata(output)
817
- });
818
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
819
- const doc = (0, import_smithy_client.take)(data, {
820
- Assets: [, (_) => de___listOfAssetShallow(_, context), `assets`],
821
- NextToken: [, import_smithy_client.expectString, `nextToken`]
822
- });
823
- Object.assign(contents, doc);
824
- return contents;
825
- }, "de_ListAssetsCommand");
826
- var de_ListPackagingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
827
- if (output.statusCode !== 200 && output.statusCode >= 300) {
828
- return de_CommandError(output, context);
829
- }
830
- const contents = (0, import_smithy_client.map)({
831
- $metadata: deserializeMetadata(output)
832
- });
833
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
834
- const doc = (0, import_smithy_client.take)(data, {
835
- NextToken: [, import_smithy_client.expectString, `nextToken`],
836
- PackagingConfigurations: [, (_) => de___listOfPackagingConfiguration(_, context), `packagingConfigurations`]
837
- });
838
- Object.assign(contents, doc);
839
- return contents;
840
- }, "de_ListPackagingConfigurationsCommand");
841
- var de_ListPackagingGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
842
- if (output.statusCode !== 200 && output.statusCode >= 300) {
843
- return de_CommandError(output, context);
844
- }
845
- const contents = (0, import_smithy_client.map)({
846
- $metadata: deserializeMetadata(output)
847
- });
848
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
849
- const doc = (0, import_smithy_client.take)(data, {
850
- NextToken: [, import_smithy_client.expectString, `nextToken`],
851
- PackagingGroups: [, (_) => de___listOfPackagingGroup(_, context), `packagingGroups`]
852
- });
853
- Object.assign(contents, doc);
854
- return contents;
855
- }, "de_ListPackagingGroupsCommand");
856
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
857
- if (output.statusCode !== 200 && output.statusCode >= 300) {
858
- return de_CommandError(output, context);
859
- }
860
- const contents = (0, import_smithy_client.map)({
861
- $metadata: deserializeMetadata(output)
862
- });
863
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
864
- const doc = (0, import_smithy_client.take)(data, {
865
- Tags: [, import_smithy_client._json, `tags`]
866
- });
867
- Object.assign(contents, doc);
868
- return contents;
869
- }, "de_ListTagsForResourceCommand");
870
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
871
- if (output.statusCode !== 204 && output.statusCode >= 300) {
872
- return de_CommandError(output, context);
873
- }
874
- const contents = (0, import_smithy_client.map)({
875
- $metadata: deserializeMetadata(output)
876
- });
877
- await (0, import_smithy_client.collectBody)(output.body, context);
878
- return contents;
879
- }, "de_TagResourceCommand");
880
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
881
- if (output.statusCode !== 204 && output.statusCode >= 300) {
882
- return de_CommandError(output, context);
883
- }
884
- const contents = (0, import_smithy_client.map)({
885
- $metadata: deserializeMetadata(output)
886
- });
887
- await (0, import_smithy_client.collectBody)(output.body, context);
888
- return contents;
889
- }, "de_UntagResourceCommand");
890
- var de_UpdatePackagingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
891
- if (output.statusCode !== 200 && output.statusCode >= 300) {
892
- return de_CommandError(output, context);
893
- }
894
- const contents = (0, import_smithy_client.map)({
895
- $metadata: deserializeMetadata(output)
896
- });
897
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
898
- const doc = (0, import_smithy_client.take)(data, {
899
- ApproximateAssetCount: [, import_smithy_client.expectInt32, `approximateAssetCount`],
900
- Arn: [, import_smithy_client.expectString, `arn`],
901
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
902
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
903
- DomainName: [, import_smithy_client.expectString, `domainName`],
904
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
905
- Id: [, import_smithy_client.expectString, `id`],
906
- Tags: [, import_smithy_client._json, `tags`]
907
- });
908
- Object.assign(contents, doc);
909
- return contents;
910
- }, "de_UpdatePackagingGroupCommand");
911
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
912
- const parsedOutput = {
913
- ...output,
914
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
915
- };
916
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
917
- switch (errorCode) {
918
- case "ForbiddenException":
919
- case "com.amazonaws.mediapackagevod#ForbiddenException":
920
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
921
- case "InternalServerErrorException":
922
- case "com.amazonaws.mediapackagevod#InternalServerErrorException":
923
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
924
- case "NotFoundException":
925
- case "com.amazonaws.mediapackagevod#NotFoundException":
926
- throw await de_NotFoundExceptionRes(parsedOutput, context);
927
- case "ServiceUnavailableException":
928
- case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
929
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
930
- case "TooManyRequestsException":
931
- case "com.amazonaws.mediapackagevod#TooManyRequestsException":
932
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
933
- case "UnprocessableEntityException":
934
- case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
935
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
936
- default:
937
- const parsedBody = parsedOutput.body;
938
- return throwDefaultError({
939
- output,
940
- parsedBody,
941
- errorCode
942
- });
943
- }
944
- }, "de_CommandError");
945
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaPackageVodServiceException);
946
- var de_ForbiddenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
947
- const contents = (0, import_smithy_client.map)({});
948
- const data = parsedOutput.body;
949
- const doc = (0, import_smithy_client.take)(data, {
950
- Message: [, import_smithy_client.expectString, `message`]
951
- });
952
- Object.assign(contents, doc);
953
- const exception = new ForbiddenException({
954
- $metadata: deserializeMetadata(parsedOutput),
955
- ...contents
956
- });
957
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
958
- }, "de_ForbiddenExceptionRes");
959
- var de_InternalServerErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
960
- const contents = (0, import_smithy_client.map)({});
961
- const data = parsedOutput.body;
962
- const doc = (0, import_smithy_client.take)(data, {
963
- Message: [, import_smithy_client.expectString, `message`]
964
- });
965
- Object.assign(contents, doc);
966
- const exception = new InternalServerErrorException({
967
- $metadata: deserializeMetadata(parsedOutput),
968
- ...contents
969
- });
970
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
971
- }, "de_InternalServerErrorExceptionRes");
972
- var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
973
- const contents = (0, import_smithy_client.map)({});
974
- const data = parsedOutput.body;
975
- const doc = (0, import_smithy_client.take)(data, {
976
- Message: [, import_smithy_client.expectString, `message`]
977
- });
978
- Object.assign(contents, doc);
979
- const exception = new NotFoundException({
980
- $metadata: deserializeMetadata(parsedOutput),
981
- ...contents
982
- });
983
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
984
- }, "de_NotFoundExceptionRes");
985
- var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
986
- const contents = (0, import_smithy_client.map)({});
987
- const data = parsedOutput.body;
988
- const doc = (0, import_smithy_client.take)(data, {
989
- Message: [, import_smithy_client.expectString, `message`]
990
- });
991
- Object.assign(contents, doc);
992
- const exception = new ServiceUnavailableException({
993
- $metadata: deserializeMetadata(parsedOutput),
994
- ...contents
995
- });
996
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
997
- }, "de_ServiceUnavailableExceptionRes");
998
- var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
999
- const contents = (0, import_smithy_client.map)({});
1000
- const data = parsedOutput.body;
1001
- const doc = (0, import_smithy_client.take)(data, {
1002
- Message: [, import_smithy_client.expectString, `message`]
1003
- });
1004
- Object.assign(contents, doc);
1005
- const exception = new TooManyRequestsException({
1006
- $metadata: deserializeMetadata(parsedOutput),
1007
- ...contents
1008
- });
1009
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1010
- }, "de_TooManyRequestsExceptionRes");
1011
- var de_UnprocessableEntityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1012
- const contents = (0, import_smithy_client.map)({});
1013
- const data = parsedOutput.body;
1014
- const doc = (0, import_smithy_client.take)(data, {
1015
- Message: [, import_smithy_client.expectString, `message`]
1016
- });
1017
- Object.assign(contents, doc);
1018
- const exception = new UnprocessableEntityException({
1019
- $metadata: deserializeMetadata(parsedOutput),
1020
- ...contents
1021
- });
1022
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1023
- }, "de_UnprocessableEntityExceptionRes");
1024
- var se___listOfDashManifest = /* @__PURE__ */ __name((input, context) => {
1025
- return input.filter((e) => e != null).map((entry) => {
1026
- return se_DashManifest(entry, context);
1027
- });
1028
- }, "se___listOfDashManifest");
1029
- var se___listOfHlsManifest = /* @__PURE__ */ __name((input, context) => {
1030
- return input.filter((e) => e != null).map((entry) => {
1031
- return se_HlsManifest(entry, context);
1032
- });
1033
- }, "se___listOfHlsManifest");
1034
- var se___listOfMssManifest = /* @__PURE__ */ __name((input, context) => {
1035
- return input.filter((e) => e != null).map((entry) => {
1036
- return se_MssManifest(entry, context);
1037
- });
1038
- }, "se___listOfMssManifest");
1039
- var se_Authorization = /* @__PURE__ */ __name((input, context) => {
1040
- return (0, import_smithy_client.take)(input, {
1041
- cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
1042
- secretsRoleArn: [, , `SecretsRoleArn`]
1043
- });
1044
- }, "se_Authorization");
1045
- var se_CmafEncryption = /* @__PURE__ */ __name((input, context) => {
1046
- return (0, import_smithy_client.take)(input, {
1047
- constantInitializationVector: [, , `ConstantInitializationVector`],
1048
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1049
- });
1050
- }, "se_CmafEncryption");
1051
- var se_CmafPackage = /* @__PURE__ */ __name((input, context) => {
1052
- return (0, import_smithy_client.take)(input, {
1053
- encryption: [, (_) => se_CmafEncryption(_, context), `Encryption`],
1054
- hlsManifests: [, (_) => se___listOfHlsManifest(_, context), `HlsManifests`],
1055
- includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
1056
- segmentDurationSeconds: [, , `SegmentDurationSeconds`]
1057
- });
1058
- }, "se_CmafPackage");
1059
- var se_DashEncryption = /* @__PURE__ */ __name((input, context) => {
1060
- return (0, import_smithy_client.take)(input, {
1061
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1062
- });
1063
- }, "se_DashEncryption");
1064
- var se_DashManifest = /* @__PURE__ */ __name((input, context) => {
1065
- return (0, import_smithy_client.take)(input, {
1066
- manifestLayout: [, , `ManifestLayout`],
1067
- manifestName: [, , `ManifestName`],
1068
- minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
1069
- profile: [, , `Profile`],
1070
- scteMarkersSource: [, , `ScteMarkersSource`],
1071
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`]
1072
- });
1073
- }, "se_DashManifest");
1074
- var se_DashPackage = /* @__PURE__ */ __name((input, context) => {
1075
- return (0, import_smithy_client.take)(input, {
1076
- dashManifests: [, (_) => se___listOfDashManifest(_, context), `DashManifests`],
1077
- encryption: [, (_) => se_DashEncryption(_, context), `Encryption`],
1078
- includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
1079
- includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1080
- periodTriggers: [, import_smithy_client._json, `PeriodTriggers`],
1081
- segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1082
- segmentTemplateFormat: [, , `SegmentTemplateFormat`]
1083
- });
1084
- }, "se_DashPackage");
1085
- var se_EgressAccessLogs = /* @__PURE__ */ __name((input, context) => {
1086
- return (0, import_smithy_client.take)(input, {
1087
- logGroupName: [, , `LogGroupName`]
1088
- });
1089
- }, "se_EgressAccessLogs");
1090
- var se_EncryptionContractConfiguration = /* @__PURE__ */ __name((input, context) => {
1091
- return (0, import_smithy_client.take)(input, {
1092
- presetSpeke20Audio: [, , `PresetSpeke20Audio`],
1093
- presetSpeke20Video: [, , `PresetSpeke20Video`]
1094
- });
1095
- }, "se_EncryptionContractConfiguration");
1096
- var se_HlsEncryption = /* @__PURE__ */ __name((input, context) => {
1097
- return (0, import_smithy_client.take)(input, {
1098
- constantInitializationVector: [, , `ConstantInitializationVector`],
1099
- encryptionMethod: [, , `EncryptionMethod`],
1100
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1101
- });
1102
- }, "se_HlsEncryption");
1103
- var se_HlsManifest = /* @__PURE__ */ __name((input, context) => {
1104
- return (0, import_smithy_client.take)(input, {
1105
- adMarkers: [, , `AdMarkers`],
1106
- includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1107
- manifestName: [, , `ManifestName`],
1108
- programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
1109
- repeatExtXKey: [, , `RepeatExtXKey`],
1110
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`]
1111
- });
1112
- }, "se_HlsManifest");
1113
- var se_HlsPackage = /* @__PURE__ */ __name((input, context) => {
1114
- return (0, import_smithy_client.take)(input, {
1115
- encryption: [, (_) => se_HlsEncryption(_, context), `Encryption`],
1116
- hlsManifests: [, (_) => se___listOfHlsManifest(_, context), `HlsManifests`],
1117
- includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
1118
- segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1119
- useAudioRenditionGroup: [, , `UseAudioRenditionGroup`]
1120
- });
1121
- }, "se_HlsPackage");
1122
- var se_MssEncryption = /* @__PURE__ */ __name((input, context) => {
1123
- return (0, import_smithy_client.take)(input, {
1124
- spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`]
1125
- });
1126
- }, "se_MssEncryption");
1127
- var se_MssManifest = /* @__PURE__ */ __name((input, context) => {
1128
- return (0, import_smithy_client.take)(input, {
1129
- manifestName: [, , `ManifestName`],
1130
- streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`]
1131
- });
1132
- }, "se_MssManifest");
1133
- var se_MssPackage = /* @__PURE__ */ __name((input, context) => {
1134
- return (0, import_smithy_client.take)(input, {
1135
- encryption: [, (_) => se_MssEncryption(_, context), `Encryption`],
1136
- mssManifests: [, (_) => se___listOfMssManifest(_, context), `MssManifests`],
1137
- segmentDurationSeconds: [, , `SegmentDurationSeconds`]
1138
- });
1139
- }, "se_MssPackage");
1140
- var se_SpekeKeyProvider = /* @__PURE__ */ __name((input, context) => {
1141
- return (0, import_smithy_client.take)(input, {
1142
- encryptionContractConfiguration: [
1143
- ,
1144
- (_) => se_EncryptionContractConfiguration(_, context),
1145
- `EncryptionContractConfiguration`
1146
- ],
1147
- roleArn: [, , `RoleArn`],
1148
- systemIds: [, import_smithy_client._json, `SystemIds`],
1149
- url: [, , `Url`]
1150
- });
1151
- }, "se_SpekeKeyProvider");
1152
- var se_StreamSelection = /* @__PURE__ */ __name((input, context) => {
1153
- return (0, import_smithy_client.take)(input, {
1154
- maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
1155
- minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
1156
- streamOrder: [, , `StreamOrder`]
1157
- });
1158
- }, "se_StreamSelection");
1159
- var de___listOfAssetShallow = /* @__PURE__ */ __name((output, context) => {
1160
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1161
- return de_AssetShallow(entry, context);
1162
- });
1163
- return retVal;
1164
- }, "de___listOfAssetShallow");
1165
- var de___listOfDashManifest = /* @__PURE__ */ __name((output, context) => {
1166
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1167
- return de_DashManifest(entry, context);
1168
- });
1169
- return retVal;
1170
- }, "de___listOfDashManifest");
1171
- var de___listOfEgressEndpoint = /* @__PURE__ */ __name((output, context) => {
1172
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1173
- return de_EgressEndpoint(entry, context);
1174
- });
1175
- return retVal;
1176
- }, "de___listOfEgressEndpoint");
1177
- var de___listOfHlsManifest = /* @__PURE__ */ __name((output, context) => {
1178
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1179
- return de_HlsManifest(entry, context);
1180
- });
1181
- return retVal;
1182
- }, "de___listOfHlsManifest");
1183
- var de___listOfMssManifest = /* @__PURE__ */ __name((output, context) => {
1184
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1185
- return de_MssManifest(entry, context);
1186
- });
1187
- return retVal;
1188
- }, "de___listOfMssManifest");
1189
- var de___listOfPackagingConfiguration = /* @__PURE__ */ __name((output, context) => {
1190
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1191
- return de_PackagingConfiguration(entry, context);
1192
- });
1193
- return retVal;
1194
- }, "de___listOfPackagingConfiguration");
1195
- var de___listOfPackagingGroup = /* @__PURE__ */ __name((output, context) => {
1196
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1197
- return de_PackagingGroup(entry, context);
1198
- });
1199
- return retVal;
1200
- }, "de___listOfPackagingGroup");
1201
- var de_AssetShallow = /* @__PURE__ */ __name((output, context) => {
1202
- return (0, import_smithy_client.take)(output, {
1203
- Arn: [, import_smithy_client.expectString, `arn`],
1204
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1205
- Id: [, import_smithy_client.expectString, `id`],
1206
- PackagingGroupId: [, import_smithy_client.expectString, `packagingGroupId`],
1207
- ResourceId: [, import_smithy_client.expectString, `resourceId`],
1208
- SourceArn: [, import_smithy_client.expectString, `sourceArn`],
1209
- SourceRoleArn: [, import_smithy_client.expectString, `sourceRoleArn`],
1210
- Tags: [, import_smithy_client._json, `tags`]
1211
- });
1212
- }, "de_AssetShallow");
1213
- var de_Authorization = /* @__PURE__ */ __name((output, context) => {
1214
- return (0, import_smithy_client.take)(output, {
1215
- CdnIdentifierSecret: [, import_smithy_client.expectString, `cdnIdentifierSecret`],
1216
- SecretsRoleArn: [, import_smithy_client.expectString, `secretsRoleArn`]
1217
- });
1218
- }, "de_Authorization");
1219
- var de_CmafEncryption = /* @__PURE__ */ __name((output, context) => {
1220
- return (0, import_smithy_client.take)(output, {
1221
- ConstantInitializationVector: [, import_smithy_client.expectString, `constantInitializationVector`],
1222
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1223
- });
1224
- }, "de_CmafEncryption");
1225
- var de_CmafPackage = /* @__PURE__ */ __name((output, context) => {
1226
- return (0, import_smithy_client.take)(output, {
1227
- Encryption: [, (_) => de_CmafEncryption(_, context), `encryption`],
1228
- HlsManifests: [, (_) => de___listOfHlsManifest(_, context), `hlsManifests`],
1229
- IncludeEncoderConfigurationInSegments: [, import_smithy_client.expectBoolean, `includeEncoderConfigurationInSegments`],
1230
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`]
1231
- });
1232
- }, "de_CmafPackage");
1233
- var de_DashEncryption = /* @__PURE__ */ __name((output, context) => {
1234
- return (0, import_smithy_client.take)(output, {
1235
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1236
- });
1237
- }, "de_DashEncryption");
1238
- var de_DashManifest = /* @__PURE__ */ __name((output, context) => {
1239
- return (0, import_smithy_client.take)(output, {
1240
- ManifestLayout: [, import_smithy_client.expectString, `manifestLayout`],
1241
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
1242
- MinBufferTimeSeconds: [, import_smithy_client.expectInt32, `minBufferTimeSeconds`],
1243
- Profile: [, import_smithy_client.expectString, `profile`],
1244
- ScteMarkersSource: [, import_smithy_client.expectString, `scteMarkersSource`],
1245
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`]
1246
- });
1247
- }, "de_DashManifest");
1248
- var de_DashPackage = /* @__PURE__ */ __name((output, context) => {
1249
- return (0, import_smithy_client.take)(output, {
1250
- DashManifests: [, (_) => de___listOfDashManifest(_, context), `dashManifests`],
1251
- Encryption: [, (_) => de_DashEncryption(_, context), `encryption`],
1252
- IncludeEncoderConfigurationInSegments: [, import_smithy_client.expectBoolean, `includeEncoderConfigurationInSegments`],
1253
- IncludeIframeOnlyStream: [, import_smithy_client.expectBoolean, `includeIframeOnlyStream`],
1254
- PeriodTriggers: [, import_smithy_client._json, `periodTriggers`],
1255
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`],
1256
- SegmentTemplateFormat: [, import_smithy_client.expectString, `segmentTemplateFormat`]
1257
- });
1258
- }, "de_DashPackage");
1259
- var de_EgressAccessLogs = /* @__PURE__ */ __name((output, context) => {
1260
- return (0, import_smithy_client.take)(output, {
1261
- LogGroupName: [, import_smithy_client.expectString, `logGroupName`]
1262
- });
1263
- }, "de_EgressAccessLogs");
1264
- var de_EgressEndpoint = /* @__PURE__ */ __name((output, context) => {
1265
- return (0, import_smithy_client.take)(output, {
1266
- PackagingConfigurationId: [, import_smithy_client.expectString, `packagingConfigurationId`],
1267
- Status: [, import_smithy_client.expectString, `status`],
1268
- Url: [, import_smithy_client.expectString, `url`]
1269
- });
1270
- }, "de_EgressEndpoint");
1271
- var de_EncryptionContractConfiguration = /* @__PURE__ */ __name((output, context) => {
1272
- return (0, import_smithy_client.take)(output, {
1273
- PresetSpeke20Audio: [, import_smithy_client.expectString, `presetSpeke20Audio`],
1274
- PresetSpeke20Video: [, import_smithy_client.expectString, `presetSpeke20Video`]
1275
- });
1276
- }, "de_EncryptionContractConfiguration");
1277
- var de_HlsEncryption = /* @__PURE__ */ __name((output, context) => {
1278
- return (0, import_smithy_client.take)(output, {
1279
- ConstantInitializationVector: [, import_smithy_client.expectString, `constantInitializationVector`],
1280
- EncryptionMethod: [, import_smithy_client.expectString, `encryptionMethod`],
1281
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1282
- });
1283
- }, "de_HlsEncryption");
1284
- var de_HlsManifest = /* @__PURE__ */ __name((output, context) => {
1285
- return (0, import_smithy_client.take)(output, {
1286
- AdMarkers: [, import_smithy_client.expectString, `adMarkers`],
1287
- IncludeIframeOnlyStream: [, import_smithy_client.expectBoolean, `includeIframeOnlyStream`],
1288
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
1289
- ProgramDateTimeIntervalSeconds: [, import_smithy_client.expectInt32, `programDateTimeIntervalSeconds`],
1290
- RepeatExtXKey: [, import_smithy_client.expectBoolean, `repeatExtXKey`],
1291
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`]
1292
- });
1293
- }, "de_HlsManifest");
1294
- var de_HlsPackage = /* @__PURE__ */ __name((output, context) => {
1295
- return (0, import_smithy_client.take)(output, {
1296
- Encryption: [, (_) => de_HlsEncryption(_, context), `encryption`],
1297
- HlsManifests: [, (_) => de___listOfHlsManifest(_, context), `hlsManifests`],
1298
- IncludeDvbSubtitles: [, import_smithy_client.expectBoolean, `includeDvbSubtitles`],
1299
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`],
1300
- UseAudioRenditionGroup: [, import_smithy_client.expectBoolean, `useAudioRenditionGroup`]
1301
- });
1302
- }, "de_HlsPackage");
1303
- var de_MssEncryption = /* @__PURE__ */ __name((output, context) => {
1304
- return (0, import_smithy_client.take)(output, {
1305
- SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_, context), `spekeKeyProvider`]
1306
- });
1307
- }, "de_MssEncryption");
1308
- var de_MssManifest = /* @__PURE__ */ __name((output, context) => {
1309
- return (0, import_smithy_client.take)(output, {
1310
- ManifestName: [, import_smithy_client.expectString, `manifestName`],
1311
- StreamSelection: [, (_) => de_StreamSelection(_, context), `streamSelection`]
1312
- });
1313
- }, "de_MssManifest");
1314
- var de_MssPackage = /* @__PURE__ */ __name((output, context) => {
1315
- return (0, import_smithy_client.take)(output, {
1316
- Encryption: [, (_) => de_MssEncryption(_, context), `encryption`],
1317
- MssManifests: [, (_) => de___listOfMssManifest(_, context), `mssManifests`],
1318
- SegmentDurationSeconds: [, import_smithy_client.expectInt32, `segmentDurationSeconds`]
1319
- });
1320
- }, "de_MssPackage");
1321
- var de_PackagingConfiguration = /* @__PURE__ */ __name((output, context) => {
1322
- return (0, import_smithy_client.take)(output, {
1323
- Arn: [, import_smithy_client.expectString, `arn`],
1324
- CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
1325
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1326
- DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
1327
- HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
1328
- Id: [, import_smithy_client.expectString, `id`],
1329
- MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
1330
- PackagingGroupId: [, import_smithy_client.expectString, `packagingGroupId`],
1331
- Tags: [, import_smithy_client._json, `tags`]
1332
- });
1333
- }, "de_PackagingConfiguration");
1334
- var de_PackagingGroup = /* @__PURE__ */ __name((output, context) => {
1335
- return (0, import_smithy_client.take)(output, {
1336
- ApproximateAssetCount: [, import_smithy_client.expectInt32, `approximateAssetCount`],
1337
- Arn: [, import_smithy_client.expectString, `arn`],
1338
- Authorization: [, (_) => de_Authorization(_, context), `authorization`],
1339
- CreatedAt: [, import_smithy_client.expectString, `createdAt`],
1340
- DomainName: [, import_smithy_client.expectString, `domainName`],
1341
- EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
1342
- Id: [, import_smithy_client.expectString, `id`],
1343
- Tags: [, import_smithy_client._json, `tags`]
1344
- });
1345
- }, "de_PackagingGroup");
1346
- var de_SpekeKeyProvider = /* @__PURE__ */ __name((output, context) => {
1347
- return (0, import_smithy_client.take)(output, {
1348
- EncryptionContractConfiguration: [
1349
- ,
1350
- (_) => de_EncryptionContractConfiguration(_, context),
1351
- `encryptionContractConfiguration`
1352
- ],
1353
- RoleArn: [, import_smithy_client.expectString, `roleArn`],
1354
- SystemIds: [, import_smithy_client._json, `systemIds`],
1355
- Url: [, import_smithy_client.expectString, `url`]
1356
- });
1357
- }, "de_SpekeKeyProvider");
1358
- var de_StreamSelection = /* @__PURE__ */ __name((output, context) => {
1359
- return (0, import_smithy_client.take)(output, {
1360
- MaxVideoBitsPerSecond: [, import_smithy_client.expectInt32, `maxVideoBitsPerSecond`],
1361
- MinVideoBitsPerSecond: [, import_smithy_client.expectInt32, `minVideoBitsPerSecond`],
1362
- StreamOrder: [, import_smithy_client.expectString, `streamOrder`]
1363
- });
1364
- }, "de_StreamSelection");
1365
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1366
- httpStatusCode: output.statusCode,
1367
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1368
- extendedRequestId: output.headers["x-amz-id-2"],
1369
- cfId: output.headers["x-amz-cf-id"]
1370
- }), "deserializeMetadata");
1371
- var _MR = "MaxResults";
1372
- var _NT = "NextToken";
1373
- var _PGI = "PackagingGroupId";
1374
- var _TK = "TagKeys";
1375
- var _mR = "maxResults";
1376
- var _nT = "nextToken";
1377
- var _pGI = "packagingGroupId";
1378
- var _tK = "tagKeys";
1379
-
1380
- // src/commands/ConfigureLogsCommand.ts
1381
- var ConfigureLogsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1382
- return [
1383
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1384
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1385
- ];
1386
- }).s("MediaPackageVod", "ConfigureLogs", {}).n("MediaPackageVodClient", "ConfigureLogsCommand").f(void 0, void 0).ser(se_ConfigureLogsCommand).de(de_ConfigureLogsCommand).build() {
1387
- static {
1388
- __name(this, "ConfigureLogsCommand");
1389
- }
131
+ const ScteMarkersSource = {
132
+ MANIFEST: "MANIFEST",
133
+ SEGMENTS: "SEGMENTS",
1390
134
  };
1391
-
1392
- // src/commands/CreateAssetCommand.ts
1393
-
1394
-
1395
-
1396
- var CreateAssetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1397
- return [
1398
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1399
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1400
- ];
1401
- }).s("MediaPackageVod", "CreateAsset", {}).n("MediaPackageVodClient", "CreateAssetCommand").f(void 0, void 0).ser(se_CreateAssetCommand).de(de_CreateAssetCommand).build() {
1402
- static {
1403
- __name(this, "CreateAssetCommand");
1404
- }
135
+ const StreamOrder = {
136
+ ORIGINAL: "ORIGINAL",
137
+ VIDEO_BITRATE_ASCENDING: "VIDEO_BITRATE_ASCENDING",
138
+ VIDEO_BITRATE_DESCENDING: "VIDEO_BITRATE_DESCENDING",
1405
139
  };
1406
-
1407
- // src/commands/CreatePackagingConfigurationCommand.ts
1408
-
1409
-
1410
-
1411
- var CreatePackagingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1412
- return [
1413
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1414
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1415
- ];
1416
- }).s("MediaPackageVod", "CreatePackagingConfiguration", {}).n("MediaPackageVodClient", "CreatePackagingConfigurationCommand").f(void 0, void 0).ser(se_CreatePackagingConfigurationCommand).de(de_CreatePackagingConfigurationCommand).build() {
1417
- static {
1418
- __name(this, "CreatePackagingConfigurationCommand");
1419
- }
140
+ const AdMarkers = {
141
+ NONE: "NONE",
142
+ PASSTHROUGH: "PASSTHROUGH",
143
+ SCTE35_ENHANCED: "SCTE35_ENHANCED",
1420
144
  };
1421
-
1422
- // src/commands/CreatePackagingGroupCommand.ts
1423
-
1424
-
1425
-
1426
- var CreatePackagingGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1427
- return [
1428
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1429
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1430
- ];
1431
- }).s("MediaPackageVod", "CreatePackagingGroup", {}).n("MediaPackageVodClient", "CreatePackagingGroupCommand").f(void 0, void 0).ser(se_CreatePackagingGroupCommand).de(de_CreatePackagingGroupCommand).build() {
1432
- static {
1433
- __name(this, "CreatePackagingGroupCommand");
1434
- }
145
+ const PresetSpeke20Audio = {
146
+ PRESET_AUDIO_1: "PRESET-AUDIO-1",
147
+ PRESET_AUDIO_2: "PRESET-AUDIO-2",
148
+ PRESET_AUDIO_3: "PRESET-AUDIO-3",
149
+ SHARED: "SHARED",
150
+ UNENCRYPTED: "UNENCRYPTED",
1435
151
  };
1436
-
1437
- // src/commands/DeleteAssetCommand.ts
1438
-
1439
-
1440
-
1441
- var DeleteAssetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1442
- return [
1443
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1444
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1445
- ];
1446
- }).s("MediaPackageVod", "DeleteAsset", {}).n("MediaPackageVodClient", "DeleteAssetCommand").f(void 0, void 0).ser(se_DeleteAssetCommand).de(de_DeleteAssetCommand).build() {
1447
- static {
1448
- __name(this, "DeleteAssetCommand");
1449
- }
152
+ const PresetSpeke20Video = {
153
+ PRESET_VIDEO_1: "PRESET-VIDEO-1",
154
+ PRESET_VIDEO_2: "PRESET-VIDEO-2",
155
+ PRESET_VIDEO_3: "PRESET-VIDEO-3",
156
+ PRESET_VIDEO_4: "PRESET-VIDEO-4",
157
+ PRESET_VIDEO_5: "PRESET-VIDEO-5",
158
+ PRESET_VIDEO_6: "PRESET-VIDEO-6",
159
+ PRESET_VIDEO_7: "PRESET-VIDEO-7",
160
+ PRESET_VIDEO_8: "PRESET-VIDEO-8",
161
+ SHARED: "SHARED",
162
+ UNENCRYPTED: "UNENCRYPTED",
1450
163
  };
1451
-
1452
- // src/commands/DeletePackagingConfigurationCommand.ts
1453
-
1454
-
1455
-
1456
- var DeletePackagingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1457
- return [
1458
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1459
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1460
- ];
1461
- }).s("MediaPackageVod", "DeletePackagingConfiguration", {}).n("MediaPackageVodClient", "DeletePackagingConfigurationCommand").f(void 0, void 0).ser(se_DeletePackagingConfigurationCommand).de(de_DeletePackagingConfigurationCommand).build() {
1462
- static {
1463
- __name(this, "DeletePackagingConfigurationCommand");
1464
- }
164
+ const SegmentTemplateFormat = {
165
+ NUMBER_WITH_DURATION: "NUMBER_WITH_DURATION",
166
+ NUMBER_WITH_TIMELINE: "NUMBER_WITH_TIMELINE",
167
+ TIME_WITH_TIMELINE: "TIME_WITH_TIMELINE",
1465
168
  };
1466
-
1467
- // src/commands/DeletePackagingGroupCommand.ts
1468
-
1469
-
1470
-
1471
- var DeletePackagingGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1472
- return [
1473
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1474
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1475
- ];
1476
- }).s("MediaPackageVod", "DeletePackagingGroup", {}).n("MediaPackageVodClient", "DeletePackagingGroupCommand").f(void 0, void 0).ser(se_DeletePackagingGroupCommand).de(de_DeletePackagingGroupCommand).build() {
1477
- static {
1478
- __name(this, "DeletePackagingGroupCommand");
1479
- }
169
+ const EncryptionMethod = {
170
+ AES_128: "AES_128",
171
+ SAMPLE_AES: "SAMPLE_AES",
1480
172
  };
1481
-
1482
- // src/commands/DescribeAssetCommand.ts
1483
-
1484
-
1485
-
1486
- var DescribeAssetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1487
- return [
1488
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1489
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1490
- ];
1491
- }).s("MediaPackageVod", "DescribeAsset", {}).n("MediaPackageVodClient", "DescribeAssetCommand").f(void 0, void 0).ser(se_DescribeAssetCommand).de(de_DescribeAssetCommand).build() {
1492
- static {
1493
- __name(this, "DescribeAssetCommand");
1494
- }
173
+ class ForbiddenException extends MediaPackageVodServiceException {
174
+ name = "ForbiddenException";
175
+ $fault = "client";
176
+ Message;
177
+ constructor(opts) {
178
+ super({
179
+ name: "ForbiddenException",
180
+ $fault: "client",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
184
+ this.Message = opts.Message;
185
+ }
186
+ }
187
+ class InternalServerErrorException extends MediaPackageVodServiceException {
188
+ name = "InternalServerErrorException";
189
+ $fault = "server";
190
+ Message;
191
+ constructor(opts) {
192
+ super({
193
+ name: "InternalServerErrorException",
194
+ $fault: "server",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
198
+ this.Message = opts.Message;
199
+ }
200
+ }
201
+ class NotFoundException extends MediaPackageVodServiceException {
202
+ name = "NotFoundException";
203
+ $fault = "client";
204
+ Message;
205
+ constructor(opts) {
206
+ super({
207
+ name: "NotFoundException",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, NotFoundException.prototype);
212
+ this.Message = opts.Message;
213
+ }
214
+ }
215
+ class ServiceUnavailableException extends MediaPackageVodServiceException {
216
+ name = "ServiceUnavailableException";
217
+ $fault = "server";
218
+ Message;
219
+ constructor(opts) {
220
+ super({
221
+ name: "ServiceUnavailableException",
222
+ $fault: "server",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
226
+ this.Message = opts.Message;
227
+ }
228
+ }
229
+ class TooManyRequestsException extends MediaPackageVodServiceException {
230
+ name = "TooManyRequestsException";
231
+ $fault = "client";
232
+ Message;
233
+ constructor(opts) {
234
+ super({
235
+ name: "TooManyRequestsException",
236
+ $fault: "client",
237
+ ...opts,
238
+ });
239
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
240
+ this.Message = opts.Message;
241
+ }
242
+ }
243
+ class UnprocessableEntityException extends MediaPackageVodServiceException {
244
+ name = "UnprocessableEntityException";
245
+ $fault = "client";
246
+ Message;
247
+ constructor(opts) {
248
+ super({
249
+ name: "UnprocessableEntityException",
250
+ $fault: "client",
251
+ ...opts,
252
+ });
253
+ Object.setPrototypeOf(this, UnprocessableEntityException.prototype);
254
+ this.Message = opts.Message;
255
+ }
256
+ }
257
+
258
+ const se_ConfigureLogsCommand = async (input, context) => {
259
+ const b = core.requestBuilder(input, context);
260
+ const headers = {
261
+ "content-type": "application/json",
262
+ };
263
+ b.bp("/packaging_groups/{Id}/configure_logs");
264
+ b.p("Id", () => input.Id, "{Id}", false);
265
+ let body;
266
+ body = JSON.stringify(smithyClient.take(input, {
267
+ egressAccessLogs: [, (_) => se_EgressAccessLogs(_), `EgressAccessLogs`],
268
+ }));
269
+ b.m("PUT").h(headers).b(body);
270
+ return b.build();
1495
271
  };
1496
-
1497
- // src/commands/DescribePackagingConfigurationCommand.ts
1498
-
1499
-
1500
-
1501
- var DescribePackagingConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1502
- return [
1503
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1504
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1505
- ];
1506
- }).s("MediaPackageVod", "DescribePackagingConfiguration", {}).n("MediaPackageVodClient", "DescribePackagingConfigurationCommand").f(void 0, void 0).ser(se_DescribePackagingConfigurationCommand).de(de_DescribePackagingConfigurationCommand).build() {
1507
- static {
1508
- __name(this, "DescribePackagingConfigurationCommand");
1509
- }
272
+ const se_CreateAssetCommand = async (input, context) => {
273
+ const b = core.requestBuilder(input, context);
274
+ const headers = {
275
+ "content-type": "application/json",
276
+ };
277
+ b.bp("/assets");
278
+ let body;
279
+ body = JSON.stringify(smithyClient.take(input, {
280
+ id: [, , `Id`],
281
+ packagingGroupId: [, , `PackagingGroupId`],
282
+ resourceId: [, , `ResourceId`],
283
+ sourceArn: [, , `SourceArn`],
284
+ sourceRoleArn: [, , `SourceRoleArn`],
285
+ tags: [, (_) => smithyClient._json(_), `Tags`],
286
+ }));
287
+ b.m("POST").h(headers).b(body);
288
+ return b.build();
1510
289
  };
1511
-
1512
- // src/commands/DescribePackagingGroupCommand.ts
1513
-
1514
-
1515
-
1516
- var DescribePackagingGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1517
- return [
1518
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1519
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1520
- ];
1521
- }).s("MediaPackageVod", "DescribePackagingGroup", {}).n("MediaPackageVodClient", "DescribePackagingGroupCommand").f(void 0, void 0).ser(se_DescribePackagingGroupCommand).de(de_DescribePackagingGroupCommand).build() {
1522
- static {
1523
- __name(this, "DescribePackagingGroupCommand");
1524
- }
290
+ const se_CreatePackagingConfigurationCommand = async (input, context) => {
291
+ const b = core.requestBuilder(input, context);
292
+ const headers = {
293
+ "content-type": "application/json",
294
+ };
295
+ b.bp("/packaging_configurations");
296
+ let body;
297
+ body = JSON.stringify(smithyClient.take(input, {
298
+ cmafPackage: [, (_) => se_CmafPackage(_), `CmafPackage`],
299
+ dashPackage: [, (_) => se_DashPackage(_), `DashPackage`],
300
+ hlsPackage: [, (_) => se_HlsPackage(_), `HlsPackage`],
301
+ id: [, , `Id`],
302
+ mssPackage: [, (_) => se_MssPackage(_), `MssPackage`],
303
+ packagingGroupId: [, , `PackagingGroupId`],
304
+ tags: [, (_) => smithyClient._json(_), `Tags`],
305
+ }));
306
+ b.m("POST").h(headers).b(body);
307
+ return b.build();
1525
308
  };
1526
-
1527
- // src/commands/ListAssetsCommand.ts
1528
-
1529
-
1530
-
1531
- var ListAssetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1532
- return [
1533
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1534
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1535
- ];
1536
- }).s("MediaPackageVod", "ListAssets", {}).n("MediaPackageVodClient", "ListAssetsCommand").f(void 0, void 0).ser(se_ListAssetsCommand).de(de_ListAssetsCommand).build() {
1537
- static {
1538
- __name(this, "ListAssetsCommand");
1539
- }
309
+ const se_CreatePackagingGroupCommand = async (input, context) => {
310
+ const b = core.requestBuilder(input, context);
311
+ const headers = {
312
+ "content-type": "application/json",
313
+ };
314
+ b.bp("/packaging_groups");
315
+ let body;
316
+ body = JSON.stringify(smithyClient.take(input, {
317
+ authorization: [, (_) => se_Authorization(_), `Authorization`],
318
+ egressAccessLogs: [, (_) => se_EgressAccessLogs(_), `EgressAccessLogs`],
319
+ id: [, , `Id`],
320
+ tags: [, (_) => smithyClient._json(_), `Tags`],
321
+ }));
322
+ b.m("POST").h(headers).b(body);
323
+ return b.build();
1540
324
  };
1541
-
1542
- // src/commands/ListPackagingConfigurationsCommand.ts
1543
-
1544
-
1545
-
1546
- var ListPackagingConfigurationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1547
- return [
1548
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1549
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1550
- ];
1551
- }).s("MediaPackageVod", "ListPackagingConfigurations", {}).n("MediaPackageVodClient", "ListPackagingConfigurationsCommand").f(void 0, void 0).ser(se_ListPackagingConfigurationsCommand).de(de_ListPackagingConfigurationsCommand).build() {
1552
- static {
1553
- __name(this, "ListPackagingConfigurationsCommand");
1554
- }
325
+ const se_DeleteAssetCommand = async (input, context) => {
326
+ const b = core.requestBuilder(input, context);
327
+ const headers = {};
328
+ b.bp("/assets/{Id}");
329
+ b.p("Id", () => input.Id, "{Id}", false);
330
+ let body;
331
+ b.m("DELETE").h(headers).b(body);
332
+ return b.build();
1555
333
  };
1556
-
1557
- // src/commands/ListPackagingGroupsCommand.ts
1558
-
1559
-
1560
-
1561
- var ListPackagingGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1562
- return [
1563
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1564
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1565
- ];
1566
- }).s("MediaPackageVod", "ListPackagingGroups", {}).n("MediaPackageVodClient", "ListPackagingGroupsCommand").f(void 0, void 0).ser(se_ListPackagingGroupsCommand).de(de_ListPackagingGroupsCommand).build() {
1567
- static {
1568
- __name(this, "ListPackagingGroupsCommand");
1569
- }
334
+ const se_DeletePackagingConfigurationCommand = async (input, context) => {
335
+ const b = core.requestBuilder(input, context);
336
+ const headers = {};
337
+ b.bp("/packaging_configurations/{Id}");
338
+ b.p("Id", () => input.Id, "{Id}", false);
339
+ let body;
340
+ b.m("DELETE").h(headers).b(body);
341
+ return b.build();
1570
342
  };
1571
-
1572
- // src/commands/ListTagsForResourceCommand.ts
1573
-
1574
-
1575
-
1576
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1577
- return [
1578
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1579
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1580
- ];
1581
- }).s("MediaPackageVod", "ListTagsForResource", {}).n("MediaPackageVodClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1582
- static {
1583
- __name(this, "ListTagsForResourceCommand");
1584
- }
343
+ const se_DeletePackagingGroupCommand = async (input, context) => {
344
+ const b = core.requestBuilder(input, context);
345
+ const headers = {};
346
+ b.bp("/packaging_groups/{Id}");
347
+ b.p("Id", () => input.Id, "{Id}", false);
348
+ let body;
349
+ b.m("DELETE").h(headers).b(body);
350
+ return b.build();
1585
351
  };
1586
-
1587
- // src/commands/TagResourceCommand.ts
1588
-
1589
-
1590
-
1591
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1592
- return [
1593
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1594
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1595
- ];
1596
- }).s("MediaPackageVod", "TagResource", {}).n("MediaPackageVodClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1597
- static {
1598
- __name(this, "TagResourceCommand");
1599
- }
352
+ const se_DescribeAssetCommand = async (input, context) => {
353
+ const b = core.requestBuilder(input, context);
354
+ const headers = {};
355
+ b.bp("/assets/{Id}");
356
+ b.p("Id", () => input.Id, "{Id}", false);
357
+ let body;
358
+ b.m("GET").h(headers).b(body);
359
+ return b.build();
1600
360
  };
1601
-
1602
- // src/commands/UntagResourceCommand.ts
1603
-
1604
-
1605
-
1606
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1607
- return [
1608
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1609
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1610
- ];
1611
- }).s("MediaPackageVod", "UntagResource", {}).n("MediaPackageVodClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1612
- static {
1613
- __name(this, "UntagResourceCommand");
1614
- }
361
+ const se_DescribePackagingConfigurationCommand = async (input, context) => {
362
+ const b = core.requestBuilder(input, context);
363
+ const headers = {};
364
+ b.bp("/packaging_configurations/{Id}");
365
+ b.p("Id", () => input.Id, "{Id}", false);
366
+ let body;
367
+ b.m("GET").h(headers).b(body);
368
+ return b.build();
1615
369
  };
1616
-
1617
- // src/commands/UpdatePackagingGroupCommand.ts
1618
-
1619
-
1620
-
1621
- var UpdatePackagingGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1622
- return [
1623
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1624
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1625
- ];
1626
- }).s("MediaPackageVod", "UpdatePackagingGroup", {}).n("MediaPackageVodClient", "UpdatePackagingGroupCommand").f(void 0, void 0).ser(se_UpdatePackagingGroupCommand).de(de_UpdatePackagingGroupCommand).build() {
1627
- static {
1628
- __name(this, "UpdatePackagingGroupCommand");
1629
- }
370
+ const se_DescribePackagingGroupCommand = async (input, context) => {
371
+ const b = core.requestBuilder(input, context);
372
+ const headers = {};
373
+ b.bp("/packaging_groups/{Id}");
374
+ b.p("Id", () => input.Id, "{Id}", false);
375
+ let body;
376
+ b.m("GET").h(headers).b(body);
377
+ return b.build();
1630
378
  };
379
+ const se_ListAssetsCommand = async (input, context) => {
380
+ const b = core.requestBuilder(input, context);
381
+ const headers = {};
382
+ b.bp("/assets");
383
+ const query = smithyClient.map({
384
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
385
+ [_nT]: [, input[_NT]],
386
+ [_pGI]: [, input[_PGI]],
387
+ });
388
+ let body;
389
+ b.m("GET").h(headers).q(query).b(body);
390
+ return b.build();
391
+ };
392
+ const se_ListPackagingConfigurationsCommand = async (input, context) => {
393
+ const b = core.requestBuilder(input, context);
394
+ const headers = {};
395
+ b.bp("/packaging_configurations");
396
+ const query = smithyClient.map({
397
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
398
+ [_nT]: [, input[_NT]],
399
+ [_pGI]: [, input[_PGI]],
400
+ });
401
+ let body;
402
+ b.m("GET").h(headers).q(query).b(body);
403
+ return b.build();
404
+ };
405
+ const se_ListPackagingGroupsCommand = async (input, context) => {
406
+ const b = core.requestBuilder(input, context);
407
+ const headers = {};
408
+ b.bp("/packaging_groups");
409
+ const query = smithyClient.map({
410
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
411
+ [_nT]: [, input[_NT]],
412
+ });
413
+ let body;
414
+ b.m("GET").h(headers).q(query).b(body);
415
+ return b.build();
416
+ };
417
+ const se_ListTagsForResourceCommand = async (input, context) => {
418
+ const b = core.requestBuilder(input, context);
419
+ const headers = {};
420
+ b.bp("/tags/{ResourceArn}");
421
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
422
+ let body;
423
+ b.m("GET").h(headers).b(body);
424
+ return b.build();
425
+ };
426
+ const se_TagResourceCommand = async (input, context) => {
427
+ const b = core.requestBuilder(input, context);
428
+ const headers = {
429
+ "content-type": "application/json",
430
+ };
431
+ b.bp("/tags/{ResourceArn}");
432
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
433
+ let body;
434
+ body = JSON.stringify(smithyClient.take(input, {
435
+ tags: [, (_) => smithyClient._json(_), `Tags`],
436
+ }));
437
+ b.m("POST").h(headers).b(body);
438
+ return b.build();
439
+ };
440
+ const se_UntagResourceCommand = async (input, context) => {
441
+ const b = core.requestBuilder(input, context);
442
+ const headers = {};
443
+ b.bp("/tags/{ResourceArn}");
444
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
445
+ const query = smithyClient.map({
446
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
447
+ });
448
+ let body;
449
+ b.m("DELETE").h(headers).q(query).b(body);
450
+ return b.build();
451
+ };
452
+ const se_UpdatePackagingGroupCommand = async (input, context) => {
453
+ const b = core.requestBuilder(input, context);
454
+ const headers = {
455
+ "content-type": "application/json",
456
+ };
457
+ b.bp("/packaging_groups/{Id}");
458
+ b.p("Id", () => input.Id, "{Id}", false);
459
+ let body;
460
+ body = JSON.stringify(smithyClient.take(input, {
461
+ authorization: [, (_) => se_Authorization(_), `Authorization`],
462
+ }));
463
+ b.m("PUT").h(headers).b(body);
464
+ return b.build();
465
+ };
466
+ const de_ConfigureLogsCommand = async (output, context) => {
467
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
468
+ return de_CommandError(output, context);
469
+ }
470
+ const contents = smithyClient.map({
471
+ $metadata: deserializeMetadata(output),
472
+ });
473
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
474
+ const doc = smithyClient.take(data, {
475
+ Arn: [, smithyClient.expectString, `arn`],
476
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
477
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
478
+ DomainName: [, smithyClient.expectString, `domainName`],
479
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
480
+ Id: [, smithyClient.expectString, `id`],
481
+ Tags: [, smithyClient._json, `tags`],
482
+ });
483
+ Object.assign(contents, doc);
484
+ return contents;
485
+ };
486
+ const de_CreateAssetCommand = async (output, context) => {
487
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
488
+ return de_CommandError(output, context);
489
+ }
490
+ const contents = smithyClient.map({
491
+ $metadata: deserializeMetadata(output),
492
+ });
493
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
494
+ const doc = smithyClient.take(data, {
495
+ Arn: [, smithyClient.expectString, `arn`],
496
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
497
+ EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_), `egressEndpoints`],
498
+ Id: [, smithyClient.expectString, `id`],
499
+ PackagingGroupId: [, smithyClient.expectString, `packagingGroupId`],
500
+ ResourceId: [, smithyClient.expectString, `resourceId`],
501
+ SourceArn: [, smithyClient.expectString, `sourceArn`],
502
+ SourceRoleArn: [, smithyClient.expectString, `sourceRoleArn`],
503
+ Tags: [, smithyClient._json, `tags`],
504
+ });
505
+ Object.assign(contents, doc);
506
+ return contents;
507
+ };
508
+ const de_CreatePackagingConfigurationCommand = async (output, context) => {
509
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
510
+ return de_CommandError(output, context);
511
+ }
512
+ const contents = smithyClient.map({
513
+ $metadata: deserializeMetadata(output),
514
+ });
515
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
516
+ const doc = smithyClient.take(data, {
517
+ Arn: [, smithyClient.expectString, `arn`],
518
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
519
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
520
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
521
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
522
+ Id: [, smithyClient.expectString, `id`],
523
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
524
+ PackagingGroupId: [, smithyClient.expectString, `packagingGroupId`],
525
+ Tags: [, smithyClient._json, `tags`],
526
+ });
527
+ Object.assign(contents, doc);
528
+ return contents;
529
+ };
530
+ const de_CreatePackagingGroupCommand = async (output, context) => {
531
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
532
+ return de_CommandError(output, context);
533
+ }
534
+ const contents = smithyClient.map({
535
+ $metadata: deserializeMetadata(output),
536
+ });
537
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
538
+ const doc = smithyClient.take(data, {
539
+ Arn: [, smithyClient.expectString, `arn`],
540
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
541
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
542
+ DomainName: [, smithyClient.expectString, `domainName`],
543
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
544
+ Id: [, smithyClient.expectString, `id`],
545
+ Tags: [, smithyClient._json, `tags`],
546
+ });
547
+ Object.assign(contents, doc);
548
+ return contents;
549
+ };
550
+ const de_DeleteAssetCommand = async (output, context) => {
551
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
552
+ return de_CommandError(output, context);
553
+ }
554
+ const contents = smithyClient.map({
555
+ $metadata: deserializeMetadata(output),
556
+ });
557
+ await smithyClient.collectBody(output.body, context);
558
+ return contents;
559
+ };
560
+ const de_DeletePackagingConfigurationCommand = async (output, context) => {
561
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
562
+ return de_CommandError(output, context);
563
+ }
564
+ const contents = smithyClient.map({
565
+ $metadata: deserializeMetadata(output),
566
+ });
567
+ await smithyClient.collectBody(output.body, context);
568
+ return contents;
569
+ };
570
+ const de_DeletePackagingGroupCommand = async (output, context) => {
571
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
572
+ return de_CommandError(output, context);
573
+ }
574
+ const contents = smithyClient.map({
575
+ $metadata: deserializeMetadata(output),
576
+ });
577
+ await smithyClient.collectBody(output.body, context);
578
+ return contents;
579
+ };
580
+ const de_DescribeAssetCommand = async (output, context) => {
581
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
582
+ return de_CommandError(output, context);
583
+ }
584
+ const contents = smithyClient.map({
585
+ $metadata: deserializeMetadata(output),
586
+ });
587
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
588
+ const doc = smithyClient.take(data, {
589
+ Arn: [, smithyClient.expectString, `arn`],
590
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
591
+ EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_), `egressEndpoints`],
592
+ Id: [, smithyClient.expectString, `id`],
593
+ PackagingGroupId: [, smithyClient.expectString, `packagingGroupId`],
594
+ ResourceId: [, smithyClient.expectString, `resourceId`],
595
+ SourceArn: [, smithyClient.expectString, `sourceArn`],
596
+ SourceRoleArn: [, smithyClient.expectString, `sourceRoleArn`],
597
+ Tags: [, smithyClient._json, `tags`],
598
+ });
599
+ Object.assign(contents, doc);
600
+ return contents;
601
+ };
602
+ const de_DescribePackagingConfigurationCommand = async (output, context) => {
603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
604
+ return de_CommandError(output, context);
605
+ }
606
+ const contents = smithyClient.map({
607
+ $metadata: deserializeMetadata(output),
608
+ });
609
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
610
+ const doc = smithyClient.take(data, {
611
+ Arn: [, smithyClient.expectString, `arn`],
612
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
613
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
614
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
615
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
616
+ Id: [, smithyClient.expectString, `id`],
617
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
618
+ PackagingGroupId: [, smithyClient.expectString, `packagingGroupId`],
619
+ Tags: [, smithyClient._json, `tags`],
620
+ });
621
+ Object.assign(contents, doc);
622
+ return contents;
623
+ };
624
+ const de_DescribePackagingGroupCommand = async (output, context) => {
625
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
626
+ return de_CommandError(output, context);
627
+ }
628
+ const contents = smithyClient.map({
629
+ $metadata: deserializeMetadata(output),
630
+ });
631
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
632
+ const doc = smithyClient.take(data, {
633
+ ApproximateAssetCount: [, smithyClient.expectInt32, `approximateAssetCount`],
634
+ Arn: [, smithyClient.expectString, `arn`],
635
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
636
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
637
+ DomainName: [, smithyClient.expectString, `domainName`],
638
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
639
+ Id: [, smithyClient.expectString, `id`],
640
+ Tags: [, smithyClient._json, `tags`],
641
+ });
642
+ Object.assign(contents, doc);
643
+ return contents;
644
+ };
645
+ const de_ListAssetsCommand = async (output, context) => {
646
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
647
+ return de_CommandError(output, context);
648
+ }
649
+ const contents = smithyClient.map({
650
+ $metadata: deserializeMetadata(output),
651
+ });
652
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
653
+ const doc = smithyClient.take(data, {
654
+ Assets: [, (_) => de___listOfAssetShallow(_), `assets`],
655
+ NextToken: [, smithyClient.expectString, `nextToken`],
656
+ });
657
+ Object.assign(contents, doc);
658
+ return contents;
659
+ };
660
+ const de_ListPackagingConfigurationsCommand = async (output, context) => {
661
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
662
+ return de_CommandError(output, context);
663
+ }
664
+ const contents = smithyClient.map({
665
+ $metadata: deserializeMetadata(output),
666
+ });
667
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
668
+ const doc = smithyClient.take(data, {
669
+ NextToken: [, smithyClient.expectString, `nextToken`],
670
+ PackagingConfigurations: [, (_) => de___listOfPackagingConfiguration(_), `packagingConfigurations`],
671
+ });
672
+ Object.assign(contents, doc);
673
+ return contents;
674
+ };
675
+ const de_ListPackagingGroupsCommand = async (output, context) => {
676
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
677
+ return de_CommandError(output, context);
678
+ }
679
+ const contents = smithyClient.map({
680
+ $metadata: deserializeMetadata(output),
681
+ });
682
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
683
+ const doc = smithyClient.take(data, {
684
+ NextToken: [, smithyClient.expectString, `nextToken`],
685
+ PackagingGroups: [, (_) => de___listOfPackagingGroup(_), `packagingGroups`],
686
+ });
687
+ Object.assign(contents, doc);
688
+ return contents;
689
+ };
690
+ const de_ListTagsForResourceCommand = async (output, context) => {
691
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
692
+ return de_CommandError(output, context);
693
+ }
694
+ const contents = smithyClient.map({
695
+ $metadata: deserializeMetadata(output),
696
+ });
697
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
698
+ const doc = smithyClient.take(data, {
699
+ Tags: [, smithyClient._json, `tags`],
700
+ });
701
+ Object.assign(contents, doc);
702
+ return contents;
703
+ };
704
+ const de_TagResourceCommand = async (output, context) => {
705
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
706
+ return de_CommandError(output, context);
707
+ }
708
+ const contents = smithyClient.map({
709
+ $metadata: deserializeMetadata(output),
710
+ });
711
+ await smithyClient.collectBody(output.body, context);
712
+ return contents;
713
+ };
714
+ const de_UntagResourceCommand = async (output, context) => {
715
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
716
+ return de_CommandError(output, context);
717
+ }
718
+ const contents = smithyClient.map({
719
+ $metadata: deserializeMetadata(output),
720
+ });
721
+ await smithyClient.collectBody(output.body, context);
722
+ return contents;
723
+ };
724
+ const de_UpdatePackagingGroupCommand = async (output, context) => {
725
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
726
+ return de_CommandError(output, context);
727
+ }
728
+ const contents = smithyClient.map({
729
+ $metadata: deserializeMetadata(output),
730
+ });
731
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
732
+ const doc = smithyClient.take(data, {
733
+ ApproximateAssetCount: [, smithyClient.expectInt32, `approximateAssetCount`],
734
+ Arn: [, smithyClient.expectString, `arn`],
735
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
736
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
737
+ DomainName: [, smithyClient.expectString, `domainName`],
738
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
739
+ Id: [, smithyClient.expectString, `id`],
740
+ Tags: [, smithyClient._json, `tags`],
741
+ });
742
+ Object.assign(contents, doc);
743
+ return contents;
744
+ };
745
+ const de_CommandError = async (output, context) => {
746
+ const parsedOutput = {
747
+ ...output,
748
+ body: await core$1.parseJsonErrorBody(output.body, context),
749
+ };
750
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
751
+ switch (errorCode) {
752
+ case "ForbiddenException":
753
+ case "com.amazonaws.mediapackagevod#ForbiddenException":
754
+ throw await de_ForbiddenExceptionRes(parsedOutput);
755
+ case "InternalServerErrorException":
756
+ case "com.amazonaws.mediapackagevod#InternalServerErrorException":
757
+ throw await de_InternalServerErrorExceptionRes(parsedOutput);
758
+ case "NotFoundException":
759
+ case "com.amazonaws.mediapackagevod#NotFoundException":
760
+ throw await de_NotFoundExceptionRes(parsedOutput);
761
+ case "ServiceUnavailableException":
762
+ case "com.amazonaws.mediapackagevod#ServiceUnavailableException":
763
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput);
764
+ case "TooManyRequestsException":
765
+ case "com.amazonaws.mediapackagevod#TooManyRequestsException":
766
+ throw await de_TooManyRequestsExceptionRes(parsedOutput);
767
+ case "UnprocessableEntityException":
768
+ case "com.amazonaws.mediapackagevod#UnprocessableEntityException":
769
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput);
770
+ default:
771
+ const parsedBody = parsedOutput.body;
772
+ return throwDefaultError({
773
+ output,
774
+ parsedBody,
775
+ errorCode,
776
+ });
777
+ }
778
+ };
779
+ const throwDefaultError = smithyClient.withBaseException(MediaPackageVodServiceException);
780
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
781
+ const contents = smithyClient.map({});
782
+ const data = parsedOutput.body;
783
+ const doc = smithyClient.take(data, {
784
+ Message: [, smithyClient.expectString, `message`],
785
+ });
786
+ Object.assign(contents, doc);
787
+ const exception = new ForbiddenException({
788
+ $metadata: deserializeMetadata(parsedOutput),
789
+ ...contents,
790
+ });
791
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
792
+ };
793
+ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
794
+ const contents = smithyClient.map({});
795
+ const data = parsedOutput.body;
796
+ const doc = smithyClient.take(data, {
797
+ Message: [, smithyClient.expectString, `message`],
798
+ });
799
+ Object.assign(contents, doc);
800
+ const exception = new InternalServerErrorException({
801
+ $metadata: deserializeMetadata(parsedOutput),
802
+ ...contents,
803
+ });
804
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
805
+ };
806
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
807
+ const contents = smithyClient.map({});
808
+ const data = parsedOutput.body;
809
+ const doc = smithyClient.take(data, {
810
+ Message: [, smithyClient.expectString, `message`],
811
+ });
812
+ Object.assign(contents, doc);
813
+ const exception = new NotFoundException({
814
+ $metadata: deserializeMetadata(parsedOutput),
815
+ ...contents,
816
+ });
817
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
818
+ };
819
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
820
+ const contents = smithyClient.map({});
821
+ const data = parsedOutput.body;
822
+ const doc = smithyClient.take(data, {
823
+ Message: [, smithyClient.expectString, `message`],
824
+ });
825
+ Object.assign(contents, doc);
826
+ const exception = new ServiceUnavailableException({
827
+ $metadata: deserializeMetadata(parsedOutput),
828
+ ...contents,
829
+ });
830
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
831
+ };
832
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
833
+ const contents = smithyClient.map({});
834
+ const data = parsedOutput.body;
835
+ const doc = smithyClient.take(data, {
836
+ Message: [, smithyClient.expectString, `message`],
837
+ });
838
+ Object.assign(contents, doc);
839
+ const exception = new TooManyRequestsException({
840
+ $metadata: deserializeMetadata(parsedOutput),
841
+ ...contents,
842
+ });
843
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
844
+ };
845
+ const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
846
+ const contents = smithyClient.map({});
847
+ const data = parsedOutput.body;
848
+ const doc = smithyClient.take(data, {
849
+ Message: [, smithyClient.expectString, `message`],
850
+ });
851
+ Object.assign(contents, doc);
852
+ const exception = new UnprocessableEntityException({
853
+ $metadata: deserializeMetadata(parsedOutput),
854
+ ...contents,
855
+ });
856
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
857
+ };
858
+ const se___listOfDashManifest = (input, context) => {
859
+ return input
860
+ .filter((e) => e != null)
861
+ .map((entry) => {
862
+ return se_DashManifest(entry);
863
+ });
864
+ };
865
+ const se___listOfHlsManifest = (input, context) => {
866
+ return input
867
+ .filter((e) => e != null)
868
+ .map((entry) => {
869
+ return se_HlsManifest(entry);
870
+ });
871
+ };
872
+ const se___listOfMssManifest = (input, context) => {
873
+ return input
874
+ .filter((e) => e != null)
875
+ .map((entry) => {
876
+ return se_MssManifest(entry);
877
+ });
878
+ };
879
+ const se_Authorization = (input, context) => {
880
+ return smithyClient.take(input, {
881
+ cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
882
+ secretsRoleArn: [, , `SecretsRoleArn`],
883
+ });
884
+ };
885
+ const se_CmafEncryption = (input, context) => {
886
+ return smithyClient.take(input, {
887
+ constantInitializationVector: [, , `ConstantInitializationVector`],
888
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
889
+ });
890
+ };
891
+ const se_CmafPackage = (input, context) => {
892
+ return smithyClient.take(input, {
893
+ encryption: [, (_) => se_CmafEncryption(_), `Encryption`],
894
+ hlsManifests: [, (_) => se___listOfHlsManifest(_), `HlsManifests`],
895
+ includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
896
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
897
+ });
898
+ };
899
+ const se_DashEncryption = (input, context) => {
900
+ return smithyClient.take(input, {
901
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
902
+ });
903
+ };
904
+ const se_DashManifest = (input, context) => {
905
+ return smithyClient.take(input, {
906
+ manifestLayout: [, , `ManifestLayout`],
907
+ manifestName: [, , `ManifestName`],
908
+ minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
909
+ profile: [, , `Profile`],
910
+ scteMarkersSource: [, , `ScteMarkersSource`],
911
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
912
+ });
913
+ };
914
+ const se_DashPackage = (input, context) => {
915
+ return smithyClient.take(input, {
916
+ dashManifests: [, (_) => se___listOfDashManifest(_), `DashManifests`],
917
+ encryption: [, (_) => se_DashEncryption(_), `Encryption`],
918
+ includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
919
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
920
+ periodTriggers: [, smithyClient._json, `PeriodTriggers`],
921
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
922
+ segmentTemplateFormat: [, , `SegmentTemplateFormat`],
923
+ });
924
+ };
925
+ const se_EgressAccessLogs = (input, context) => {
926
+ return smithyClient.take(input, {
927
+ logGroupName: [, , `LogGroupName`],
928
+ });
929
+ };
930
+ const se_EncryptionContractConfiguration = (input, context) => {
931
+ return smithyClient.take(input, {
932
+ presetSpeke20Audio: [, , `PresetSpeke20Audio`],
933
+ presetSpeke20Video: [, , `PresetSpeke20Video`],
934
+ });
935
+ };
936
+ const se_HlsEncryption = (input, context) => {
937
+ return smithyClient.take(input, {
938
+ constantInitializationVector: [, , `ConstantInitializationVector`],
939
+ encryptionMethod: [, , `EncryptionMethod`],
940
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
941
+ });
942
+ };
943
+ const se_HlsManifest = (input, context) => {
944
+ return smithyClient.take(input, {
945
+ adMarkers: [, , `AdMarkers`],
946
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
947
+ manifestName: [, , `ManifestName`],
948
+ programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
949
+ repeatExtXKey: [, , `RepeatExtXKey`],
950
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
951
+ });
952
+ };
953
+ const se_HlsPackage = (input, context) => {
954
+ return smithyClient.take(input, {
955
+ encryption: [, (_) => se_HlsEncryption(_), `Encryption`],
956
+ hlsManifests: [, (_) => se___listOfHlsManifest(_), `HlsManifests`],
957
+ includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
958
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
959
+ useAudioRenditionGroup: [, , `UseAudioRenditionGroup`],
960
+ });
961
+ };
962
+ const se_MssEncryption = (input, context) => {
963
+ return smithyClient.take(input, {
964
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_), `SpekeKeyProvider`],
965
+ });
966
+ };
967
+ const se_MssManifest = (input, context) => {
968
+ return smithyClient.take(input, {
969
+ manifestName: [, , `ManifestName`],
970
+ streamSelection: [, (_) => se_StreamSelection(_), `StreamSelection`],
971
+ });
972
+ };
973
+ const se_MssPackage = (input, context) => {
974
+ return smithyClient.take(input, {
975
+ encryption: [, (_) => se_MssEncryption(_), `Encryption`],
976
+ mssManifests: [, (_) => se___listOfMssManifest(_), `MssManifests`],
977
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
978
+ });
979
+ };
980
+ const se_SpekeKeyProvider = (input, context) => {
981
+ return smithyClient.take(input, {
982
+ encryptionContractConfiguration: [
983
+ ,
984
+ (_) => se_EncryptionContractConfiguration(_),
985
+ `EncryptionContractConfiguration`,
986
+ ],
987
+ roleArn: [, , `RoleArn`],
988
+ systemIds: [, smithyClient._json, `SystemIds`],
989
+ url: [, , `Url`],
990
+ });
991
+ };
992
+ const se_StreamSelection = (input, context) => {
993
+ return smithyClient.take(input, {
994
+ maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
995
+ minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
996
+ streamOrder: [, , `StreamOrder`],
997
+ });
998
+ };
999
+ const de___listOfAssetShallow = (output, context) => {
1000
+ const retVal = (output || [])
1001
+ .filter((e) => e != null)
1002
+ .map((entry) => {
1003
+ return de_AssetShallow(entry);
1004
+ });
1005
+ return retVal;
1006
+ };
1007
+ const de___listOfDashManifest = (output, context) => {
1008
+ const retVal = (output || [])
1009
+ .filter((e) => e != null)
1010
+ .map((entry) => {
1011
+ return de_DashManifest(entry);
1012
+ });
1013
+ return retVal;
1014
+ };
1015
+ const de___listOfEgressEndpoint = (output, context) => {
1016
+ const retVal = (output || [])
1017
+ .filter((e) => e != null)
1018
+ .map((entry) => {
1019
+ return de_EgressEndpoint(entry);
1020
+ });
1021
+ return retVal;
1022
+ };
1023
+ const de___listOfHlsManifest = (output, context) => {
1024
+ const retVal = (output || [])
1025
+ .filter((e) => e != null)
1026
+ .map((entry) => {
1027
+ return de_HlsManifest(entry);
1028
+ });
1029
+ return retVal;
1030
+ };
1031
+ const de___listOfMssManifest = (output, context) => {
1032
+ const retVal = (output || [])
1033
+ .filter((e) => e != null)
1034
+ .map((entry) => {
1035
+ return de_MssManifest(entry);
1036
+ });
1037
+ return retVal;
1038
+ };
1039
+ const de___listOfPackagingConfiguration = (output, context) => {
1040
+ const retVal = (output || [])
1041
+ .filter((e) => e != null)
1042
+ .map((entry) => {
1043
+ return de_PackagingConfiguration(entry);
1044
+ });
1045
+ return retVal;
1046
+ };
1047
+ const de___listOfPackagingGroup = (output, context) => {
1048
+ const retVal = (output || [])
1049
+ .filter((e) => e != null)
1050
+ .map((entry) => {
1051
+ return de_PackagingGroup(entry);
1052
+ });
1053
+ return retVal;
1054
+ };
1055
+ const de_AssetShallow = (output, context) => {
1056
+ return smithyClient.take(output, {
1057
+ Arn: [, smithyClient.expectString, `arn`],
1058
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
1059
+ Id: [, smithyClient.expectString, `id`],
1060
+ PackagingGroupId: [, smithyClient.expectString, `packagingGroupId`],
1061
+ ResourceId: [, smithyClient.expectString, `resourceId`],
1062
+ SourceArn: [, smithyClient.expectString, `sourceArn`],
1063
+ SourceRoleArn: [, smithyClient.expectString, `sourceRoleArn`],
1064
+ Tags: [, smithyClient._json, `tags`],
1065
+ });
1066
+ };
1067
+ const de_Authorization = (output, context) => {
1068
+ return smithyClient.take(output, {
1069
+ CdnIdentifierSecret: [, smithyClient.expectString, `cdnIdentifierSecret`],
1070
+ SecretsRoleArn: [, smithyClient.expectString, `secretsRoleArn`],
1071
+ });
1072
+ };
1073
+ const de_CmafEncryption = (output, context) => {
1074
+ return smithyClient.take(output, {
1075
+ ConstantInitializationVector: [, smithyClient.expectString, `constantInitializationVector`],
1076
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1077
+ });
1078
+ };
1079
+ const de_CmafPackage = (output, context) => {
1080
+ return smithyClient.take(output, {
1081
+ Encryption: [, (_) => de_CmafEncryption(_), `encryption`],
1082
+ HlsManifests: [, (_) => de___listOfHlsManifest(_), `hlsManifests`],
1083
+ IncludeEncoderConfigurationInSegments: [, smithyClient.expectBoolean, `includeEncoderConfigurationInSegments`],
1084
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1085
+ });
1086
+ };
1087
+ const de_DashEncryption = (output, context) => {
1088
+ return smithyClient.take(output, {
1089
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1090
+ });
1091
+ };
1092
+ const de_DashManifest = (output, context) => {
1093
+ return smithyClient.take(output, {
1094
+ ManifestLayout: [, smithyClient.expectString, `manifestLayout`],
1095
+ ManifestName: [, smithyClient.expectString, `manifestName`],
1096
+ MinBufferTimeSeconds: [, smithyClient.expectInt32, `minBufferTimeSeconds`],
1097
+ Profile: [, smithyClient.expectString, `profile`],
1098
+ ScteMarkersSource: [, smithyClient.expectString, `scteMarkersSource`],
1099
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1100
+ });
1101
+ };
1102
+ const de_DashPackage = (output, context) => {
1103
+ return smithyClient.take(output, {
1104
+ DashManifests: [, (_) => de___listOfDashManifest(_), `dashManifests`],
1105
+ Encryption: [, (_) => de_DashEncryption(_), `encryption`],
1106
+ IncludeEncoderConfigurationInSegments: [, smithyClient.expectBoolean, `includeEncoderConfigurationInSegments`],
1107
+ IncludeIframeOnlyStream: [, smithyClient.expectBoolean, `includeIframeOnlyStream`],
1108
+ PeriodTriggers: [, smithyClient._json, `periodTriggers`],
1109
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1110
+ SegmentTemplateFormat: [, smithyClient.expectString, `segmentTemplateFormat`],
1111
+ });
1112
+ };
1113
+ const de_EgressAccessLogs = (output, context) => {
1114
+ return smithyClient.take(output, {
1115
+ LogGroupName: [, smithyClient.expectString, `logGroupName`],
1116
+ });
1117
+ };
1118
+ const de_EgressEndpoint = (output, context) => {
1119
+ return smithyClient.take(output, {
1120
+ PackagingConfigurationId: [, smithyClient.expectString, `packagingConfigurationId`],
1121
+ Status: [, smithyClient.expectString, `status`],
1122
+ Url: [, smithyClient.expectString, `url`],
1123
+ });
1124
+ };
1125
+ const de_EncryptionContractConfiguration = (output, context) => {
1126
+ return smithyClient.take(output, {
1127
+ PresetSpeke20Audio: [, smithyClient.expectString, `presetSpeke20Audio`],
1128
+ PresetSpeke20Video: [, smithyClient.expectString, `presetSpeke20Video`],
1129
+ });
1130
+ };
1131
+ const de_HlsEncryption = (output, context) => {
1132
+ return smithyClient.take(output, {
1133
+ ConstantInitializationVector: [, smithyClient.expectString, `constantInitializationVector`],
1134
+ EncryptionMethod: [, smithyClient.expectString, `encryptionMethod`],
1135
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1136
+ });
1137
+ };
1138
+ const de_HlsManifest = (output, context) => {
1139
+ return smithyClient.take(output, {
1140
+ AdMarkers: [, smithyClient.expectString, `adMarkers`],
1141
+ IncludeIframeOnlyStream: [, smithyClient.expectBoolean, `includeIframeOnlyStream`],
1142
+ ManifestName: [, smithyClient.expectString, `manifestName`],
1143
+ ProgramDateTimeIntervalSeconds: [, smithyClient.expectInt32, `programDateTimeIntervalSeconds`],
1144
+ RepeatExtXKey: [, smithyClient.expectBoolean, `repeatExtXKey`],
1145
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1146
+ });
1147
+ };
1148
+ const de_HlsPackage = (output, context) => {
1149
+ return smithyClient.take(output, {
1150
+ Encryption: [, (_) => de_HlsEncryption(_), `encryption`],
1151
+ HlsManifests: [, (_) => de___listOfHlsManifest(_), `hlsManifests`],
1152
+ IncludeDvbSubtitles: [, smithyClient.expectBoolean, `includeDvbSubtitles`],
1153
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1154
+ UseAudioRenditionGroup: [, smithyClient.expectBoolean, `useAudioRenditionGroup`],
1155
+ });
1156
+ };
1157
+ const de_MssEncryption = (output, context) => {
1158
+ return smithyClient.take(output, {
1159
+ SpekeKeyProvider: [, (_) => de_SpekeKeyProvider(_), `spekeKeyProvider`],
1160
+ });
1161
+ };
1162
+ const de_MssManifest = (output, context) => {
1163
+ return smithyClient.take(output, {
1164
+ ManifestName: [, smithyClient.expectString, `manifestName`],
1165
+ StreamSelection: [, (_) => de_StreamSelection(_), `streamSelection`],
1166
+ });
1167
+ };
1168
+ const de_MssPackage = (output, context) => {
1169
+ return smithyClient.take(output, {
1170
+ Encryption: [, (_) => de_MssEncryption(_), `encryption`],
1171
+ MssManifests: [, (_) => de___listOfMssManifest(_), `mssManifests`],
1172
+ SegmentDurationSeconds: [, smithyClient.expectInt32, `segmentDurationSeconds`],
1173
+ });
1174
+ };
1175
+ const de_PackagingConfiguration = (output, context) => {
1176
+ return smithyClient.take(output, {
1177
+ Arn: [, smithyClient.expectString, `arn`],
1178
+ CmafPackage: [, (_) => de_CmafPackage(_), `cmafPackage`],
1179
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
1180
+ DashPackage: [, (_) => de_DashPackage(_), `dashPackage`],
1181
+ HlsPackage: [, (_) => de_HlsPackage(_), `hlsPackage`],
1182
+ Id: [, smithyClient.expectString, `id`],
1183
+ MssPackage: [, (_) => de_MssPackage(_), `mssPackage`],
1184
+ PackagingGroupId: [, smithyClient.expectString, `packagingGroupId`],
1185
+ Tags: [, smithyClient._json, `tags`],
1186
+ });
1187
+ };
1188
+ const de_PackagingGroup = (output, context) => {
1189
+ return smithyClient.take(output, {
1190
+ ApproximateAssetCount: [, smithyClient.expectInt32, `approximateAssetCount`],
1191
+ Arn: [, smithyClient.expectString, `arn`],
1192
+ Authorization: [, (_) => de_Authorization(_), `authorization`],
1193
+ CreatedAt: [, smithyClient.expectString, `createdAt`],
1194
+ DomainName: [, smithyClient.expectString, `domainName`],
1195
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_), `egressAccessLogs`],
1196
+ Id: [, smithyClient.expectString, `id`],
1197
+ Tags: [, smithyClient._json, `tags`],
1198
+ });
1199
+ };
1200
+ const de_SpekeKeyProvider = (output, context) => {
1201
+ return smithyClient.take(output, {
1202
+ EncryptionContractConfiguration: [
1203
+ ,
1204
+ (_) => de_EncryptionContractConfiguration(_),
1205
+ `encryptionContractConfiguration`,
1206
+ ],
1207
+ RoleArn: [, smithyClient.expectString, `roleArn`],
1208
+ SystemIds: [, smithyClient._json, `systemIds`],
1209
+ Url: [, smithyClient.expectString, `url`],
1210
+ });
1211
+ };
1212
+ const de_StreamSelection = (output, context) => {
1213
+ return smithyClient.take(output, {
1214
+ MaxVideoBitsPerSecond: [, smithyClient.expectInt32, `maxVideoBitsPerSecond`],
1215
+ MinVideoBitsPerSecond: [, smithyClient.expectInt32, `minVideoBitsPerSecond`],
1216
+ StreamOrder: [, smithyClient.expectString, `streamOrder`],
1217
+ });
1218
+ };
1219
+ const deserializeMetadata = (output) => ({
1220
+ httpStatusCode: output.statusCode,
1221
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1222
+ extendedRequestId: output.headers["x-amz-id-2"],
1223
+ cfId: output.headers["x-amz-cf-id"],
1224
+ });
1225
+ const _MR = "MaxResults";
1226
+ const _NT = "NextToken";
1227
+ const _PGI = "PackagingGroupId";
1228
+ const _TK = "TagKeys";
1229
+ const _mR = "maxResults";
1230
+ const _nT = "nextToken";
1231
+ const _pGI = "packagingGroupId";
1232
+ const _tK = "tagKeys";
1233
+
1234
+ class ConfigureLogsCommand extends smithyClient.Command
1235
+ .classBuilder()
1236
+ .ep(commonParams)
1237
+ .m(function (Command, cs, config, o) {
1238
+ return [
1239
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1240
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1241
+ ];
1242
+ })
1243
+ .s("MediaPackageVod", "ConfigureLogs", {})
1244
+ .n("MediaPackageVodClient", "ConfigureLogsCommand")
1245
+ .f(void 0, void 0)
1246
+ .ser(se_ConfigureLogsCommand)
1247
+ .de(de_ConfigureLogsCommand)
1248
+ .build() {
1249
+ }
1250
+
1251
+ class CreateAssetCommand extends smithyClient.Command
1252
+ .classBuilder()
1253
+ .ep(commonParams)
1254
+ .m(function (Command, cs, config, o) {
1255
+ return [
1256
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1257
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1258
+ ];
1259
+ })
1260
+ .s("MediaPackageVod", "CreateAsset", {})
1261
+ .n("MediaPackageVodClient", "CreateAssetCommand")
1262
+ .f(void 0, void 0)
1263
+ .ser(se_CreateAssetCommand)
1264
+ .de(de_CreateAssetCommand)
1265
+ .build() {
1266
+ }
1267
+
1268
+ class CreatePackagingConfigurationCommand extends smithyClient.Command
1269
+ .classBuilder()
1270
+ .ep(commonParams)
1271
+ .m(function (Command, cs, config, o) {
1272
+ return [
1273
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1274
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1275
+ ];
1276
+ })
1277
+ .s("MediaPackageVod", "CreatePackagingConfiguration", {})
1278
+ .n("MediaPackageVodClient", "CreatePackagingConfigurationCommand")
1279
+ .f(void 0, void 0)
1280
+ .ser(se_CreatePackagingConfigurationCommand)
1281
+ .de(de_CreatePackagingConfigurationCommand)
1282
+ .build() {
1283
+ }
1284
+
1285
+ class CreatePackagingGroupCommand extends smithyClient.Command
1286
+ .classBuilder()
1287
+ .ep(commonParams)
1288
+ .m(function (Command, cs, config, o) {
1289
+ return [
1290
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1291
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1292
+ ];
1293
+ })
1294
+ .s("MediaPackageVod", "CreatePackagingGroup", {})
1295
+ .n("MediaPackageVodClient", "CreatePackagingGroupCommand")
1296
+ .f(void 0, void 0)
1297
+ .ser(se_CreatePackagingGroupCommand)
1298
+ .de(de_CreatePackagingGroupCommand)
1299
+ .build() {
1300
+ }
1301
+
1302
+ class DeleteAssetCommand extends smithyClient.Command
1303
+ .classBuilder()
1304
+ .ep(commonParams)
1305
+ .m(function (Command, cs, config, o) {
1306
+ return [
1307
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1308
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1309
+ ];
1310
+ })
1311
+ .s("MediaPackageVod", "DeleteAsset", {})
1312
+ .n("MediaPackageVodClient", "DeleteAssetCommand")
1313
+ .f(void 0, void 0)
1314
+ .ser(se_DeleteAssetCommand)
1315
+ .de(de_DeleteAssetCommand)
1316
+ .build() {
1317
+ }
1318
+
1319
+ class DeletePackagingConfigurationCommand extends smithyClient.Command
1320
+ .classBuilder()
1321
+ .ep(commonParams)
1322
+ .m(function (Command, cs, config, o) {
1323
+ return [
1324
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1325
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1326
+ ];
1327
+ })
1328
+ .s("MediaPackageVod", "DeletePackagingConfiguration", {})
1329
+ .n("MediaPackageVodClient", "DeletePackagingConfigurationCommand")
1330
+ .f(void 0, void 0)
1331
+ .ser(se_DeletePackagingConfigurationCommand)
1332
+ .de(de_DeletePackagingConfigurationCommand)
1333
+ .build() {
1334
+ }
1335
+
1336
+ class DeletePackagingGroupCommand extends smithyClient.Command
1337
+ .classBuilder()
1338
+ .ep(commonParams)
1339
+ .m(function (Command, cs, config, o) {
1340
+ return [
1341
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1342
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1343
+ ];
1344
+ })
1345
+ .s("MediaPackageVod", "DeletePackagingGroup", {})
1346
+ .n("MediaPackageVodClient", "DeletePackagingGroupCommand")
1347
+ .f(void 0, void 0)
1348
+ .ser(se_DeletePackagingGroupCommand)
1349
+ .de(de_DeletePackagingGroupCommand)
1350
+ .build() {
1351
+ }
1352
+
1353
+ class DescribeAssetCommand extends smithyClient.Command
1354
+ .classBuilder()
1355
+ .ep(commonParams)
1356
+ .m(function (Command, cs, config, o) {
1357
+ return [
1358
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1359
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1360
+ ];
1361
+ })
1362
+ .s("MediaPackageVod", "DescribeAsset", {})
1363
+ .n("MediaPackageVodClient", "DescribeAssetCommand")
1364
+ .f(void 0, void 0)
1365
+ .ser(se_DescribeAssetCommand)
1366
+ .de(de_DescribeAssetCommand)
1367
+ .build() {
1368
+ }
1369
+
1370
+ class DescribePackagingConfigurationCommand extends smithyClient.Command
1371
+ .classBuilder()
1372
+ .ep(commonParams)
1373
+ .m(function (Command, cs, config, o) {
1374
+ return [
1375
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1376
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1377
+ ];
1378
+ })
1379
+ .s("MediaPackageVod", "DescribePackagingConfiguration", {})
1380
+ .n("MediaPackageVodClient", "DescribePackagingConfigurationCommand")
1381
+ .f(void 0, void 0)
1382
+ .ser(se_DescribePackagingConfigurationCommand)
1383
+ .de(de_DescribePackagingConfigurationCommand)
1384
+ .build() {
1385
+ }
1386
+
1387
+ class DescribePackagingGroupCommand extends smithyClient.Command
1388
+ .classBuilder()
1389
+ .ep(commonParams)
1390
+ .m(function (Command, cs, config, o) {
1391
+ return [
1392
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1393
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1394
+ ];
1395
+ })
1396
+ .s("MediaPackageVod", "DescribePackagingGroup", {})
1397
+ .n("MediaPackageVodClient", "DescribePackagingGroupCommand")
1398
+ .f(void 0, void 0)
1399
+ .ser(se_DescribePackagingGroupCommand)
1400
+ .de(de_DescribePackagingGroupCommand)
1401
+ .build() {
1402
+ }
1403
+
1404
+ class ListAssetsCommand extends smithyClient.Command
1405
+ .classBuilder()
1406
+ .ep(commonParams)
1407
+ .m(function (Command, cs, config, o) {
1408
+ return [
1409
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1410
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1411
+ ];
1412
+ })
1413
+ .s("MediaPackageVod", "ListAssets", {})
1414
+ .n("MediaPackageVodClient", "ListAssetsCommand")
1415
+ .f(void 0, void 0)
1416
+ .ser(se_ListAssetsCommand)
1417
+ .de(de_ListAssetsCommand)
1418
+ .build() {
1419
+ }
1420
+
1421
+ class ListPackagingConfigurationsCommand extends smithyClient.Command
1422
+ .classBuilder()
1423
+ .ep(commonParams)
1424
+ .m(function (Command, cs, config, o) {
1425
+ return [
1426
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1427
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1428
+ ];
1429
+ })
1430
+ .s("MediaPackageVod", "ListPackagingConfigurations", {})
1431
+ .n("MediaPackageVodClient", "ListPackagingConfigurationsCommand")
1432
+ .f(void 0, void 0)
1433
+ .ser(se_ListPackagingConfigurationsCommand)
1434
+ .de(de_ListPackagingConfigurationsCommand)
1435
+ .build() {
1436
+ }
1437
+
1438
+ class ListPackagingGroupsCommand extends smithyClient.Command
1439
+ .classBuilder()
1440
+ .ep(commonParams)
1441
+ .m(function (Command, cs, config, o) {
1442
+ return [
1443
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1444
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1445
+ ];
1446
+ })
1447
+ .s("MediaPackageVod", "ListPackagingGroups", {})
1448
+ .n("MediaPackageVodClient", "ListPackagingGroupsCommand")
1449
+ .f(void 0, void 0)
1450
+ .ser(se_ListPackagingGroupsCommand)
1451
+ .de(de_ListPackagingGroupsCommand)
1452
+ .build() {
1453
+ }
1454
+
1455
+ class ListTagsForResourceCommand extends smithyClient.Command
1456
+ .classBuilder()
1457
+ .ep(commonParams)
1458
+ .m(function (Command, cs, config, o) {
1459
+ return [
1460
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1461
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1462
+ ];
1463
+ })
1464
+ .s("MediaPackageVod", "ListTagsForResource", {})
1465
+ .n("MediaPackageVodClient", "ListTagsForResourceCommand")
1466
+ .f(void 0, void 0)
1467
+ .ser(se_ListTagsForResourceCommand)
1468
+ .de(de_ListTagsForResourceCommand)
1469
+ .build() {
1470
+ }
1471
+
1472
+ class TagResourceCommand extends smithyClient.Command
1473
+ .classBuilder()
1474
+ .ep(commonParams)
1475
+ .m(function (Command, cs, config, o) {
1476
+ return [
1477
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1478
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1479
+ ];
1480
+ })
1481
+ .s("MediaPackageVod", "TagResource", {})
1482
+ .n("MediaPackageVodClient", "TagResourceCommand")
1483
+ .f(void 0, void 0)
1484
+ .ser(se_TagResourceCommand)
1485
+ .de(de_TagResourceCommand)
1486
+ .build() {
1487
+ }
1488
+
1489
+ class UntagResourceCommand extends smithyClient.Command
1490
+ .classBuilder()
1491
+ .ep(commonParams)
1492
+ .m(function (Command, cs, config, o) {
1493
+ return [
1494
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1495
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1496
+ ];
1497
+ })
1498
+ .s("MediaPackageVod", "UntagResource", {})
1499
+ .n("MediaPackageVodClient", "UntagResourceCommand")
1500
+ .f(void 0, void 0)
1501
+ .ser(se_UntagResourceCommand)
1502
+ .de(de_UntagResourceCommand)
1503
+ .build() {
1504
+ }
1505
+
1506
+ class UpdatePackagingGroupCommand extends smithyClient.Command
1507
+ .classBuilder()
1508
+ .ep(commonParams)
1509
+ .m(function (Command, cs, config, o) {
1510
+ return [
1511
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1512
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1513
+ ];
1514
+ })
1515
+ .s("MediaPackageVod", "UpdatePackagingGroup", {})
1516
+ .n("MediaPackageVodClient", "UpdatePackagingGroupCommand")
1517
+ .f(void 0, void 0)
1518
+ .ser(se_UpdatePackagingGroupCommand)
1519
+ .de(de_UpdatePackagingGroupCommand)
1520
+ .build() {
1521
+ }
1522
+
1523
+ const commands = {
1524
+ ConfigureLogsCommand,
1525
+ CreateAssetCommand,
1526
+ CreatePackagingConfigurationCommand,
1527
+ CreatePackagingGroupCommand,
1528
+ DeleteAssetCommand,
1529
+ DeletePackagingConfigurationCommand,
1530
+ DeletePackagingGroupCommand,
1531
+ DescribeAssetCommand,
1532
+ DescribePackagingConfigurationCommand,
1533
+ DescribePackagingGroupCommand,
1534
+ ListAssetsCommand,
1535
+ ListPackagingConfigurationsCommand,
1536
+ ListPackagingGroupsCommand,
1537
+ ListTagsForResourceCommand,
1538
+ TagResourceCommand,
1539
+ UntagResourceCommand,
1540
+ UpdatePackagingGroupCommand,
1541
+ };
1542
+ class MediaPackageVod extends MediaPackageVodClient {
1543
+ }
1544
+ smithyClient.createAggregatedClient(commands, MediaPackageVod);
1631
1545
 
1632
- // src/MediaPackageVod.ts
1633
- var commands = {
1634
- ConfigureLogsCommand,
1635
- CreateAssetCommand,
1636
- CreatePackagingConfigurationCommand,
1637
- CreatePackagingGroupCommand,
1638
- DeleteAssetCommand,
1639
- DeletePackagingConfigurationCommand,
1640
- DeletePackagingGroupCommand,
1641
- DescribeAssetCommand,
1642
- DescribePackagingConfigurationCommand,
1643
- DescribePackagingGroupCommand,
1644
- ListAssetsCommand,
1645
- ListPackagingConfigurationsCommand,
1646
- ListPackagingGroupsCommand,
1647
- ListTagsForResourceCommand,
1648
- TagResourceCommand,
1649
- UntagResourceCommand,
1650
- UpdatePackagingGroupCommand
1651
- };
1652
- var MediaPackageVod = class extends MediaPackageVodClient {
1653
- static {
1654
- __name(this, "MediaPackageVod");
1655
- }
1656
- };
1657
- (0, import_smithy_client.createAggregatedClient)(commands, MediaPackageVod);
1658
-
1659
- // src/pagination/ListAssetsPaginator.ts
1660
-
1661
- var paginateListAssets = (0, import_core.createPaginator)(MediaPackageVodClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
1662
-
1663
- // src/pagination/ListPackagingConfigurationsPaginator.ts
1664
-
1665
- var paginateListPackagingConfigurations = (0, import_core.createPaginator)(MediaPackageVodClient, ListPackagingConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
1546
+ const paginateListAssets = core.createPaginator(MediaPackageVodClient, ListAssetsCommand, "NextToken", "NextToken", "MaxResults");
1666
1547
 
1667
- // src/pagination/ListPackagingGroupsPaginator.ts
1548
+ const paginateListPackagingConfigurations = core.createPaginator(MediaPackageVodClient, ListPackagingConfigurationsCommand, "NextToken", "NextToken", "MaxResults");
1668
1549
 
1669
- var paginateListPackagingGroups = (0, import_core.createPaginator)(MediaPackageVodClient, ListPackagingGroupsCommand, "NextToken", "NextToken", "MaxResults");
1670
- // Annotate the CommonJS export names for ESM import in node:
1550
+ const paginateListPackagingGroups = core.createPaginator(MediaPackageVodClient, ListPackagingGroupsCommand, "NextToken", "NextToken", "MaxResults");
1671
1551
 
1672
- 0 && (module.exports = {
1673
- MediaPackageVodServiceException,
1674
- __Client,
1675
- MediaPackageVodClient,
1676
- MediaPackageVod,
1677
- $Command,
1678
- ConfigureLogsCommand,
1679
- CreateAssetCommand,
1680
- CreatePackagingConfigurationCommand,
1681
- CreatePackagingGroupCommand,
1682
- DeleteAssetCommand,
1683
- DeletePackagingConfigurationCommand,
1684
- DeletePackagingGroupCommand,
1685
- DescribeAssetCommand,
1686
- DescribePackagingConfigurationCommand,
1687
- DescribePackagingGroupCommand,
1688
- ListAssetsCommand,
1689
- ListPackagingConfigurationsCommand,
1690
- ListPackagingGroupsCommand,
1691
- ListTagsForResourceCommand,
1692
- TagResourceCommand,
1693
- UntagResourceCommand,
1694
- UpdatePackagingGroupCommand,
1695
- paginateListAssets,
1696
- paginateListPackagingConfigurations,
1697
- paginateListPackagingGroups,
1698
- __PeriodTriggersElement,
1699
- ManifestLayout,
1700
- Profile,
1701
- ScteMarkersSource,
1702
- StreamOrder,
1703
- AdMarkers,
1704
- PresetSpeke20Audio,
1705
- PresetSpeke20Video,
1706
- SegmentTemplateFormat,
1707
- EncryptionMethod,
1708
- ForbiddenException,
1709
- InternalServerErrorException,
1710
- NotFoundException,
1711
- ServiceUnavailableException,
1712
- TooManyRequestsException,
1713
- UnprocessableEntityException
1552
+ Object.defineProperty(exports, "$Command", {
1553
+ enumerable: true,
1554
+ get: function () { return smithyClient.Command; }
1714
1555
  });
1715
-
1556
+ Object.defineProperty(exports, "__Client", {
1557
+ enumerable: true,
1558
+ get: function () { return smithyClient.Client; }
1559
+ });
1560
+ exports.AdMarkers = AdMarkers;
1561
+ exports.ConfigureLogsCommand = ConfigureLogsCommand;
1562
+ exports.CreateAssetCommand = CreateAssetCommand;
1563
+ exports.CreatePackagingConfigurationCommand = CreatePackagingConfigurationCommand;
1564
+ exports.CreatePackagingGroupCommand = CreatePackagingGroupCommand;
1565
+ exports.DeleteAssetCommand = DeleteAssetCommand;
1566
+ exports.DeletePackagingConfigurationCommand = DeletePackagingConfigurationCommand;
1567
+ exports.DeletePackagingGroupCommand = DeletePackagingGroupCommand;
1568
+ exports.DescribeAssetCommand = DescribeAssetCommand;
1569
+ exports.DescribePackagingConfigurationCommand = DescribePackagingConfigurationCommand;
1570
+ exports.DescribePackagingGroupCommand = DescribePackagingGroupCommand;
1571
+ exports.EncryptionMethod = EncryptionMethod;
1572
+ exports.ForbiddenException = ForbiddenException;
1573
+ exports.InternalServerErrorException = InternalServerErrorException;
1574
+ exports.ListAssetsCommand = ListAssetsCommand;
1575
+ exports.ListPackagingConfigurationsCommand = ListPackagingConfigurationsCommand;
1576
+ exports.ListPackagingGroupsCommand = ListPackagingGroupsCommand;
1577
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1578
+ exports.ManifestLayout = ManifestLayout;
1579
+ exports.MediaPackageVod = MediaPackageVod;
1580
+ exports.MediaPackageVodClient = MediaPackageVodClient;
1581
+ exports.MediaPackageVodServiceException = MediaPackageVodServiceException;
1582
+ exports.NotFoundException = NotFoundException;
1583
+ exports.PresetSpeke20Audio = PresetSpeke20Audio;
1584
+ exports.PresetSpeke20Video = PresetSpeke20Video;
1585
+ exports.Profile = Profile;
1586
+ exports.ScteMarkersSource = ScteMarkersSource;
1587
+ exports.SegmentTemplateFormat = SegmentTemplateFormat;
1588
+ exports.ServiceUnavailableException = ServiceUnavailableException;
1589
+ exports.StreamOrder = StreamOrder;
1590
+ exports.TagResourceCommand = TagResourceCommand;
1591
+ exports.TooManyRequestsException = TooManyRequestsException;
1592
+ exports.UnprocessableEntityException = UnprocessableEntityException;
1593
+ exports.UntagResourceCommand = UntagResourceCommand;
1594
+ exports.UpdatePackagingGroupCommand = UpdatePackagingGroupCommand;
1595
+ exports.__PeriodTriggersElement = __PeriodTriggersElement;
1596
+ exports.paginateListAssets = paginateListAssets;
1597
+ exports.paginateListPackagingConfigurations = paginateListPackagingConfigurations;
1598
+ exports.paginateListPackagingGroups = paginateListPackagingGroups;