@aws-sdk/client-mediapackage-vod 3.131.0 → 3.142.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/ConfigureLogsCommand.js +2 -2
- package/dist-cjs/commands/CreateAssetCommand.js +2 -2
- package/dist-cjs/commands/CreatePackagingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/CreatePackagingGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssetCommand.js +2 -2
- package/dist-cjs/commands/DeletePackagingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeletePackagingGroupCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssetCommand.js +2 -2
- package/dist-cjs/commands/DescribePackagingConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribePackagingGroupCommand.js +2 -2
- package/dist-cjs/commands/ListAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListPackagingConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListPackagingGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +1 -1
- package/dist-cjs/commands/UntagResourceCommand.js +1 -1
- package/dist-cjs/commands/UpdatePackagingGroupCommand.js +2 -2
- package/dist-cjs/models/models_0.js +206 -308
- package/dist-cjs/protocols/Aws_restJson1.js +248 -486
- package/dist-es/commands/ConfigureLogsCommand.js +3 -3
- package/dist-es/commands/CreateAssetCommand.js +3 -3
- package/dist-es/commands/CreatePackagingConfigurationCommand.js +3 -3
- package/dist-es/commands/CreatePackagingGroupCommand.js +3 -3
- package/dist-es/commands/DeleteAssetCommand.js +3 -3
- package/dist-es/commands/DeletePackagingConfigurationCommand.js +3 -3
- package/dist-es/commands/DeletePackagingGroupCommand.js +3 -3
- package/dist-es/commands/DescribeAssetCommand.js +3 -3
- package/dist-es/commands/DescribePackagingConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribePackagingGroupCommand.js +3 -3
- package/dist-es/commands/ListAssetsCommand.js +3 -3
- package/dist-es/commands/ListPackagingConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListPackagingGroupsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/UpdatePackagingGroupCommand.js +3 -3
- package/dist-es/models/models_0.js +51 -204
- package/dist-es/protocols/Aws_restJson1.js +305 -485
- package/dist-types/models/models_0.d.ts +204 -306
- package/dist-types/ts3.4/models/models_0.d.ts +102 -204
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { MediaPackageVodServiceException as __BaseException } from "../models/MediaPackageVodServiceException";
|
|
5
5
|
import { ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnprocessableEntityException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1ConfigureLogsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -14,16 +14,7 @@ export var serializeAws_restJson1ConfigureLogsCommand = function (input, context
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}/configure_logs";
|
|
17
|
-
|
|
18
|
-
labelValue = input.Id;
|
|
19
|
-
if (labelValue.length <= 0) {
|
|
20
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
21
|
-
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
26
|
-
}
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
27
18
|
body = JSON.stringify(__assign({}, (input.EgressAccessLogs != null && {
|
|
28
19
|
egressAccessLogs: serializeAws_restJson1EgressAccessLogs(input.EgressAccessLogs, context),
|
|
29
20
|
})));
|
|
@@ -116,7 +107,7 @@ export var serializeAws_restJson1CreatePackagingGroupCommand = function (input,
|
|
|
116
107
|
});
|
|
117
108
|
}); };
|
|
118
109
|
export var serializeAws_restJson1DeleteAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
110
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
120
111
|
return __generator(this, function (_c) {
|
|
121
112
|
switch (_c.label) {
|
|
122
113
|
case 0: return [4, context.endpoint()];
|
|
@@ -124,16 +115,7 @@ export var serializeAws_restJson1DeleteAssetCommand = function (input, context)
|
|
|
124
115
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
125
116
|
headers = {};
|
|
126
117
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{Id}";
|
|
127
|
-
|
|
128
|
-
labelValue = input.Id;
|
|
129
|
-
if (labelValue.length <= 0) {
|
|
130
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
131
|
-
}
|
|
132
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
136
|
-
}
|
|
118
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
137
119
|
return [2, new __HttpRequest({
|
|
138
120
|
protocol: protocol,
|
|
139
121
|
hostname: hostname,
|
|
@@ -147,7 +129,7 @@ export var serializeAws_restJson1DeleteAssetCommand = function (input, context)
|
|
|
147
129
|
});
|
|
148
130
|
}); };
|
|
149
131
|
export var serializeAws_restJson1DeletePackagingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
132
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
151
133
|
return __generator(this, function (_c) {
|
|
152
134
|
switch (_c.label) {
|
|
153
135
|
case 0: return [4, context.endpoint()];
|
|
@@ -155,16 +137,7 @@ export var serializeAws_restJson1DeletePackagingConfigurationCommand = function
|
|
|
155
137
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
156
138
|
headers = {};
|
|
157
139
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations/{Id}";
|
|
158
|
-
|
|
159
|
-
labelValue = input.Id;
|
|
160
|
-
if (labelValue.length <= 0) {
|
|
161
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
162
|
-
}
|
|
163
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
167
|
-
}
|
|
140
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
168
141
|
return [2, new __HttpRequest({
|
|
169
142
|
protocol: protocol,
|
|
170
143
|
hostname: hostname,
|
|
@@ -178,7 +151,7 @@ export var serializeAws_restJson1DeletePackagingConfigurationCommand = function
|
|
|
178
151
|
});
|
|
179
152
|
}); };
|
|
180
153
|
export var serializeAws_restJson1DeletePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
181
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
154
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
182
155
|
return __generator(this, function (_c) {
|
|
183
156
|
switch (_c.label) {
|
|
184
157
|
case 0: return [4, context.endpoint()];
|
|
@@ -186,16 +159,7 @@ export var serializeAws_restJson1DeletePackagingGroupCommand = function (input,
|
|
|
186
159
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
187
160
|
headers = {};
|
|
188
161
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}";
|
|
189
|
-
|
|
190
|
-
labelValue = input.Id;
|
|
191
|
-
if (labelValue.length <= 0) {
|
|
192
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
193
|
-
}
|
|
194
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
198
|
-
}
|
|
162
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
199
163
|
return [2, new __HttpRequest({
|
|
200
164
|
protocol: protocol,
|
|
201
165
|
hostname: hostname,
|
|
@@ -209,7 +173,7 @@ export var serializeAws_restJson1DeletePackagingGroupCommand = function (input,
|
|
|
209
173
|
});
|
|
210
174
|
}); };
|
|
211
175
|
export var serializeAws_restJson1DescribeAssetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
176
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
213
177
|
return __generator(this, function (_c) {
|
|
214
178
|
switch (_c.label) {
|
|
215
179
|
case 0: return [4, context.endpoint()];
|
|
@@ -217,16 +181,7 @@ export var serializeAws_restJson1DescribeAssetCommand = function (input, context
|
|
|
217
181
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
218
182
|
headers = {};
|
|
219
183
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets/{Id}";
|
|
220
|
-
|
|
221
|
-
labelValue = input.Id;
|
|
222
|
-
if (labelValue.length <= 0) {
|
|
223
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
224
|
-
}
|
|
225
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
229
|
-
}
|
|
184
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
230
185
|
return [2, new __HttpRequest({
|
|
231
186
|
protocol: protocol,
|
|
232
187
|
hostname: hostname,
|
|
@@ -240,7 +195,7 @@ export var serializeAws_restJson1DescribeAssetCommand = function (input, context
|
|
|
240
195
|
});
|
|
241
196
|
}); };
|
|
242
197
|
export var serializeAws_restJson1DescribePackagingConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
198
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
244
199
|
return __generator(this, function (_c) {
|
|
245
200
|
switch (_c.label) {
|
|
246
201
|
case 0: return [4, context.endpoint()];
|
|
@@ -248,16 +203,7 @@ export var serializeAws_restJson1DescribePackagingConfigurationCommand = functio
|
|
|
248
203
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
249
204
|
headers = {};
|
|
250
205
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations/{Id}";
|
|
251
|
-
|
|
252
|
-
labelValue = input.Id;
|
|
253
|
-
if (labelValue.length <= 0) {
|
|
254
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
255
|
-
}
|
|
256
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
260
|
-
}
|
|
206
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
261
207
|
return [2, new __HttpRequest({
|
|
262
208
|
protocol: protocol,
|
|
263
209
|
hostname: hostname,
|
|
@@ -271,7 +217,7 @@ export var serializeAws_restJson1DescribePackagingConfigurationCommand = functio
|
|
|
271
217
|
});
|
|
272
218
|
}); };
|
|
273
219
|
export var serializeAws_restJson1DescribePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
274
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
220
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
275
221
|
return __generator(this, function (_c) {
|
|
276
222
|
switch (_c.label) {
|
|
277
223
|
case 0: return [4, context.endpoint()];
|
|
@@ -279,16 +225,7 @@ export var serializeAws_restJson1DescribePackagingGroupCommand = function (input
|
|
|
279
225
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
280
226
|
headers = {};
|
|
281
227
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}";
|
|
282
|
-
|
|
283
|
-
labelValue = input.Id;
|
|
284
|
-
if (labelValue.length <= 0) {
|
|
285
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
286
|
-
}
|
|
287
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
291
|
-
}
|
|
228
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
292
229
|
return [2, new __HttpRequest({
|
|
293
230
|
protocol: protocol,
|
|
294
231
|
hostname: hostname,
|
|
@@ -310,7 +247,11 @@ export var serializeAws_restJson1ListAssetsCommand = function (input, context) {
|
|
|
310
247
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
311
248
|
headers = {};
|
|
312
249
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assets";
|
|
313
|
-
query =
|
|
250
|
+
query = map({
|
|
251
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
252
|
+
nextToken: [, input.NextToken],
|
|
253
|
+
packagingGroupId: [, input.PackagingGroupId],
|
|
254
|
+
});
|
|
314
255
|
return [2, new __HttpRequest({
|
|
315
256
|
protocol: protocol,
|
|
316
257
|
hostname: hostname,
|
|
@@ -333,7 +274,11 @@ export var serializeAws_restJson1ListPackagingConfigurationsCommand = function (
|
|
|
333
274
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
334
275
|
headers = {};
|
|
335
276
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_configurations";
|
|
336
|
-
query =
|
|
277
|
+
query = map({
|
|
278
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
279
|
+
nextToken: [, input.NextToken],
|
|
280
|
+
packagingGroupId: [, input.PackagingGroupId],
|
|
281
|
+
});
|
|
337
282
|
return [2, new __HttpRequest({
|
|
338
283
|
protocol: protocol,
|
|
339
284
|
hostname: hostname,
|
|
@@ -356,7 +301,10 @@ export var serializeAws_restJson1ListPackagingGroupsCommand = function (input, c
|
|
|
356
301
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
357
302
|
headers = {};
|
|
358
303
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups";
|
|
359
|
-
query =
|
|
304
|
+
query = map({
|
|
305
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
306
|
+
nextToken: [, input.NextToken],
|
|
307
|
+
});
|
|
360
308
|
return [2, new __HttpRequest({
|
|
361
309
|
protocol: protocol,
|
|
362
310
|
hostname: hostname,
|
|
@@ -371,7 +319,7 @@ export var serializeAws_restJson1ListPackagingGroupsCommand = function (input, c
|
|
|
371
319
|
});
|
|
372
320
|
}); };
|
|
373
321
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
374
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
322
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
375
323
|
return __generator(this, function (_c) {
|
|
376
324
|
switch (_c.label) {
|
|
377
325
|
case 0: return [4, context.endpoint()];
|
|
@@ -379,16 +327,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
379
327
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
380
328
|
headers = {};
|
|
381
329
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
382
|
-
|
|
383
|
-
labelValue = input.ResourceArn;
|
|
384
|
-
if (labelValue.length <= 0) {
|
|
385
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
386
|
-
}
|
|
387
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
388
|
-
}
|
|
389
|
-
else {
|
|
390
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
391
|
-
}
|
|
330
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
392
331
|
return [2, new __HttpRequest({
|
|
393
332
|
protocol: protocol,
|
|
394
333
|
hostname: hostname,
|
|
@@ -402,7 +341,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
402
341
|
});
|
|
403
342
|
}); };
|
|
404
343
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
405
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
344
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
406
345
|
return __generator(this, function (_c) {
|
|
407
346
|
switch (_c.label) {
|
|
408
347
|
case 0: return [4, context.endpoint()];
|
|
@@ -412,16 +351,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
412
351
|
"content-type": "application/json",
|
|
413
352
|
};
|
|
414
353
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
415
|
-
|
|
416
|
-
labelValue = input.ResourceArn;
|
|
417
|
-
if (labelValue.length <= 0) {
|
|
418
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
419
|
-
}
|
|
420
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
421
|
-
}
|
|
422
|
-
else {
|
|
423
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
424
|
-
}
|
|
354
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
425
355
|
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
426
356
|
return [2, new __HttpRequest({
|
|
427
357
|
protocol: protocol,
|
|
@@ -436,7 +366,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
436
366
|
});
|
|
437
367
|
}); };
|
|
438
368
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
439
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
369
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
440
370
|
return __generator(this, function (_c) {
|
|
441
371
|
switch (_c.label) {
|
|
442
372
|
case 0: return [4, context.endpoint()];
|
|
@@ -444,17 +374,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
444
374
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
445
375
|
headers = {};
|
|
446
376
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
456
|
-
}
|
|
457
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
377
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
378
|
+
query = map({
|
|
379
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
380
|
+
});
|
|
458
381
|
return [2, new __HttpRequest({
|
|
459
382
|
protocol: protocol,
|
|
460
383
|
hostname: hostname,
|
|
@@ -469,7 +392,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
469
392
|
});
|
|
470
393
|
}); };
|
|
471
394
|
export var serializeAws_restJson1UpdatePackagingGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
472
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
395
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
473
396
|
return __generator(this, function (_c) {
|
|
474
397
|
switch (_c.label) {
|
|
475
398
|
case 0: return [4, context.endpoint()];
|
|
@@ -479,16 +402,7 @@ export var serializeAws_restJson1UpdatePackagingGroupCommand = function (input,
|
|
|
479
402
|
"content-type": "application/json",
|
|
480
403
|
};
|
|
481
404
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/packaging_groups/{Id}";
|
|
482
|
-
|
|
483
|
-
labelValue = input.Id;
|
|
484
|
-
if (labelValue.length <= 0) {
|
|
485
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
486
|
-
}
|
|
487
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
491
|
-
}
|
|
405
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
492
406
|
body = JSON.stringify(__assign({}, (input.Authorization != null && {
|
|
493
407
|
authorization: serializeAws_restJson1Authorization(input.Authorization, context),
|
|
494
408
|
})));
|
|
@@ -512,44 +426,38 @@ export var deserializeAws_restJson1ConfigureLogsCommand = function (output, cont
|
|
|
512
426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
513
427
|
return [2, deserializeAws_restJson1ConfigureLogsCommandError(output, context)];
|
|
514
428
|
}
|
|
515
|
-
contents = {
|
|
429
|
+
contents = map({
|
|
516
430
|
$metadata: deserializeMetadata(output),
|
|
517
|
-
|
|
518
|
-
Authorization: undefined,
|
|
519
|
-
DomainName: undefined,
|
|
520
|
-
EgressAccessLogs: undefined,
|
|
521
|
-
Id: undefined,
|
|
522
|
-
Tags: undefined,
|
|
523
|
-
};
|
|
431
|
+
});
|
|
524
432
|
_a = __expectNonNull;
|
|
525
433
|
_b = __expectObject;
|
|
526
434
|
return [4, parseBody(output.body, context)];
|
|
527
435
|
case 1:
|
|
528
436
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
529
|
-
if (data.arn
|
|
437
|
+
if (data.arn != null) {
|
|
530
438
|
contents.Arn = __expectString(data.arn);
|
|
531
439
|
}
|
|
532
|
-
if (data.authorization
|
|
440
|
+
if (data.authorization != null) {
|
|
533
441
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
534
442
|
}
|
|
535
|
-
if (data.domainName
|
|
443
|
+
if (data.domainName != null) {
|
|
536
444
|
contents.DomainName = __expectString(data.domainName);
|
|
537
445
|
}
|
|
538
|
-
if (data.egressAccessLogs
|
|
446
|
+
if (data.egressAccessLogs != null) {
|
|
539
447
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
540
448
|
}
|
|
541
|
-
if (data.id
|
|
449
|
+
if (data.id != null) {
|
|
542
450
|
contents.Id = __expectString(data.id);
|
|
543
451
|
}
|
|
544
|
-
if (data.tags
|
|
452
|
+
if (data.tags != null) {
|
|
545
453
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
546
454
|
}
|
|
547
|
-
return [2,
|
|
455
|
+
return [2, contents];
|
|
548
456
|
}
|
|
549
457
|
});
|
|
550
458
|
}); };
|
|
551
459
|
var deserializeAws_restJson1ConfigureLogsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
552
|
-
var parsedOutput, _a,
|
|
460
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
553
461
|
var _c;
|
|
554
462
|
return __generator(this, function (_d) {
|
|
555
463
|
switch (_d.label) {
|
|
@@ -590,14 +498,14 @@ var deserializeAws_restJson1ConfigureLogsCommandError = function (output, contex
|
|
|
590
498
|
case 13: throw _d.sent();
|
|
591
499
|
case 14:
|
|
592
500
|
parsedBody = parsedOutput.body;
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
$metadata: $metadata,
|
|
501
|
+
throwDefaultError({
|
|
502
|
+
output: output,
|
|
503
|
+
parsedBody: parsedBody,
|
|
504
|
+
exceptionCtor: __BaseException,
|
|
505
|
+
errorCode: errorCode,
|
|
599
506
|
});
|
|
600
|
-
|
|
507
|
+
_d.label = 15;
|
|
508
|
+
case 15: return [2];
|
|
601
509
|
}
|
|
602
510
|
});
|
|
603
511
|
}); };
|
|
@@ -609,56 +517,47 @@ export var deserializeAws_restJson1CreateAssetCommand = function (output, contex
|
|
|
609
517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
518
|
return [2, deserializeAws_restJson1CreateAssetCommandError(output, context)];
|
|
611
519
|
}
|
|
612
|
-
contents = {
|
|
520
|
+
contents = map({
|
|
613
521
|
$metadata: deserializeMetadata(output),
|
|
614
|
-
|
|
615
|
-
CreatedAt: undefined,
|
|
616
|
-
EgressEndpoints: undefined,
|
|
617
|
-
Id: undefined,
|
|
618
|
-
PackagingGroupId: undefined,
|
|
619
|
-
ResourceId: undefined,
|
|
620
|
-
SourceArn: undefined,
|
|
621
|
-
SourceRoleArn: undefined,
|
|
622
|
-
Tags: undefined,
|
|
623
|
-
};
|
|
522
|
+
});
|
|
624
523
|
_a = __expectNonNull;
|
|
625
524
|
_b = __expectObject;
|
|
626
525
|
return [4, parseBody(output.body, context)];
|
|
627
526
|
case 1:
|
|
628
527
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
629
|
-
if (data.arn
|
|
528
|
+
if (data.arn != null) {
|
|
630
529
|
contents.Arn = __expectString(data.arn);
|
|
631
530
|
}
|
|
632
|
-
if (data.createdAt
|
|
531
|
+
if (data.createdAt != null) {
|
|
633
532
|
contents.CreatedAt = __expectString(data.createdAt);
|
|
634
533
|
}
|
|
635
|
-
if (data.egressEndpoints
|
|
534
|
+
if (data.egressEndpoints != null) {
|
|
636
535
|
contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
|
|
637
536
|
}
|
|
638
|
-
if (data.id
|
|
537
|
+
if (data.id != null) {
|
|
639
538
|
contents.Id = __expectString(data.id);
|
|
640
539
|
}
|
|
641
|
-
if (data.packagingGroupId
|
|
540
|
+
if (data.packagingGroupId != null) {
|
|
642
541
|
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
643
542
|
}
|
|
644
|
-
if (data.resourceId
|
|
543
|
+
if (data.resourceId != null) {
|
|
645
544
|
contents.ResourceId = __expectString(data.resourceId);
|
|
646
545
|
}
|
|
647
|
-
if (data.sourceArn
|
|
546
|
+
if (data.sourceArn != null) {
|
|
648
547
|
contents.SourceArn = __expectString(data.sourceArn);
|
|
649
548
|
}
|
|
650
|
-
if (data.sourceRoleArn
|
|
549
|
+
if (data.sourceRoleArn != null) {
|
|
651
550
|
contents.SourceRoleArn = __expectString(data.sourceRoleArn);
|
|
652
551
|
}
|
|
653
|
-
if (data.tags
|
|
552
|
+
if (data.tags != null) {
|
|
654
553
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
655
554
|
}
|
|
656
|
-
return [2,
|
|
555
|
+
return [2, contents];
|
|
657
556
|
}
|
|
658
557
|
});
|
|
659
558
|
}); };
|
|
660
559
|
var deserializeAws_restJson1CreateAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
661
|
-
var parsedOutput, _a,
|
|
560
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
662
561
|
var _c;
|
|
663
562
|
return __generator(this, function (_d) {
|
|
664
563
|
switch (_d.label) {
|
|
@@ -699,14 +598,14 @@ var deserializeAws_restJson1CreateAssetCommandError = function (output, context)
|
|
|
699
598
|
case 13: throw _d.sent();
|
|
700
599
|
case 14:
|
|
701
600
|
parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata: $metadata,
|
|
601
|
+
throwDefaultError({
|
|
602
|
+
output: output,
|
|
603
|
+
parsedBody: parsedBody,
|
|
604
|
+
exceptionCtor: __BaseException,
|
|
605
|
+
errorCode: errorCode,
|
|
708
606
|
});
|
|
709
|
-
|
|
607
|
+
_d.label = 15;
|
|
608
|
+
case 15: return [2];
|
|
710
609
|
}
|
|
711
610
|
});
|
|
712
611
|
}); };
|
|
@@ -718,52 +617,44 @@ export var deserializeAws_restJson1CreatePackagingConfigurationCommand = functio
|
|
|
718
617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
618
|
return [2, deserializeAws_restJson1CreatePackagingConfigurationCommandError(output, context)];
|
|
720
619
|
}
|
|
721
|
-
contents = {
|
|
620
|
+
contents = map({
|
|
722
621
|
$metadata: deserializeMetadata(output),
|
|
723
|
-
|
|
724
|
-
CmafPackage: undefined,
|
|
725
|
-
DashPackage: undefined,
|
|
726
|
-
HlsPackage: undefined,
|
|
727
|
-
Id: undefined,
|
|
728
|
-
MssPackage: undefined,
|
|
729
|
-
PackagingGroupId: undefined,
|
|
730
|
-
Tags: undefined,
|
|
731
|
-
};
|
|
622
|
+
});
|
|
732
623
|
_a = __expectNonNull;
|
|
733
624
|
_b = __expectObject;
|
|
734
625
|
return [4, parseBody(output.body, context)];
|
|
735
626
|
case 1:
|
|
736
627
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
737
|
-
if (data.arn
|
|
628
|
+
if (data.arn != null) {
|
|
738
629
|
contents.Arn = __expectString(data.arn);
|
|
739
630
|
}
|
|
740
|
-
if (data.cmafPackage
|
|
631
|
+
if (data.cmafPackage != null) {
|
|
741
632
|
contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
|
|
742
633
|
}
|
|
743
|
-
if (data.dashPackage
|
|
634
|
+
if (data.dashPackage != null) {
|
|
744
635
|
contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
|
|
745
636
|
}
|
|
746
|
-
if (data.hlsPackage
|
|
637
|
+
if (data.hlsPackage != null) {
|
|
747
638
|
contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
|
|
748
639
|
}
|
|
749
|
-
if (data.id
|
|
640
|
+
if (data.id != null) {
|
|
750
641
|
contents.Id = __expectString(data.id);
|
|
751
642
|
}
|
|
752
|
-
if (data.mssPackage
|
|
643
|
+
if (data.mssPackage != null) {
|
|
753
644
|
contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
|
|
754
645
|
}
|
|
755
|
-
if (data.packagingGroupId
|
|
646
|
+
if (data.packagingGroupId != null) {
|
|
756
647
|
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
757
648
|
}
|
|
758
|
-
if (data.tags
|
|
649
|
+
if (data.tags != null) {
|
|
759
650
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
760
651
|
}
|
|
761
|
-
return [2,
|
|
652
|
+
return [2, contents];
|
|
762
653
|
}
|
|
763
654
|
});
|
|
764
655
|
}); };
|
|
765
656
|
var deserializeAws_restJson1CreatePackagingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
766
|
-
var parsedOutput, _a,
|
|
657
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
767
658
|
var _c;
|
|
768
659
|
return __generator(this, function (_d) {
|
|
769
660
|
switch (_d.label) {
|
|
@@ -804,14 +695,14 @@ var deserializeAws_restJson1CreatePackagingConfigurationCommandError = function
|
|
|
804
695
|
case 13: throw _d.sent();
|
|
805
696
|
case 14:
|
|
806
697
|
parsedBody = parsedOutput.body;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
$metadata: $metadata,
|
|
698
|
+
throwDefaultError({
|
|
699
|
+
output: output,
|
|
700
|
+
parsedBody: parsedBody,
|
|
701
|
+
exceptionCtor: __BaseException,
|
|
702
|
+
errorCode: errorCode,
|
|
813
703
|
});
|
|
814
|
-
|
|
704
|
+
_d.label = 15;
|
|
705
|
+
case 15: return [2];
|
|
815
706
|
}
|
|
816
707
|
});
|
|
817
708
|
}); };
|
|
@@ -823,44 +714,38 @@ export var deserializeAws_restJson1CreatePackagingGroupCommand = function (outpu
|
|
|
823
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
824
715
|
return [2, deserializeAws_restJson1CreatePackagingGroupCommandError(output, context)];
|
|
825
716
|
}
|
|
826
|
-
contents = {
|
|
717
|
+
contents = map({
|
|
827
718
|
$metadata: deserializeMetadata(output),
|
|
828
|
-
|
|
829
|
-
Authorization: undefined,
|
|
830
|
-
DomainName: undefined,
|
|
831
|
-
EgressAccessLogs: undefined,
|
|
832
|
-
Id: undefined,
|
|
833
|
-
Tags: undefined,
|
|
834
|
-
};
|
|
719
|
+
});
|
|
835
720
|
_a = __expectNonNull;
|
|
836
721
|
_b = __expectObject;
|
|
837
722
|
return [4, parseBody(output.body, context)];
|
|
838
723
|
case 1:
|
|
839
724
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
840
|
-
if (data.arn
|
|
725
|
+
if (data.arn != null) {
|
|
841
726
|
contents.Arn = __expectString(data.arn);
|
|
842
727
|
}
|
|
843
|
-
if (data.authorization
|
|
728
|
+
if (data.authorization != null) {
|
|
844
729
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
845
730
|
}
|
|
846
|
-
if (data.domainName
|
|
731
|
+
if (data.domainName != null) {
|
|
847
732
|
contents.DomainName = __expectString(data.domainName);
|
|
848
733
|
}
|
|
849
|
-
if (data.egressAccessLogs
|
|
734
|
+
if (data.egressAccessLogs != null) {
|
|
850
735
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
851
736
|
}
|
|
852
|
-
if (data.id
|
|
737
|
+
if (data.id != null) {
|
|
853
738
|
contents.Id = __expectString(data.id);
|
|
854
739
|
}
|
|
855
|
-
if (data.tags
|
|
740
|
+
if (data.tags != null) {
|
|
856
741
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
857
742
|
}
|
|
858
|
-
return [2,
|
|
743
|
+
return [2, contents];
|
|
859
744
|
}
|
|
860
745
|
});
|
|
861
746
|
}); };
|
|
862
747
|
var deserializeAws_restJson1CreatePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
863
|
-
var parsedOutput, _a,
|
|
748
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
864
749
|
var _c;
|
|
865
750
|
return __generator(this, function (_d) {
|
|
866
751
|
switch (_d.label) {
|
|
@@ -901,14 +786,14 @@ var deserializeAws_restJson1CreatePackagingGroupCommandError = function (output,
|
|
|
901
786
|
case 13: throw _d.sent();
|
|
902
787
|
case 14:
|
|
903
788
|
parsedBody = parsedOutput.body;
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
$metadata: $metadata,
|
|
789
|
+
throwDefaultError({
|
|
790
|
+
output: output,
|
|
791
|
+
parsedBody: parsedBody,
|
|
792
|
+
exceptionCtor: __BaseException,
|
|
793
|
+
errorCode: errorCode,
|
|
910
794
|
});
|
|
911
|
-
|
|
795
|
+
_d.label = 15;
|
|
796
|
+
case 15: return [2];
|
|
912
797
|
}
|
|
913
798
|
});
|
|
914
799
|
}); };
|
|
@@ -920,18 +805,18 @@ export var deserializeAws_restJson1DeleteAssetCommand = function (output, contex
|
|
|
920
805
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
921
806
|
return [2, deserializeAws_restJson1DeleteAssetCommandError(output, context)];
|
|
922
807
|
}
|
|
923
|
-
contents = {
|
|
808
|
+
contents = map({
|
|
924
809
|
$metadata: deserializeMetadata(output),
|
|
925
|
-
};
|
|
810
|
+
});
|
|
926
811
|
return [4, collectBody(output.body, context)];
|
|
927
812
|
case 1:
|
|
928
813
|
_a.sent();
|
|
929
|
-
return [2,
|
|
814
|
+
return [2, contents];
|
|
930
815
|
}
|
|
931
816
|
});
|
|
932
817
|
}); };
|
|
933
818
|
var deserializeAws_restJson1DeleteAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
934
|
-
var parsedOutput, _a,
|
|
819
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
935
820
|
var _c;
|
|
936
821
|
return __generator(this, function (_d) {
|
|
937
822
|
switch (_d.label) {
|
|
@@ -972,14 +857,14 @@ var deserializeAws_restJson1DeleteAssetCommandError = function (output, context)
|
|
|
972
857
|
case 13: throw _d.sent();
|
|
973
858
|
case 14:
|
|
974
859
|
parsedBody = parsedOutput.body;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
$metadata: $metadata,
|
|
860
|
+
throwDefaultError({
|
|
861
|
+
output: output,
|
|
862
|
+
parsedBody: parsedBody,
|
|
863
|
+
exceptionCtor: __BaseException,
|
|
864
|
+
errorCode: errorCode,
|
|
981
865
|
});
|
|
982
|
-
|
|
866
|
+
_d.label = 15;
|
|
867
|
+
case 15: return [2];
|
|
983
868
|
}
|
|
984
869
|
});
|
|
985
870
|
}); };
|
|
@@ -991,18 +876,18 @@ export var deserializeAws_restJson1DeletePackagingConfigurationCommand = functio
|
|
|
991
876
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
992
877
|
return [2, deserializeAws_restJson1DeletePackagingConfigurationCommandError(output, context)];
|
|
993
878
|
}
|
|
994
|
-
contents = {
|
|
879
|
+
contents = map({
|
|
995
880
|
$metadata: deserializeMetadata(output),
|
|
996
|
-
};
|
|
881
|
+
});
|
|
997
882
|
return [4, collectBody(output.body, context)];
|
|
998
883
|
case 1:
|
|
999
884
|
_a.sent();
|
|
1000
|
-
return [2,
|
|
885
|
+
return [2, contents];
|
|
1001
886
|
}
|
|
1002
887
|
});
|
|
1003
888
|
}); };
|
|
1004
889
|
var deserializeAws_restJson1DeletePackagingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1005
|
-
var parsedOutput, _a,
|
|
890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1006
891
|
var _c;
|
|
1007
892
|
return __generator(this, function (_d) {
|
|
1008
893
|
switch (_d.label) {
|
|
@@ -1043,14 +928,14 @@ var deserializeAws_restJson1DeletePackagingConfigurationCommandError = function
|
|
|
1043
928
|
case 13: throw _d.sent();
|
|
1044
929
|
case 14:
|
|
1045
930
|
parsedBody = parsedOutput.body;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
$metadata: $metadata,
|
|
931
|
+
throwDefaultError({
|
|
932
|
+
output: output,
|
|
933
|
+
parsedBody: parsedBody,
|
|
934
|
+
exceptionCtor: __BaseException,
|
|
935
|
+
errorCode: errorCode,
|
|
1052
936
|
});
|
|
1053
|
-
|
|
937
|
+
_d.label = 15;
|
|
938
|
+
case 15: return [2];
|
|
1054
939
|
}
|
|
1055
940
|
});
|
|
1056
941
|
}); };
|
|
@@ -1062,18 +947,18 @@ export var deserializeAws_restJson1DeletePackagingGroupCommand = function (outpu
|
|
|
1062
947
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1063
948
|
return [2, deserializeAws_restJson1DeletePackagingGroupCommandError(output, context)];
|
|
1064
949
|
}
|
|
1065
|
-
contents = {
|
|
950
|
+
contents = map({
|
|
1066
951
|
$metadata: deserializeMetadata(output),
|
|
1067
|
-
};
|
|
952
|
+
});
|
|
1068
953
|
return [4, collectBody(output.body, context)];
|
|
1069
954
|
case 1:
|
|
1070
955
|
_a.sent();
|
|
1071
|
-
return [2,
|
|
956
|
+
return [2, contents];
|
|
1072
957
|
}
|
|
1073
958
|
});
|
|
1074
959
|
}); };
|
|
1075
960
|
var deserializeAws_restJson1DeletePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1076
|
-
var parsedOutput, _a,
|
|
961
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1077
962
|
var _c;
|
|
1078
963
|
return __generator(this, function (_d) {
|
|
1079
964
|
switch (_d.label) {
|
|
@@ -1114,14 +999,14 @@ var deserializeAws_restJson1DeletePackagingGroupCommandError = function (output,
|
|
|
1114
999
|
case 13: throw _d.sent();
|
|
1115
1000
|
case 14:
|
|
1116
1001
|
parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata: $metadata,
|
|
1002
|
+
throwDefaultError({
|
|
1003
|
+
output: output,
|
|
1004
|
+
parsedBody: parsedBody,
|
|
1005
|
+
exceptionCtor: __BaseException,
|
|
1006
|
+
errorCode: errorCode,
|
|
1123
1007
|
});
|
|
1124
|
-
|
|
1008
|
+
_d.label = 15;
|
|
1009
|
+
case 15: return [2];
|
|
1125
1010
|
}
|
|
1126
1011
|
});
|
|
1127
1012
|
}); };
|
|
@@ -1133,56 +1018,47 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
|
|
|
1133
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
1019
|
return [2, deserializeAws_restJson1DescribeAssetCommandError(output, context)];
|
|
1135
1020
|
}
|
|
1136
|
-
contents = {
|
|
1021
|
+
contents = map({
|
|
1137
1022
|
$metadata: deserializeMetadata(output),
|
|
1138
|
-
|
|
1139
|
-
CreatedAt: undefined,
|
|
1140
|
-
EgressEndpoints: undefined,
|
|
1141
|
-
Id: undefined,
|
|
1142
|
-
PackagingGroupId: undefined,
|
|
1143
|
-
ResourceId: undefined,
|
|
1144
|
-
SourceArn: undefined,
|
|
1145
|
-
SourceRoleArn: undefined,
|
|
1146
|
-
Tags: undefined,
|
|
1147
|
-
};
|
|
1023
|
+
});
|
|
1148
1024
|
_a = __expectNonNull;
|
|
1149
1025
|
_b = __expectObject;
|
|
1150
1026
|
return [4, parseBody(output.body, context)];
|
|
1151
1027
|
case 1:
|
|
1152
1028
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1153
|
-
if (data.arn
|
|
1029
|
+
if (data.arn != null) {
|
|
1154
1030
|
contents.Arn = __expectString(data.arn);
|
|
1155
1031
|
}
|
|
1156
|
-
if (data.createdAt
|
|
1032
|
+
if (data.createdAt != null) {
|
|
1157
1033
|
contents.CreatedAt = __expectString(data.createdAt);
|
|
1158
1034
|
}
|
|
1159
|
-
if (data.egressEndpoints
|
|
1035
|
+
if (data.egressEndpoints != null) {
|
|
1160
1036
|
contents.EgressEndpoints = deserializeAws_restJson1__listOfEgressEndpoint(data.egressEndpoints, context);
|
|
1161
1037
|
}
|
|
1162
|
-
if (data.id
|
|
1038
|
+
if (data.id != null) {
|
|
1163
1039
|
contents.Id = __expectString(data.id);
|
|
1164
1040
|
}
|
|
1165
|
-
if (data.packagingGroupId
|
|
1041
|
+
if (data.packagingGroupId != null) {
|
|
1166
1042
|
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
1167
1043
|
}
|
|
1168
|
-
if (data.resourceId
|
|
1044
|
+
if (data.resourceId != null) {
|
|
1169
1045
|
contents.ResourceId = __expectString(data.resourceId);
|
|
1170
1046
|
}
|
|
1171
|
-
if (data.sourceArn
|
|
1047
|
+
if (data.sourceArn != null) {
|
|
1172
1048
|
contents.SourceArn = __expectString(data.sourceArn);
|
|
1173
1049
|
}
|
|
1174
|
-
if (data.sourceRoleArn
|
|
1050
|
+
if (data.sourceRoleArn != null) {
|
|
1175
1051
|
contents.SourceRoleArn = __expectString(data.sourceRoleArn);
|
|
1176
1052
|
}
|
|
1177
|
-
if (data.tags
|
|
1053
|
+
if (data.tags != null) {
|
|
1178
1054
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1179
1055
|
}
|
|
1180
|
-
return [2,
|
|
1056
|
+
return [2, contents];
|
|
1181
1057
|
}
|
|
1182
1058
|
});
|
|
1183
1059
|
}); };
|
|
1184
1060
|
var deserializeAws_restJson1DescribeAssetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1185
|
-
var parsedOutput, _a,
|
|
1061
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1186
1062
|
var _c;
|
|
1187
1063
|
return __generator(this, function (_d) {
|
|
1188
1064
|
switch (_d.label) {
|
|
@@ -1223,14 +1099,14 @@ var deserializeAws_restJson1DescribeAssetCommandError = function (output, contex
|
|
|
1223
1099
|
case 13: throw _d.sent();
|
|
1224
1100
|
case 14:
|
|
1225
1101
|
parsedBody = parsedOutput.body;
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
$metadata: $metadata,
|
|
1102
|
+
throwDefaultError({
|
|
1103
|
+
output: output,
|
|
1104
|
+
parsedBody: parsedBody,
|
|
1105
|
+
exceptionCtor: __BaseException,
|
|
1106
|
+
errorCode: errorCode,
|
|
1232
1107
|
});
|
|
1233
|
-
|
|
1108
|
+
_d.label = 15;
|
|
1109
|
+
case 15: return [2];
|
|
1234
1110
|
}
|
|
1235
1111
|
});
|
|
1236
1112
|
}); };
|
|
@@ -1242,52 +1118,44 @@ export var deserializeAws_restJson1DescribePackagingConfigurationCommand = funct
|
|
|
1242
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1243
1119
|
return [2, deserializeAws_restJson1DescribePackagingConfigurationCommandError(output, context)];
|
|
1244
1120
|
}
|
|
1245
|
-
contents = {
|
|
1121
|
+
contents = map({
|
|
1246
1122
|
$metadata: deserializeMetadata(output),
|
|
1247
|
-
|
|
1248
|
-
CmafPackage: undefined,
|
|
1249
|
-
DashPackage: undefined,
|
|
1250
|
-
HlsPackage: undefined,
|
|
1251
|
-
Id: undefined,
|
|
1252
|
-
MssPackage: undefined,
|
|
1253
|
-
PackagingGroupId: undefined,
|
|
1254
|
-
Tags: undefined,
|
|
1255
|
-
};
|
|
1123
|
+
});
|
|
1256
1124
|
_a = __expectNonNull;
|
|
1257
1125
|
_b = __expectObject;
|
|
1258
1126
|
return [4, parseBody(output.body, context)];
|
|
1259
1127
|
case 1:
|
|
1260
1128
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1261
|
-
if (data.arn
|
|
1129
|
+
if (data.arn != null) {
|
|
1262
1130
|
contents.Arn = __expectString(data.arn);
|
|
1263
1131
|
}
|
|
1264
|
-
if (data.cmafPackage
|
|
1132
|
+
if (data.cmafPackage != null) {
|
|
1265
1133
|
contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
|
|
1266
1134
|
}
|
|
1267
|
-
if (data.dashPackage
|
|
1135
|
+
if (data.dashPackage != null) {
|
|
1268
1136
|
contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
|
|
1269
1137
|
}
|
|
1270
|
-
if (data.hlsPackage
|
|
1138
|
+
if (data.hlsPackage != null) {
|
|
1271
1139
|
contents.HlsPackage = deserializeAws_restJson1HlsPackage(data.hlsPackage, context);
|
|
1272
1140
|
}
|
|
1273
|
-
if (data.id
|
|
1141
|
+
if (data.id != null) {
|
|
1274
1142
|
contents.Id = __expectString(data.id);
|
|
1275
1143
|
}
|
|
1276
|
-
if (data.mssPackage
|
|
1144
|
+
if (data.mssPackage != null) {
|
|
1277
1145
|
contents.MssPackage = deserializeAws_restJson1MssPackage(data.mssPackage, context);
|
|
1278
1146
|
}
|
|
1279
|
-
if (data.packagingGroupId
|
|
1147
|
+
if (data.packagingGroupId != null) {
|
|
1280
1148
|
contents.PackagingGroupId = __expectString(data.packagingGroupId);
|
|
1281
1149
|
}
|
|
1282
|
-
if (data.tags
|
|
1150
|
+
if (data.tags != null) {
|
|
1283
1151
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1284
1152
|
}
|
|
1285
|
-
return [2,
|
|
1153
|
+
return [2, contents];
|
|
1286
1154
|
}
|
|
1287
1155
|
});
|
|
1288
1156
|
}); };
|
|
1289
1157
|
var deserializeAws_restJson1DescribePackagingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1290
|
-
var parsedOutput, _a,
|
|
1158
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1291
1159
|
var _c;
|
|
1292
1160
|
return __generator(this, function (_d) {
|
|
1293
1161
|
switch (_d.label) {
|
|
@@ -1328,14 +1196,14 @@ var deserializeAws_restJson1DescribePackagingConfigurationCommandError = functio
|
|
|
1328
1196
|
case 13: throw _d.sent();
|
|
1329
1197
|
case 14:
|
|
1330
1198
|
parsedBody = parsedOutput.body;
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
$metadata: $metadata,
|
|
1199
|
+
throwDefaultError({
|
|
1200
|
+
output: output,
|
|
1201
|
+
parsedBody: parsedBody,
|
|
1202
|
+
exceptionCtor: __BaseException,
|
|
1203
|
+
errorCode: errorCode,
|
|
1337
1204
|
});
|
|
1338
|
-
|
|
1205
|
+
_d.label = 15;
|
|
1206
|
+
case 15: return [2];
|
|
1339
1207
|
}
|
|
1340
1208
|
});
|
|
1341
1209
|
}); };
|
|
@@ -1347,44 +1215,38 @@ export var deserializeAws_restJson1DescribePackagingGroupCommand = function (out
|
|
|
1347
1215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
1216
|
return [2, deserializeAws_restJson1DescribePackagingGroupCommandError(output, context)];
|
|
1349
1217
|
}
|
|
1350
|
-
contents = {
|
|
1218
|
+
contents = map({
|
|
1351
1219
|
$metadata: deserializeMetadata(output),
|
|
1352
|
-
|
|
1353
|
-
Authorization: undefined,
|
|
1354
|
-
DomainName: undefined,
|
|
1355
|
-
EgressAccessLogs: undefined,
|
|
1356
|
-
Id: undefined,
|
|
1357
|
-
Tags: undefined,
|
|
1358
|
-
};
|
|
1220
|
+
});
|
|
1359
1221
|
_a = __expectNonNull;
|
|
1360
1222
|
_b = __expectObject;
|
|
1361
1223
|
return [4, parseBody(output.body, context)];
|
|
1362
1224
|
case 1:
|
|
1363
1225
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1364
|
-
if (data.arn
|
|
1226
|
+
if (data.arn != null) {
|
|
1365
1227
|
contents.Arn = __expectString(data.arn);
|
|
1366
1228
|
}
|
|
1367
|
-
if (data.authorization
|
|
1229
|
+
if (data.authorization != null) {
|
|
1368
1230
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
1369
1231
|
}
|
|
1370
|
-
if (data.domainName
|
|
1232
|
+
if (data.domainName != null) {
|
|
1371
1233
|
contents.DomainName = __expectString(data.domainName);
|
|
1372
1234
|
}
|
|
1373
|
-
if (data.egressAccessLogs
|
|
1235
|
+
if (data.egressAccessLogs != null) {
|
|
1374
1236
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
1375
1237
|
}
|
|
1376
|
-
if (data.id
|
|
1238
|
+
if (data.id != null) {
|
|
1377
1239
|
contents.Id = __expectString(data.id);
|
|
1378
1240
|
}
|
|
1379
|
-
if (data.tags
|
|
1241
|
+
if (data.tags != null) {
|
|
1380
1242
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1381
1243
|
}
|
|
1382
|
-
return [2,
|
|
1244
|
+
return [2, contents];
|
|
1383
1245
|
}
|
|
1384
1246
|
});
|
|
1385
1247
|
}); };
|
|
1386
1248
|
var deserializeAws_restJson1DescribePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1387
|
-
var parsedOutput, _a,
|
|
1249
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1388
1250
|
var _c;
|
|
1389
1251
|
return __generator(this, function (_d) {
|
|
1390
1252
|
switch (_d.label) {
|
|
@@ -1425,14 +1287,14 @@ var deserializeAws_restJson1DescribePackagingGroupCommandError = function (outpu
|
|
|
1425
1287
|
case 13: throw _d.sent();
|
|
1426
1288
|
case 14:
|
|
1427
1289
|
parsedBody = parsedOutput.body;
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
$metadata: $metadata,
|
|
1290
|
+
throwDefaultError({
|
|
1291
|
+
output: output,
|
|
1292
|
+
parsedBody: parsedBody,
|
|
1293
|
+
exceptionCtor: __BaseException,
|
|
1294
|
+
errorCode: errorCode,
|
|
1434
1295
|
});
|
|
1435
|
-
|
|
1296
|
+
_d.label = 15;
|
|
1297
|
+
case 15: return [2];
|
|
1436
1298
|
}
|
|
1437
1299
|
});
|
|
1438
1300
|
}); };
|
|
@@ -1444,28 +1306,26 @@ export var deserializeAws_restJson1ListAssetsCommand = function (output, context
|
|
|
1444
1306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
1307
|
return [2, deserializeAws_restJson1ListAssetsCommandError(output, context)];
|
|
1446
1308
|
}
|
|
1447
|
-
contents = {
|
|
1309
|
+
contents = map({
|
|
1448
1310
|
$metadata: deserializeMetadata(output),
|
|
1449
|
-
|
|
1450
|
-
NextToken: undefined,
|
|
1451
|
-
};
|
|
1311
|
+
});
|
|
1452
1312
|
_a = __expectNonNull;
|
|
1453
1313
|
_b = __expectObject;
|
|
1454
1314
|
return [4, parseBody(output.body, context)];
|
|
1455
1315
|
case 1:
|
|
1456
1316
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1457
|
-
if (data.assets
|
|
1317
|
+
if (data.assets != null) {
|
|
1458
1318
|
contents.Assets = deserializeAws_restJson1__listOfAssetShallow(data.assets, context);
|
|
1459
1319
|
}
|
|
1460
|
-
if (data.nextToken
|
|
1320
|
+
if (data.nextToken != null) {
|
|
1461
1321
|
contents.NextToken = __expectString(data.nextToken);
|
|
1462
1322
|
}
|
|
1463
|
-
return [2,
|
|
1323
|
+
return [2, contents];
|
|
1464
1324
|
}
|
|
1465
1325
|
});
|
|
1466
1326
|
}); };
|
|
1467
1327
|
var deserializeAws_restJson1ListAssetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1468
|
-
var parsedOutput, _a,
|
|
1328
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1469
1329
|
var _c;
|
|
1470
1330
|
return __generator(this, function (_d) {
|
|
1471
1331
|
switch (_d.label) {
|
|
@@ -1506,14 +1366,14 @@ var deserializeAws_restJson1ListAssetsCommandError = function (output, context)
|
|
|
1506
1366
|
case 13: throw _d.sent();
|
|
1507
1367
|
case 14:
|
|
1508
1368
|
parsedBody = parsedOutput.body;
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
$metadata: $metadata,
|
|
1369
|
+
throwDefaultError({
|
|
1370
|
+
output: output,
|
|
1371
|
+
parsedBody: parsedBody,
|
|
1372
|
+
exceptionCtor: __BaseException,
|
|
1373
|
+
errorCode: errorCode,
|
|
1515
1374
|
});
|
|
1516
|
-
|
|
1375
|
+
_d.label = 15;
|
|
1376
|
+
case 15: return [2];
|
|
1517
1377
|
}
|
|
1518
1378
|
});
|
|
1519
1379
|
}); };
|
|
@@ -1525,28 +1385,26 @@ export var deserializeAws_restJson1ListPackagingConfigurationsCommand = function
|
|
|
1525
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1526
1386
|
return [2, deserializeAws_restJson1ListPackagingConfigurationsCommandError(output, context)];
|
|
1527
1387
|
}
|
|
1528
|
-
contents = {
|
|
1388
|
+
contents = map({
|
|
1529
1389
|
$metadata: deserializeMetadata(output),
|
|
1530
|
-
|
|
1531
|
-
PackagingConfigurations: undefined,
|
|
1532
|
-
};
|
|
1390
|
+
});
|
|
1533
1391
|
_a = __expectNonNull;
|
|
1534
1392
|
_b = __expectObject;
|
|
1535
1393
|
return [4, parseBody(output.body, context)];
|
|
1536
1394
|
case 1:
|
|
1537
1395
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1538
|
-
if (data.nextToken
|
|
1396
|
+
if (data.nextToken != null) {
|
|
1539
1397
|
contents.NextToken = __expectString(data.nextToken);
|
|
1540
1398
|
}
|
|
1541
|
-
if (data.packagingConfigurations
|
|
1399
|
+
if (data.packagingConfigurations != null) {
|
|
1542
1400
|
contents.PackagingConfigurations = deserializeAws_restJson1__listOfPackagingConfiguration(data.packagingConfigurations, context);
|
|
1543
1401
|
}
|
|
1544
|
-
return [2,
|
|
1402
|
+
return [2, contents];
|
|
1545
1403
|
}
|
|
1546
1404
|
});
|
|
1547
1405
|
}); };
|
|
1548
1406
|
var deserializeAws_restJson1ListPackagingConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1549
|
-
var parsedOutput, _a,
|
|
1407
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1550
1408
|
var _c;
|
|
1551
1409
|
return __generator(this, function (_d) {
|
|
1552
1410
|
switch (_d.label) {
|
|
@@ -1587,14 +1445,14 @@ var deserializeAws_restJson1ListPackagingConfigurationsCommandError = function (
|
|
|
1587
1445
|
case 13: throw _d.sent();
|
|
1588
1446
|
case 14:
|
|
1589
1447
|
parsedBody = parsedOutput.body;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
$metadata: $metadata,
|
|
1448
|
+
throwDefaultError({
|
|
1449
|
+
output: output,
|
|
1450
|
+
parsedBody: parsedBody,
|
|
1451
|
+
exceptionCtor: __BaseException,
|
|
1452
|
+
errorCode: errorCode,
|
|
1596
1453
|
});
|
|
1597
|
-
|
|
1454
|
+
_d.label = 15;
|
|
1455
|
+
case 15: return [2];
|
|
1598
1456
|
}
|
|
1599
1457
|
});
|
|
1600
1458
|
}); };
|
|
@@ -1606,28 +1464,26 @@ export var deserializeAws_restJson1ListPackagingGroupsCommand = function (output
|
|
|
1606
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
1465
|
return [2, deserializeAws_restJson1ListPackagingGroupsCommandError(output, context)];
|
|
1608
1466
|
}
|
|
1609
|
-
contents = {
|
|
1467
|
+
contents = map({
|
|
1610
1468
|
$metadata: deserializeMetadata(output),
|
|
1611
|
-
|
|
1612
|
-
PackagingGroups: undefined,
|
|
1613
|
-
};
|
|
1469
|
+
});
|
|
1614
1470
|
_a = __expectNonNull;
|
|
1615
1471
|
_b = __expectObject;
|
|
1616
1472
|
return [4, parseBody(output.body, context)];
|
|
1617
1473
|
case 1:
|
|
1618
1474
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1619
|
-
if (data.nextToken
|
|
1475
|
+
if (data.nextToken != null) {
|
|
1620
1476
|
contents.NextToken = __expectString(data.nextToken);
|
|
1621
1477
|
}
|
|
1622
|
-
if (data.packagingGroups
|
|
1478
|
+
if (data.packagingGroups != null) {
|
|
1623
1479
|
contents.PackagingGroups = deserializeAws_restJson1__listOfPackagingGroup(data.packagingGroups, context);
|
|
1624
1480
|
}
|
|
1625
|
-
return [2,
|
|
1481
|
+
return [2, contents];
|
|
1626
1482
|
}
|
|
1627
1483
|
});
|
|
1628
1484
|
}); };
|
|
1629
1485
|
var deserializeAws_restJson1ListPackagingGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1630
|
-
var parsedOutput, _a,
|
|
1486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1631
1487
|
var _c;
|
|
1632
1488
|
return __generator(this, function (_d) {
|
|
1633
1489
|
switch (_d.label) {
|
|
@@ -1668,14 +1524,14 @@ var deserializeAws_restJson1ListPackagingGroupsCommandError = function (output,
|
|
|
1668
1524
|
case 13: throw _d.sent();
|
|
1669
1525
|
case 14:
|
|
1670
1526
|
parsedBody = parsedOutput.body;
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
$metadata: $metadata,
|
|
1527
|
+
throwDefaultError({
|
|
1528
|
+
output: output,
|
|
1529
|
+
parsedBody: parsedBody,
|
|
1530
|
+
exceptionCtor: __BaseException,
|
|
1531
|
+
errorCode: errorCode,
|
|
1677
1532
|
});
|
|
1678
|
-
|
|
1533
|
+
_d.label = 15;
|
|
1534
|
+
case 15: return [2];
|
|
1679
1535
|
}
|
|
1680
1536
|
});
|
|
1681
1537
|
}); };
|
|
@@ -1687,24 +1543,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1687
1543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1688
1544
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1689
1545
|
}
|
|
1690
|
-
contents = {
|
|
1546
|
+
contents = map({
|
|
1691
1547
|
$metadata: deserializeMetadata(output),
|
|
1692
|
-
|
|
1693
|
-
};
|
|
1548
|
+
});
|
|
1694
1549
|
_a = __expectNonNull;
|
|
1695
1550
|
_b = __expectObject;
|
|
1696
1551
|
return [4, parseBody(output.body, context)];
|
|
1697
1552
|
case 1:
|
|
1698
1553
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1699
|
-
if (data.tags
|
|
1554
|
+
if (data.tags != null) {
|
|
1700
1555
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
1701
1556
|
}
|
|
1702
|
-
return [2,
|
|
1557
|
+
return [2, contents];
|
|
1703
1558
|
}
|
|
1704
1559
|
});
|
|
1705
1560
|
}); };
|
|
1706
1561
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1707
|
-
var parsedOutput, _a,
|
|
1562
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1708
1563
|
var _b;
|
|
1709
1564
|
return __generator(this, function (_c) {
|
|
1710
1565
|
switch (_c.label) {
|
|
@@ -1715,18 +1570,13 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1715
1570
|
case 1:
|
|
1716
1571
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1717
1572
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
$fault: "client",
|
|
1726
|
-
$metadata: $metadata,
|
|
1727
|
-
});
|
|
1728
|
-
throw __decorateServiceException(response, parsedBody);
|
|
1729
|
-
}
|
|
1573
|
+
parsedBody = parsedOutput.body;
|
|
1574
|
+
throwDefaultError({
|
|
1575
|
+
output: output,
|
|
1576
|
+
parsedBody: parsedBody,
|
|
1577
|
+
exceptionCtor: __BaseException,
|
|
1578
|
+
errorCode: errorCode,
|
|
1579
|
+
});
|
|
1730
1580
|
return [2];
|
|
1731
1581
|
}
|
|
1732
1582
|
});
|
|
@@ -1739,18 +1589,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1739
1589
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1740
1590
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1741
1591
|
}
|
|
1742
|
-
contents = {
|
|
1592
|
+
contents = map({
|
|
1743
1593
|
$metadata: deserializeMetadata(output),
|
|
1744
|
-
};
|
|
1594
|
+
});
|
|
1745
1595
|
return [4, collectBody(output.body, context)];
|
|
1746
1596
|
case 1:
|
|
1747
1597
|
_a.sent();
|
|
1748
|
-
return [2,
|
|
1598
|
+
return [2, contents];
|
|
1749
1599
|
}
|
|
1750
1600
|
});
|
|
1751
1601
|
}); };
|
|
1752
1602
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1753
|
-
var parsedOutput, _a,
|
|
1603
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1754
1604
|
var _b;
|
|
1755
1605
|
return __generator(this, function (_c) {
|
|
1756
1606
|
switch (_c.label) {
|
|
@@ -1761,18 +1611,13 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1761
1611
|
case 1:
|
|
1762
1612
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1763
1613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
$fault: "client",
|
|
1772
|
-
$metadata: $metadata,
|
|
1773
|
-
});
|
|
1774
|
-
throw __decorateServiceException(response, parsedBody);
|
|
1775
|
-
}
|
|
1614
|
+
parsedBody = parsedOutput.body;
|
|
1615
|
+
throwDefaultError({
|
|
1616
|
+
output: output,
|
|
1617
|
+
parsedBody: parsedBody,
|
|
1618
|
+
exceptionCtor: __BaseException,
|
|
1619
|
+
errorCode: errorCode,
|
|
1620
|
+
});
|
|
1776
1621
|
return [2];
|
|
1777
1622
|
}
|
|
1778
1623
|
});
|
|
@@ -1785,18 +1630,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1785
1630
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1786
1631
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1787
1632
|
}
|
|
1788
|
-
contents = {
|
|
1633
|
+
contents = map({
|
|
1789
1634
|
$metadata: deserializeMetadata(output),
|
|
1790
|
-
};
|
|
1635
|
+
});
|
|
1791
1636
|
return [4, collectBody(output.body, context)];
|
|
1792
1637
|
case 1:
|
|
1793
1638
|
_a.sent();
|
|
1794
|
-
return [2,
|
|
1639
|
+
return [2, contents];
|
|
1795
1640
|
}
|
|
1796
1641
|
});
|
|
1797
1642
|
}); };
|
|
1798
1643
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1799
|
-
var parsedOutput, _a,
|
|
1644
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
1800
1645
|
var _b;
|
|
1801
1646
|
return __generator(this, function (_c) {
|
|
1802
1647
|
switch (_c.label) {
|
|
@@ -1807,18 +1652,13 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1807
1652
|
case 1:
|
|
1808
1653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
1809
1654
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
$fault: "client",
|
|
1818
|
-
$metadata: $metadata,
|
|
1819
|
-
});
|
|
1820
|
-
throw __decorateServiceException(response, parsedBody);
|
|
1821
|
-
}
|
|
1655
|
+
parsedBody = parsedOutput.body;
|
|
1656
|
+
throwDefaultError({
|
|
1657
|
+
output: output,
|
|
1658
|
+
parsedBody: parsedBody,
|
|
1659
|
+
exceptionCtor: __BaseException,
|
|
1660
|
+
errorCode: errorCode,
|
|
1661
|
+
});
|
|
1822
1662
|
return [2];
|
|
1823
1663
|
}
|
|
1824
1664
|
});
|
|
@@ -1831,44 +1671,38 @@ export var deserializeAws_restJson1UpdatePackagingGroupCommand = function (outpu
|
|
|
1831
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1832
1672
|
return [2, deserializeAws_restJson1UpdatePackagingGroupCommandError(output, context)];
|
|
1833
1673
|
}
|
|
1834
|
-
contents = {
|
|
1674
|
+
contents = map({
|
|
1835
1675
|
$metadata: deserializeMetadata(output),
|
|
1836
|
-
|
|
1837
|
-
Authorization: undefined,
|
|
1838
|
-
DomainName: undefined,
|
|
1839
|
-
EgressAccessLogs: undefined,
|
|
1840
|
-
Id: undefined,
|
|
1841
|
-
Tags: undefined,
|
|
1842
|
-
};
|
|
1676
|
+
});
|
|
1843
1677
|
_a = __expectNonNull;
|
|
1844
1678
|
_b = __expectObject;
|
|
1845
1679
|
return [4, parseBody(output.body, context)];
|
|
1846
1680
|
case 1:
|
|
1847
1681
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1848
|
-
if (data.arn
|
|
1682
|
+
if (data.arn != null) {
|
|
1849
1683
|
contents.Arn = __expectString(data.arn);
|
|
1850
1684
|
}
|
|
1851
|
-
if (data.authorization
|
|
1685
|
+
if (data.authorization != null) {
|
|
1852
1686
|
contents.Authorization = deserializeAws_restJson1Authorization(data.authorization, context);
|
|
1853
1687
|
}
|
|
1854
|
-
if (data.domainName
|
|
1688
|
+
if (data.domainName != null) {
|
|
1855
1689
|
contents.DomainName = __expectString(data.domainName);
|
|
1856
1690
|
}
|
|
1857
|
-
if (data.egressAccessLogs
|
|
1691
|
+
if (data.egressAccessLogs != null) {
|
|
1858
1692
|
contents.EgressAccessLogs = deserializeAws_restJson1EgressAccessLogs(data.egressAccessLogs, context);
|
|
1859
1693
|
}
|
|
1860
|
-
if (data.id
|
|
1694
|
+
if (data.id != null) {
|
|
1861
1695
|
contents.Id = __expectString(data.id);
|
|
1862
1696
|
}
|
|
1863
|
-
if (data.tags
|
|
1697
|
+
if (data.tags != null) {
|
|
1864
1698
|
contents.Tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1865
1699
|
}
|
|
1866
|
-
return [2,
|
|
1700
|
+
return [2, contents];
|
|
1867
1701
|
}
|
|
1868
1702
|
});
|
|
1869
1703
|
}); };
|
|
1870
1704
|
var deserializeAws_restJson1UpdatePackagingGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1871
|
-
var parsedOutput, _a,
|
|
1705
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1872
1706
|
var _c;
|
|
1873
1707
|
return __generator(this, function (_d) {
|
|
1874
1708
|
switch (_d.label) {
|
|
@@ -1909,23 +1743,24 @@ var deserializeAws_restJson1UpdatePackagingGroupCommandError = function (output,
|
|
|
1909
1743
|
case 13: throw _d.sent();
|
|
1910
1744
|
case 14:
|
|
1911
1745
|
parsedBody = parsedOutput.body;
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
$metadata: $metadata,
|
|
1746
|
+
throwDefaultError({
|
|
1747
|
+
output: output,
|
|
1748
|
+
parsedBody: parsedBody,
|
|
1749
|
+
exceptionCtor: __BaseException,
|
|
1750
|
+
errorCode: errorCode,
|
|
1918
1751
|
});
|
|
1919
|
-
|
|
1752
|
+
_d.label = 15;
|
|
1753
|
+
case 15: return [2];
|
|
1920
1754
|
}
|
|
1921
1755
|
});
|
|
1922
1756
|
}); };
|
|
1757
|
+
var map = __map;
|
|
1923
1758
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1924
1759
|
var contents, data, exception;
|
|
1925
1760
|
return __generator(this, function (_a) {
|
|
1926
|
-
contents = {};
|
|
1761
|
+
contents = map({});
|
|
1927
1762
|
data = parsedOutput.body;
|
|
1928
|
-
if (data.message
|
|
1763
|
+
if (data.message != null) {
|
|
1929
1764
|
contents.Message = __expectString(data.message);
|
|
1930
1765
|
}
|
|
1931
1766
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1935,9 +1770,9 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
1935
1770
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1936
1771
|
var contents, data, exception;
|
|
1937
1772
|
return __generator(this, function (_a) {
|
|
1938
|
-
contents = {};
|
|
1773
|
+
contents = map({});
|
|
1939
1774
|
data = parsedOutput.body;
|
|
1940
|
-
if (data.message
|
|
1775
|
+
if (data.message != null) {
|
|
1941
1776
|
contents.Message = __expectString(data.message);
|
|
1942
1777
|
}
|
|
1943
1778
|
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1947,9 +1782,9 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
1947
1782
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1948
1783
|
var contents, data, exception;
|
|
1949
1784
|
return __generator(this, function (_a) {
|
|
1950
|
-
contents = {};
|
|
1785
|
+
contents = map({});
|
|
1951
1786
|
data = parsedOutput.body;
|
|
1952
|
-
if (data.message
|
|
1787
|
+
if (data.message != null) {
|
|
1953
1788
|
contents.Message = __expectString(data.message);
|
|
1954
1789
|
}
|
|
1955
1790
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1959,9 +1794,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
1959
1794
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1960
1795
|
var contents, data, exception;
|
|
1961
1796
|
return __generator(this, function (_a) {
|
|
1962
|
-
contents = {};
|
|
1797
|
+
contents = map({});
|
|
1963
1798
|
data = parsedOutput.body;
|
|
1964
|
-
if (data.message
|
|
1799
|
+
if (data.message != null) {
|
|
1965
1800
|
contents.Message = __expectString(data.message);
|
|
1966
1801
|
}
|
|
1967
1802
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1971,9 +1806,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
1971
1806
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1972
1807
|
var contents, data, exception;
|
|
1973
1808
|
return __generator(this, function (_a) {
|
|
1974
|
-
contents = {};
|
|
1809
|
+
contents = map({});
|
|
1975
1810
|
data = parsedOutput.body;
|
|
1976
|
-
if (data.message
|
|
1811
|
+
if (data.message != null) {
|
|
1977
1812
|
contents.Message = __expectString(data.message);
|
|
1978
1813
|
}
|
|
1979
1814
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1983,9 +1818,9 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
1983
1818
|
var deserializeAws_restJson1UnprocessableEntityExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1984
1819
|
var contents, data, exception;
|
|
1985
1820
|
return __generator(this, function (_a) {
|
|
1986
|
-
contents = {};
|
|
1821
|
+
contents = map({});
|
|
1987
1822
|
data = parsedOutput.body;
|
|
1988
|
-
if (data.message
|
|
1823
|
+
if (data.message != null) {
|
|
1989
1824
|
contents.Message = __expectString(data.message);
|
|
1990
1825
|
}
|
|
1991
1826
|
exception = new UnprocessableEntityException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1996,9 +1831,6 @@ var serializeAws_restJson1__listOf__PeriodTriggersElement = function (input, con
|
|
|
1996
1831
|
return input
|
|
1997
1832
|
.filter(function (e) { return e != null; })
|
|
1998
1833
|
.map(function (entry) {
|
|
1999
|
-
if (entry === null) {
|
|
2000
|
-
return null;
|
|
2001
|
-
}
|
|
2002
1834
|
return entry;
|
|
2003
1835
|
});
|
|
2004
1836
|
};
|
|
@@ -2006,9 +1838,6 @@ var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
|
2006
1838
|
return input
|
|
2007
1839
|
.filter(function (e) { return e != null; })
|
|
2008
1840
|
.map(function (entry) {
|
|
2009
|
-
if (entry === null) {
|
|
2010
|
-
return null;
|
|
2011
|
-
}
|
|
2012
1841
|
return entry;
|
|
2013
1842
|
});
|
|
2014
1843
|
};
|
|
@@ -2016,9 +1845,6 @@ var serializeAws_restJson1__listOfDashManifest = function (input, context) {
|
|
|
2016
1845
|
return input
|
|
2017
1846
|
.filter(function (e) { return e != null; })
|
|
2018
1847
|
.map(function (entry) {
|
|
2019
|
-
if (entry === null) {
|
|
2020
|
-
return null;
|
|
2021
|
-
}
|
|
2022
1848
|
return serializeAws_restJson1DashManifest(entry, context);
|
|
2023
1849
|
});
|
|
2024
1850
|
};
|
|
@@ -2026,9 +1852,6 @@ var serializeAws_restJson1__listOfHlsManifest = function (input, context) {
|
|
|
2026
1852
|
return input
|
|
2027
1853
|
.filter(function (e) { return e != null; })
|
|
2028
1854
|
.map(function (entry) {
|
|
2029
|
-
if (entry === null) {
|
|
2030
|
-
return null;
|
|
2031
|
-
}
|
|
2032
1855
|
return serializeAws_restJson1HlsManifest(entry, context);
|
|
2033
1856
|
});
|
|
2034
1857
|
};
|
|
@@ -2036,9 +1859,6 @@ var serializeAws_restJson1__listOfMssManifest = function (input, context) {
|
|
|
2036
1859
|
return input
|
|
2037
1860
|
.filter(function (e) { return e != null; })
|
|
2038
1861
|
.map(function (entry) {
|
|
2039
|
-
if (entry === null) {
|
|
2040
|
-
return null;
|
|
2041
|
-
}
|
|
2042
1862
|
return serializeAws_restJson1MssManifest(entry, context);
|
|
2043
1863
|
});
|
|
2044
1864
|
};
|