@aws-sdk/client-mediaconnect 3.141.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +363 -839
- package/dist-es/protocols/Aws_restJson1.js +479 -851
- 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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { MediaConnectServiceException as __BaseException } from "../models/MediaConnectServiceException";
|
|
5
5
|
import { AddFlowOutputs420Exception, BadRequestException, CreateFlow420Exception, ForbiddenException, GrantFlowEntitlements420Exception, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AddFlowMediaStreamsCommand = 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_restJson1AddFlowMediaStreamsCommand = function (input, c
|
|
|
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 || "") + "/v1/flows/{FlowArn}/mediaStreams";
|
|
17
|
-
|
|
18
|
-
labelValue = input.FlowArn;
|
|
19
|
-
if (labelValue.length <= 0) {
|
|
20
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
21
|
-
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
26
|
-
}
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
27
18
|
body = JSON.stringify(__assign({}, (input.MediaStreams != null && {
|
|
28
19
|
mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
|
|
29
20
|
})));
|
|
@@ -40,7 +31,7 @@ export var serializeAws_restJson1AddFlowMediaStreamsCommand = function (input, c
|
|
|
40
31
|
});
|
|
41
32
|
}); };
|
|
42
33
|
export var serializeAws_restJson1AddFlowOutputsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
44
35
|
return __generator(this, function (_c) {
|
|
45
36
|
switch (_c.label) {
|
|
46
37
|
case 0: return [4, context.endpoint()];
|
|
@@ -50,16 +41,7 @@ export var serializeAws_restJson1AddFlowOutputsCommand = function (input, contex
|
|
|
50
41
|
"content-type": "application/json",
|
|
51
42
|
};
|
|
52
43
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/outputs";
|
|
53
|
-
|
|
54
|
-
labelValue = input.FlowArn;
|
|
55
|
-
if (labelValue.length <= 0) {
|
|
56
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
57
|
-
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
62
|
-
}
|
|
44
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
63
45
|
body = JSON.stringify(__assign({}, (input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) })));
|
|
64
46
|
return [2, new __HttpRequest({
|
|
65
47
|
protocol: protocol,
|
|
@@ -74,7 +56,7 @@ export var serializeAws_restJson1AddFlowOutputsCommand = function (input, contex
|
|
|
74
56
|
});
|
|
75
57
|
}); };
|
|
76
58
|
export var serializeAws_restJson1AddFlowSourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
77
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
59
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
78
60
|
return __generator(this, function (_c) {
|
|
79
61
|
switch (_c.label) {
|
|
80
62
|
case 0: return [4, context.endpoint()];
|
|
@@ -84,16 +66,7 @@ export var serializeAws_restJson1AddFlowSourcesCommand = function (input, contex
|
|
|
84
66
|
"content-type": "application/json",
|
|
85
67
|
};
|
|
86
68
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/source";
|
|
87
|
-
|
|
88
|
-
labelValue = input.FlowArn;
|
|
89
|
-
if (labelValue.length <= 0) {
|
|
90
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
91
|
-
}
|
|
92
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
96
|
-
}
|
|
69
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
97
70
|
body = JSON.stringify(__assign({}, (input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) })));
|
|
98
71
|
return [2, new __HttpRequest({
|
|
99
72
|
protocol: protocol,
|
|
@@ -108,7 +81,7 @@ export var serializeAws_restJson1AddFlowSourcesCommand = function (input, contex
|
|
|
108
81
|
});
|
|
109
82
|
}); };
|
|
110
83
|
export var serializeAws_restJson1AddFlowVpcInterfacesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
111
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
84
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
112
85
|
return __generator(this, function (_c) {
|
|
113
86
|
switch (_c.label) {
|
|
114
87
|
case 0: return [4, context.endpoint()];
|
|
@@ -118,16 +91,7 @@ export var serializeAws_restJson1AddFlowVpcInterfacesCommand = function (input,
|
|
|
118
91
|
"content-type": "application/json",
|
|
119
92
|
};
|
|
120
93
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/vpcInterfaces";
|
|
121
|
-
|
|
122
|
-
labelValue = input.FlowArn;
|
|
123
|
-
if (labelValue.length <= 0) {
|
|
124
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
125
|
-
}
|
|
126
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
130
|
-
}
|
|
94
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
131
95
|
body = JSON.stringify(__assign({}, (input.VpcInterfaces != null && {
|
|
132
96
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
133
97
|
})));
|
|
@@ -176,7 +140,7 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
|
|
|
176
140
|
});
|
|
177
141
|
}); };
|
|
178
142
|
export var serializeAws_restJson1DeleteFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
179
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
143
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
180
144
|
return __generator(this, function (_c) {
|
|
181
145
|
switch (_c.label) {
|
|
182
146
|
case 0: return [4, context.endpoint()];
|
|
@@ -184,16 +148,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
184
148
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
185
149
|
headers = {};
|
|
186
150
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}";
|
|
187
|
-
|
|
188
|
-
labelValue = input.FlowArn;
|
|
189
|
-
if (labelValue.length <= 0) {
|
|
190
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
191
|
-
}
|
|
192
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
196
|
-
}
|
|
151
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
197
152
|
return [2, new __HttpRequest({
|
|
198
153
|
protocol: protocol,
|
|
199
154
|
hostname: hostname,
|
|
@@ -207,7 +162,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
|
|
|
207
162
|
});
|
|
208
163
|
}); };
|
|
209
164
|
export var serializeAws_restJson1DescribeFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
210
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
165
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
211
166
|
return __generator(this, function (_c) {
|
|
212
167
|
switch (_c.label) {
|
|
213
168
|
case 0: return [4, context.endpoint()];
|
|
@@ -215,16 +170,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
|
|
|
215
170
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
216
171
|
headers = {};
|
|
217
172
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}";
|
|
218
|
-
|
|
219
|
-
labelValue = input.FlowArn;
|
|
220
|
-
if (labelValue.length <= 0) {
|
|
221
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
222
|
-
}
|
|
223
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
227
|
-
}
|
|
173
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
228
174
|
return [2, new __HttpRequest({
|
|
229
175
|
protocol: protocol,
|
|
230
176
|
hostname: hostname,
|
|
@@ -238,7 +184,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
|
|
|
238
184
|
});
|
|
239
185
|
}); };
|
|
240
186
|
export var serializeAws_restJson1DescribeOfferingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
241
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
187
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
242
188
|
return __generator(this, function (_c) {
|
|
243
189
|
switch (_c.label) {
|
|
244
190
|
case 0: return [4, context.endpoint()];
|
|
@@ -246,16 +192,7 @@ export var serializeAws_restJson1DescribeOfferingCommand = function (input, cont
|
|
|
246
192
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
247
193
|
headers = {};
|
|
248
194
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/offerings/{OfferingArn}";
|
|
249
|
-
|
|
250
|
-
labelValue = input.OfferingArn;
|
|
251
|
-
if (labelValue.length <= 0) {
|
|
252
|
-
throw new Error("Empty value provided for input HTTP label: OfferingArn.");
|
|
253
|
-
}
|
|
254
|
-
resolvedPath = resolvedPath.replace("{OfferingArn}", __extendedEncodeURIComponent(labelValue));
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
throw new Error("No value provided for input HTTP label: OfferingArn.");
|
|
258
|
-
}
|
|
195
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OfferingArn", function () { return input.OfferingArn; }, "{OfferingArn}", false);
|
|
259
196
|
return [2, new __HttpRequest({
|
|
260
197
|
protocol: protocol,
|
|
261
198
|
hostname: hostname,
|
|
@@ -269,7 +206,7 @@ export var serializeAws_restJson1DescribeOfferingCommand = function (input, cont
|
|
|
269
206
|
});
|
|
270
207
|
}); };
|
|
271
208
|
export var serializeAws_restJson1DescribeReservationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
209
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
273
210
|
return __generator(this, function (_c) {
|
|
274
211
|
switch (_c.label) {
|
|
275
212
|
case 0: return [4, context.endpoint()];
|
|
@@ -277,16 +214,7 @@ export var serializeAws_restJson1DescribeReservationCommand = function (input, c
|
|
|
277
214
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
278
215
|
headers = {};
|
|
279
216
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/reservations/{ReservationArn}";
|
|
280
|
-
|
|
281
|
-
labelValue = input.ReservationArn;
|
|
282
|
-
if (labelValue.length <= 0) {
|
|
283
|
-
throw new Error("Empty value provided for input HTTP label: ReservationArn.");
|
|
284
|
-
}
|
|
285
|
-
resolvedPath = resolvedPath.replace("{ReservationArn}", __extendedEncodeURIComponent(labelValue));
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
throw new Error("No value provided for input HTTP label: ReservationArn.");
|
|
289
|
-
}
|
|
217
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ReservationArn", function () { return input.ReservationArn; }, "{ReservationArn}", false);
|
|
290
218
|
return [2, new __HttpRequest({
|
|
291
219
|
protocol: protocol,
|
|
292
220
|
hostname: hostname,
|
|
@@ -300,7 +228,7 @@ export var serializeAws_restJson1DescribeReservationCommand = function (input, c
|
|
|
300
228
|
});
|
|
301
229
|
}); };
|
|
302
230
|
export var serializeAws_restJson1GrantFlowEntitlementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
303
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
231
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
304
232
|
return __generator(this, function (_c) {
|
|
305
233
|
switch (_c.label) {
|
|
306
234
|
case 0: return [4, context.endpoint()];
|
|
@@ -310,16 +238,7 @@ export var serializeAws_restJson1GrantFlowEntitlementsCommand = function (input,
|
|
|
310
238
|
"content-type": "application/json",
|
|
311
239
|
};
|
|
312
240
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/entitlements";
|
|
313
|
-
|
|
314
|
-
labelValue = input.FlowArn;
|
|
315
|
-
if (labelValue.length <= 0) {
|
|
316
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
317
|
-
}
|
|
318
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
322
|
-
}
|
|
241
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
323
242
|
body = JSON.stringify(__assign({}, (input.Entitlements != null && {
|
|
324
243
|
entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
|
|
325
244
|
})));
|
|
@@ -344,7 +263,10 @@ export var serializeAws_restJson1ListEntitlementsCommand = function (input, cont
|
|
|
344
263
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
345
264
|
headers = {};
|
|
346
265
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/entitlements";
|
|
347
|
-
query =
|
|
266
|
+
query = map({
|
|
267
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
268
|
+
nextToken: [, input.NextToken],
|
|
269
|
+
});
|
|
348
270
|
return [2, new __HttpRequest({
|
|
349
271
|
protocol: protocol,
|
|
350
272
|
hostname: hostname,
|
|
@@ -367,7 +289,10 @@ export var serializeAws_restJson1ListFlowsCommand = function (input, context) {
|
|
|
367
289
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
368
290
|
headers = {};
|
|
369
291
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows";
|
|
370
|
-
query =
|
|
292
|
+
query = map({
|
|
293
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
294
|
+
nextToken: [, input.NextToken],
|
|
295
|
+
});
|
|
371
296
|
return [2, new __HttpRequest({
|
|
372
297
|
protocol: protocol,
|
|
373
298
|
hostname: hostname,
|
|
@@ -390,7 +315,10 @@ export var serializeAws_restJson1ListOfferingsCommand = function (input, context
|
|
|
390
315
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
391
316
|
headers = {};
|
|
392
317
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/offerings";
|
|
393
|
-
query =
|
|
318
|
+
query = map({
|
|
319
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
320
|
+
nextToken: [, input.NextToken],
|
|
321
|
+
});
|
|
394
322
|
return [2, new __HttpRequest({
|
|
395
323
|
protocol: protocol,
|
|
396
324
|
hostname: hostname,
|
|
@@ -413,7 +341,10 @@ export var serializeAws_restJson1ListReservationsCommand = function (input, cont
|
|
|
413
341
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
414
342
|
headers = {};
|
|
415
343
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/reservations";
|
|
416
|
-
query =
|
|
344
|
+
query = map({
|
|
345
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
346
|
+
nextToken: [, input.NextToken],
|
|
347
|
+
});
|
|
417
348
|
return [2, new __HttpRequest({
|
|
418
349
|
protocol: protocol,
|
|
419
350
|
hostname: hostname,
|
|
@@ -428,7 +359,7 @@ export var serializeAws_restJson1ListReservationsCommand = function (input, cont
|
|
|
428
359
|
});
|
|
429
360
|
}); };
|
|
430
361
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
431
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
362
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
432
363
|
return __generator(this, function (_c) {
|
|
433
364
|
switch (_c.label) {
|
|
434
365
|
case 0: return [4, context.endpoint()];
|
|
@@ -436,16 +367,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
436
367
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
437
368
|
headers = {};
|
|
438
369
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
439
|
-
|
|
440
|
-
labelValue = input.ResourceArn;
|
|
441
|
-
if (labelValue.length <= 0) {
|
|
442
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
443
|
-
}
|
|
444
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
448
|
-
}
|
|
370
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
449
371
|
return [2, new __HttpRequest({
|
|
450
372
|
protocol: protocol,
|
|
451
373
|
hostname: hostname,
|
|
@@ -459,7 +381,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
459
381
|
});
|
|
460
382
|
}); };
|
|
461
383
|
export var serializeAws_restJson1PurchaseOfferingCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
462
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
384
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
463
385
|
return __generator(this, function (_c) {
|
|
464
386
|
switch (_c.label) {
|
|
465
387
|
case 0: return [4, context.endpoint()];
|
|
@@ -469,16 +391,7 @@ export var serializeAws_restJson1PurchaseOfferingCommand = function (input, cont
|
|
|
469
391
|
"content-type": "application/json",
|
|
470
392
|
};
|
|
471
393
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/offerings/{OfferingArn}";
|
|
472
|
-
|
|
473
|
-
labelValue = input.OfferingArn;
|
|
474
|
-
if (labelValue.length <= 0) {
|
|
475
|
-
throw new Error("Empty value provided for input HTTP label: OfferingArn.");
|
|
476
|
-
}
|
|
477
|
-
resolvedPath = resolvedPath.replace("{OfferingArn}", __extendedEncodeURIComponent(labelValue));
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
throw new Error("No value provided for input HTTP label: OfferingArn.");
|
|
481
|
-
}
|
|
394
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OfferingArn", function () { return input.OfferingArn; }, "{OfferingArn}", false);
|
|
482
395
|
body = JSON.stringify(__assign(__assign({}, (input.ReservationName != null && { reservationName: input.ReservationName })), (input.Start != null && { start: input.Start })));
|
|
483
396
|
return [2, new __HttpRequest({
|
|
484
397
|
protocol: protocol,
|
|
@@ -493,7 +406,7 @@ export var serializeAws_restJson1PurchaseOfferingCommand = function (input, cont
|
|
|
493
406
|
});
|
|
494
407
|
}); };
|
|
495
408
|
export var serializeAws_restJson1RemoveFlowMediaStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
496
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
409
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
497
410
|
return __generator(this, function (_c) {
|
|
498
411
|
switch (_c.label) {
|
|
499
412
|
case 0: return [4, context.endpoint()];
|
|
@@ -502,26 +415,8 @@ export var serializeAws_restJson1RemoveFlowMediaStreamCommand = function (input,
|
|
|
502
415
|
headers = {};
|
|
503
416
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
504
417
|
"/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}";
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
if (labelValue.length <= 0) {
|
|
508
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
509
|
-
}
|
|
510
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
511
|
-
}
|
|
512
|
-
else {
|
|
513
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
514
|
-
}
|
|
515
|
-
if (input.MediaStreamName !== undefined) {
|
|
516
|
-
labelValue = input.MediaStreamName;
|
|
517
|
-
if (labelValue.length <= 0) {
|
|
518
|
-
throw new Error("Empty value provided for input HTTP label: MediaStreamName.");
|
|
519
|
-
}
|
|
520
|
-
resolvedPath = resolvedPath.replace("{MediaStreamName}", __extendedEncodeURIComponent(labelValue));
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
throw new Error("No value provided for input HTTP label: MediaStreamName.");
|
|
524
|
-
}
|
|
418
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
419
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MediaStreamName", function () { return input.MediaStreamName; }, "{MediaStreamName}", false);
|
|
525
420
|
return [2, new __HttpRequest({
|
|
526
421
|
protocol: protocol,
|
|
527
422
|
hostname: hostname,
|
|
@@ -535,7 +430,7 @@ export var serializeAws_restJson1RemoveFlowMediaStreamCommand = function (input,
|
|
|
535
430
|
});
|
|
536
431
|
}); };
|
|
537
432
|
export var serializeAws_restJson1RemoveFlowOutputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
538
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
433
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
539
434
|
return __generator(this, function (_c) {
|
|
540
435
|
switch (_c.label) {
|
|
541
436
|
case 0: return [4, context.endpoint()];
|
|
@@ -543,26 +438,8 @@ export var serializeAws_restJson1RemoveFlowOutputCommand = function (input, cont
|
|
|
543
438
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
544
439
|
headers = {};
|
|
545
440
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/outputs/{OutputArn}";
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
if (labelValue.length <= 0) {
|
|
549
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
550
|
-
}
|
|
551
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
555
|
-
}
|
|
556
|
-
if (input.OutputArn !== undefined) {
|
|
557
|
-
labelValue = input.OutputArn;
|
|
558
|
-
if (labelValue.length <= 0) {
|
|
559
|
-
throw new Error("Empty value provided for input HTTP label: OutputArn.");
|
|
560
|
-
}
|
|
561
|
-
resolvedPath = resolvedPath.replace("{OutputArn}", __extendedEncodeURIComponent(labelValue));
|
|
562
|
-
}
|
|
563
|
-
else {
|
|
564
|
-
throw new Error("No value provided for input HTTP label: OutputArn.");
|
|
565
|
-
}
|
|
441
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
442
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputArn", function () { return input.OutputArn; }, "{OutputArn}", false);
|
|
566
443
|
return [2, new __HttpRequest({
|
|
567
444
|
protocol: protocol,
|
|
568
445
|
hostname: hostname,
|
|
@@ -576,7 +453,7 @@ export var serializeAws_restJson1RemoveFlowOutputCommand = function (input, cont
|
|
|
576
453
|
});
|
|
577
454
|
}); };
|
|
578
455
|
export var serializeAws_restJson1RemoveFlowSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
579
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
456
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
580
457
|
return __generator(this, function (_c) {
|
|
581
458
|
switch (_c.label) {
|
|
582
459
|
case 0: return [4, context.endpoint()];
|
|
@@ -584,26 +461,8 @@ export var serializeAws_restJson1RemoveFlowSourceCommand = function (input, cont
|
|
|
584
461
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
585
462
|
headers = {};
|
|
586
463
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/source/{SourceArn}";
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
if (labelValue.length <= 0) {
|
|
590
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
591
|
-
}
|
|
592
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
593
|
-
}
|
|
594
|
-
else {
|
|
595
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
596
|
-
}
|
|
597
|
-
if (input.SourceArn !== undefined) {
|
|
598
|
-
labelValue = input.SourceArn;
|
|
599
|
-
if (labelValue.length <= 0) {
|
|
600
|
-
throw new Error("Empty value provided for input HTTP label: SourceArn.");
|
|
601
|
-
}
|
|
602
|
-
resolvedPath = resolvedPath.replace("{SourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
throw new Error("No value provided for input HTTP label: SourceArn.");
|
|
606
|
-
}
|
|
464
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
465
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceArn", function () { return input.SourceArn; }, "{SourceArn}", false);
|
|
607
466
|
return [2, new __HttpRequest({
|
|
608
467
|
protocol: protocol,
|
|
609
468
|
hostname: hostname,
|
|
@@ -617,7 +476,7 @@ export var serializeAws_restJson1RemoveFlowSourceCommand = function (input, cont
|
|
|
617
476
|
});
|
|
618
477
|
}); };
|
|
619
478
|
export var serializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
620
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
479
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
621
480
|
return __generator(this, function (_c) {
|
|
622
481
|
switch (_c.label) {
|
|
623
482
|
case 0: return [4, context.endpoint()];
|
|
@@ -626,26 +485,8 @@ export var serializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (input
|
|
|
626
485
|
headers = {};
|
|
627
486
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
628
487
|
"/v1/flows/{FlowArn}/vpcInterfaces/{VpcInterfaceName}";
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
if (labelValue.length <= 0) {
|
|
632
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
633
|
-
}
|
|
634
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
635
|
-
}
|
|
636
|
-
else {
|
|
637
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
638
|
-
}
|
|
639
|
-
if (input.VpcInterfaceName !== undefined) {
|
|
640
|
-
labelValue = input.VpcInterfaceName;
|
|
641
|
-
if (labelValue.length <= 0) {
|
|
642
|
-
throw new Error("Empty value provided for input HTTP label: VpcInterfaceName.");
|
|
643
|
-
}
|
|
644
|
-
resolvedPath = resolvedPath.replace("{VpcInterfaceName}", __extendedEncodeURIComponent(labelValue));
|
|
645
|
-
}
|
|
646
|
-
else {
|
|
647
|
-
throw new Error("No value provided for input HTTP label: VpcInterfaceName.");
|
|
648
|
-
}
|
|
488
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
489
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VpcInterfaceName", function () { return input.VpcInterfaceName; }, "{VpcInterfaceName}", false);
|
|
649
490
|
return [2, new __HttpRequest({
|
|
650
491
|
protocol: protocol,
|
|
651
492
|
hostname: hostname,
|
|
@@ -659,7 +500,7 @@ export var serializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (input
|
|
|
659
500
|
});
|
|
660
501
|
}); };
|
|
661
502
|
export var serializeAws_restJson1RevokeFlowEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
662
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
503
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
663
504
|
return __generator(this, function (_c) {
|
|
664
505
|
switch (_c.label) {
|
|
665
506
|
case 0: return [4, context.endpoint()];
|
|
@@ -668,26 +509,8 @@ export var serializeAws_restJson1RevokeFlowEntitlementCommand = function (input,
|
|
|
668
509
|
headers = {};
|
|
669
510
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
670
511
|
"/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
if (labelValue.length <= 0) {
|
|
674
|
-
throw new Error("Empty value provided for input HTTP label: EntitlementArn.");
|
|
675
|
-
}
|
|
676
|
-
resolvedPath = resolvedPath.replace("{EntitlementArn}", __extendedEncodeURIComponent(labelValue));
|
|
677
|
-
}
|
|
678
|
-
else {
|
|
679
|
-
throw new Error("No value provided for input HTTP label: EntitlementArn.");
|
|
680
|
-
}
|
|
681
|
-
if (input.FlowArn !== undefined) {
|
|
682
|
-
labelValue = input.FlowArn;
|
|
683
|
-
if (labelValue.length <= 0) {
|
|
684
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
685
|
-
}
|
|
686
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
687
|
-
}
|
|
688
|
-
else {
|
|
689
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
690
|
-
}
|
|
512
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EntitlementArn", function () { return input.EntitlementArn; }, "{EntitlementArn}", false);
|
|
513
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
691
514
|
return [2, new __HttpRequest({
|
|
692
515
|
protocol: protocol,
|
|
693
516
|
hostname: hostname,
|
|
@@ -701,7 +524,7 @@ export var serializeAws_restJson1RevokeFlowEntitlementCommand = function (input,
|
|
|
701
524
|
});
|
|
702
525
|
}); };
|
|
703
526
|
export var serializeAws_restJson1StartFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
527
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
705
528
|
return __generator(this, function (_c) {
|
|
706
529
|
switch (_c.label) {
|
|
707
530
|
case 0: return [4, context.endpoint()];
|
|
@@ -709,16 +532,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
|
|
|
709
532
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
710
533
|
headers = {};
|
|
711
534
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/start/{FlowArn}";
|
|
712
|
-
|
|
713
|
-
labelValue = input.FlowArn;
|
|
714
|
-
if (labelValue.length <= 0) {
|
|
715
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
716
|
-
}
|
|
717
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
718
|
-
}
|
|
719
|
-
else {
|
|
720
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
721
|
-
}
|
|
535
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
722
536
|
return [2, new __HttpRequest({
|
|
723
537
|
protocol: protocol,
|
|
724
538
|
hostname: hostname,
|
|
@@ -732,7 +546,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
|
|
|
732
546
|
});
|
|
733
547
|
}); };
|
|
734
548
|
export var serializeAws_restJson1StopFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
735
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
549
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
736
550
|
return __generator(this, function (_c) {
|
|
737
551
|
switch (_c.label) {
|
|
738
552
|
case 0: return [4, context.endpoint()];
|
|
@@ -740,16 +554,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
740
554
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
741
555
|
headers = {};
|
|
742
556
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/stop/{FlowArn}";
|
|
743
|
-
|
|
744
|
-
labelValue = input.FlowArn;
|
|
745
|
-
if (labelValue.length <= 0) {
|
|
746
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
747
|
-
}
|
|
748
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
749
|
-
}
|
|
750
|
-
else {
|
|
751
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
752
|
-
}
|
|
557
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
753
558
|
return [2, new __HttpRequest({
|
|
754
559
|
protocol: protocol,
|
|
755
560
|
hostname: hostname,
|
|
@@ -763,7 +568,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
|
|
|
763
568
|
});
|
|
764
569
|
}); };
|
|
765
570
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
766
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
571
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
767
572
|
return __generator(this, function (_c) {
|
|
768
573
|
switch (_c.label) {
|
|
769
574
|
case 0: return [4, context.endpoint()];
|
|
@@ -773,16 +578,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
773
578
|
"content-type": "application/json",
|
|
774
579
|
};
|
|
775
580
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
776
|
-
|
|
777
|
-
labelValue = input.ResourceArn;
|
|
778
|
-
if (labelValue.length <= 0) {
|
|
779
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
780
|
-
}
|
|
781
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
785
|
-
}
|
|
581
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
786
582
|
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
787
583
|
return [2, new __HttpRequest({
|
|
788
584
|
protocol: protocol,
|
|
@@ -797,7 +593,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
797
593
|
});
|
|
798
594
|
}); };
|
|
799
595
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
800
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
596
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
801
597
|
return __generator(this, function (_c) {
|
|
802
598
|
switch (_c.label) {
|
|
803
599
|
case 0: return [4, context.endpoint()];
|
|
@@ -805,17 +601,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
805
601
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
806
602
|
headers = {};
|
|
807
603
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
}
|
|
813
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
814
|
-
}
|
|
815
|
-
else {
|
|
816
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
817
|
-
}
|
|
818
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
604
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
605
|
+
query = map({
|
|
606
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
607
|
+
});
|
|
819
608
|
return [2, new __HttpRequest({
|
|
820
609
|
protocol: protocol,
|
|
821
610
|
hostname: hostname,
|
|
@@ -830,7 +619,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
830
619
|
});
|
|
831
620
|
}); };
|
|
832
621
|
export var serializeAws_restJson1UpdateFlowCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
833
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
622
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
834
623
|
return __generator(this, function (_c) {
|
|
835
624
|
switch (_c.label) {
|
|
836
625
|
case 0: return [4, context.endpoint()];
|
|
@@ -840,16 +629,7 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
840
629
|
"content-type": "application/json",
|
|
841
630
|
};
|
|
842
631
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}";
|
|
843
|
-
|
|
844
|
-
labelValue = input.FlowArn;
|
|
845
|
-
if (labelValue.length <= 0) {
|
|
846
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
847
|
-
}
|
|
848
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
849
|
-
}
|
|
850
|
-
else {
|
|
851
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
852
|
-
}
|
|
632
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
853
633
|
body = JSON.stringify(__assign(__assign({}, (input.Maintenance != null && {
|
|
854
634
|
maintenance: serializeAws_restJson1UpdateMaintenance(input.Maintenance, context),
|
|
855
635
|
})), (input.SourceFailoverConfig != null && {
|
|
@@ -868,7 +648,7 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
|
|
|
868
648
|
});
|
|
869
649
|
}); };
|
|
870
650
|
export var serializeAws_restJson1UpdateFlowEntitlementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
871
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
651
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
872
652
|
return __generator(this, function (_c) {
|
|
873
653
|
switch (_c.label) {
|
|
874
654
|
case 0: return [4, context.endpoint()];
|
|
@@ -879,26 +659,8 @@ export var serializeAws_restJson1UpdateFlowEntitlementCommand = function (input,
|
|
|
879
659
|
};
|
|
880
660
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
881
661
|
"/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
if (labelValue.length <= 0) {
|
|
885
|
-
throw new Error("Empty value provided for input HTTP label: EntitlementArn.");
|
|
886
|
-
}
|
|
887
|
-
resolvedPath = resolvedPath.replace("{EntitlementArn}", __extendedEncodeURIComponent(labelValue));
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
throw new Error("No value provided for input HTTP label: EntitlementArn.");
|
|
891
|
-
}
|
|
892
|
-
if (input.FlowArn !== undefined) {
|
|
893
|
-
labelValue = input.FlowArn;
|
|
894
|
-
if (labelValue.length <= 0) {
|
|
895
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
896
|
-
}
|
|
897
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
898
|
-
}
|
|
899
|
-
else {
|
|
900
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
901
|
-
}
|
|
662
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EntitlementArn", function () { return input.EntitlementArn; }, "{EntitlementArn}", false);
|
|
663
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
902
664
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus })), (input.Subscribers != null && {
|
|
903
665
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
904
666
|
})));
|
|
@@ -915,7 +677,7 @@ export var serializeAws_restJson1UpdateFlowEntitlementCommand = function (input,
|
|
|
915
677
|
});
|
|
916
678
|
}); };
|
|
917
679
|
export var serializeAws_restJson1UpdateFlowMediaStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
918
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
680
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
919
681
|
return __generator(this, function (_c) {
|
|
920
682
|
switch (_c.label) {
|
|
921
683
|
case 0: return [4, context.endpoint()];
|
|
@@ -926,26 +688,8 @@ export var serializeAws_restJson1UpdateFlowMediaStreamCommand = function (input,
|
|
|
926
688
|
};
|
|
927
689
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
928
690
|
"/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}";
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
if (labelValue.length <= 0) {
|
|
932
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
933
|
-
}
|
|
934
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
935
|
-
}
|
|
936
|
-
else {
|
|
937
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
938
|
-
}
|
|
939
|
-
if (input.MediaStreamName !== undefined) {
|
|
940
|
-
labelValue = input.MediaStreamName;
|
|
941
|
-
if (labelValue.length <= 0) {
|
|
942
|
-
throw new Error("Empty value provided for input HTTP label: MediaStreamName.");
|
|
943
|
-
}
|
|
944
|
-
resolvedPath = resolvedPath.replace("{MediaStreamName}", __extendedEncodeURIComponent(labelValue));
|
|
945
|
-
}
|
|
946
|
-
else {
|
|
947
|
-
throw new Error("No value provided for input HTTP label: MediaStreamName.");
|
|
948
|
-
}
|
|
691
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
692
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MediaStreamName", function () { return input.MediaStreamName; }, "{MediaStreamName}", false);
|
|
949
693
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Attributes != null && {
|
|
950
694
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
951
695
|
})), (input.ClockRate != null && { clockRate: input.ClockRate })), (input.Description != null && { description: input.Description })), (input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat != null && { videoFormat: input.VideoFormat })));
|
|
@@ -962,7 +706,7 @@ export var serializeAws_restJson1UpdateFlowMediaStreamCommand = function (input,
|
|
|
962
706
|
});
|
|
963
707
|
}); };
|
|
964
708
|
export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
965
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
709
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
966
710
|
return __generator(this, function (_c) {
|
|
967
711
|
switch (_c.label) {
|
|
968
712
|
case 0: return [4, context.endpoint()];
|
|
@@ -972,26 +716,8 @@ export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, cont
|
|
|
972
716
|
"content-type": "application/json",
|
|
973
717
|
};
|
|
974
718
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/outputs/{OutputArn}";
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
if (labelValue.length <= 0) {
|
|
978
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
979
|
-
}
|
|
980
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
981
|
-
}
|
|
982
|
-
else {
|
|
983
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
984
|
-
}
|
|
985
|
-
if (input.OutputArn !== undefined) {
|
|
986
|
-
labelValue = input.OutputArn;
|
|
987
|
-
if (labelValue.length <= 0) {
|
|
988
|
-
throw new Error("Empty value provided for input HTTP label: OutputArn.");
|
|
989
|
-
}
|
|
990
|
-
resolvedPath = resolvedPath.replace("{OutputArn}", __extendedEncodeURIComponent(labelValue));
|
|
991
|
-
}
|
|
992
|
-
else {
|
|
993
|
-
throw new Error("No value provided for input HTTP label: OutputArn.");
|
|
994
|
-
}
|
|
719
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
720
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputArn", function () { return input.OutputArn; }, "{OutputArn}", false);
|
|
995
721
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList != null && {
|
|
996
722
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
997
723
|
})), (input.Description != null && { description: input.Description })), (input.Destination != null && { destination: input.Destination })), (input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.MaxLatency != null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations != null && {
|
|
@@ -1012,7 +738,7 @@ export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, cont
|
|
|
1012
738
|
});
|
|
1013
739
|
}); };
|
|
1014
740
|
export var serializeAws_restJson1UpdateFlowSourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
741
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1016
742
|
return __generator(this, function (_c) {
|
|
1017
743
|
switch (_c.label) {
|
|
1018
744
|
case 0: return [4, context.endpoint()];
|
|
@@ -1022,26 +748,8 @@ export var serializeAws_restJson1UpdateFlowSourceCommand = function (input, cont
|
|
|
1022
748
|
"content-type": "application/json",
|
|
1023
749
|
};
|
|
1024
750
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/flows/{FlowArn}/source/{SourceArn}";
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
if (labelValue.length <= 0) {
|
|
1028
|
-
throw new Error("Empty value provided for input HTTP label: FlowArn.");
|
|
1029
|
-
}
|
|
1030
|
-
resolvedPath = resolvedPath.replace("{FlowArn}", __extendedEncodeURIComponent(labelValue));
|
|
1031
|
-
}
|
|
1032
|
-
else {
|
|
1033
|
-
throw new Error("No value provided for input HTTP label: FlowArn.");
|
|
1034
|
-
}
|
|
1035
|
-
if (input.SourceArn !== undefined) {
|
|
1036
|
-
labelValue = input.SourceArn;
|
|
1037
|
-
if (labelValue.length <= 0) {
|
|
1038
|
-
throw new Error("Empty value provided for input HTTP label: SourceArn.");
|
|
1039
|
-
}
|
|
1040
|
-
resolvedPath = resolvedPath.replace("{SourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1041
|
-
}
|
|
1042
|
-
else {
|
|
1043
|
-
throw new Error("No value provided for input HTTP label: SourceArn.");
|
|
1044
|
-
}
|
|
751
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", function () { return input.FlowArn; }, "{FlowArn}", false);
|
|
752
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceArn", function () { return input.SourceArn; }, "{SourceArn}", false);
|
|
1045
753
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption != null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) })), (input.Description != null && { description: input.Description })), (input.EntitlementArn != null && { entitlementArn: input.EntitlementArn })), (input.IngestPort != null && { ingestPort: input.IngestPort })), (input.MaxBitrate != null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency != null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations != null && {
|
|
1046
754
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
1047
755
|
})), (input.MinLatency != null && { minLatency: input.MinLatency })), (input.Protocol != null && { protocol: input.Protocol })), (input.SenderControlPort != null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId != null && { streamId: input.StreamId })), (input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr })));
|
|
@@ -1065,28 +773,26 @@ export var deserializeAws_restJson1AddFlowMediaStreamsCommand = function (output
|
|
|
1065
773
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1066
774
|
return [2, deserializeAws_restJson1AddFlowMediaStreamsCommandError(output, context)];
|
|
1067
775
|
}
|
|
1068
|
-
contents = {
|
|
776
|
+
contents = map({
|
|
1069
777
|
$metadata: deserializeMetadata(output),
|
|
1070
|
-
|
|
1071
|
-
MediaStreams: undefined,
|
|
1072
|
-
};
|
|
778
|
+
});
|
|
1073
779
|
_a = __expectNonNull;
|
|
1074
780
|
_b = __expectObject;
|
|
1075
781
|
return [4, parseBody(output.body, context)];
|
|
1076
782
|
case 1:
|
|
1077
783
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1078
|
-
if (data.flowArn
|
|
784
|
+
if (data.flowArn != null) {
|
|
1079
785
|
contents.FlowArn = __expectString(data.flowArn);
|
|
1080
786
|
}
|
|
1081
|
-
if (data.mediaStreams
|
|
787
|
+
if (data.mediaStreams != null) {
|
|
1082
788
|
contents.MediaStreams = deserializeAws_restJson1__listOfMediaStream(data.mediaStreams, context);
|
|
1083
789
|
}
|
|
1084
|
-
return [2,
|
|
790
|
+
return [2, contents];
|
|
1085
791
|
}
|
|
1086
792
|
});
|
|
1087
793
|
}); };
|
|
1088
794
|
var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1089
|
-
var parsedOutput, _a,
|
|
795
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1090
796
|
var _c;
|
|
1091
797
|
return __generator(this, function (_d) {
|
|
1092
798
|
switch (_d.label) {
|
|
@@ -1127,14 +833,14 @@ var deserializeAws_restJson1AddFlowMediaStreamsCommandError = function (output,
|
|
|
1127
833
|
case 13: throw _d.sent();
|
|
1128
834
|
case 14:
|
|
1129
835
|
parsedBody = parsedOutput.body;
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
$metadata: $metadata,
|
|
836
|
+
throwDefaultError({
|
|
837
|
+
output: output,
|
|
838
|
+
parsedBody: parsedBody,
|
|
839
|
+
exceptionCtor: __BaseException,
|
|
840
|
+
errorCode: errorCode,
|
|
1136
841
|
});
|
|
1137
|
-
|
|
842
|
+
_d.label = 15;
|
|
843
|
+
case 15: return [2];
|
|
1138
844
|
}
|
|
1139
845
|
});
|
|
1140
846
|
}); };
|
|
@@ -1146,28 +852,26 @@ export var deserializeAws_restJson1AddFlowOutputsCommand = function (output, con
|
|
|
1146
852
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1147
853
|
return [2, deserializeAws_restJson1AddFlowOutputsCommandError(output, context)];
|
|
1148
854
|
}
|
|
1149
|
-
contents = {
|
|
855
|
+
contents = map({
|
|
1150
856
|
$metadata: deserializeMetadata(output),
|
|
1151
|
-
|
|
1152
|
-
Outputs: undefined,
|
|
1153
|
-
};
|
|
857
|
+
});
|
|
1154
858
|
_a = __expectNonNull;
|
|
1155
859
|
_b = __expectObject;
|
|
1156
860
|
return [4, parseBody(output.body, context)];
|
|
1157
861
|
case 1:
|
|
1158
862
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1159
|
-
if (data.flowArn
|
|
863
|
+
if (data.flowArn != null) {
|
|
1160
864
|
contents.FlowArn = __expectString(data.flowArn);
|
|
1161
865
|
}
|
|
1162
|
-
if (data.outputs
|
|
866
|
+
if (data.outputs != null) {
|
|
1163
867
|
contents.Outputs = deserializeAws_restJson1__listOfOutput(data.outputs, context);
|
|
1164
868
|
}
|
|
1165
|
-
return [2,
|
|
869
|
+
return [2, contents];
|
|
1166
870
|
}
|
|
1167
871
|
});
|
|
1168
872
|
}); };
|
|
1169
873
|
var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1170
|
-
var parsedOutput, _a,
|
|
874
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1171
875
|
var _c;
|
|
1172
876
|
return __generator(this, function (_d) {
|
|
1173
877
|
switch (_d.label) {
|
|
@@ -1212,14 +916,14 @@ var deserializeAws_restJson1AddFlowOutputsCommandError = function (output, conte
|
|
|
1212
916
|
case 15: throw _d.sent();
|
|
1213
917
|
case 16:
|
|
1214
918
|
parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata: $metadata,
|
|
919
|
+
throwDefaultError({
|
|
920
|
+
output: output,
|
|
921
|
+
parsedBody: parsedBody,
|
|
922
|
+
exceptionCtor: __BaseException,
|
|
923
|
+
errorCode: errorCode,
|
|
1221
924
|
});
|
|
1222
|
-
|
|
925
|
+
_d.label = 17;
|
|
926
|
+
case 17: return [2];
|
|
1223
927
|
}
|
|
1224
928
|
});
|
|
1225
929
|
}); };
|
|
@@ -1231,28 +935,26 @@ export var deserializeAws_restJson1AddFlowSourcesCommand = function (output, con
|
|
|
1231
935
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1232
936
|
return [2, deserializeAws_restJson1AddFlowSourcesCommandError(output, context)];
|
|
1233
937
|
}
|
|
1234
|
-
contents = {
|
|
938
|
+
contents = map({
|
|
1235
939
|
$metadata: deserializeMetadata(output),
|
|
1236
|
-
|
|
1237
|
-
Sources: undefined,
|
|
1238
|
-
};
|
|
940
|
+
});
|
|
1239
941
|
_a = __expectNonNull;
|
|
1240
942
|
_b = __expectObject;
|
|
1241
943
|
return [4, parseBody(output.body, context)];
|
|
1242
944
|
case 1:
|
|
1243
945
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1244
|
-
if (data.flowArn
|
|
946
|
+
if (data.flowArn != null) {
|
|
1245
947
|
contents.FlowArn = __expectString(data.flowArn);
|
|
1246
948
|
}
|
|
1247
|
-
if (data.sources
|
|
949
|
+
if (data.sources != null) {
|
|
1248
950
|
contents.Sources = deserializeAws_restJson1__listOfSource(data.sources, context);
|
|
1249
951
|
}
|
|
1250
|
-
return [2,
|
|
952
|
+
return [2, contents];
|
|
1251
953
|
}
|
|
1252
954
|
});
|
|
1253
955
|
}); };
|
|
1254
956
|
var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1255
|
-
var parsedOutput, _a,
|
|
957
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1256
958
|
var _c;
|
|
1257
959
|
return __generator(this, function (_d) {
|
|
1258
960
|
switch (_d.label) {
|
|
@@ -1293,14 +995,14 @@ var deserializeAws_restJson1AddFlowSourcesCommandError = function (output, conte
|
|
|
1293
995
|
case 13: throw _d.sent();
|
|
1294
996
|
case 14:
|
|
1295
997
|
parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
$metadata: $metadata,
|
|
998
|
+
throwDefaultError({
|
|
999
|
+
output: output,
|
|
1000
|
+
parsedBody: parsedBody,
|
|
1001
|
+
exceptionCtor: __BaseException,
|
|
1002
|
+
errorCode: errorCode,
|
|
1302
1003
|
});
|
|
1303
|
-
|
|
1004
|
+
_d.label = 15;
|
|
1005
|
+
case 15: return [2];
|
|
1304
1006
|
}
|
|
1305
1007
|
});
|
|
1306
1008
|
}); };
|
|
@@ -1312,28 +1014,26 @@ export var deserializeAws_restJson1AddFlowVpcInterfacesCommand = function (outpu
|
|
|
1312
1014
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1313
1015
|
return [2, deserializeAws_restJson1AddFlowVpcInterfacesCommandError(output, context)];
|
|
1314
1016
|
}
|
|
1315
|
-
contents = {
|
|
1017
|
+
contents = map({
|
|
1316
1018
|
$metadata: deserializeMetadata(output),
|
|
1317
|
-
|
|
1318
|
-
VpcInterfaces: undefined,
|
|
1319
|
-
};
|
|
1019
|
+
});
|
|
1320
1020
|
_a = __expectNonNull;
|
|
1321
1021
|
_b = __expectObject;
|
|
1322
1022
|
return [4, parseBody(output.body, context)];
|
|
1323
1023
|
case 1:
|
|
1324
1024
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1325
|
-
if (data.flowArn
|
|
1025
|
+
if (data.flowArn != null) {
|
|
1326
1026
|
contents.FlowArn = __expectString(data.flowArn);
|
|
1327
1027
|
}
|
|
1328
|
-
if (data.vpcInterfaces
|
|
1028
|
+
if (data.vpcInterfaces != null) {
|
|
1329
1029
|
contents.VpcInterfaces = deserializeAws_restJson1__listOfVpcInterface(data.vpcInterfaces, context);
|
|
1330
1030
|
}
|
|
1331
|
-
return [2,
|
|
1031
|
+
return [2, contents];
|
|
1332
1032
|
}
|
|
1333
1033
|
});
|
|
1334
1034
|
}); };
|
|
1335
1035
|
var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1336
|
-
var parsedOutput, _a,
|
|
1036
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1337
1037
|
var _c;
|
|
1338
1038
|
return __generator(this, function (_d) {
|
|
1339
1039
|
switch (_d.label) {
|
|
@@ -1374,14 +1074,14 @@ var deserializeAws_restJson1AddFlowVpcInterfacesCommandError = function (output,
|
|
|
1374
1074
|
case 13: throw _d.sent();
|
|
1375
1075
|
case 14:
|
|
1376
1076
|
parsedBody = parsedOutput.body;
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
$metadata: $metadata,
|
|
1077
|
+
throwDefaultError({
|
|
1078
|
+
output: output,
|
|
1079
|
+
parsedBody: parsedBody,
|
|
1080
|
+
exceptionCtor: __BaseException,
|
|
1081
|
+
errorCode: errorCode,
|
|
1383
1082
|
});
|
|
1384
|
-
|
|
1083
|
+
_d.label = 15;
|
|
1084
|
+
case 15: return [2];
|
|
1385
1085
|
}
|
|
1386
1086
|
});
|
|
1387
1087
|
}); };
|
|
@@ -1393,24 +1093,23 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
|
|
|
1393
1093
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1394
1094
|
return [2, deserializeAws_restJson1CreateFlowCommandError(output, context)];
|
|
1395
1095
|
}
|
|
1396
|
-
contents = {
|
|
1096
|
+
contents = map({
|
|
1397
1097
|
$metadata: deserializeMetadata(output),
|
|
1398
|
-
|
|
1399
|
-
};
|
|
1098
|
+
});
|
|
1400
1099
|
_a = __expectNonNull;
|
|
1401
1100
|
_b = __expectObject;
|
|
1402
1101
|
return [4, parseBody(output.body, context)];
|
|
1403
1102
|
case 1:
|
|
1404
1103
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1405
|
-
if (data.flow
|
|
1104
|
+
if (data.flow != null) {
|
|
1406
1105
|
contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
|
|
1407
1106
|
}
|
|
1408
|
-
return [2,
|
|
1107
|
+
return [2, contents];
|
|
1409
1108
|
}
|
|
1410
1109
|
});
|
|
1411
1110
|
}); };
|
|
1412
1111
|
var deserializeAws_restJson1CreateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1413
|
-
var parsedOutput, _a,
|
|
1112
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1414
1113
|
var _c;
|
|
1415
1114
|
return __generator(this, function (_d) {
|
|
1416
1115
|
switch (_d.label) {
|
|
@@ -1451,14 +1150,14 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
|
|
|
1451
1150
|
case 13: throw _d.sent();
|
|
1452
1151
|
case 14:
|
|
1453
1152
|
parsedBody = parsedOutput.body;
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
$metadata: $metadata,
|
|
1153
|
+
throwDefaultError({
|
|
1154
|
+
output: output,
|
|
1155
|
+
parsedBody: parsedBody,
|
|
1156
|
+
exceptionCtor: __BaseException,
|
|
1157
|
+
errorCode: errorCode,
|
|
1460
1158
|
});
|
|
1461
|
-
|
|
1159
|
+
_d.label = 15;
|
|
1160
|
+
case 15: return [2];
|
|
1462
1161
|
}
|
|
1463
1162
|
});
|
|
1464
1163
|
}); };
|
|
@@ -1470,28 +1169,26 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
|
|
|
1470
1169
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1471
1170
|
return [2, deserializeAws_restJson1DeleteFlowCommandError(output, context)];
|
|
1472
1171
|
}
|
|
1473
|
-
contents = {
|
|
1172
|
+
contents = map({
|
|
1474
1173
|
$metadata: deserializeMetadata(output),
|
|
1475
|
-
|
|
1476
|
-
Status: undefined,
|
|
1477
|
-
};
|
|
1174
|
+
});
|
|
1478
1175
|
_a = __expectNonNull;
|
|
1479
1176
|
_b = __expectObject;
|
|
1480
1177
|
return [4, parseBody(output.body, context)];
|
|
1481
1178
|
case 1:
|
|
1482
1179
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1483
|
-
if (data.flowArn
|
|
1180
|
+
if (data.flowArn != null) {
|
|
1484
1181
|
contents.FlowArn = __expectString(data.flowArn);
|
|
1485
1182
|
}
|
|
1486
|
-
if (data.status
|
|
1183
|
+
if (data.status != null) {
|
|
1487
1184
|
contents.Status = __expectString(data.status);
|
|
1488
1185
|
}
|
|
1489
|
-
return [2,
|
|
1186
|
+
return [2, contents];
|
|
1490
1187
|
}
|
|
1491
1188
|
});
|
|
1492
1189
|
}); };
|
|
1493
1190
|
var deserializeAws_restJson1DeleteFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1494
|
-
var parsedOutput, _a,
|
|
1191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1495
1192
|
var _c;
|
|
1496
1193
|
return __generator(this, function (_d) {
|
|
1497
1194
|
switch (_d.label) {
|
|
@@ -1532,14 +1229,14 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
|
|
|
1532
1229
|
case 13: throw _d.sent();
|
|
1533
1230
|
case 14:
|
|
1534
1231
|
parsedBody = parsedOutput.body;
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
$metadata: $metadata,
|
|
1232
|
+
throwDefaultError({
|
|
1233
|
+
output: output,
|
|
1234
|
+
parsedBody: parsedBody,
|
|
1235
|
+
exceptionCtor: __BaseException,
|
|
1236
|
+
errorCode: errorCode,
|
|
1541
1237
|
});
|
|
1542
|
-
|
|
1238
|
+
_d.label = 15;
|
|
1239
|
+
case 15: return [2];
|
|
1543
1240
|
}
|
|
1544
1241
|
});
|
|
1545
1242
|
}); };
|
|
@@ -1551,28 +1248,26 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
|
|
|
1551
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1552
1249
|
return [2, deserializeAws_restJson1DescribeFlowCommandError(output, context)];
|
|
1553
1250
|
}
|
|
1554
|
-
contents = {
|
|
1251
|
+
contents = map({
|
|
1555
1252
|
$metadata: deserializeMetadata(output),
|
|
1556
|
-
|
|
1557
|
-
Messages: undefined,
|
|
1558
|
-
};
|
|
1253
|
+
});
|
|
1559
1254
|
_a = __expectNonNull;
|
|
1560
1255
|
_b = __expectObject;
|
|
1561
1256
|
return [4, parseBody(output.body, context)];
|
|
1562
1257
|
case 1:
|
|
1563
1258
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1564
|
-
if (data.flow
|
|
1259
|
+
if (data.flow != null) {
|
|
1565
1260
|
contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
|
|
1566
1261
|
}
|
|
1567
|
-
if (data.messages
|
|
1262
|
+
if (data.messages != null) {
|
|
1568
1263
|
contents.Messages = deserializeAws_restJson1Messages(data.messages, context);
|
|
1569
1264
|
}
|
|
1570
|
-
return [2,
|
|
1265
|
+
return [2, contents];
|
|
1571
1266
|
}
|
|
1572
1267
|
});
|
|
1573
1268
|
}); };
|
|
1574
1269
|
var deserializeAws_restJson1DescribeFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1575
|
-
var parsedOutput, _a,
|
|
1270
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1576
1271
|
var _c;
|
|
1577
1272
|
return __generator(this, function (_d) {
|
|
1578
1273
|
switch (_d.label) {
|
|
@@ -1613,14 +1308,14 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
|
|
|
1613
1308
|
case 13: throw _d.sent();
|
|
1614
1309
|
case 14:
|
|
1615
1310
|
parsedBody = parsedOutput.body;
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
$metadata: $metadata,
|
|
1311
|
+
throwDefaultError({
|
|
1312
|
+
output: output,
|
|
1313
|
+
parsedBody: parsedBody,
|
|
1314
|
+
exceptionCtor: __BaseException,
|
|
1315
|
+
errorCode: errorCode,
|
|
1622
1316
|
});
|
|
1623
|
-
|
|
1317
|
+
_d.label = 15;
|
|
1318
|
+
case 15: return [2];
|
|
1624
1319
|
}
|
|
1625
1320
|
});
|
|
1626
1321
|
}); };
|
|
@@ -1632,24 +1327,23 @@ export var deserializeAws_restJson1DescribeOfferingCommand = function (output, c
|
|
|
1632
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1633
1328
|
return [2, deserializeAws_restJson1DescribeOfferingCommandError(output, context)];
|
|
1634
1329
|
}
|
|
1635
|
-
contents = {
|
|
1330
|
+
contents = map({
|
|
1636
1331
|
$metadata: deserializeMetadata(output),
|
|
1637
|
-
|
|
1638
|
-
};
|
|
1332
|
+
});
|
|
1639
1333
|
_a = __expectNonNull;
|
|
1640
1334
|
_b = __expectObject;
|
|
1641
1335
|
return [4, parseBody(output.body, context)];
|
|
1642
1336
|
case 1:
|
|
1643
1337
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1644
|
-
if (data.offering
|
|
1338
|
+
if (data.offering != null) {
|
|
1645
1339
|
contents.Offering = deserializeAws_restJson1Offering(data.offering, context);
|
|
1646
1340
|
}
|
|
1647
|
-
return [2,
|
|
1341
|
+
return [2, contents];
|
|
1648
1342
|
}
|
|
1649
1343
|
});
|
|
1650
1344
|
}); };
|
|
1651
1345
|
var deserializeAws_restJson1DescribeOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1652
|
-
var parsedOutput, _a,
|
|
1346
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1653
1347
|
var _c;
|
|
1654
1348
|
return __generator(this, function (_d) {
|
|
1655
1349
|
switch (_d.label) {
|
|
@@ -1686,14 +1380,14 @@ var deserializeAws_restJson1DescribeOfferingCommandError = function (output, con
|
|
|
1686
1380
|
case 11: throw _d.sent();
|
|
1687
1381
|
case 12:
|
|
1688
1382
|
parsedBody = parsedOutput.body;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
$metadata: $metadata,
|
|
1383
|
+
throwDefaultError({
|
|
1384
|
+
output: output,
|
|
1385
|
+
parsedBody: parsedBody,
|
|
1386
|
+
exceptionCtor: __BaseException,
|
|
1387
|
+
errorCode: errorCode,
|
|
1695
1388
|
});
|
|
1696
|
-
|
|
1389
|
+
_d.label = 13;
|
|
1390
|
+
case 13: return [2];
|
|
1697
1391
|
}
|
|
1698
1392
|
});
|
|
1699
1393
|
}); };
|
|
@@ -1705,24 +1399,23 @@ export var deserializeAws_restJson1DescribeReservationCommand = function (output
|
|
|
1705
1399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1706
1400
|
return [2, deserializeAws_restJson1DescribeReservationCommandError(output, context)];
|
|
1707
1401
|
}
|
|
1708
|
-
contents = {
|
|
1402
|
+
contents = map({
|
|
1709
1403
|
$metadata: deserializeMetadata(output),
|
|
1710
|
-
|
|
1711
|
-
};
|
|
1404
|
+
});
|
|
1712
1405
|
_a = __expectNonNull;
|
|
1713
1406
|
_b = __expectObject;
|
|
1714
1407
|
return [4, parseBody(output.body, context)];
|
|
1715
1408
|
case 1:
|
|
1716
1409
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1717
|
-
if (data.reservation
|
|
1410
|
+
if (data.reservation != null) {
|
|
1718
1411
|
contents.Reservation = deserializeAws_restJson1Reservation(data.reservation, context);
|
|
1719
1412
|
}
|
|
1720
|
-
return [2,
|
|
1413
|
+
return [2, contents];
|
|
1721
1414
|
}
|
|
1722
1415
|
});
|
|
1723
1416
|
}); };
|
|
1724
1417
|
var deserializeAws_restJson1DescribeReservationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1725
|
-
var parsedOutput, _a,
|
|
1418
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1726
1419
|
var _c;
|
|
1727
1420
|
return __generator(this, function (_d) {
|
|
1728
1421
|
switch (_d.label) {
|
|
@@ -1759,14 +1452,14 @@ var deserializeAws_restJson1DescribeReservationCommandError = function (output,
|
|
|
1759
1452
|
case 11: throw _d.sent();
|
|
1760
1453
|
case 12:
|
|
1761
1454
|
parsedBody = parsedOutput.body;
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
$metadata: $metadata,
|
|
1455
|
+
throwDefaultError({
|
|
1456
|
+
output: output,
|
|
1457
|
+
parsedBody: parsedBody,
|
|
1458
|
+
exceptionCtor: __BaseException,
|
|
1459
|
+
errorCode: errorCode,
|
|
1768
1460
|
});
|
|
1769
|
-
|
|
1461
|
+
_d.label = 13;
|
|
1462
|
+
case 13: return [2];
|
|
1770
1463
|
}
|
|
1771
1464
|
});
|
|
1772
1465
|
}); };
|
|
@@ -1778,28 +1471,26 @@ export var deserializeAws_restJson1GrantFlowEntitlementsCommand = function (outp
|
|
|
1778
1471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1779
1472
|
return [2, deserializeAws_restJson1GrantFlowEntitlementsCommandError(output, context)];
|
|
1780
1473
|
}
|
|
1781
|
-
contents = {
|
|
1474
|
+
contents = map({
|
|
1782
1475
|
$metadata: deserializeMetadata(output),
|
|
1783
|
-
|
|
1784
|
-
FlowArn: undefined,
|
|
1785
|
-
};
|
|
1476
|
+
});
|
|
1786
1477
|
_a = __expectNonNull;
|
|
1787
1478
|
_b = __expectObject;
|
|
1788
1479
|
return [4, parseBody(output.body, context)];
|
|
1789
1480
|
case 1:
|
|
1790
1481
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1791
|
-
if (data.entitlements
|
|
1482
|
+
if (data.entitlements != null) {
|
|
1792
1483
|
contents.Entitlements = deserializeAws_restJson1__listOfEntitlement(data.entitlements, context);
|
|
1793
1484
|
}
|
|
1794
|
-
if (data.flowArn
|
|
1485
|
+
if (data.flowArn != null) {
|
|
1795
1486
|
contents.FlowArn = __expectString(data.flowArn);
|
|
1796
1487
|
}
|
|
1797
|
-
return [2,
|
|
1488
|
+
return [2, contents];
|
|
1798
1489
|
}
|
|
1799
1490
|
});
|
|
1800
1491
|
}); };
|
|
1801
1492
|
var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
-
var parsedOutput, _a,
|
|
1493
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1803
1494
|
var _c;
|
|
1804
1495
|
return __generator(this, function (_d) {
|
|
1805
1496
|
switch (_d.label) {
|
|
@@ -1844,14 +1535,14 @@ var deserializeAws_restJson1GrantFlowEntitlementsCommandError = function (output
|
|
|
1844
1535
|
case 15: throw _d.sent();
|
|
1845
1536
|
case 16:
|
|
1846
1537
|
parsedBody = parsedOutput.body;
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
$metadata: $metadata,
|
|
1538
|
+
throwDefaultError({
|
|
1539
|
+
output: output,
|
|
1540
|
+
parsedBody: parsedBody,
|
|
1541
|
+
exceptionCtor: __BaseException,
|
|
1542
|
+
errorCode: errorCode,
|
|
1853
1543
|
});
|
|
1854
|
-
|
|
1544
|
+
_d.label = 17;
|
|
1545
|
+
case 17: return [2];
|
|
1855
1546
|
}
|
|
1856
1547
|
});
|
|
1857
1548
|
}); };
|
|
@@ -1863,28 +1554,26 @@ export var deserializeAws_restJson1ListEntitlementsCommand = function (output, c
|
|
|
1863
1554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1864
1555
|
return [2, deserializeAws_restJson1ListEntitlementsCommandError(output, context)];
|
|
1865
1556
|
}
|
|
1866
|
-
contents = {
|
|
1557
|
+
contents = map({
|
|
1867
1558
|
$metadata: deserializeMetadata(output),
|
|
1868
|
-
|
|
1869
|
-
NextToken: undefined,
|
|
1870
|
-
};
|
|
1559
|
+
});
|
|
1871
1560
|
_a = __expectNonNull;
|
|
1872
1561
|
_b = __expectObject;
|
|
1873
1562
|
return [4, parseBody(output.body, context)];
|
|
1874
1563
|
case 1:
|
|
1875
1564
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1876
|
-
if (data.entitlements
|
|
1565
|
+
if (data.entitlements != null) {
|
|
1877
1566
|
contents.Entitlements = deserializeAws_restJson1__listOfListedEntitlement(data.entitlements, context);
|
|
1878
1567
|
}
|
|
1879
|
-
if (data.nextToken
|
|
1568
|
+
if (data.nextToken != null) {
|
|
1880
1569
|
contents.NextToken = __expectString(data.nextToken);
|
|
1881
1570
|
}
|
|
1882
|
-
return [2,
|
|
1571
|
+
return [2, contents];
|
|
1883
1572
|
}
|
|
1884
1573
|
});
|
|
1885
1574
|
}); };
|
|
1886
1575
|
var deserializeAws_restJson1ListEntitlementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1887
|
-
var parsedOutput, _a,
|
|
1576
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1888
1577
|
var _c;
|
|
1889
1578
|
return __generator(this, function (_d) {
|
|
1890
1579
|
switch (_d.label) {
|
|
@@ -1917,14 +1606,14 @@ var deserializeAws_restJson1ListEntitlementsCommandError = function (output, con
|
|
|
1917
1606
|
case 9: throw _d.sent();
|
|
1918
1607
|
case 10:
|
|
1919
1608
|
parsedBody = parsedOutput.body;
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
$metadata: $metadata,
|
|
1609
|
+
throwDefaultError({
|
|
1610
|
+
output: output,
|
|
1611
|
+
parsedBody: parsedBody,
|
|
1612
|
+
exceptionCtor: __BaseException,
|
|
1613
|
+
errorCode: errorCode,
|
|
1926
1614
|
});
|
|
1927
|
-
|
|
1615
|
+
_d.label = 11;
|
|
1616
|
+
case 11: return [2];
|
|
1928
1617
|
}
|
|
1929
1618
|
});
|
|
1930
1619
|
}); };
|
|
@@ -1936,28 +1625,26 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
|
|
|
1936
1625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1937
1626
|
return [2, deserializeAws_restJson1ListFlowsCommandError(output, context)];
|
|
1938
1627
|
}
|
|
1939
|
-
contents = {
|
|
1628
|
+
contents = map({
|
|
1940
1629
|
$metadata: deserializeMetadata(output),
|
|
1941
|
-
|
|
1942
|
-
NextToken: undefined,
|
|
1943
|
-
};
|
|
1630
|
+
});
|
|
1944
1631
|
_a = __expectNonNull;
|
|
1945
1632
|
_b = __expectObject;
|
|
1946
1633
|
return [4, parseBody(output.body, context)];
|
|
1947
1634
|
case 1:
|
|
1948
1635
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1949
|
-
if (data.flows
|
|
1636
|
+
if (data.flows != null) {
|
|
1950
1637
|
contents.Flows = deserializeAws_restJson1__listOfListedFlow(data.flows, context);
|
|
1951
1638
|
}
|
|
1952
|
-
if (data.nextToken
|
|
1639
|
+
if (data.nextToken != null) {
|
|
1953
1640
|
contents.NextToken = __expectString(data.nextToken);
|
|
1954
1641
|
}
|
|
1955
|
-
return [2,
|
|
1642
|
+
return [2, contents];
|
|
1956
1643
|
}
|
|
1957
1644
|
});
|
|
1958
1645
|
}); };
|
|
1959
1646
|
var deserializeAws_restJson1ListFlowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1960
|
-
var parsedOutput, _a,
|
|
1647
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1961
1648
|
var _c;
|
|
1962
1649
|
return __generator(this, function (_d) {
|
|
1963
1650
|
switch (_d.label) {
|
|
@@ -1990,14 +1677,14 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
|
|
|
1990
1677
|
case 9: throw _d.sent();
|
|
1991
1678
|
case 10:
|
|
1992
1679
|
parsedBody = parsedOutput.body;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
$metadata: $metadata,
|
|
1680
|
+
throwDefaultError({
|
|
1681
|
+
output: output,
|
|
1682
|
+
parsedBody: parsedBody,
|
|
1683
|
+
exceptionCtor: __BaseException,
|
|
1684
|
+
errorCode: errorCode,
|
|
1999
1685
|
});
|
|
2000
|
-
|
|
1686
|
+
_d.label = 11;
|
|
1687
|
+
case 11: return [2];
|
|
2001
1688
|
}
|
|
2002
1689
|
});
|
|
2003
1690
|
}); };
|
|
@@ -2009,28 +1696,26 @@ export var deserializeAws_restJson1ListOfferingsCommand = function (output, cont
|
|
|
2009
1696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2010
1697
|
return [2, deserializeAws_restJson1ListOfferingsCommandError(output, context)];
|
|
2011
1698
|
}
|
|
2012
|
-
contents = {
|
|
1699
|
+
contents = map({
|
|
2013
1700
|
$metadata: deserializeMetadata(output),
|
|
2014
|
-
|
|
2015
|
-
Offerings: undefined,
|
|
2016
|
-
};
|
|
1701
|
+
});
|
|
2017
1702
|
_a = __expectNonNull;
|
|
2018
1703
|
_b = __expectObject;
|
|
2019
1704
|
return [4, parseBody(output.body, context)];
|
|
2020
1705
|
case 1:
|
|
2021
1706
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2022
|
-
if (data.nextToken
|
|
1707
|
+
if (data.nextToken != null) {
|
|
2023
1708
|
contents.NextToken = __expectString(data.nextToken);
|
|
2024
1709
|
}
|
|
2025
|
-
if (data.offerings
|
|
1710
|
+
if (data.offerings != null) {
|
|
2026
1711
|
contents.Offerings = deserializeAws_restJson1__listOfOffering(data.offerings, context);
|
|
2027
1712
|
}
|
|
2028
|
-
return [2,
|
|
1713
|
+
return [2, contents];
|
|
2029
1714
|
}
|
|
2030
1715
|
});
|
|
2031
1716
|
}); };
|
|
2032
1717
|
var deserializeAws_restJson1ListOfferingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2033
|
-
var parsedOutput, _a,
|
|
1718
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2034
1719
|
var _c;
|
|
2035
1720
|
return __generator(this, function (_d) {
|
|
2036
1721
|
switch (_d.label) {
|
|
@@ -2063,14 +1748,14 @@ var deserializeAws_restJson1ListOfferingsCommandError = function (output, contex
|
|
|
2063
1748
|
case 9: throw _d.sent();
|
|
2064
1749
|
case 10:
|
|
2065
1750
|
parsedBody = parsedOutput.body;
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
$metadata: $metadata,
|
|
1751
|
+
throwDefaultError({
|
|
1752
|
+
output: output,
|
|
1753
|
+
parsedBody: parsedBody,
|
|
1754
|
+
exceptionCtor: __BaseException,
|
|
1755
|
+
errorCode: errorCode,
|
|
2072
1756
|
});
|
|
2073
|
-
|
|
1757
|
+
_d.label = 11;
|
|
1758
|
+
case 11: return [2];
|
|
2074
1759
|
}
|
|
2075
1760
|
});
|
|
2076
1761
|
}); };
|
|
@@ -2082,28 +1767,26 @@ export var deserializeAws_restJson1ListReservationsCommand = function (output, c
|
|
|
2082
1767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2083
1768
|
return [2, deserializeAws_restJson1ListReservationsCommandError(output, context)];
|
|
2084
1769
|
}
|
|
2085
|
-
contents = {
|
|
1770
|
+
contents = map({
|
|
2086
1771
|
$metadata: deserializeMetadata(output),
|
|
2087
|
-
|
|
2088
|
-
Reservations: undefined,
|
|
2089
|
-
};
|
|
1772
|
+
});
|
|
2090
1773
|
_a = __expectNonNull;
|
|
2091
1774
|
_b = __expectObject;
|
|
2092
1775
|
return [4, parseBody(output.body, context)];
|
|
2093
1776
|
case 1:
|
|
2094
1777
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2095
|
-
if (data.nextToken
|
|
1778
|
+
if (data.nextToken != null) {
|
|
2096
1779
|
contents.NextToken = __expectString(data.nextToken);
|
|
2097
1780
|
}
|
|
2098
|
-
if (data.reservations
|
|
1781
|
+
if (data.reservations != null) {
|
|
2099
1782
|
contents.Reservations = deserializeAws_restJson1__listOfReservation(data.reservations, context);
|
|
2100
1783
|
}
|
|
2101
|
-
return [2,
|
|
1784
|
+
return [2, contents];
|
|
2102
1785
|
}
|
|
2103
1786
|
});
|
|
2104
1787
|
}); };
|
|
2105
1788
|
var deserializeAws_restJson1ListReservationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2106
|
-
var parsedOutput, _a,
|
|
1789
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2107
1790
|
var _c;
|
|
2108
1791
|
return __generator(this, function (_d) {
|
|
2109
1792
|
switch (_d.label) {
|
|
@@ -2136,14 +1819,14 @@ var deserializeAws_restJson1ListReservationsCommandError = function (output, con
|
|
|
2136
1819
|
case 9: throw _d.sent();
|
|
2137
1820
|
case 10:
|
|
2138
1821
|
parsedBody = parsedOutput.body;
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
$metadata: $metadata,
|
|
1822
|
+
throwDefaultError({
|
|
1823
|
+
output: output,
|
|
1824
|
+
parsedBody: parsedBody,
|
|
1825
|
+
exceptionCtor: __BaseException,
|
|
1826
|
+
errorCode: errorCode,
|
|
2145
1827
|
});
|
|
2146
|
-
|
|
1828
|
+
_d.label = 11;
|
|
1829
|
+
case 11: return [2];
|
|
2147
1830
|
}
|
|
2148
1831
|
});
|
|
2149
1832
|
}); };
|
|
@@ -2155,24 +1838,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2155
1838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2156
1839
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2157
1840
|
}
|
|
2158
|
-
contents = {
|
|
1841
|
+
contents = map({
|
|
2159
1842
|
$metadata: deserializeMetadata(output),
|
|
2160
|
-
|
|
2161
|
-
};
|
|
1843
|
+
});
|
|
2162
1844
|
_a = __expectNonNull;
|
|
2163
1845
|
_b = __expectObject;
|
|
2164
1846
|
return [4, parseBody(output.body, context)];
|
|
2165
1847
|
case 1:
|
|
2166
1848
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2167
|
-
if (data.tags
|
|
1849
|
+
if (data.tags != null) {
|
|
2168
1850
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2169
1851
|
}
|
|
2170
|
-
return [2,
|
|
1852
|
+
return [2, contents];
|
|
2171
1853
|
}
|
|
2172
1854
|
});
|
|
2173
1855
|
}); };
|
|
2174
1856
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2175
|
-
var parsedOutput, _a,
|
|
1857
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2176
1858
|
var _c;
|
|
2177
1859
|
return __generator(this, function (_d) {
|
|
2178
1860
|
switch (_d.label) {
|
|
@@ -2201,14 +1883,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2201
1883
|
case 7: throw _d.sent();
|
|
2202
1884
|
case 8:
|
|
2203
1885
|
parsedBody = parsedOutput.body;
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
$metadata: $metadata,
|
|
1886
|
+
throwDefaultError({
|
|
1887
|
+
output: output,
|
|
1888
|
+
parsedBody: parsedBody,
|
|
1889
|
+
exceptionCtor: __BaseException,
|
|
1890
|
+
errorCode: errorCode,
|
|
2210
1891
|
});
|
|
2211
|
-
|
|
1892
|
+
_d.label = 9;
|
|
1893
|
+
case 9: return [2];
|
|
2212
1894
|
}
|
|
2213
1895
|
});
|
|
2214
1896
|
}); };
|
|
@@ -2220,24 +1902,23 @@ export var deserializeAws_restJson1PurchaseOfferingCommand = function (output, c
|
|
|
2220
1902
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2221
1903
|
return [2, deserializeAws_restJson1PurchaseOfferingCommandError(output, context)];
|
|
2222
1904
|
}
|
|
2223
|
-
contents = {
|
|
1905
|
+
contents = map({
|
|
2224
1906
|
$metadata: deserializeMetadata(output),
|
|
2225
|
-
|
|
2226
|
-
};
|
|
1907
|
+
});
|
|
2227
1908
|
_a = __expectNonNull;
|
|
2228
1909
|
_b = __expectObject;
|
|
2229
1910
|
return [4, parseBody(output.body, context)];
|
|
2230
1911
|
case 1:
|
|
2231
1912
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2232
|
-
if (data.reservation
|
|
1913
|
+
if (data.reservation != null) {
|
|
2233
1914
|
contents.Reservation = deserializeAws_restJson1Reservation(data.reservation, context);
|
|
2234
1915
|
}
|
|
2235
|
-
return [2,
|
|
1916
|
+
return [2, contents];
|
|
2236
1917
|
}
|
|
2237
1918
|
});
|
|
2238
1919
|
}); };
|
|
2239
1920
|
var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2240
|
-
var parsedOutput, _a,
|
|
1921
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2241
1922
|
var _c;
|
|
2242
1923
|
return __generator(this, function (_d) {
|
|
2243
1924
|
switch (_d.label) {
|
|
@@ -2278,14 +1959,14 @@ var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, con
|
|
|
2278
1959
|
case 13: throw _d.sent();
|
|
2279
1960
|
case 14:
|
|
2280
1961
|
parsedBody = parsedOutput.body;
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
$metadata: $metadata,
|
|
1962
|
+
throwDefaultError({
|
|
1963
|
+
output: output,
|
|
1964
|
+
parsedBody: parsedBody,
|
|
1965
|
+
exceptionCtor: __BaseException,
|
|
1966
|
+
errorCode: errorCode,
|
|
2287
1967
|
});
|
|
2288
|
-
|
|
1968
|
+
_d.label = 15;
|
|
1969
|
+
case 15: return [2];
|
|
2289
1970
|
}
|
|
2290
1971
|
});
|
|
2291
1972
|
}); };
|
|
@@ -2297,28 +1978,26 @@ export var deserializeAws_restJson1RemoveFlowMediaStreamCommand = function (outp
|
|
|
2297
1978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2298
1979
|
return [2, deserializeAws_restJson1RemoveFlowMediaStreamCommandError(output, context)];
|
|
2299
1980
|
}
|
|
2300
|
-
contents = {
|
|
1981
|
+
contents = map({
|
|
2301
1982
|
$metadata: deserializeMetadata(output),
|
|
2302
|
-
|
|
2303
|
-
MediaStreamName: undefined,
|
|
2304
|
-
};
|
|
1983
|
+
});
|
|
2305
1984
|
_a = __expectNonNull;
|
|
2306
1985
|
_b = __expectObject;
|
|
2307
1986
|
return [4, parseBody(output.body, context)];
|
|
2308
1987
|
case 1:
|
|
2309
1988
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2310
|
-
if (data.flowArn
|
|
1989
|
+
if (data.flowArn != null) {
|
|
2311
1990
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2312
1991
|
}
|
|
2313
|
-
if (data.mediaStreamName
|
|
1992
|
+
if (data.mediaStreamName != null) {
|
|
2314
1993
|
contents.MediaStreamName = __expectString(data.mediaStreamName);
|
|
2315
1994
|
}
|
|
2316
|
-
return [2,
|
|
1995
|
+
return [2, contents];
|
|
2317
1996
|
}
|
|
2318
1997
|
});
|
|
2319
1998
|
}); };
|
|
2320
1999
|
var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2321
|
-
var parsedOutput, _a,
|
|
2000
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2322
2001
|
var _c;
|
|
2323
2002
|
return __generator(this, function (_d) {
|
|
2324
2003
|
switch (_d.label) {
|
|
@@ -2359,14 +2038,14 @@ var deserializeAws_restJson1RemoveFlowMediaStreamCommandError = function (output
|
|
|
2359
2038
|
case 13: throw _d.sent();
|
|
2360
2039
|
case 14:
|
|
2361
2040
|
parsedBody = parsedOutput.body;
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
$metadata: $metadata,
|
|
2041
|
+
throwDefaultError({
|
|
2042
|
+
output: output,
|
|
2043
|
+
parsedBody: parsedBody,
|
|
2044
|
+
exceptionCtor: __BaseException,
|
|
2045
|
+
errorCode: errorCode,
|
|
2368
2046
|
});
|
|
2369
|
-
|
|
2047
|
+
_d.label = 15;
|
|
2048
|
+
case 15: return [2];
|
|
2370
2049
|
}
|
|
2371
2050
|
});
|
|
2372
2051
|
}); };
|
|
@@ -2378,28 +2057,26 @@ export var deserializeAws_restJson1RemoveFlowOutputCommand = function (output, c
|
|
|
2378
2057
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2379
2058
|
return [2, deserializeAws_restJson1RemoveFlowOutputCommandError(output, context)];
|
|
2380
2059
|
}
|
|
2381
|
-
contents = {
|
|
2060
|
+
contents = map({
|
|
2382
2061
|
$metadata: deserializeMetadata(output),
|
|
2383
|
-
|
|
2384
|
-
OutputArn: undefined,
|
|
2385
|
-
};
|
|
2062
|
+
});
|
|
2386
2063
|
_a = __expectNonNull;
|
|
2387
2064
|
_b = __expectObject;
|
|
2388
2065
|
return [4, parseBody(output.body, context)];
|
|
2389
2066
|
case 1:
|
|
2390
2067
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2391
|
-
if (data.flowArn
|
|
2068
|
+
if (data.flowArn != null) {
|
|
2392
2069
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2393
2070
|
}
|
|
2394
|
-
if (data.outputArn
|
|
2071
|
+
if (data.outputArn != null) {
|
|
2395
2072
|
contents.OutputArn = __expectString(data.outputArn);
|
|
2396
2073
|
}
|
|
2397
|
-
return [2,
|
|
2074
|
+
return [2, contents];
|
|
2398
2075
|
}
|
|
2399
2076
|
});
|
|
2400
2077
|
}); };
|
|
2401
2078
|
var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2402
|
-
var parsedOutput, _a,
|
|
2079
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2403
2080
|
var _c;
|
|
2404
2081
|
return __generator(this, function (_d) {
|
|
2405
2082
|
switch (_d.label) {
|
|
@@ -2440,14 +2117,14 @@ var deserializeAws_restJson1RemoveFlowOutputCommandError = function (output, con
|
|
|
2440
2117
|
case 13: throw _d.sent();
|
|
2441
2118
|
case 14:
|
|
2442
2119
|
parsedBody = parsedOutput.body;
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
$metadata: $metadata,
|
|
2120
|
+
throwDefaultError({
|
|
2121
|
+
output: output,
|
|
2122
|
+
parsedBody: parsedBody,
|
|
2123
|
+
exceptionCtor: __BaseException,
|
|
2124
|
+
errorCode: errorCode,
|
|
2449
2125
|
});
|
|
2450
|
-
|
|
2126
|
+
_d.label = 15;
|
|
2127
|
+
case 15: return [2];
|
|
2451
2128
|
}
|
|
2452
2129
|
});
|
|
2453
2130
|
}); };
|
|
@@ -2459,28 +2136,26 @@ export var deserializeAws_restJson1RemoveFlowSourceCommand = function (output, c
|
|
|
2459
2136
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2460
2137
|
return [2, deserializeAws_restJson1RemoveFlowSourceCommandError(output, context)];
|
|
2461
2138
|
}
|
|
2462
|
-
contents = {
|
|
2139
|
+
contents = map({
|
|
2463
2140
|
$metadata: deserializeMetadata(output),
|
|
2464
|
-
|
|
2465
|
-
SourceArn: undefined,
|
|
2466
|
-
};
|
|
2141
|
+
});
|
|
2467
2142
|
_a = __expectNonNull;
|
|
2468
2143
|
_b = __expectObject;
|
|
2469
2144
|
return [4, parseBody(output.body, context)];
|
|
2470
2145
|
case 1:
|
|
2471
2146
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2472
|
-
if (data.flowArn
|
|
2147
|
+
if (data.flowArn != null) {
|
|
2473
2148
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2474
2149
|
}
|
|
2475
|
-
if (data.sourceArn
|
|
2150
|
+
if (data.sourceArn != null) {
|
|
2476
2151
|
contents.SourceArn = __expectString(data.sourceArn);
|
|
2477
2152
|
}
|
|
2478
|
-
return [2,
|
|
2153
|
+
return [2, contents];
|
|
2479
2154
|
}
|
|
2480
2155
|
});
|
|
2481
2156
|
}); };
|
|
2482
2157
|
var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2483
|
-
var parsedOutput, _a,
|
|
2158
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2484
2159
|
var _c;
|
|
2485
2160
|
return __generator(this, function (_d) {
|
|
2486
2161
|
switch (_d.label) {
|
|
@@ -2521,14 +2196,14 @@ var deserializeAws_restJson1RemoveFlowSourceCommandError = function (output, con
|
|
|
2521
2196
|
case 13: throw _d.sent();
|
|
2522
2197
|
case 14:
|
|
2523
2198
|
parsedBody = parsedOutput.body;
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
$metadata: $metadata,
|
|
2199
|
+
throwDefaultError({
|
|
2200
|
+
output: output,
|
|
2201
|
+
parsedBody: parsedBody,
|
|
2202
|
+
exceptionCtor: __BaseException,
|
|
2203
|
+
errorCode: errorCode,
|
|
2530
2204
|
});
|
|
2531
|
-
|
|
2205
|
+
_d.label = 15;
|
|
2206
|
+
case 15: return [2];
|
|
2532
2207
|
}
|
|
2533
2208
|
});
|
|
2534
2209
|
}); };
|
|
@@ -2540,32 +2215,29 @@ export var deserializeAws_restJson1RemoveFlowVpcInterfaceCommand = function (out
|
|
|
2540
2215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2541
2216
|
return [2, deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError(output, context)];
|
|
2542
2217
|
}
|
|
2543
|
-
contents = {
|
|
2218
|
+
contents = map({
|
|
2544
2219
|
$metadata: deserializeMetadata(output),
|
|
2545
|
-
|
|
2546
|
-
NonDeletedNetworkInterfaceIds: undefined,
|
|
2547
|
-
VpcInterfaceName: undefined,
|
|
2548
|
-
};
|
|
2220
|
+
});
|
|
2549
2221
|
_a = __expectNonNull;
|
|
2550
2222
|
_b = __expectObject;
|
|
2551
2223
|
return [4, parseBody(output.body, context)];
|
|
2552
2224
|
case 1:
|
|
2553
2225
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2554
|
-
if (data.flowArn
|
|
2226
|
+
if (data.flowArn != null) {
|
|
2555
2227
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2556
2228
|
}
|
|
2557
|
-
if (data.nonDeletedNetworkInterfaceIds
|
|
2229
|
+
if (data.nonDeletedNetworkInterfaceIds != null) {
|
|
2558
2230
|
contents.NonDeletedNetworkInterfaceIds = deserializeAws_restJson1__listOf__string(data.nonDeletedNetworkInterfaceIds, context);
|
|
2559
2231
|
}
|
|
2560
|
-
if (data.vpcInterfaceName
|
|
2232
|
+
if (data.vpcInterfaceName != null) {
|
|
2561
2233
|
contents.VpcInterfaceName = __expectString(data.vpcInterfaceName);
|
|
2562
2234
|
}
|
|
2563
|
-
return [2,
|
|
2235
|
+
return [2, contents];
|
|
2564
2236
|
}
|
|
2565
2237
|
});
|
|
2566
2238
|
}); };
|
|
2567
2239
|
var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2568
|
-
var parsedOutput, _a,
|
|
2240
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2569
2241
|
var _c;
|
|
2570
2242
|
return __generator(this, function (_d) {
|
|
2571
2243
|
switch (_d.label) {
|
|
@@ -2606,14 +2278,14 @@ var deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = function (outpu
|
|
|
2606
2278
|
case 13: throw _d.sent();
|
|
2607
2279
|
case 14:
|
|
2608
2280
|
parsedBody = parsedOutput.body;
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
$metadata: $metadata,
|
|
2281
|
+
throwDefaultError({
|
|
2282
|
+
output: output,
|
|
2283
|
+
parsedBody: parsedBody,
|
|
2284
|
+
exceptionCtor: __BaseException,
|
|
2285
|
+
errorCode: errorCode,
|
|
2615
2286
|
});
|
|
2616
|
-
|
|
2287
|
+
_d.label = 15;
|
|
2288
|
+
case 15: return [2];
|
|
2617
2289
|
}
|
|
2618
2290
|
});
|
|
2619
2291
|
}); };
|
|
@@ -2625,28 +2297,26 @@ export var deserializeAws_restJson1RevokeFlowEntitlementCommand = function (outp
|
|
|
2625
2297
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2626
2298
|
return [2, deserializeAws_restJson1RevokeFlowEntitlementCommandError(output, context)];
|
|
2627
2299
|
}
|
|
2628
|
-
contents = {
|
|
2300
|
+
contents = map({
|
|
2629
2301
|
$metadata: deserializeMetadata(output),
|
|
2630
|
-
|
|
2631
|
-
FlowArn: undefined,
|
|
2632
|
-
};
|
|
2302
|
+
});
|
|
2633
2303
|
_a = __expectNonNull;
|
|
2634
2304
|
_b = __expectObject;
|
|
2635
2305
|
return [4, parseBody(output.body, context)];
|
|
2636
2306
|
case 1:
|
|
2637
2307
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2638
|
-
if (data.entitlementArn
|
|
2308
|
+
if (data.entitlementArn != null) {
|
|
2639
2309
|
contents.EntitlementArn = __expectString(data.entitlementArn);
|
|
2640
2310
|
}
|
|
2641
|
-
if (data.flowArn
|
|
2311
|
+
if (data.flowArn != null) {
|
|
2642
2312
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2643
2313
|
}
|
|
2644
|
-
return [2,
|
|
2314
|
+
return [2, contents];
|
|
2645
2315
|
}
|
|
2646
2316
|
});
|
|
2647
2317
|
}); };
|
|
2648
2318
|
var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2649
|
-
var parsedOutput, _a,
|
|
2319
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2650
2320
|
var _c;
|
|
2651
2321
|
return __generator(this, function (_d) {
|
|
2652
2322
|
switch (_d.label) {
|
|
@@ -2687,14 +2357,14 @@ var deserializeAws_restJson1RevokeFlowEntitlementCommandError = function (output
|
|
|
2687
2357
|
case 13: throw _d.sent();
|
|
2688
2358
|
case 14:
|
|
2689
2359
|
parsedBody = parsedOutput.body;
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
$metadata: $metadata,
|
|
2360
|
+
throwDefaultError({
|
|
2361
|
+
output: output,
|
|
2362
|
+
parsedBody: parsedBody,
|
|
2363
|
+
exceptionCtor: __BaseException,
|
|
2364
|
+
errorCode: errorCode,
|
|
2696
2365
|
});
|
|
2697
|
-
|
|
2366
|
+
_d.label = 15;
|
|
2367
|
+
case 15: return [2];
|
|
2698
2368
|
}
|
|
2699
2369
|
});
|
|
2700
2370
|
}); };
|
|
@@ -2706,28 +2376,26 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
|
|
|
2706
2376
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2707
2377
|
return [2, deserializeAws_restJson1StartFlowCommandError(output, context)];
|
|
2708
2378
|
}
|
|
2709
|
-
contents = {
|
|
2379
|
+
contents = map({
|
|
2710
2380
|
$metadata: deserializeMetadata(output),
|
|
2711
|
-
|
|
2712
|
-
Status: undefined,
|
|
2713
|
-
};
|
|
2381
|
+
});
|
|
2714
2382
|
_a = __expectNonNull;
|
|
2715
2383
|
_b = __expectObject;
|
|
2716
2384
|
return [4, parseBody(output.body, context)];
|
|
2717
2385
|
case 1:
|
|
2718
2386
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2719
|
-
if (data.flowArn
|
|
2387
|
+
if (data.flowArn != null) {
|
|
2720
2388
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2721
2389
|
}
|
|
2722
|
-
if (data.status
|
|
2390
|
+
if (data.status != null) {
|
|
2723
2391
|
contents.Status = __expectString(data.status);
|
|
2724
2392
|
}
|
|
2725
|
-
return [2,
|
|
2393
|
+
return [2, contents];
|
|
2726
2394
|
}
|
|
2727
2395
|
});
|
|
2728
2396
|
}); };
|
|
2729
2397
|
var deserializeAws_restJson1StartFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2730
|
-
var parsedOutput, _a,
|
|
2398
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2731
2399
|
var _c;
|
|
2732
2400
|
return __generator(this, function (_d) {
|
|
2733
2401
|
switch (_d.label) {
|
|
@@ -2768,14 +2436,14 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
|
|
|
2768
2436
|
case 13: throw _d.sent();
|
|
2769
2437
|
case 14:
|
|
2770
2438
|
parsedBody = parsedOutput.body;
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
$metadata: $metadata,
|
|
2439
|
+
throwDefaultError({
|
|
2440
|
+
output: output,
|
|
2441
|
+
parsedBody: parsedBody,
|
|
2442
|
+
exceptionCtor: __BaseException,
|
|
2443
|
+
errorCode: errorCode,
|
|
2777
2444
|
});
|
|
2778
|
-
|
|
2445
|
+
_d.label = 15;
|
|
2446
|
+
case 15: return [2];
|
|
2779
2447
|
}
|
|
2780
2448
|
});
|
|
2781
2449
|
}); };
|
|
@@ -2787,28 +2455,26 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
|
|
|
2787
2455
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2788
2456
|
return [2, deserializeAws_restJson1StopFlowCommandError(output, context)];
|
|
2789
2457
|
}
|
|
2790
|
-
contents = {
|
|
2458
|
+
contents = map({
|
|
2791
2459
|
$metadata: deserializeMetadata(output),
|
|
2792
|
-
|
|
2793
|
-
Status: undefined,
|
|
2794
|
-
};
|
|
2460
|
+
});
|
|
2795
2461
|
_a = __expectNonNull;
|
|
2796
2462
|
_b = __expectObject;
|
|
2797
2463
|
return [4, parseBody(output.body, context)];
|
|
2798
2464
|
case 1:
|
|
2799
2465
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2800
|
-
if (data.flowArn
|
|
2466
|
+
if (data.flowArn != null) {
|
|
2801
2467
|
contents.FlowArn = __expectString(data.flowArn);
|
|
2802
2468
|
}
|
|
2803
|
-
if (data.status
|
|
2469
|
+
if (data.status != null) {
|
|
2804
2470
|
contents.Status = __expectString(data.status);
|
|
2805
2471
|
}
|
|
2806
|
-
return [2,
|
|
2472
|
+
return [2, contents];
|
|
2807
2473
|
}
|
|
2808
2474
|
});
|
|
2809
2475
|
}); };
|
|
2810
2476
|
var deserializeAws_restJson1StopFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2811
|
-
var parsedOutput, _a,
|
|
2477
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2812
2478
|
var _c;
|
|
2813
2479
|
return __generator(this, function (_d) {
|
|
2814
2480
|
switch (_d.label) {
|
|
@@ -2849,14 +2515,14 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
|
|
|
2849
2515
|
case 13: throw _d.sent();
|
|
2850
2516
|
case 14:
|
|
2851
2517
|
parsedBody = parsedOutput.body;
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
$metadata: $metadata,
|
|
2518
|
+
throwDefaultError({
|
|
2519
|
+
output: output,
|
|
2520
|
+
parsedBody: parsedBody,
|
|
2521
|
+
exceptionCtor: __BaseException,
|
|
2522
|
+
errorCode: errorCode,
|
|
2858
2523
|
});
|
|
2859
|
-
|
|
2524
|
+
_d.label = 15;
|
|
2525
|
+
case 15: return [2];
|
|
2860
2526
|
}
|
|
2861
2527
|
});
|
|
2862
2528
|
}); };
|
|
@@ -2868,18 +2534,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2868
2534
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2869
2535
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2870
2536
|
}
|
|
2871
|
-
contents = {
|
|
2537
|
+
contents = map({
|
|
2872
2538
|
$metadata: deserializeMetadata(output),
|
|
2873
|
-
};
|
|
2539
|
+
});
|
|
2874
2540
|
return [4, collectBody(output.body, context)];
|
|
2875
2541
|
case 1:
|
|
2876
2542
|
_a.sent();
|
|
2877
|
-
return [2,
|
|
2543
|
+
return [2, contents];
|
|
2878
2544
|
}
|
|
2879
2545
|
});
|
|
2880
2546
|
}); };
|
|
2881
2547
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2882
|
-
var parsedOutput, _a,
|
|
2548
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2883
2549
|
var _c;
|
|
2884
2550
|
return __generator(this, function (_d) {
|
|
2885
2551
|
switch (_d.label) {
|
|
@@ -2908,14 +2574,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2908
2574
|
case 7: throw _d.sent();
|
|
2909
2575
|
case 8:
|
|
2910
2576
|
parsedBody = parsedOutput.body;
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
$metadata: $metadata,
|
|
2577
|
+
throwDefaultError({
|
|
2578
|
+
output: output,
|
|
2579
|
+
parsedBody: parsedBody,
|
|
2580
|
+
exceptionCtor: __BaseException,
|
|
2581
|
+
errorCode: errorCode,
|
|
2917
2582
|
});
|
|
2918
|
-
|
|
2583
|
+
_d.label = 9;
|
|
2584
|
+
case 9: return [2];
|
|
2919
2585
|
}
|
|
2920
2586
|
});
|
|
2921
2587
|
}); };
|
|
@@ -2927,18 +2593,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2927
2593
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2928
2594
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2929
2595
|
}
|
|
2930
|
-
contents = {
|
|
2596
|
+
contents = map({
|
|
2931
2597
|
$metadata: deserializeMetadata(output),
|
|
2932
|
-
};
|
|
2598
|
+
});
|
|
2933
2599
|
return [4, collectBody(output.body, context)];
|
|
2934
2600
|
case 1:
|
|
2935
2601
|
_a.sent();
|
|
2936
|
-
return [2,
|
|
2602
|
+
return [2, contents];
|
|
2937
2603
|
}
|
|
2938
2604
|
});
|
|
2939
2605
|
}); };
|
|
2940
2606
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2941
|
-
var parsedOutput, _a,
|
|
2607
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2942
2608
|
var _c;
|
|
2943
2609
|
return __generator(this, function (_d) {
|
|
2944
2610
|
switch (_d.label) {
|
|
@@ -2967,14 +2633,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2967
2633
|
case 7: throw _d.sent();
|
|
2968
2634
|
case 8:
|
|
2969
2635
|
parsedBody = parsedOutput.body;
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
$metadata: $metadata,
|
|
2636
|
+
throwDefaultError({
|
|
2637
|
+
output: output,
|
|
2638
|
+
parsedBody: parsedBody,
|
|
2639
|
+
exceptionCtor: __BaseException,
|
|
2640
|
+
errorCode: errorCode,
|
|
2976
2641
|
});
|
|
2977
|
-
|
|
2642
|
+
_d.label = 9;
|
|
2643
|
+
case 9: return [2];
|
|
2978
2644
|
}
|
|
2979
2645
|
});
|
|
2980
2646
|
}); };
|
|
@@ -2986,24 +2652,23 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
|
|
|
2986
2652
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2987
2653
|
return [2, deserializeAws_restJson1UpdateFlowCommandError(output, context)];
|
|
2988
2654
|
}
|
|
2989
|
-
contents = {
|
|
2655
|
+
contents = map({
|
|
2990
2656
|
$metadata: deserializeMetadata(output),
|
|
2991
|
-
|
|
2992
|
-
};
|
|
2657
|
+
});
|
|
2993
2658
|
_a = __expectNonNull;
|
|
2994
2659
|
_b = __expectObject;
|
|
2995
2660
|
return [4, parseBody(output.body, context)];
|
|
2996
2661
|
case 1:
|
|
2997
2662
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2998
|
-
if (data.flow
|
|
2663
|
+
if (data.flow != null) {
|
|
2999
2664
|
contents.Flow = deserializeAws_restJson1Flow(data.flow, context);
|
|
3000
2665
|
}
|
|
3001
|
-
return [2,
|
|
2666
|
+
return [2, contents];
|
|
3002
2667
|
}
|
|
3003
2668
|
});
|
|
3004
2669
|
}); };
|
|
3005
2670
|
var deserializeAws_restJson1UpdateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3006
|
-
var parsedOutput, _a,
|
|
2671
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3007
2672
|
var _c;
|
|
3008
2673
|
return __generator(this, function (_d) {
|
|
3009
2674
|
switch (_d.label) {
|
|
@@ -3044,14 +2709,14 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
|
|
|
3044
2709
|
case 13: throw _d.sent();
|
|
3045
2710
|
case 14:
|
|
3046
2711
|
parsedBody = parsedOutput.body;
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
$metadata: $metadata,
|
|
2712
|
+
throwDefaultError({
|
|
2713
|
+
output: output,
|
|
2714
|
+
parsedBody: parsedBody,
|
|
2715
|
+
exceptionCtor: __BaseException,
|
|
2716
|
+
errorCode: errorCode,
|
|
3053
2717
|
});
|
|
3054
|
-
|
|
2718
|
+
_d.label = 15;
|
|
2719
|
+
case 15: return [2];
|
|
3055
2720
|
}
|
|
3056
2721
|
});
|
|
3057
2722
|
}); };
|
|
@@ -3063,28 +2728,26 @@ export var deserializeAws_restJson1UpdateFlowEntitlementCommand = function (outp
|
|
|
3063
2728
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3064
2729
|
return [2, deserializeAws_restJson1UpdateFlowEntitlementCommandError(output, context)];
|
|
3065
2730
|
}
|
|
3066
|
-
contents = {
|
|
2731
|
+
contents = map({
|
|
3067
2732
|
$metadata: deserializeMetadata(output),
|
|
3068
|
-
|
|
3069
|
-
FlowArn: undefined,
|
|
3070
|
-
};
|
|
2733
|
+
});
|
|
3071
2734
|
_a = __expectNonNull;
|
|
3072
2735
|
_b = __expectObject;
|
|
3073
2736
|
return [4, parseBody(output.body, context)];
|
|
3074
2737
|
case 1:
|
|
3075
2738
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3076
|
-
if (data.entitlement
|
|
2739
|
+
if (data.entitlement != null) {
|
|
3077
2740
|
contents.Entitlement = deserializeAws_restJson1Entitlement(data.entitlement, context);
|
|
3078
2741
|
}
|
|
3079
|
-
if (data.flowArn
|
|
2742
|
+
if (data.flowArn != null) {
|
|
3080
2743
|
contents.FlowArn = __expectString(data.flowArn);
|
|
3081
2744
|
}
|
|
3082
|
-
return [2,
|
|
2745
|
+
return [2, contents];
|
|
3083
2746
|
}
|
|
3084
2747
|
});
|
|
3085
2748
|
}); };
|
|
3086
2749
|
var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3087
|
-
var parsedOutput, _a,
|
|
2750
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3088
2751
|
var _c;
|
|
3089
2752
|
return __generator(this, function (_d) {
|
|
3090
2753
|
switch (_d.label) {
|
|
@@ -3125,14 +2788,14 @@ var deserializeAws_restJson1UpdateFlowEntitlementCommandError = function (output
|
|
|
3125
2788
|
case 13: throw _d.sent();
|
|
3126
2789
|
case 14:
|
|
3127
2790
|
parsedBody = parsedOutput.body;
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
$metadata: $metadata,
|
|
2791
|
+
throwDefaultError({
|
|
2792
|
+
output: output,
|
|
2793
|
+
parsedBody: parsedBody,
|
|
2794
|
+
exceptionCtor: __BaseException,
|
|
2795
|
+
errorCode: errorCode,
|
|
3134
2796
|
});
|
|
3135
|
-
|
|
2797
|
+
_d.label = 15;
|
|
2798
|
+
case 15: return [2];
|
|
3136
2799
|
}
|
|
3137
2800
|
});
|
|
3138
2801
|
}); };
|
|
@@ -3144,28 +2807,26 @@ export var deserializeAws_restJson1UpdateFlowMediaStreamCommand = function (outp
|
|
|
3144
2807
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3145
2808
|
return [2, deserializeAws_restJson1UpdateFlowMediaStreamCommandError(output, context)];
|
|
3146
2809
|
}
|
|
3147
|
-
contents = {
|
|
2810
|
+
contents = map({
|
|
3148
2811
|
$metadata: deserializeMetadata(output),
|
|
3149
|
-
|
|
3150
|
-
MediaStream: undefined,
|
|
3151
|
-
};
|
|
2812
|
+
});
|
|
3152
2813
|
_a = __expectNonNull;
|
|
3153
2814
|
_b = __expectObject;
|
|
3154
2815
|
return [4, parseBody(output.body, context)];
|
|
3155
2816
|
case 1:
|
|
3156
2817
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3157
|
-
if (data.flowArn
|
|
2818
|
+
if (data.flowArn != null) {
|
|
3158
2819
|
contents.FlowArn = __expectString(data.flowArn);
|
|
3159
2820
|
}
|
|
3160
|
-
if (data.mediaStream
|
|
2821
|
+
if (data.mediaStream != null) {
|
|
3161
2822
|
contents.MediaStream = deserializeAws_restJson1MediaStream(data.mediaStream, context);
|
|
3162
2823
|
}
|
|
3163
|
-
return [2,
|
|
2824
|
+
return [2, contents];
|
|
3164
2825
|
}
|
|
3165
2826
|
});
|
|
3166
2827
|
}); };
|
|
3167
2828
|
var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3168
|
-
var parsedOutput, _a,
|
|
2829
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3169
2830
|
var _c;
|
|
3170
2831
|
return __generator(this, function (_d) {
|
|
3171
2832
|
switch (_d.label) {
|
|
@@ -3206,14 +2867,14 @@ var deserializeAws_restJson1UpdateFlowMediaStreamCommandError = function (output
|
|
|
3206
2867
|
case 13: throw _d.sent();
|
|
3207
2868
|
case 14:
|
|
3208
2869
|
parsedBody = parsedOutput.body;
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
$metadata: $metadata,
|
|
2870
|
+
throwDefaultError({
|
|
2871
|
+
output: output,
|
|
2872
|
+
parsedBody: parsedBody,
|
|
2873
|
+
exceptionCtor: __BaseException,
|
|
2874
|
+
errorCode: errorCode,
|
|
3215
2875
|
});
|
|
3216
|
-
|
|
2876
|
+
_d.label = 15;
|
|
2877
|
+
case 15: return [2];
|
|
3217
2878
|
}
|
|
3218
2879
|
});
|
|
3219
2880
|
}); };
|
|
@@ -3225,28 +2886,26 @@ export var deserializeAws_restJson1UpdateFlowOutputCommand = function (output, c
|
|
|
3225
2886
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3226
2887
|
return [2, deserializeAws_restJson1UpdateFlowOutputCommandError(output, context)];
|
|
3227
2888
|
}
|
|
3228
|
-
contents = {
|
|
2889
|
+
contents = map({
|
|
3229
2890
|
$metadata: deserializeMetadata(output),
|
|
3230
|
-
|
|
3231
|
-
Output: undefined,
|
|
3232
|
-
};
|
|
2891
|
+
});
|
|
3233
2892
|
_a = __expectNonNull;
|
|
3234
2893
|
_b = __expectObject;
|
|
3235
2894
|
return [4, parseBody(output.body, context)];
|
|
3236
2895
|
case 1:
|
|
3237
2896
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3238
|
-
if (data.flowArn
|
|
2897
|
+
if (data.flowArn != null) {
|
|
3239
2898
|
contents.FlowArn = __expectString(data.flowArn);
|
|
3240
2899
|
}
|
|
3241
|
-
if (data.output
|
|
2900
|
+
if (data.output != null) {
|
|
3242
2901
|
contents.Output = deserializeAws_restJson1Output(data.output, context);
|
|
3243
2902
|
}
|
|
3244
|
-
return [2,
|
|
2903
|
+
return [2, contents];
|
|
3245
2904
|
}
|
|
3246
2905
|
});
|
|
3247
2906
|
}); };
|
|
3248
2907
|
var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3249
|
-
var parsedOutput, _a,
|
|
2908
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3250
2909
|
var _c;
|
|
3251
2910
|
return __generator(this, function (_d) {
|
|
3252
2911
|
switch (_d.label) {
|
|
@@ -3287,14 +2946,14 @@ var deserializeAws_restJson1UpdateFlowOutputCommandError = function (output, con
|
|
|
3287
2946
|
case 13: throw _d.sent();
|
|
3288
2947
|
case 14:
|
|
3289
2948
|
parsedBody = parsedOutput.body;
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
$metadata: $metadata,
|
|
2949
|
+
throwDefaultError({
|
|
2950
|
+
output: output,
|
|
2951
|
+
parsedBody: parsedBody,
|
|
2952
|
+
exceptionCtor: __BaseException,
|
|
2953
|
+
errorCode: errorCode,
|
|
3296
2954
|
});
|
|
3297
|
-
|
|
2955
|
+
_d.label = 15;
|
|
2956
|
+
case 15: return [2];
|
|
3298
2957
|
}
|
|
3299
2958
|
});
|
|
3300
2959
|
}); };
|
|
@@ -3306,28 +2965,26 @@ export var deserializeAws_restJson1UpdateFlowSourceCommand = function (output, c
|
|
|
3306
2965
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3307
2966
|
return [2, deserializeAws_restJson1UpdateFlowSourceCommandError(output, context)];
|
|
3308
2967
|
}
|
|
3309
|
-
contents = {
|
|
2968
|
+
contents = map({
|
|
3310
2969
|
$metadata: deserializeMetadata(output),
|
|
3311
|
-
|
|
3312
|
-
Source: undefined,
|
|
3313
|
-
};
|
|
2970
|
+
});
|
|
3314
2971
|
_a = __expectNonNull;
|
|
3315
2972
|
_b = __expectObject;
|
|
3316
2973
|
return [4, parseBody(output.body, context)];
|
|
3317
2974
|
case 1:
|
|
3318
2975
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3319
|
-
if (data.flowArn
|
|
2976
|
+
if (data.flowArn != null) {
|
|
3320
2977
|
contents.FlowArn = __expectString(data.flowArn);
|
|
3321
2978
|
}
|
|
3322
|
-
if (data.source
|
|
2979
|
+
if (data.source != null) {
|
|
3323
2980
|
contents.Source = deserializeAws_restJson1Source(data.source, context);
|
|
3324
2981
|
}
|
|
3325
|
-
return [2,
|
|
2982
|
+
return [2, contents];
|
|
3326
2983
|
}
|
|
3327
2984
|
});
|
|
3328
2985
|
}); };
|
|
3329
2986
|
var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3330
|
-
var parsedOutput, _a,
|
|
2987
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3331
2988
|
var _c;
|
|
3332
2989
|
return __generator(this, function (_d) {
|
|
3333
2990
|
switch (_d.label) {
|
|
@@ -3368,23 +3025,24 @@ var deserializeAws_restJson1UpdateFlowSourceCommandError = function (output, con
|
|
|
3368
3025
|
case 13: throw _d.sent();
|
|
3369
3026
|
case 14:
|
|
3370
3027
|
parsedBody = parsedOutput.body;
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
$metadata: $metadata,
|
|
3028
|
+
throwDefaultError({
|
|
3029
|
+
output: output,
|
|
3030
|
+
parsedBody: parsedBody,
|
|
3031
|
+
exceptionCtor: __BaseException,
|
|
3032
|
+
errorCode: errorCode,
|
|
3377
3033
|
});
|
|
3378
|
-
|
|
3034
|
+
_d.label = 15;
|
|
3035
|
+
case 15: return [2];
|
|
3379
3036
|
}
|
|
3380
3037
|
});
|
|
3381
3038
|
}); };
|
|
3039
|
+
var map = __map;
|
|
3382
3040
|
var deserializeAws_restJson1AddFlowOutputs420ExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3383
3041
|
var contents, data, exception;
|
|
3384
3042
|
return __generator(this, function (_a) {
|
|
3385
|
-
contents = {};
|
|
3043
|
+
contents = map({});
|
|
3386
3044
|
data = parsedOutput.body;
|
|
3387
|
-
if (data.message
|
|
3045
|
+
if (data.message != null) {
|
|
3388
3046
|
contents.Message = __expectString(data.message);
|
|
3389
3047
|
}
|
|
3390
3048
|
exception = new AddFlowOutputs420Exception(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3394,9 +3052,9 @@ var deserializeAws_restJson1AddFlowOutputs420ExceptionResponse = function (parse
|
|
|
3394
3052
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3395
3053
|
var contents, data, exception;
|
|
3396
3054
|
return __generator(this, function (_a) {
|
|
3397
|
-
contents = {};
|
|
3055
|
+
contents = map({});
|
|
3398
3056
|
data = parsedOutput.body;
|
|
3399
|
-
if (data.message
|
|
3057
|
+
if (data.message != null) {
|
|
3400
3058
|
contents.Message = __expectString(data.message);
|
|
3401
3059
|
}
|
|
3402
3060
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3406,9 +3064,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
3406
3064
|
var deserializeAws_restJson1CreateFlow420ExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3407
3065
|
var contents, data, exception;
|
|
3408
3066
|
return __generator(this, function (_a) {
|
|
3409
|
-
contents = {};
|
|
3067
|
+
contents = map({});
|
|
3410
3068
|
data = parsedOutput.body;
|
|
3411
|
-
if (data.message
|
|
3069
|
+
if (data.message != null) {
|
|
3412
3070
|
contents.Message = __expectString(data.message);
|
|
3413
3071
|
}
|
|
3414
3072
|
exception = new CreateFlow420Exception(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3418,9 +3076,9 @@ var deserializeAws_restJson1CreateFlow420ExceptionResponse = function (parsedOut
|
|
|
3418
3076
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3419
3077
|
var contents, data, exception;
|
|
3420
3078
|
return __generator(this, function (_a) {
|
|
3421
|
-
contents = {};
|
|
3079
|
+
contents = map({});
|
|
3422
3080
|
data = parsedOutput.body;
|
|
3423
|
-
if (data.message
|
|
3081
|
+
if (data.message != null) {
|
|
3424
3082
|
contents.Message = __expectString(data.message);
|
|
3425
3083
|
}
|
|
3426
3084
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3430,9 +3088,9 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
3430
3088
|
var deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3431
3089
|
var contents, data, exception;
|
|
3432
3090
|
return __generator(this, function (_a) {
|
|
3433
|
-
contents = {};
|
|
3091
|
+
contents = map({});
|
|
3434
3092
|
data = parsedOutput.body;
|
|
3435
|
-
if (data.message
|
|
3093
|
+
if (data.message != null) {
|
|
3436
3094
|
contents.Message = __expectString(data.message);
|
|
3437
3095
|
}
|
|
3438
3096
|
exception = new GrantFlowEntitlements420Exception(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3442,9 +3100,9 @@ var deserializeAws_restJson1GrantFlowEntitlements420ExceptionResponse = function
|
|
|
3442
3100
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3443
3101
|
var contents, data, exception;
|
|
3444
3102
|
return __generator(this, function (_a) {
|
|
3445
|
-
contents = {};
|
|
3103
|
+
contents = map({});
|
|
3446
3104
|
data = parsedOutput.body;
|
|
3447
|
-
if (data.message
|
|
3105
|
+
if (data.message != null) {
|
|
3448
3106
|
contents.Message = __expectString(data.message);
|
|
3449
3107
|
}
|
|
3450
3108
|
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3454,9 +3112,9 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
3454
3112
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3455
3113
|
var contents, data, exception;
|
|
3456
3114
|
return __generator(this, function (_a) {
|
|
3457
|
-
contents = {};
|
|
3115
|
+
contents = map({});
|
|
3458
3116
|
data = parsedOutput.body;
|
|
3459
|
-
if (data.message
|
|
3117
|
+
if (data.message != null) {
|
|
3460
3118
|
contents.Message = __expectString(data.message);
|
|
3461
3119
|
}
|
|
3462
3120
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3466,9 +3124,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
3466
3124
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3467
3125
|
var contents, data, exception;
|
|
3468
3126
|
return __generator(this, function (_a) {
|
|
3469
|
-
contents = {};
|
|
3127
|
+
contents = map({});
|
|
3470
3128
|
data = parsedOutput.body;
|
|
3471
|
-
if (data.message
|
|
3129
|
+
if (data.message != null) {
|
|
3472
3130
|
contents.Message = __expectString(data.message);
|
|
3473
3131
|
}
|
|
3474
3132
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3478,9 +3136,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
3478
3136
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3479
3137
|
var contents, data, exception;
|
|
3480
3138
|
return __generator(this, function (_a) {
|
|
3481
|
-
contents = {};
|
|
3139
|
+
contents = map({});
|
|
3482
3140
|
data = parsedOutput.body;
|
|
3483
|
-
if (data.message
|
|
3141
|
+
if (data.message != null) {
|
|
3484
3142
|
contents.Message = __expectString(data.message);
|
|
3485
3143
|
}
|
|
3486
3144
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3491,9 +3149,6 @@ var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
|
3491
3149
|
return input
|
|
3492
3150
|
.filter(function (e) { return e != null; })
|
|
3493
3151
|
.map(function (entry) {
|
|
3494
|
-
if (entry === null) {
|
|
3495
|
-
return null;
|
|
3496
|
-
}
|
|
3497
3152
|
return entry;
|
|
3498
3153
|
});
|
|
3499
3154
|
};
|
|
@@ -3501,9 +3156,6 @@ var serializeAws_restJson1__listOfAddMediaStreamRequest = function (input, conte
|
|
|
3501
3156
|
return input
|
|
3502
3157
|
.filter(function (e) { return e != null; })
|
|
3503
3158
|
.map(function (entry) {
|
|
3504
|
-
if (entry === null) {
|
|
3505
|
-
return null;
|
|
3506
|
-
}
|
|
3507
3159
|
return serializeAws_restJson1AddMediaStreamRequest(entry, context);
|
|
3508
3160
|
});
|
|
3509
3161
|
};
|
|
@@ -3511,9 +3163,6 @@ var serializeAws_restJson1__listOfAddOutputRequest = function (input, context) {
|
|
|
3511
3163
|
return input
|
|
3512
3164
|
.filter(function (e) { return e != null; })
|
|
3513
3165
|
.map(function (entry) {
|
|
3514
|
-
if (entry === null) {
|
|
3515
|
-
return null;
|
|
3516
|
-
}
|
|
3517
3166
|
return serializeAws_restJson1AddOutputRequest(entry, context);
|
|
3518
3167
|
});
|
|
3519
3168
|
};
|
|
@@ -3521,9 +3170,6 @@ var serializeAws_restJson1__listOfDestinationConfigurationRequest = function (in
|
|
|
3521
3170
|
return input
|
|
3522
3171
|
.filter(function (e) { return e != null; })
|
|
3523
3172
|
.map(function (entry) {
|
|
3524
|
-
if (entry === null) {
|
|
3525
|
-
return null;
|
|
3526
|
-
}
|
|
3527
3173
|
return serializeAws_restJson1DestinationConfigurationRequest(entry, context);
|
|
3528
3174
|
});
|
|
3529
3175
|
};
|
|
@@ -3531,9 +3177,6 @@ var serializeAws_restJson1__listOfGrantEntitlementRequest = function (input, con
|
|
|
3531
3177
|
return input
|
|
3532
3178
|
.filter(function (e) { return e != null; })
|
|
3533
3179
|
.map(function (entry) {
|
|
3534
|
-
if (entry === null) {
|
|
3535
|
-
return null;
|
|
3536
|
-
}
|
|
3537
3180
|
return serializeAws_restJson1GrantEntitlementRequest(entry, context);
|
|
3538
3181
|
});
|
|
3539
3182
|
};
|
|
@@ -3541,9 +3184,6 @@ var serializeAws_restJson1__listOfInputConfigurationRequest = function (input, c
|
|
|
3541
3184
|
return input
|
|
3542
3185
|
.filter(function (e) { return e != null; })
|
|
3543
3186
|
.map(function (entry) {
|
|
3544
|
-
if (entry === null) {
|
|
3545
|
-
return null;
|
|
3546
|
-
}
|
|
3547
3187
|
return serializeAws_restJson1InputConfigurationRequest(entry, context);
|
|
3548
3188
|
});
|
|
3549
3189
|
};
|
|
@@ -3551,9 +3191,6 @@ var serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest = functi
|
|
|
3551
3191
|
return input
|
|
3552
3192
|
.filter(function (e) { return e != null; })
|
|
3553
3193
|
.map(function (entry) {
|
|
3554
|
-
if (entry === null) {
|
|
3555
|
-
return null;
|
|
3556
|
-
}
|
|
3557
3194
|
return serializeAws_restJson1MediaStreamOutputConfigurationRequest(entry, context);
|
|
3558
3195
|
});
|
|
3559
3196
|
};
|
|
@@ -3561,9 +3198,6 @@ var serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest = functi
|
|
|
3561
3198
|
return input
|
|
3562
3199
|
.filter(function (e) { return e != null; })
|
|
3563
3200
|
.map(function (entry) {
|
|
3564
|
-
if (entry === null) {
|
|
3565
|
-
return null;
|
|
3566
|
-
}
|
|
3567
3201
|
return serializeAws_restJson1MediaStreamSourceConfigurationRequest(entry, context);
|
|
3568
3202
|
});
|
|
3569
3203
|
};
|
|
@@ -3571,9 +3205,6 @@ var serializeAws_restJson1__listOfSetSourceRequest = function (input, context) {
|
|
|
3571
3205
|
return input
|
|
3572
3206
|
.filter(function (e) { return e != null; })
|
|
3573
3207
|
.map(function (entry) {
|
|
3574
|
-
if (entry === null) {
|
|
3575
|
-
return null;
|
|
3576
|
-
}
|
|
3577
3208
|
return serializeAws_restJson1SetSourceRequest(entry, context);
|
|
3578
3209
|
});
|
|
3579
3210
|
};
|
|
@@ -3581,9 +3212,6 @@ var serializeAws_restJson1__listOfVpcInterfaceRequest = function (input, context
|
|
|
3581
3212
|
return input
|
|
3582
3213
|
.filter(function (e) { return e != null; })
|
|
3583
3214
|
.map(function (entry) {
|
|
3584
|
-
if (entry === null) {
|
|
3585
|
-
return null;
|
|
3586
|
-
}
|
|
3587
3215
|
return serializeAws_restJson1VpcInterfaceRequest(entry, context);
|
|
3588
3216
|
});
|
|
3589
3217
|
};
|