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