@aws-sdk/client-groundstation 3.131.0 → 3.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/CancelContactCommand.js +2 -2
  4. package/dist-cjs/commands/CreateConfigCommand.js +2 -2
  5. package/dist-cjs/commands/CreateDataflowEndpointGroupCommand.js +2 -2
  6. package/dist-cjs/commands/CreateMissionProfileCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteConfigCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteDataflowEndpointGroupCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteMissionProfileCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeContactCommand.js +2 -2
  11. package/dist-cjs/commands/GetConfigCommand.js +2 -2
  12. package/dist-cjs/commands/GetDataflowEndpointGroupCommand.js +2 -2
  13. package/dist-cjs/commands/GetMinuteUsageCommand.js +2 -2
  14. package/dist-cjs/commands/GetMissionProfileCommand.js +2 -2
  15. package/dist-cjs/commands/GetSatelliteCommand.js +2 -2
  16. package/dist-cjs/commands/ListConfigsCommand.js +2 -2
  17. package/dist-cjs/commands/ListContactsCommand.js +2 -2
  18. package/dist-cjs/commands/ListDataflowEndpointGroupsCommand.js +2 -2
  19. package/dist-cjs/commands/ListGroundStationsCommand.js +2 -2
  20. package/dist-cjs/commands/ListMissionProfilesCommand.js +2 -2
  21. package/dist-cjs/commands/ListSatellitesCommand.js +2 -2
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  23. package/dist-cjs/commands/ReserveContactCommand.js +2 -2
  24. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  25. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  26. package/dist-cjs/commands/UpdateConfigCommand.js +2 -2
  27. package/dist-cjs/commands/UpdateMissionProfileCommand.js +2 -2
  28. package/dist-cjs/models/models_0.js +338 -484
  29. package/dist-cjs/protocols/Aws_restJson1.js +335 -652
  30. package/dist-es/commands/CancelContactCommand.js +3 -3
  31. package/dist-es/commands/CreateConfigCommand.js +3 -3
  32. package/dist-es/commands/CreateDataflowEndpointGroupCommand.js +3 -3
  33. package/dist-es/commands/CreateMissionProfileCommand.js +3 -3
  34. package/dist-es/commands/DeleteConfigCommand.js +3 -3
  35. package/dist-es/commands/DeleteDataflowEndpointGroupCommand.js +3 -3
  36. package/dist-es/commands/DeleteMissionProfileCommand.js +3 -3
  37. package/dist-es/commands/DescribeContactCommand.js +3 -3
  38. package/dist-es/commands/GetConfigCommand.js +3 -3
  39. package/dist-es/commands/GetDataflowEndpointGroupCommand.js +3 -3
  40. package/dist-es/commands/GetMinuteUsageCommand.js +3 -3
  41. package/dist-es/commands/GetMissionProfileCommand.js +3 -3
  42. package/dist-es/commands/GetSatelliteCommand.js +3 -3
  43. package/dist-es/commands/ListConfigsCommand.js +3 -3
  44. package/dist-es/commands/ListContactsCommand.js +3 -3
  45. package/dist-es/commands/ListDataflowEndpointGroupsCommand.js +3 -3
  46. package/dist-es/commands/ListGroundStationsCommand.js +3 -3
  47. package/dist-es/commands/ListMissionProfilesCommand.js +3 -3
  48. package/dist-es/commands/ListSatellitesCommand.js +3 -3
  49. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  50. package/dist-es/commands/ReserveContactCommand.js +3 -3
  51. package/dist-es/commands/TagResourceCommand.js +3 -3
  52. package/dist-es/commands/UntagResourceCommand.js +3 -3
  53. package/dist-es/commands/UpdateConfigCommand.js +3 -3
  54. package/dist-es/commands/UpdateMissionProfileCommand.js +3 -3
  55. package/dist-es/models/models_0.js +106 -328
  56. package/dist-es/protocols/Aws_restJson1.js +425 -649
  57. package/dist-types/models/models_0.d.ts +304 -452
  58. package/dist-types/ts3.4/models/models_0.d.ts +152 -300
  59. package/package.json +6 -6
@@ -1,10 +1,10 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { GroundStationServiceException as __BaseException } from "../models/GroundStationServiceException";
5
5
  import { ConfigTypeData, DependencyException, InvalidParameterException, ResourceLimitExceededException, ResourceNotFoundException, } from "../models/models_0";
6
6
  export var serializeAws_restJson1CancelContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
7
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
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()];
@@ -12,16 +12,7 @@ export var serializeAws_restJson1CancelContactCommand = function (input, context
12
12
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
13
13
  headers = {};
14
14
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/{contactId}";
15
- if (input.contactId !== undefined) {
16
- labelValue = input.contactId;
17
- if (labelValue.length <= 0) {
18
- throw new Error("Empty value provided for input HTTP label: contactId.");
19
- }
20
- resolvedPath = resolvedPath.replace("{contactId}", __extendedEncodeURIComponent(labelValue));
21
- }
22
- else {
23
- throw new Error("No value provided for input HTTP label: contactId.");
24
- }
15
+ resolvedPath = __resolvedPath(resolvedPath, input, "contactId", function () { return input.contactId; }, "{contactId}", false);
25
16
  return [2, new __HttpRequest({
26
17
  protocol: protocol,
27
18
  hostname: hostname,
@@ -117,7 +108,7 @@ export var serializeAws_restJson1CreateMissionProfileCommand = function (input,
117
108
  });
118
109
  }); };
119
110
  export var serializeAws_restJson1DeleteConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
120
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
111
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
121
112
  return __generator(this, function (_c) {
122
113
  switch (_c.label) {
123
114
  case 0: return [4, context.endpoint()];
@@ -125,26 +116,8 @@ export var serializeAws_restJson1DeleteConfigCommand = function (input, context)
125
116
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
126
117
  headers = {};
127
118
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/config/{configType}/{configId}";
128
- if (input.configId !== undefined) {
129
- labelValue = input.configId;
130
- if (labelValue.length <= 0) {
131
- throw new Error("Empty value provided for input HTTP label: configId.");
132
- }
133
- resolvedPath = resolvedPath.replace("{configId}", __extendedEncodeURIComponent(labelValue));
134
- }
135
- else {
136
- throw new Error("No value provided for input HTTP label: configId.");
137
- }
138
- if (input.configType !== undefined) {
139
- labelValue = input.configType;
140
- if (labelValue.length <= 0) {
141
- throw new Error("Empty value provided for input HTTP label: configType.");
142
- }
143
- resolvedPath = resolvedPath.replace("{configType}", __extendedEncodeURIComponent(labelValue));
144
- }
145
- else {
146
- throw new Error("No value provided for input HTTP label: configType.");
147
- }
119
+ resolvedPath = __resolvedPath(resolvedPath, input, "configId", function () { return input.configId; }, "{configId}", false);
120
+ resolvedPath = __resolvedPath(resolvedPath, input, "configType", function () { return input.configType; }, "{configType}", false);
148
121
  return [2, new __HttpRequest({
149
122
  protocol: protocol,
150
123
  hostname: hostname,
@@ -158,7 +131,7 @@ export var serializeAws_restJson1DeleteConfigCommand = function (input, context)
158
131
  });
159
132
  }); };
160
133
  export var serializeAws_restJson1DeleteDataflowEndpointGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
161
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
134
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
162
135
  return __generator(this, function (_c) {
163
136
  switch (_c.label) {
164
137
  case 0: return [4, context.endpoint()];
@@ -167,16 +140,7 @@ export var serializeAws_restJson1DeleteDataflowEndpointGroupCommand = function (
167
140
  headers = {};
168
141
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
169
142
  "/dataflowEndpointGroup/{dataflowEndpointGroupId}";
170
- if (input.dataflowEndpointGroupId !== undefined) {
171
- labelValue = input.dataflowEndpointGroupId;
172
- if (labelValue.length <= 0) {
173
- throw new Error("Empty value provided for input HTTP label: dataflowEndpointGroupId.");
174
- }
175
- resolvedPath = resolvedPath.replace("{dataflowEndpointGroupId}", __extendedEncodeURIComponent(labelValue));
176
- }
177
- else {
178
- throw new Error("No value provided for input HTTP label: dataflowEndpointGroupId.");
179
- }
143
+ resolvedPath = __resolvedPath(resolvedPath, input, "dataflowEndpointGroupId", function () { return input.dataflowEndpointGroupId; }, "{dataflowEndpointGroupId}", false);
180
144
  return [2, new __HttpRequest({
181
145
  protocol: protocol,
182
146
  hostname: hostname,
@@ -190,7 +154,7 @@ export var serializeAws_restJson1DeleteDataflowEndpointGroupCommand = function (
190
154
  });
191
155
  }); };
192
156
  export var serializeAws_restJson1DeleteMissionProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
193
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
157
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
194
158
  return __generator(this, function (_c) {
195
159
  switch (_c.label) {
196
160
  case 0: return [4, context.endpoint()];
@@ -198,16 +162,7 @@ export var serializeAws_restJson1DeleteMissionProfileCommand = function (input,
198
162
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
199
163
  headers = {};
200
164
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/missionprofile/{missionProfileId}";
201
- if (input.missionProfileId !== undefined) {
202
- labelValue = input.missionProfileId;
203
- if (labelValue.length <= 0) {
204
- throw new Error("Empty value provided for input HTTP label: missionProfileId.");
205
- }
206
- resolvedPath = resolvedPath.replace("{missionProfileId}", __extendedEncodeURIComponent(labelValue));
207
- }
208
- else {
209
- throw new Error("No value provided for input HTTP label: missionProfileId.");
210
- }
165
+ resolvedPath = __resolvedPath(resolvedPath, input, "missionProfileId", function () { return input.missionProfileId; }, "{missionProfileId}", false);
211
166
  return [2, new __HttpRequest({
212
167
  protocol: protocol,
213
168
  hostname: hostname,
@@ -221,7 +176,7 @@ export var serializeAws_restJson1DeleteMissionProfileCommand = function (input,
221
176
  });
222
177
  }); };
223
178
  export var serializeAws_restJson1DescribeContactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
224
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
179
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
225
180
  return __generator(this, function (_c) {
226
181
  switch (_c.label) {
227
182
  case 0: return [4, context.endpoint()];
@@ -229,16 +184,7 @@ export var serializeAws_restJson1DescribeContactCommand = function (input, conte
229
184
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
230
185
  headers = {};
231
186
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/contact/{contactId}";
232
- if (input.contactId !== undefined) {
233
- labelValue = input.contactId;
234
- if (labelValue.length <= 0) {
235
- throw new Error("Empty value provided for input HTTP label: contactId.");
236
- }
237
- resolvedPath = resolvedPath.replace("{contactId}", __extendedEncodeURIComponent(labelValue));
238
- }
239
- else {
240
- throw new Error("No value provided for input HTTP label: contactId.");
241
- }
187
+ resolvedPath = __resolvedPath(resolvedPath, input, "contactId", function () { return input.contactId; }, "{contactId}", false);
242
188
  return [2, new __HttpRequest({
243
189
  protocol: protocol,
244
190
  hostname: hostname,
@@ -252,7 +198,7 @@ export var serializeAws_restJson1DescribeContactCommand = function (input, conte
252
198
  });
253
199
  }); };
254
200
  export var serializeAws_restJson1GetConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
255
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
201
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
256
202
  return __generator(this, function (_c) {
257
203
  switch (_c.label) {
258
204
  case 0: return [4, context.endpoint()];
@@ -260,26 +206,8 @@ export var serializeAws_restJson1GetConfigCommand = function (input, context) {
260
206
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
261
207
  headers = {};
262
208
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/config/{configType}/{configId}";
263
- if (input.configId !== undefined) {
264
- labelValue = input.configId;
265
- if (labelValue.length <= 0) {
266
- throw new Error("Empty value provided for input HTTP label: configId.");
267
- }
268
- resolvedPath = resolvedPath.replace("{configId}", __extendedEncodeURIComponent(labelValue));
269
- }
270
- else {
271
- throw new Error("No value provided for input HTTP label: configId.");
272
- }
273
- if (input.configType !== undefined) {
274
- labelValue = input.configType;
275
- if (labelValue.length <= 0) {
276
- throw new Error("Empty value provided for input HTTP label: configType.");
277
- }
278
- resolvedPath = resolvedPath.replace("{configType}", __extendedEncodeURIComponent(labelValue));
279
- }
280
- else {
281
- throw new Error("No value provided for input HTTP label: configType.");
282
- }
209
+ resolvedPath = __resolvedPath(resolvedPath, input, "configId", function () { return input.configId; }, "{configId}", false);
210
+ resolvedPath = __resolvedPath(resolvedPath, input, "configType", function () { return input.configType; }, "{configType}", false);
283
211
  return [2, new __HttpRequest({
284
212
  protocol: protocol,
285
213
  hostname: hostname,
@@ -293,7 +221,7 @@ export var serializeAws_restJson1GetConfigCommand = function (input, context) {
293
221
  });
294
222
  }); };
295
223
  export var serializeAws_restJson1GetDataflowEndpointGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
296
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
224
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
297
225
  return __generator(this, function (_c) {
298
226
  switch (_c.label) {
299
227
  case 0: return [4, context.endpoint()];
@@ -302,16 +230,7 @@ export var serializeAws_restJson1GetDataflowEndpointGroupCommand = function (inp
302
230
  headers = {};
303
231
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
304
232
  "/dataflowEndpointGroup/{dataflowEndpointGroupId}";
305
- if (input.dataflowEndpointGroupId !== undefined) {
306
- labelValue = input.dataflowEndpointGroupId;
307
- if (labelValue.length <= 0) {
308
- throw new Error("Empty value provided for input HTTP label: dataflowEndpointGroupId.");
309
- }
310
- resolvedPath = resolvedPath.replace("{dataflowEndpointGroupId}", __extendedEncodeURIComponent(labelValue));
311
- }
312
- else {
313
- throw new Error("No value provided for input HTTP label: dataflowEndpointGroupId.");
314
- }
233
+ resolvedPath = __resolvedPath(resolvedPath, input, "dataflowEndpointGroupId", function () { return input.dataflowEndpointGroupId; }, "{dataflowEndpointGroupId}", false);
315
234
  return [2, new __HttpRequest({
316
235
  protocol: protocol,
317
236
  hostname: hostname,
@@ -349,7 +268,7 @@ export var serializeAws_restJson1GetMinuteUsageCommand = function (input, contex
349
268
  });
350
269
  }); };
351
270
  export var serializeAws_restJson1GetMissionProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
352
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
271
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
353
272
  return __generator(this, function (_c) {
354
273
  switch (_c.label) {
355
274
  case 0: return [4, context.endpoint()];
@@ -357,16 +276,7 @@ export var serializeAws_restJson1GetMissionProfileCommand = function (input, con
357
276
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
358
277
  headers = {};
359
278
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/missionprofile/{missionProfileId}";
360
- if (input.missionProfileId !== undefined) {
361
- labelValue = input.missionProfileId;
362
- if (labelValue.length <= 0) {
363
- throw new Error("Empty value provided for input HTTP label: missionProfileId.");
364
- }
365
- resolvedPath = resolvedPath.replace("{missionProfileId}", __extendedEncodeURIComponent(labelValue));
366
- }
367
- else {
368
- throw new Error("No value provided for input HTTP label: missionProfileId.");
369
- }
279
+ resolvedPath = __resolvedPath(resolvedPath, input, "missionProfileId", function () { return input.missionProfileId; }, "{missionProfileId}", false);
370
280
  return [2, new __HttpRequest({
371
281
  protocol: protocol,
372
282
  hostname: hostname,
@@ -380,7 +290,7 @@ export var serializeAws_restJson1GetMissionProfileCommand = function (input, con
380
290
  });
381
291
  }); };
382
292
  export var serializeAws_restJson1GetSatelliteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
383
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
293
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
384
294
  return __generator(this, function (_c) {
385
295
  switch (_c.label) {
386
296
  case 0: return [4, context.endpoint()];
@@ -388,16 +298,7 @@ export var serializeAws_restJson1GetSatelliteCommand = function (input, context)
388
298
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
389
299
  headers = {};
390
300
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/satellite/{satelliteId}";
391
- if (input.satelliteId !== undefined) {
392
- labelValue = input.satelliteId;
393
- if (labelValue.length <= 0) {
394
- throw new Error("Empty value provided for input HTTP label: satelliteId.");
395
- }
396
- resolvedPath = resolvedPath.replace("{satelliteId}", __extendedEncodeURIComponent(labelValue));
397
- }
398
- else {
399
- throw new Error("No value provided for input HTTP label: satelliteId.");
400
- }
301
+ resolvedPath = __resolvedPath(resolvedPath, input, "satelliteId", function () { return input.satelliteId; }, "{satelliteId}", false);
401
302
  return [2, new __HttpRequest({
402
303
  protocol: protocol,
403
304
  hostname: hostname,
@@ -419,7 +320,10 @@ export var serializeAws_restJson1ListConfigsCommand = function (input, context)
419
320
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
420
321
  headers = {};
421
322
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/config";
422
- query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
323
+ query = map({
324
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
325
+ nextToken: [, input.nextToken],
326
+ });
423
327
  return [2, new __HttpRequest({
424
328
  protocol: protocol,
425
329
  hostname: hostname,
@@ -466,7 +370,10 @@ export var serializeAws_restJson1ListDataflowEndpointGroupsCommand = function (i
466
370
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
467
371
  headers = {};
468
372
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataflowEndpointGroup";
469
- query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
373
+ query = map({
374
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
375
+ nextToken: [, input.nextToken],
376
+ });
470
377
  return [2, new __HttpRequest({
471
378
  protocol: protocol,
472
379
  hostname: hostname,
@@ -489,7 +396,11 @@ export var serializeAws_restJson1ListGroundStationsCommand = function (input, co
489
396
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
490
397
  headers = {};
491
398
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groundstation";
492
- query = __assign(__assign(__assign({}, (input.satelliteId !== undefined && { satelliteId: input.satelliteId })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
399
+ query = map({
400
+ satelliteId: [, input.satelliteId],
401
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
402
+ nextToken: [, input.nextToken],
403
+ });
493
404
  return [2, new __HttpRequest({
494
405
  protocol: protocol,
495
406
  hostname: hostname,
@@ -512,7 +423,10 @@ export var serializeAws_restJson1ListMissionProfilesCommand = function (input, c
512
423
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
513
424
  headers = {};
514
425
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/missionprofile";
515
- query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
426
+ query = map({
427
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
428
+ nextToken: [, input.nextToken],
429
+ });
516
430
  return [2, new __HttpRequest({
517
431
  protocol: protocol,
518
432
  hostname: hostname,
@@ -535,7 +449,10 @@ export var serializeAws_restJson1ListSatellitesCommand = function (input, contex
535
449
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
536
450
  headers = {};
537
451
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/satellite";
538
- query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
452
+ query = map({
453
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
454
+ nextToken: [, input.nextToken],
455
+ });
539
456
  return [2, new __HttpRequest({
540
457
  protocol: protocol,
541
458
  hostname: hostname,
@@ -550,7 +467,7 @@ export var serializeAws_restJson1ListSatellitesCommand = function (input, contex
550
467
  });
551
468
  }); };
552
469
  export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
553
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
470
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
554
471
  return __generator(this, function (_c) {
555
472
  switch (_c.label) {
556
473
  case 0: return [4, context.endpoint()];
@@ -558,16 +475,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
558
475
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
559
476
  headers = {};
560
477
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
561
- if (input.resourceArn !== undefined) {
562
- labelValue = input.resourceArn;
563
- if (labelValue.length <= 0) {
564
- throw new Error("Empty value provided for input HTTP label: resourceArn.");
565
- }
566
- resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
567
- }
568
- else {
569
- throw new Error("No value provided for input HTTP label: resourceArn.");
570
- }
478
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
571
479
  return [2, new __HttpRequest({
572
480
  protocol: protocol,
573
481
  hostname: hostname,
@@ -605,7 +513,7 @@ export var serializeAws_restJson1ReserveContactCommand = function (input, contex
605
513
  });
606
514
  }); };
607
515
  export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
608
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
516
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
609
517
  return __generator(this, function (_c) {
610
518
  switch (_c.label) {
611
519
  case 0: return [4, context.endpoint()];
@@ -615,16 +523,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
615
523
  "content-type": "application/json",
616
524
  };
617
525
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
618
- if (input.resourceArn !== undefined) {
619
- labelValue = input.resourceArn;
620
- if (labelValue.length <= 0) {
621
- throw new Error("Empty value provided for input HTTP label: resourceArn.");
622
- }
623
- resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
624
- }
625
- else {
626
- throw new Error("No value provided for input HTTP label: resourceArn.");
627
- }
526
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
628
527
  body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })));
629
528
  return [2, new __HttpRequest({
630
529
  protocol: protocol,
@@ -639,7 +538,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
639
538
  });
640
539
  }); };
641
540
  export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
642
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
541
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
643
542
  return __generator(this, function (_c) {
644
543
  switch (_c.label) {
645
544
  case 0: return [4, context.endpoint()];
@@ -647,17 +546,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
647
546
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
648
547
  headers = {};
649
548
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
650
- if (input.resourceArn !== undefined) {
651
- labelValue = input.resourceArn;
652
- if (labelValue.length <= 0) {
653
- throw new Error("Empty value provided for input HTTP label: resourceArn.");
654
- }
655
- resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
656
- }
657
- else {
658
- throw new Error("No value provided for input HTTP label: resourceArn.");
659
- }
660
- query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
549
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
550
+ query = map({
551
+ tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
552
+ });
661
553
  return [2, new __HttpRequest({
662
554
  protocol: protocol,
663
555
  hostname: hostname,
@@ -672,7 +564,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
672
564
  });
673
565
  }); };
674
566
  export var serializeAws_restJson1UpdateConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
675
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
567
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
676
568
  return __generator(this, function (_c) {
677
569
  switch (_c.label) {
678
570
  case 0: return [4, context.endpoint()];
@@ -682,26 +574,8 @@ export var serializeAws_restJson1UpdateConfigCommand = function (input, context)
682
574
  "content-type": "application/json",
683
575
  };
684
576
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/config/{configType}/{configId}";
685
- if (input.configId !== undefined) {
686
- labelValue = input.configId;
687
- if (labelValue.length <= 0) {
688
- throw new Error("Empty value provided for input HTTP label: configId.");
689
- }
690
- resolvedPath = resolvedPath.replace("{configId}", __extendedEncodeURIComponent(labelValue));
691
- }
692
- else {
693
- throw new Error("No value provided for input HTTP label: configId.");
694
- }
695
- if (input.configType !== undefined) {
696
- labelValue = input.configType;
697
- if (labelValue.length <= 0) {
698
- throw new Error("Empty value provided for input HTTP label: configType.");
699
- }
700
- resolvedPath = resolvedPath.replace("{configType}", __extendedEncodeURIComponent(labelValue));
701
- }
702
- else {
703
- throw new Error("No value provided for input HTTP label: configType.");
704
- }
577
+ resolvedPath = __resolvedPath(resolvedPath, input, "configId", function () { return input.configId; }, "{configId}", false);
578
+ resolvedPath = __resolvedPath(resolvedPath, input, "configType", function () { return input.configType; }, "{configType}", false);
705
579
  body = JSON.stringify(__assign(__assign({}, (input.configData != null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) })), (input.name != null && { name: input.name })));
706
580
  return [2, new __HttpRequest({
707
581
  protocol: protocol,
@@ -716,7 +590,7 @@ export var serializeAws_restJson1UpdateConfigCommand = function (input, context)
716
590
  });
717
591
  }); };
718
592
  export var serializeAws_restJson1UpdateMissionProfileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
719
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
593
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
720
594
  return __generator(this, function (_c) {
721
595
  switch (_c.label) {
722
596
  case 0: return [4, context.endpoint()];
@@ -726,16 +600,7 @@ export var serializeAws_restJson1UpdateMissionProfileCommand = function (input,
726
600
  "content-type": "application/json",
727
601
  };
728
602
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/missionprofile/{missionProfileId}";
729
- if (input.missionProfileId !== undefined) {
730
- labelValue = input.missionProfileId;
731
- if (labelValue.length <= 0) {
732
- throw new Error("Empty value provided for input HTTP label: missionProfileId.");
733
- }
734
- resolvedPath = resolvedPath.replace("{missionProfileId}", __extendedEncodeURIComponent(labelValue));
735
- }
736
- else {
737
- throw new Error("No value provided for input HTTP label: missionProfileId.");
738
- }
603
+ resolvedPath = __resolvedPath(resolvedPath, input, "missionProfileId", function () { return input.missionProfileId; }, "{missionProfileId}", false);
739
604
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.contactPostPassDurationSeconds != null && {
740
605
  contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
741
606
  })), (input.contactPrePassDurationSeconds != null && {
@@ -765,24 +630,23 @@ export var deserializeAws_restJson1CancelContactCommand = function (output, cont
765
630
  if (output.statusCode !== 200 && output.statusCode >= 300) {
766
631
  return [2, deserializeAws_restJson1CancelContactCommandError(output, context)];
767
632
  }
768
- contents = {
633
+ contents = map({
769
634
  $metadata: deserializeMetadata(output),
770
- contactId: undefined,
771
- };
635
+ });
772
636
  _a = __expectNonNull;
773
637
  _b = __expectObject;
774
638
  return [4, parseBody(output.body, context)];
775
639
  case 1:
776
640
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
777
- if (data.contactId !== undefined && data.contactId !== null) {
641
+ if (data.contactId != null) {
778
642
  contents.contactId = __expectString(data.contactId);
779
643
  }
780
- return [2, Promise.resolve(contents)];
644
+ return [2, contents];
781
645
  }
782
646
  });
783
647
  }); };
784
648
  var deserializeAws_restJson1CancelContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
785
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
649
+ var parsedOutput, _a, errorCode, _b, parsedBody;
786
650
  var _c;
787
651
  return __generator(this, function (_d) {
788
652
  switch (_d.label) {
@@ -811,14 +675,14 @@ var deserializeAws_restJson1CancelContactCommandError = function (output, contex
811
675
  case 7: throw _d.sent();
812
676
  case 8:
813
677
  parsedBody = parsedOutput.body;
814
- $metadata = deserializeMetadata(output);
815
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
816
- response = new __BaseException({
817
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
818
- $fault: "client",
819
- $metadata: $metadata,
678
+ throwDefaultError({
679
+ output: output,
680
+ parsedBody: parsedBody,
681
+ exceptionCtor: __BaseException,
682
+ errorCode: errorCode,
820
683
  });
821
- throw __decorateServiceException(response, parsedBody);
684
+ _d.label = 9;
685
+ case 9: return [2];
822
686
  }
823
687
  });
824
688
  }); };
@@ -830,32 +694,29 @@ export var deserializeAws_restJson1CreateConfigCommand = function (output, conte
830
694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
831
695
  return [2, deserializeAws_restJson1CreateConfigCommandError(output, context)];
832
696
  }
833
- contents = {
697
+ contents = map({
834
698
  $metadata: deserializeMetadata(output),
835
- configArn: undefined,
836
- configId: undefined,
837
- configType: undefined,
838
- };
699
+ });
839
700
  _a = __expectNonNull;
840
701
  _b = __expectObject;
841
702
  return [4, parseBody(output.body, context)];
842
703
  case 1:
843
704
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
844
- if (data.configArn !== undefined && data.configArn !== null) {
705
+ if (data.configArn != null) {
845
706
  contents.configArn = __expectString(data.configArn);
846
707
  }
847
- if (data.configId !== undefined && data.configId !== null) {
708
+ if (data.configId != null) {
848
709
  contents.configId = __expectString(data.configId);
849
710
  }
850
- if (data.configType !== undefined && data.configType !== null) {
711
+ if (data.configType != null) {
851
712
  contents.configType = __expectString(data.configType);
852
713
  }
853
- return [2, Promise.resolve(contents)];
714
+ return [2, contents];
854
715
  }
855
716
  });
856
717
  }); };
857
718
  var deserializeAws_restJson1CreateConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
858
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
719
+ var parsedOutput, _a, errorCode, _b, parsedBody;
859
720
  var _c;
860
721
  return __generator(this, function (_d) {
861
722
  switch (_d.label) {
@@ -888,14 +749,14 @@ var deserializeAws_restJson1CreateConfigCommandError = function (output, context
888
749
  case 9: throw _d.sent();
889
750
  case 10:
890
751
  parsedBody = parsedOutput.body;
891
- $metadata = deserializeMetadata(output);
892
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
893
- response = new __BaseException({
894
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
895
- $fault: "client",
896
- $metadata: $metadata,
752
+ throwDefaultError({
753
+ output: output,
754
+ parsedBody: parsedBody,
755
+ exceptionCtor: __BaseException,
756
+ errorCode: errorCode,
897
757
  });
898
- throw __decorateServiceException(response, parsedBody);
758
+ _d.label = 11;
759
+ case 11: return [2];
899
760
  }
900
761
  });
901
762
  }); };
@@ -907,24 +768,23 @@ export var deserializeAws_restJson1CreateDataflowEndpointGroupCommand = function
907
768
  if (output.statusCode !== 200 && output.statusCode >= 300) {
908
769
  return [2, deserializeAws_restJson1CreateDataflowEndpointGroupCommandError(output, context)];
909
770
  }
910
- contents = {
771
+ contents = map({
911
772
  $metadata: deserializeMetadata(output),
912
- dataflowEndpointGroupId: undefined,
913
- };
773
+ });
914
774
  _a = __expectNonNull;
915
775
  _b = __expectObject;
916
776
  return [4, parseBody(output.body, context)];
917
777
  case 1:
918
778
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
919
- if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
779
+ if (data.dataflowEndpointGroupId != null) {
920
780
  contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
921
781
  }
922
- return [2, Promise.resolve(contents)];
782
+ return [2, contents];
923
783
  }
924
784
  });
925
785
  }); };
926
786
  var deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
927
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
787
+ var parsedOutput, _a, errorCode, _b, parsedBody;
928
788
  var _c;
929
789
  return __generator(this, function (_d) {
930
790
  switch (_d.label) {
@@ -953,14 +813,14 @@ var deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = function (
953
813
  case 7: throw _d.sent();
954
814
  case 8:
955
815
  parsedBody = parsedOutput.body;
956
- $metadata = deserializeMetadata(output);
957
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
958
- response = new __BaseException({
959
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
960
- $fault: "client",
961
- $metadata: $metadata,
816
+ throwDefaultError({
817
+ output: output,
818
+ parsedBody: parsedBody,
819
+ exceptionCtor: __BaseException,
820
+ errorCode: errorCode,
962
821
  });
963
- throw __decorateServiceException(response, parsedBody);
822
+ _d.label = 9;
823
+ case 9: return [2];
964
824
  }
965
825
  });
966
826
  }); };
@@ -972,24 +832,23 @@ export var deserializeAws_restJson1CreateMissionProfileCommand = function (outpu
972
832
  if (output.statusCode !== 200 && output.statusCode >= 300) {
973
833
  return [2, deserializeAws_restJson1CreateMissionProfileCommandError(output, context)];
974
834
  }
975
- contents = {
835
+ contents = map({
976
836
  $metadata: deserializeMetadata(output),
977
- missionProfileId: undefined,
978
- };
837
+ });
979
838
  _a = __expectNonNull;
980
839
  _b = __expectObject;
981
840
  return [4, parseBody(output.body, context)];
982
841
  case 1:
983
842
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
984
- if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
843
+ if (data.missionProfileId != null) {
985
844
  contents.missionProfileId = __expectString(data.missionProfileId);
986
845
  }
987
- return [2, Promise.resolve(contents)];
846
+ return [2, contents];
988
847
  }
989
848
  });
990
849
  }); };
991
850
  var deserializeAws_restJson1CreateMissionProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
992
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
851
+ var parsedOutput, _a, errorCode, _b, parsedBody;
993
852
  var _c;
994
853
  return __generator(this, function (_d) {
995
854
  switch (_d.label) {
@@ -1018,14 +877,14 @@ var deserializeAws_restJson1CreateMissionProfileCommandError = function (output,
1018
877
  case 7: throw _d.sent();
1019
878
  case 8:
1020
879
  parsedBody = parsedOutput.body;
1021
- $metadata = deserializeMetadata(output);
1022
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1023
- response = new __BaseException({
1024
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1025
- $fault: "client",
1026
- $metadata: $metadata,
880
+ throwDefaultError({
881
+ output: output,
882
+ parsedBody: parsedBody,
883
+ exceptionCtor: __BaseException,
884
+ errorCode: errorCode,
1027
885
  });
1028
- throw __decorateServiceException(response, parsedBody);
886
+ _d.label = 9;
887
+ case 9: return [2];
1029
888
  }
1030
889
  });
1031
890
  }); };
@@ -1037,32 +896,29 @@ export var deserializeAws_restJson1DeleteConfigCommand = function (output, conte
1037
896
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1038
897
  return [2, deserializeAws_restJson1DeleteConfigCommandError(output, context)];
1039
898
  }
1040
- contents = {
899
+ contents = map({
1041
900
  $metadata: deserializeMetadata(output),
1042
- configArn: undefined,
1043
- configId: undefined,
1044
- configType: undefined,
1045
- };
901
+ });
1046
902
  _a = __expectNonNull;
1047
903
  _b = __expectObject;
1048
904
  return [4, parseBody(output.body, context)];
1049
905
  case 1:
1050
906
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1051
- if (data.configArn !== undefined && data.configArn !== null) {
907
+ if (data.configArn != null) {
1052
908
  contents.configArn = __expectString(data.configArn);
1053
909
  }
1054
- if (data.configId !== undefined && data.configId !== null) {
910
+ if (data.configId != null) {
1055
911
  contents.configId = __expectString(data.configId);
1056
912
  }
1057
- if (data.configType !== undefined && data.configType !== null) {
913
+ if (data.configType != null) {
1058
914
  contents.configType = __expectString(data.configType);
1059
915
  }
1060
- return [2, Promise.resolve(contents)];
916
+ return [2, contents];
1061
917
  }
1062
918
  });
1063
919
  }); };
1064
920
  var deserializeAws_restJson1DeleteConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1065
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
921
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1066
922
  var _c;
1067
923
  return __generator(this, function (_d) {
1068
924
  switch (_d.label) {
@@ -1091,14 +947,14 @@ var deserializeAws_restJson1DeleteConfigCommandError = function (output, context
1091
947
  case 7: throw _d.sent();
1092
948
  case 8:
1093
949
  parsedBody = parsedOutput.body;
1094
- $metadata = deserializeMetadata(output);
1095
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1096
- response = new __BaseException({
1097
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1098
- $fault: "client",
1099
- $metadata: $metadata,
950
+ throwDefaultError({
951
+ output: output,
952
+ parsedBody: parsedBody,
953
+ exceptionCtor: __BaseException,
954
+ errorCode: errorCode,
1100
955
  });
1101
- throw __decorateServiceException(response, parsedBody);
956
+ _d.label = 9;
957
+ case 9: return [2];
1102
958
  }
1103
959
  });
1104
960
  }); };
@@ -1110,24 +966,23 @@ export var deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = function
1110
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1111
967
  return [2, deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError(output, context)];
1112
968
  }
1113
- contents = {
969
+ contents = map({
1114
970
  $metadata: deserializeMetadata(output),
1115
- dataflowEndpointGroupId: undefined,
1116
- };
971
+ });
1117
972
  _a = __expectNonNull;
1118
973
  _b = __expectObject;
1119
974
  return [4, parseBody(output.body, context)];
1120
975
  case 1:
1121
976
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1122
- if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
977
+ if (data.dataflowEndpointGroupId != null) {
1123
978
  contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
1124
979
  }
1125
- return [2, Promise.resolve(contents)];
980
+ return [2, contents];
1126
981
  }
1127
982
  });
1128
983
  }); };
1129
984
  var deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1130
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
985
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1131
986
  var _c;
1132
987
  return __generator(this, function (_d) {
1133
988
  switch (_d.label) {
@@ -1156,14 +1011,14 @@ var deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = function (
1156
1011
  case 7: throw _d.sent();
1157
1012
  case 8:
1158
1013
  parsedBody = parsedOutput.body;
1159
- $metadata = deserializeMetadata(output);
1160
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1161
- response = new __BaseException({
1162
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1163
- $fault: "client",
1164
- $metadata: $metadata,
1014
+ throwDefaultError({
1015
+ output: output,
1016
+ parsedBody: parsedBody,
1017
+ exceptionCtor: __BaseException,
1018
+ errorCode: errorCode,
1165
1019
  });
1166
- throw __decorateServiceException(response, parsedBody);
1020
+ _d.label = 9;
1021
+ case 9: return [2];
1167
1022
  }
1168
1023
  });
1169
1024
  }); };
@@ -1175,24 +1030,23 @@ export var deserializeAws_restJson1DeleteMissionProfileCommand = function (outpu
1175
1030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1176
1031
  return [2, deserializeAws_restJson1DeleteMissionProfileCommandError(output, context)];
1177
1032
  }
1178
- contents = {
1033
+ contents = map({
1179
1034
  $metadata: deserializeMetadata(output),
1180
- missionProfileId: undefined,
1181
- };
1035
+ });
1182
1036
  _a = __expectNonNull;
1183
1037
  _b = __expectObject;
1184
1038
  return [4, parseBody(output.body, context)];
1185
1039
  case 1:
1186
1040
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1187
- if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
1041
+ if (data.missionProfileId != null) {
1188
1042
  contents.missionProfileId = __expectString(data.missionProfileId);
1189
1043
  }
1190
- return [2, Promise.resolve(contents)];
1044
+ return [2, contents];
1191
1045
  }
1192
1046
  });
1193
1047
  }); };
1194
1048
  var deserializeAws_restJson1DeleteMissionProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1195
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1049
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1196
1050
  var _c;
1197
1051
  return __generator(this, function (_d) {
1198
1052
  switch (_d.label) {
@@ -1221,14 +1075,14 @@ var deserializeAws_restJson1DeleteMissionProfileCommandError = function (output,
1221
1075
  case 7: throw _d.sent();
1222
1076
  case 8:
1223
1077
  parsedBody = parsedOutput.body;
1224
- $metadata = deserializeMetadata(output);
1225
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1226
- response = new __BaseException({
1227
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1228
- $fault: "client",
1229
- $metadata: $metadata,
1078
+ throwDefaultError({
1079
+ output: output,
1080
+ parsedBody: parsedBody,
1081
+ exceptionCtor: __BaseException,
1082
+ errorCode: errorCode,
1230
1083
  });
1231
- throw __decorateServiceException(response, parsedBody);
1084
+ _d.label = 9;
1085
+ case 9: return [2];
1232
1086
  }
1233
1087
  });
1234
1088
  }); };
@@ -1240,76 +1094,62 @@ export var deserializeAws_restJson1DescribeContactCommand = function (output, co
1240
1094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1241
1095
  return [2, deserializeAws_restJson1DescribeContactCommandError(output, context)];
1242
1096
  }
1243
- contents = {
1097
+ contents = map({
1244
1098
  $metadata: deserializeMetadata(output),
1245
- contactId: undefined,
1246
- contactStatus: undefined,
1247
- dataflowList: undefined,
1248
- endTime: undefined,
1249
- errorMessage: undefined,
1250
- groundStation: undefined,
1251
- maximumElevation: undefined,
1252
- missionProfileArn: undefined,
1253
- postPassEndTime: undefined,
1254
- prePassStartTime: undefined,
1255
- region: undefined,
1256
- satelliteArn: undefined,
1257
- startTime: undefined,
1258
- tags: undefined,
1259
- };
1099
+ });
1260
1100
  _a = __expectNonNull;
1261
1101
  _b = __expectObject;
1262
1102
  return [4, parseBody(output.body, context)];
1263
1103
  case 1:
1264
1104
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1265
- if (data.contactId !== undefined && data.contactId !== null) {
1105
+ if (data.contactId != null) {
1266
1106
  contents.contactId = __expectString(data.contactId);
1267
1107
  }
1268
- if (data.contactStatus !== undefined && data.contactStatus !== null) {
1108
+ if (data.contactStatus != null) {
1269
1109
  contents.contactStatus = __expectString(data.contactStatus);
1270
1110
  }
1271
- if (data.dataflowList !== undefined && data.dataflowList !== null) {
1111
+ if (data.dataflowList != null) {
1272
1112
  contents.dataflowList = deserializeAws_restJson1DataflowList(data.dataflowList, context);
1273
1113
  }
1274
- if (data.endTime !== undefined && data.endTime !== null) {
1114
+ if (data.endTime != null) {
1275
1115
  contents.endTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.endTime)));
1276
1116
  }
1277
- if (data.errorMessage !== undefined && data.errorMessage !== null) {
1117
+ if (data.errorMessage != null) {
1278
1118
  contents.errorMessage = __expectString(data.errorMessage);
1279
1119
  }
1280
- if (data.groundStation !== undefined && data.groundStation !== null) {
1120
+ if (data.groundStation != null) {
1281
1121
  contents.groundStation = __expectString(data.groundStation);
1282
1122
  }
1283
- if (data.maximumElevation !== undefined && data.maximumElevation !== null) {
1123
+ if (data.maximumElevation != null) {
1284
1124
  contents.maximumElevation = deserializeAws_restJson1Elevation(data.maximumElevation, context);
1285
1125
  }
1286
- if (data.missionProfileArn !== undefined && data.missionProfileArn !== null) {
1126
+ if (data.missionProfileArn != null) {
1287
1127
  contents.missionProfileArn = __expectString(data.missionProfileArn);
1288
1128
  }
1289
- if (data.postPassEndTime !== undefined && data.postPassEndTime !== null) {
1129
+ if (data.postPassEndTime != null) {
1290
1130
  contents.postPassEndTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.postPassEndTime)));
1291
1131
  }
1292
- if (data.prePassStartTime !== undefined && data.prePassStartTime !== null) {
1132
+ if (data.prePassStartTime != null) {
1293
1133
  contents.prePassStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.prePassStartTime)));
1294
1134
  }
1295
- if (data.region !== undefined && data.region !== null) {
1135
+ if (data.region != null) {
1296
1136
  contents.region = __expectString(data.region);
1297
1137
  }
1298
- if (data.satelliteArn !== undefined && data.satelliteArn !== null) {
1138
+ if (data.satelliteArn != null) {
1299
1139
  contents.satelliteArn = __expectString(data.satelliteArn);
1300
1140
  }
1301
- if (data.startTime !== undefined && data.startTime !== null) {
1141
+ if (data.startTime != null) {
1302
1142
  contents.startTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.startTime)));
1303
1143
  }
1304
- if (data.tags !== undefined && data.tags !== null) {
1144
+ if (data.tags != null) {
1305
1145
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1306
1146
  }
1307
- return [2, Promise.resolve(contents)];
1147
+ return [2, contents];
1308
1148
  }
1309
1149
  });
1310
1150
  }); };
1311
1151
  var deserializeAws_restJson1DescribeContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1312
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1152
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1313
1153
  var _c;
1314
1154
  return __generator(this, function (_d) {
1315
1155
  switch (_d.label) {
@@ -1338,14 +1178,14 @@ var deserializeAws_restJson1DescribeContactCommandError = function (output, cont
1338
1178
  case 7: throw _d.sent();
1339
1179
  case 8:
1340
1180
  parsedBody = parsedOutput.body;
1341
- $metadata = deserializeMetadata(output);
1342
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1343
- response = new __BaseException({
1344
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1345
- $fault: "client",
1346
- $metadata: $metadata,
1181
+ throwDefaultError({
1182
+ output: output,
1183
+ parsedBody: parsedBody,
1184
+ exceptionCtor: __BaseException,
1185
+ errorCode: errorCode,
1347
1186
  });
1348
- throw __decorateServiceException(response, parsedBody);
1187
+ _d.label = 9;
1188
+ case 9: return [2];
1349
1189
  }
1350
1190
  });
1351
1191
  }); };
@@ -1357,44 +1197,38 @@ export var deserializeAws_restJson1GetConfigCommand = function (output, context)
1357
1197
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1358
1198
  return [2, deserializeAws_restJson1GetConfigCommandError(output, context)];
1359
1199
  }
1360
- contents = {
1200
+ contents = map({
1361
1201
  $metadata: deserializeMetadata(output),
1362
- configArn: undefined,
1363
- configData: undefined,
1364
- configId: undefined,
1365
- configType: undefined,
1366
- name: undefined,
1367
- tags: undefined,
1368
- };
1202
+ });
1369
1203
  _a = __expectNonNull;
1370
1204
  _b = __expectObject;
1371
1205
  return [4, parseBody(output.body, context)];
1372
1206
  case 1:
1373
1207
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1374
- if (data.configArn !== undefined && data.configArn !== null) {
1208
+ if (data.configArn != null) {
1375
1209
  contents.configArn = __expectString(data.configArn);
1376
1210
  }
1377
- if (data.configData !== undefined && data.configData !== null) {
1211
+ if (data.configData != null) {
1378
1212
  contents.configData = deserializeAws_restJson1ConfigTypeData(__expectUnion(data.configData), context);
1379
1213
  }
1380
- if (data.configId !== undefined && data.configId !== null) {
1214
+ if (data.configId != null) {
1381
1215
  contents.configId = __expectString(data.configId);
1382
1216
  }
1383
- if (data.configType !== undefined && data.configType !== null) {
1217
+ if (data.configType != null) {
1384
1218
  contents.configType = __expectString(data.configType);
1385
1219
  }
1386
- if (data.name !== undefined && data.name !== null) {
1220
+ if (data.name != null) {
1387
1221
  contents.name = __expectString(data.name);
1388
1222
  }
1389
- if (data.tags !== undefined && data.tags !== null) {
1223
+ if (data.tags != null) {
1390
1224
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1391
1225
  }
1392
- return [2, Promise.resolve(contents)];
1226
+ return [2, contents];
1393
1227
  }
1394
1228
  });
1395
1229
  }); };
1396
1230
  var deserializeAws_restJson1GetConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1397
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1231
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1398
1232
  var _c;
1399
1233
  return __generator(this, function (_d) {
1400
1234
  switch (_d.label) {
@@ -1423,14 +1257,14 @@ var deserializeAws_restJson1GetConfigCommandError = function (output, context) {
1423
1257
  case 7: throw _d.sent();
1424
1258
  case 8:
1425
1259
  parsedBody = parsedOutput.body;
1426
- $metadata = deserializeMetadata(output);
1427
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1428
- response = new __BaseException({
1429
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1430
- $fault: "client",
1431
- $metadata: $metadata,
1260
+ throwDefaultError({
1261
+ output: output,
1262
+ parsedBody: parsedBody,
1263
+ exceptionCtor: __BaseException,
1264
+ errorCode: errorCode,
1432
1265
  });
1433
- throw __decorateServiceException(response, parsedBody);
1266
+ _d.label = 9;
1267
+ case 9: return [2];
1434
1268
  }
1435
1269
  });
1436
1270
  }); };
@@ -1442,36 +1276,32 @@ export var deserializeAws_restJson1GetDataflowEndpointGroupCommand = function (o
1442
1276
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1443
1277
  return [2, deserializeAws_restJson1GetDataflowEndpointGroupCommandError(output, context)];
1444
1278
  }
1445
- contents = {
1279
+ contents = map({
1446
1280
  $metadata: deserializeMetadata(output),
1447
- dataflowEndpointGroupArn: undefined,
1448
- dataflowEndpointGroupId: undefined,
1449
- endpointsDetails: undefined,
1450
- tags: undefined,
1451
- };
1281
+ });
1452
1282
  _a = __expectNonNull;
1453
1283
  _b = __expectObject;
1454
1284
  return [4, parseBody(output.body, context)];
1455
1285
  case 1:
1456
1286
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1457
- if (data.dataflowEndpointGroupArn !== undefined && data.dataflowEndpointGroupArn !== null) {
1287
+ if (data.dataflowEndpointGroupArn != null) {
1458
1288
  contents.dataflowEndpointGroupArn = __expectString(data.dataflowEndpointGroupArn);
1459
1289
  }
1460
- if (data.dataflowEndpointGroupId !== undefined && data.dataflowEndpointGroupId !== null) {
1290
+ if (data.dataflowEndpointGroupId != null) {
1461
1291
  contents.dataflowEndpointGroupId = __expectString(data.dataflowEndpointGroupId);
1462
1292
  }
1463
- if (data.endpointsDetails !== undefined && data.endpointsDetails !== null) {
1293
+ if (data.endpointsDetails != null) {
1464
1294
  contents.endpointsDetails = deserializeAws_restJson1EndpointDetailsList(data.endpointsDetails, context);
1465
1295
  }
1466
- if (data.tags !== undefined && data.tags !== null) {
1296
+ if (data.tags != null) {
1467
1297
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1468
1298
  }
1469
- return [2, Promise.resolve(contents)];
1299
+ return [2, contents];
1470
1300
  }
1471
1301
  });
1472
1302
  }); };
1473
1303
  var deserializeAws_restJson1GetDataflowEndpointGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1474
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1304
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1475
1305
  var _c;
1476
1306
  return __generator(this, function (_d) {
1477
1307
  switch (_d.label) {
@@ -1500,14 +1330,14 @@ var deserializeAws_restJson1GetDataflowEndpointGroupCommandError = function (out
1500
1330
  case 7: throw _d.sent();
1501
1331
  case 8:
1502
1332
  parsedBody = parsedOutput.body;
1503
- $metadata = deserializeMetadata(output);
1504
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1505
- response = new __BaseException({
1506
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1507
- $fault: "client",
1508
- $metadata: $metadata,
1333
+ throwDefaultError({
1334
+ output: output,
1335
+ parsedBody: parsedBody,
1336
+ exceptionCtor: __BaseException,
1337
+ errorCode: errorCode,
1509
1338
  });
1510
- throw __decorateServiceException(response, parsedBody);
1339
+ _d.label = 9;
1340
+ case 9: return [2];
1511
1341
  }
1512
1342
  });
1513
1343
  }); };
@@ -1519,40 +1349,35 @@ export var deserializeAws_restJson1GetMinuteUsageCommand = function (output, con
1519
1349
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1520
1350
  return [2, deserializeAws_restJson1GetMinuteUsageCommandError(output, context)];
1521
1351
  }
1522
- contents = {
1352
+ contents = map({
1523
1353
  $metadata: deserializeMetadata(output),
1524
- estimatedMinutesRemaining: undefined,
1525
- isReservedMinutesCustomer: undefined,
1526
- totalReservedMinuteAllocation: undefined,
1527
- totalScheduledMinutes: undefined,
1528
- upcomingMinutesScheduled: undefined,
1529
- };
1354
+ });
1530
1355
  _a = __expectNonNull;
1531
1356
  _b = __expectObject;
1532
1357
  return [4, parseBody(output.body, context)];
1533
1358
  case 1:
1534
1359
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1535
- if (data.estimatedMinutesRemaining !== undefined && data.estimatedMinutesRemaining !== null) {
1360
+ if (data.estimatedMinutesRemaining != null) {
1536
1361
  contents.estimatedMinutesRemaining = __expectInt32(data.estimatedMinutesRemaining);
1537
1362
  }
1538
- if (data.isReservedMinutesCustomer !== undefined && data.isReservedMinutesCustomer !== null) {
1363
+ if (data.isReservedMinutesCustomer != null) {
1539
1364
  contents.isReservedMinutesCustomer = __expectBoolean(data.isReservedMinutesCustomer);
1540
1365
  }
1541
- if (data.totalReservedMinuteAllocation !== undefined && data.totalReservedMinuteAllocation !== null) {
1366
+ if (data.totalReservedMinuteAllocation != null) {
1542
1367
  contents.totalReservedMinuteAllocation = __expectInt32(data.totalReservedMinuteAllocation);
1543
1368
  }
1544
- if (data.totalScheduledMinutes !== undefined && data.totalScheduledMinutes !== null) {
1369
+ if (data.totalScheduledMinutes != null) {
1545
1370
  contents.totalScheduledMinutes = __expectInt32(data.totalScheduledMinutes);
1546
1371
  }
1547
- if (data.upcomingMinutesScheduled !== undefined && data.upcomingMinutesScheduled !== null) {
1372
+ if (data.upcomingMinutesScheduled != null) {
1548
1373
  contents.upcomingMinutesScheduled = __expectInt32(data.upcomingMinutesScheduled);
1549
1374
  }
1550
- return [2, Promise.resolve(contents)];
1375
+ return [2, contents];
1551
1376
  }
1552
1377
  });
1553
1378
  }); };
1554
1379
  var deserializeAws_restJson1GetMinuteUsageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1555
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1380
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1556
1381
  var _c;
1557
1382
  return __generator(this, function (_d) {
1558
1383
  switch (_d.label) {
@@ -1581,14 +1406,14 @@ var deserializeAws_restJson1GetMinuteUsageCommandError = function (output, conte
1581
1406
  case 7: throw _d.sent();
1582
1407
  case 8:
1583
1408
  parsedBody = parsedOutput.body;
1584
- $metadata = deserializeMetadata(output);
1585
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1586
- response = new __BaseException({
1587
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1588
- $fault: "client",
1589
- $metadata: $metadata,
1409
+ throwDefaultError({
1410
+ output: output,
1411
+ parsedBody: parsedBody,
1412
+ exceptionCtor: __BaseException,
1413
+ errorCode: errorCode,
1590
1414
  });
1591
- throw __decorateServiceException(response, parsedBody);
1415
+ _d.label = 9;
1416
+ case 9: return [2];
1592
1417
  }
1593
1418
  });
1594
1419
  }); };
@@ -1600,60 +1425,50 @@ export var deserializeAws_restJson1GetMissionProfileCommand = function (output,
1600
1425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1601
1426
  return [2, deserializeAws_restJson1GetMissionProfileCommandError(output, context)];
1602
1427
  }
1603
- contents = {
1428
+ contents = map({
1604
1429
  $metadata: deserializeMetadata(output),
1605
- contactPostPassDurationSeconds: undefined,
1606
- contactPrePassDurationSeconds: undefined,
1607
- dataflowEdges: undefined,
1608
- minimumViableContactDurationSeconds: undefined,
1609
- missionProfileArn: undefined,
1610
- missionProfileId: undefined,
1611
- name: undefined,
1612
- region: undefined,
1613
- tags: undefined,
1614
- trackingConfigArn: undefined,
1615
- };
1430
+ });
1616
1431
  _a = __expectNonNull;
1617
1432
  _b = __expectObject;
1618
1433
  return [4, parseBody(output.body, context)];
1619
1434
  case 1:
1620
1435
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1621
- if (data.contactPostPassDurationSeconds !== undefined && data.contactPostPassDurationSeconds !== null) {
1436
+ if (data.contactPostPassDurationSeconds != null) {
1622
1437
  contents.contactPostPassDurationSeconds = __expectInt32(data.contactPostPassDurationSeconds);
1623
1438
  }
1624
- if (data.contactPrePassDurationSeconds !== undefined && data.contactPrePassDurationSeconds !== null) {
1439
+ if (data.contactPrePassDurationSeconds != null) {
1625
1440
  contents.contactPrePassDurationSeconds = __expectInt32(data.contactPrePassDurationSeconds);
1626
1441
  }
1627
- if (data.dataflowEdges !== undefined && data.dataflowEdges !== null) {
1442
+ if (data.dataflowEdges != null) {
1628
1443
  contents.dataflowEdges = deserializeAws_restJson1DataflowEdgeList(data.dataflowEdges, context);
1629
1444
  }
1630
- if (data.minimumViableContactDurationSeconds !== undefined && data.minimumViableContactDurationSeconds !== null) {
1445
+ if (data.minimumViableContactDurationSeconds != null) {
1631
1446
  contents.minimumViableContactDurationSeconds = __expectInt32(data.minimumViableContactDurationSeconds);
1632
1447
  }
1633
- if (data.missionProfileArn !== undefined && data.missionProfileArn !== null) {
1448
+ if (data.missionProfileArn != null) {
1634
1449
  contents.missionProfileArn = __expectString(data.missionProfileArn);
1635
1450
  }
1636
- if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
1451
+ if (data.missionProfileId != null) {
1637
1452
  contents.missionProfileId = __expectString(data.missionProfileId);
1638
1453
  }
1639
- if (data.name !== undefined && data.name !== null) {
1454
+ if (data.name != null) {
1640
1455
  contents.name = __expectString(data.name);
1641
1456
  }
1642
- if (data.region !== undefined && data.region !== null) {
1457
+ if (data.region != null) {
1643
1458
  contents.region = __expectString(data.region);
1644
1459
  }
1645
- if (data.tags !== undefined && data.tags !== null) {
1460
+ if (data.tags != null) {
1646
1461
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1647
1462
  }
1648
- if (data.trackingConfigArn !== undefined && data.trackingConfigArn !== null) {
1463
+ if (data.trackingConfigArn != null) {
1649
1464
  contents.trackingConfigArn = __expectString(data.trackingConfigArn);
1650
1465
  }
1651
- return [2, Promise.resolve(contents)];
1466
+ return [2, contents];
1652
1467
  }
1653
1468
  });
1654
1469
  }); };
1655
1470
  var deserializeAws_restJson1GetMissionProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1656
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1471
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1657
1472
  var _c;
1658
1473
  return __generator(this, function (_d) {
1659
1474
  switch (_d.label) {
@@ -1682,14 +1497,14 @@ var deserializeAws_restJson1GetMissionProfileCommandError = function (output, co
1682
1497
  case 7: throw _d.sent();
1683
1498
  case 8:
1684
1499
  parsedBody = parsedOutput.body;
1685
- $metadata = deserializeMetadata(output);
1686
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1687
- response = new __BaseException({
1688
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1689
- $fault: "client",
1690
- $metadata: $metadata,
1500
+ throwDefaultError({
1501
+ output: output,
1502
+ parsedBody: parsedBody,
1503
+ exceptionCtor: __BaseException,
1504
+ errorCode: errorCode,
1691
1505
  });
1692
- throw __decorateServiceException(response, parsedBody);
1506
+ _d.label = 9;
1507
+ case 9: return [2];
1693
1508
  }
1694
1509
  });
1695
1510
  }); };
@@ -1701,36 +1516,32 @@ export var deserializeAws_restJson1GetSatelliteCommand = function (output, conte
1701
1516
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1702
1517
  return [2, deserializeAws_restJson1GetSatelliteCommandError(output, context)];
1703
1518
  }
1704
- contents = {
1519
+ contents = map({
1705
1520
  $metadata: deserializeMetadata(output),
1706
- groundStations: undefined,
1707
- noradSatelliteID: undefined,
1708
- satelliteArn: undefined,
1709
- satelliteId: undefined,
1710
- };
1521
+ });
1711
1522
  _a = __expectNonNull;
1712
1523
  _b = __expectObject;
1713
1524
  return [4, parseBody(output.body, context)];
1714
1525
  case 1:
1715
1526
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1716
- if (data.groundStations !== undefined && data.groundStations !== null) {
1527
+ if (data.groundStations != null) {
1717
1528
  contents.groundStations = deserializeAws_restJson1GroundStationIdList(data.groundStations, context);
1718
1529
  }
1719
- if (data.noradSatelliteID !== undefined && data.noradSatelliteID !== null) {
1530
+ if (data.noradSatelliteID != null) {
1720
1531
  contents.noradSatelliteID = __expectInt32(data.noradSatelliteID);
1721
1532
  }
1722
- if (data.satelliteArn !== undefined && data.satelliteArn !== null) {
1533
+ if (data.satelliteArn != null) {
1723
1534
  contents.satelliteArn = __expectString(data.satelliteArn);
1724
1535
  }
1725
- if (data.satelliteId !== undefined && data.satelliteId !== null) {
1536
+ if (data.satelliteId != null) {
1726
1537
  contents.satelliteId = __expectString(data.satelliteId);
1727
1538
  }
1728
- return [2, Promise.resolve(contents)];
1539
+ return [2, contents];
1729
1540
  }
1730
1541
  });
1731
1542
  }); };
1732
1543
  var deserializeAws_restJson1GetSatelliteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1733
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1544
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1734
1545
  var _c;
1735
1546
  return __generator(this, function (_d) {
1736
1547
  switch (_d.label) {
@@ -1759,14 +1570,14 @@ var deserializeAws_restJson1GetSatelliteCommandError = function (output, context
1759
1570
  case 7: throw _d.sent();
1760
1571
  case 8:
1761
1572
  parsedBody = parsedOutput.body;
1762
- $metadata = deserializeMetadata(output);
1763
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1764
- response = new __BaseException({
1765
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1766
- $fault: "client",
1767
- $metadata: $metadata,
1573
+ throwDefaultError({
1574
+ output: output,
1575
+ parsedBody: parsedBody,
1576
+ exceptionCtor: __BaseException,
1577
+ errorCode: errorCode,
1768
1578
  });
1769
- throw __decorateServiceException(response, parsedBody);
1579
+ _d.label = 9;
1580
+ case 9: return [2];
1770
1581
  }
1771
1582
  });
1772
1583
  }); };
@@ -1778,28 +1589,26 @@ export var deserializeAws_restJson1ListConfigsCommand = function (output, contex
1778
1589
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1779
1590
  return [2, deserializeAws_restJson1ListConfigsCommandError(output, context)];
1780
1591
  }
1781
- contents = {
1592
+ contents = map({
1782
1593
  $metadata: deserializeMetadata(output),
1783
- configList: undefined,
1784
- nextToken: undefined,
1785
- };
1594
+ });
1786
1595
  _a = __expectNonNull;
1787
1596
  _b = __expectObject;
1788
1597
  return [4, parseBody(output.body, context)];
1789
1598
  case 1:
1790
1599
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1791
- if (data.configList !== undefined && data.configList !== null) {
1600
+ if (data.configList != null) {
1792
1601
  contents.configList = deserializeAws_restJson1ConfigList(data.configList, context);
1793
1602
  }
1794
- if (data.nextToken !== undefined && data.nextToken !== null) {
1603
+ if (data.nextToken != null) {
1795
1604
  contents.nextToken = __expectString(data.nextToken);
1796
1605
  }
1797
- return [2, Promise.resolve(contents)];
1606
+ return [2, contents];
1798
1607
  }
1799
1608
  });
1800
1609
  }); };
1801
1610
  var deserializeAws_restJson1ListConfigsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1802
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1611
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1803
1612
  var _c;
1804
1613
  return __generator(this, function (_d) {
1805
1614
  switch (_d.label) {
@@ -1828,14 +1637,14 @@ var deserializeAws_restJson1ListConfigsCommandError = function (output, context)
1828
1637
  case 7: throw _d.sent();
1829
1638
  case 8:
1830
1639
  parsedBody = parsedOutput.body;
1831
- $metadata = deserializeMetadata(output);
1832
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1833
- response = new __BaseException({
1834
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1835
- $fault: "client",
1836
- $metadata: $metadata,
1640
+ throwDefaultError({
1641
+ output: output,
1642
+ parsedBody: parsedBody,
1643
+ exceptionCtor: __BaseException,
1644
+ errorCode: errorCode,
1837
1645
  });
1838
- throw __decorateServiceException(response, parsedBody);
1646
+ _d.label = 9;
1647
+ case 9: return [2];
1839
1648
  }
1840
1649
  });
1841
1650
  }); };
@@ -1847,28 +1656,26 @@ export var deserializeAws_restJson1ListContactsCommand = function (output, conte
1847
1656
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1848
1657
  return [2, deserializeAws_restJson1ListContactsCommandError(output, context)];
1849
1658
  }
1850
- contents = {
1659
+ contents = map({
1851
1660
  $metadata: deserializeMetadata(output),
1852
- contactList: undefined,
1853
- nextToken: undefined,
1854
- };
1661
+ });
1855
1662
  _a = __expectNonNull;
1856
1663
  _b = __expectObject;
1857
1664
  return [4, parseBody(output.body, context)];
1858
1665
  case 1:
1859
1666
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1860
- if (data.contactList !== undefined && data.contactList !== null) {
1667
+ if (data.contactList != null) {
1861
1668
  contents.contactList = deserializeAws_restJson1ContactList(data.contactList, context);
1862
1669
  }
1863
- if (data.nextToken !== undefined && data.nextToken !== null) {
1670
+ if (data.nextToken != null) {
1864
1671
  contents.nextToken = __expectString(data.nextToken);
1865
1672
  }
1866
- return [2, Promise.resolve(contents)];
1673
+ return [2, contents];
1867
1674
  }
1868
1675
  });
1869
1676
  }); };
1870
1677
  var deserializeAws_restJson1ListContactsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1871
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1678
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1872
1679
  var _c;
1873
1680
  return __generator(this, function (_d) {
1874
1681
  switch (_d.label) {
@@ -1897,14 +1704,14 @@ var deserializeAws_restJson1ListContactsCommandError = function (output, context
1897
1704
  case 7: throw _d.sent();
1898
1705
  case 8:
1899
1706
  parsedBody = parsedOutput.body;
1900
- $metadata = deserializeMetadata(output);
1901
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1902
- response = new __BaseException({
1903
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1904
- $fault: "client",
1905
- $metadata: $metadata,
1707
+ throwDefaultError({
1708
+ output: output,
1709
+ parsedBody: parsedBody,
1710
+ exceptionCtor: __BaseException,
1711
+ errorCode: errorCode,
1906
1712
  });
1907
- throw __decorateServiceException(response, parsedBody);
1713
+ _d.label = 9;
1714
+ case 9: return [2];
1908
1715
  }
1909
1716
  });
1910
1717
  }); };
@@ -1916,28 +1723,26 @@ export var deserializeAws_restJson1ListDataflowEndpointGroupsCommand = function
1916
1723
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1917
1724
  return [2, deserializeAws_restJson1ListDataflowEndpointGroupsCommandError(output, context)];
1918
1725
  }
1919
- contents = {
1726
+ contents = map({
1920
1727
  $metadata: deserializeMetadata(output),
1921
- dataflowEndpointGroupList: undefined,
1922
- nextToken: undefined,
1923
- };
1728
+ });
1924
1729
  _a = __expectNonNull;
1925
1730
  _b = __expectObject;
1926
1731
  return [4, parseBody(output.body, context)];
1927
1732
  case 1:
1928
1733
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1929
- if (data.dataflowEndpointGroupList !== undefined && data.dataflowEndpointGroupList !== null) {
1734
+ if (data.dataflowEndpointGroupList != null) {
1930
1735
  contents.dataflowEndpointGroupList = deserializeAws_restJson1DataflowEndpointGroupList(data.dataflowEndpointGroupList, context);
1931
1736
  }
1932
- if (data.nextToken !== undefined && data.nextToken !== null) {
1737
+ if (data.nextToken != null) {
1933
1738
  contents.nextToken = __expectString(data.nextToken);
1934
1739
  }
1935
- return [2, Promise.resolve(contents)];
1740
+ return [2, contents];
1936
1741
  }
1937
1742
  });
1938
1743
  }); };
1939
1744
  var deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1940
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1745
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1941
1746
  var _c;
1942
1747
  return __generator(this, function (_d) {
1943
1748
  switch (_d.label) {
@@ -1966,14 +1771,14 @@ var deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = function (o
1966
1771
  case 7: throw _d.sent();
1967
1772
  case 8:
1968
1773
  parsedBody = parsedOutput.body;
1969
- $metadata = deserializeMetadata(output);
1970
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1971
- response = new __BaseException({
1972
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1973
- $fault: "client",
1974
- $metadata: $metadata,
1774
+ throwDefaultError({
1775
+ output: output,
1776
+ parsedBody: parsedBody,
1777
+ exceptionCtor: __BaseException,
1778
+ errorCode: errorCode,
1975
1779
  });
1976
- throw __decorateServiceException(response, parsedBody);
1780
+ _d.label = 9;
1781
+ case 9: return [2];
1977
1782
  }
1978
1783
  });
1979
1784
  }); };
@@ -1985,28 +1790,26 @@ export var deserializeAws_restJson1ListGroundStationsCommand = function (output,
1985
1790
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1986
1791
  return [2, deserializeAws_restJson1ListGroundStationsCommandError(output, context)];
1987
1792
  }
1988
- contents = {
1793
+ contents = map({
1989
1794
  $metadata: deserializeMetadata(output),
1990
- groundStationList: undefined,
1991
- nextToken: undefined,
1992
- };
1795
+ });
1993
1796
  _a = __expectNonNull;
1994
1797
  _b = __expectObject;
1995
1798
  return [4, parseBody(output.body, context)];
1996
1799
  case 1:
1997
1800
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1998
- if (data.groundStationList !== undefined && data.groundStationList !== null) {
1801
+ if (data.groundStationList != null) {
1999
1802
  contents.groundStationList = deserializeAws_restJson1GroundStationList(data.groundStationList, context);
2000
1803
  }
2001
- if (data.nextToken !== undefined && data.nextToken !== null) {
1804
+ if (data.nextToken != null) {
2002
1805
  contents.nextToken = __expectString(data.nextToken);
2003
1806
  }
2004
- return [2, Promise.resolve(contents)];
1807
+ return [2, contents];
2005
1808
  }
2006
1809
  });
2007
1810
  }); };
2008
1811
  var deserializeAws_restJson1ListGroundStationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2009
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1812
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2010
1813
  var _c;
2011
1814
  return __generator(this, function (_d) {
2012
1815
  switch (_d.label) {
@@ -2035,14 +1838,14 @@ var deserializeAws_restJson1ListGroundStationsCommandError = function (output, c
2035
1838
  case 7: throw _d.sent();
2036
1839
  case 8:
2037
1840
  parsedBody = parsedOutput.body;
2038
- $metadata = deserializeMetadata(output);
2039
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2040
- response = new __BaseException({
2041
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2042
- $fault: "client",
2043
- $metadata: $metadata,
1841
+ throwDefaultError({
1842
+ output: output,
1843
+ parsedBody: parsedBody,
1844
+ exceptionCtor: __BaseException,
1845
+ errorCode: errorCode,
2044
1846
  });
2045
- throw __decorateServiceException(response, parsedBody);
1847
+ _d.label = 9;
1848
+ case 9: return [2];
2046
1849
  }
2047
1850
  });
2048
1851
  }); };
@@ -2054,28 +1857,26 @@ export var deserializeAws_restJson1ListMissionProfilesCommand = function (output
2054
1857
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2055
1858
  return [2, deserializeAws_restJson1ListMissionProfilesCommandError(output, context)];
2056
1859
  }
2057
- contents = {
1860
+ contents = map({
2058
1861
  $metadata: deserializeMetadata(output),
2059
- missionProfileList: undefined,
2060
- nextToken: undefined,
2061
- };
1862
+ });
2062
1863
  _a = __expectNonNull;
2063
1864
  _b = __expectObject;
2064
1865
  return [4, parseBody(output.body, context)];
2065
1866
  case 1:
2066
1867
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2067
- if (data.missionProfileList !== undefined && data.missionProfileList !== null) {
1868
+ if (data.missionProfileList != null) {
2068
1869
  contents.missionProfileList = deserializeAws_restJson1MissionProfileList(data.missionProfileList, context);
2069
1870
  }
2070
- if (data.nextToken !== undefined && data.nextToken !== null) {
1871
+ if (data.nextToken != null) {
2071
1872
  contents.nextToken = __expectString(data.nextToken);
2072
1873
  }
2073
- return [2, Promise.resolve(contents)];
1874
+ return [2, contents];
2074
1875
  }
2075
1876
  });
2076
1877
  }); };
2077
1878
  var deserializeAws_restJson1ListMissionProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2078
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1879
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2079
1880
  var _c;
2080
1881
  return __generator(this, function (_d) {
2081
1882
  switch (_d.label) {
@@ -2104,14 +1905,14 @@ var deserializeAws_restJson1ListMissionProfilesCommandError = function (output,
2104
1905
  case 7: throw _d.sent();
2105
1906
  case 8:
2106
1907
  parsedBody = parsedOutput.body;
2107
- $metadata = deserializeMetadata(output);
2108
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2109
- response = new __BaseException({
2110
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2111
- $fault: "client",
2112
- $metadata: $metadata,
1908
+ throwDefaultError({
1909
+ output: output,
1910
+ parsedBody: parsedBody,
1911
+ exceptionCtor: __BaseException,
1912
+ errorCode: errorCode,
2113
1913
  });
2114
- throw __decorateServiceException(response, parsedBody);
1914
+ _d.label = 9;
1915
+ case 9: return [2];
2115
1916
  }
2116
1917
  });
2117
1918
  }); };
@@ -2123,28 +1924,26 @@ export var deserializeAws_restJson1ListSatellitesCommand = function (output, con
2123
1924
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2124
1925
  return [2, deserializeAws_restJson1ListSatellitesCommandError(output, context)];
2125
1926
  }
2126
- contents = {
1927
+ contents = map({
2127
1928
  $metadata: deserializeMetadata(output),
2128
- nextToken: undefined,
2129
- satellites: undefined,
2130
- };
1929
+ });
2131
1930
  _a = __expectNonNull;
2132
1931
  _b = __expectObject;
2133
1932
  return [4, parseBody(output.body, context)];
2134
1933
  case 1:
2135
1934
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2136
- if (data.nextToken !== undefined && data.nextToken !== null) {
1935
+ if (data.nextToken != null) {
2137
1936
  contents.nextToken = __expectString(data.nextToken);
2138
1937
  }
2139
- if (data.satellites !== undefined && data.satellites !== null) {
1938
+ if (data.satellites != null) {
2140
1939
  contents.satellites = deserializeAws_restJson1SatelliteList(data.satellites, context);
2141
1940
  }
2142
- return [2, Promise.resolve(contents)];
1941
+ return [2, contents];
2143
1942
  }
2144
1943
  });
2145
1944
  }); };
2146
1945
  var deserializeAws_restJson1ListSatellitesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2147
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1946
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2148
1947
  var _c;
2149
1948
  return __generator(this, function (_d) {
2150
1949
  switch (_d.label) {
@@ -2173,14 +1972,14 @@ var deserializeAws_restJson1ListSatellitesCommandError = function (output, conte
2173
1972
  case 7: throw _d.sent();
2174
1973
  case 8:
2175
1974
  parsedBody = parsedOutput.body;
2176
- $metadata = deserializeMetadata(output);
2177
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2178
- response = new __BaseException({
2179
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2180
- $fault: "client",
2181
- $metadata: $metadata,
1975
+ throwDefaultError({
1976
+ output: output,
1977
+ parsedBody: parsedBody,
1978
+ exceptionCtor: __BaseException,
1979
+ errorCode: errorCode,
2182
1980
  });
2183
- throw __decorateServiceException(response, parsedBody);
1981
+ _d.label = 9;
1982
+ case 9: return [2];
2184
1983
  }
2185
1984
  });
2186
1985
  }); };
@@ -2192,24 +1991,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2192
1991
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2193
1992
  return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
2194
1993
  }
2195
- contents = {
1994
+ contents = map({
2196
1995
  $metadata: deserializeMetadata(output),
2197
- tags: undefined,
2198
- };
1996
+ });
2199
1997
  _a = __expectNonNull;
2200
1998
  _b = __expectObject;
2201
1999
  return [4, parseBody(output.body, context)];
2202
2000
  case 1:
2203
2001
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2204
- if (data.tags !== undefined && data.tags !== null) {
2002
+ if (data.tags != null) {
2205
2003
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
2206
2004
  }
2207
- return [2, Promise.resolve(contents)];
2005
+ return [2, contents];
2208
2006
  }
2209
2007
  });
2210
2008
  }); };
2211
2009
  var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2212
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2010
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2213
2011
  var _c;
2214
2012
  return __generator(this, function (_d) {
2215
2013
  switch (_d.label) {
@@ -2238,14 +2036,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
2238
2036
  case 7: throw _d.sent();
2239
2037
  case 8:
2240
2038
  parsedBody = parsedOutput.body;
2241
- $metadata = deserializeMetadata(output);
2242
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2243
- response = new __BaseException({
2244
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2245
- $fault: "client",
2246
- $metadata: $metadata,
2039
+ throwDefaultError({
2040
+ output: output,
2041
+ parsedBody: parsedBody,
2042
+ exceptionCtor: __BaseException,
2043
+ errorCode: errorCode,
2247
2044
  });
2248
- throw __decorateServiceException(response, parsedBody);
2045
+ _d.label = 9;
2046
+ case 9: return [2];
2249
2047
  }
2250
2048
  });
2251
2049
  }); };
@@ -2257,24 +2055,23 @@ export var deserializeAws_restJson1ReserveContactCommand = function (output, con
2257
2055
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2258
2056
  return [2, deserializeAws_restJson1ReserveContactCommandError(output, context)];
2259
2057
  }
2260
- contents = {
2058
+ contents = map({
2261
2059
  $metadata: deserializeMetadata(output),
2262
- contactId: undefined,
2263
- };
2060
+ });
2264
2061
  _a = __expectNonNull;
2265
2062
  _b = __expectObject;
2266
2063
  return [4, parseBody(output.body, context)];
2267
2064
  case 1:
2268
2065
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2269
- if (data.contactId !== undefined && data.contactId !== null) {
2066
+ if (data.contactId != null) {
2270
2067
  contents.contactId = __expectString(data.contactId);
2271
2068
  }
2272
- return [2, Promise.resolve(contents)];
2069
+ return [2, contents];
2273
2070
  }
2274
2071
  });
2275
2072
  }); };
2276
2073
  var deserializeAws_restJson1ReserveContactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2277
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2074
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2278
2075
  var _c;
2279
2076
  return __generator(this, function (_d) {
2280
2077
  switch (_d.label) {
@@ -2303,14 +2100,14 @@ var deserializeAws_restJson1ReserveContactCommandError = function (output, conte
2303
2100
  case 7: throw _d.sent();
2304
2101
  case 8:
2305
2102
  parsedBody = parsedOutput.body;
2306
- $metadata = deserializeMetadata(output);
2307
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2308
- response = new __BaseException({
2309
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2310
- $fault: "client",
2311
- $metadata: $metadata,
2103
+ throwDefaultError({
2104
+ output: output,
2105
+ parsedBody: parsedBody,
2106
+ exceptionCtor: __BaseException,
2107
+ errorCode: errorCode,
2312
2108
  });
2313
- throw __decorateServiceException(response, parsedBody);
2109
+ _d.label = 9;
2110
+ case 9: return [2];
2314
2111
  }
2315
2112
  });
2316
2113
  }); };
@@ -2322,18 +2119,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
2322
2119
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2323
2120
  return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
2324
2121
  }
2325
- contents = {
2122
+ contents = map({
2326
2123
  $metadata: deserializeMetadata(output),
2327
- };
2124
+ });
2328
2125
  return [4, collectBody(output.body, context)];
2329
2126
  case 1:
2330
2127
  _a.sent();
2331
- return [2, Promise.resolve(contents)];
2128
+ return [2, contents];
2332
2129
  }
2333
2130
  });
2334
2131
  }); };
2335
2132
  var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2336
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2133
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2337
2134
  var _c;
2338
2135
  return __generator(this, function (_d) {
2339
2136
  switch (_d.label) {
@@ -2362,14 +2159,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
2362
2159
  case 7: throw _d.sent();
2363
2160
  case 8:
2364
2161
  parsedBody = parsedOutput.body;
2365
- $metadata = deserializeMetadata(output);
2366
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2367
- response = new __BaseException({
2368
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2369
- $fault: "client",
2370
- $metadata: $metadata,
2162
+ throwDefaultError({
2163
+ output: output,
2164
+ parsedBody: parsedBody,
2165
+ exceptionCtor: __BaseException,
2166
+ errorCode: errorCode,
2371
2167
  });
2372
- throw __decorateServiceException(response, parsedBody);
2168
+ _d.label = 9;
2169
+ case 9: return [2];
2373
2170
  }
2374
2171
  });
2375
2172
  }); };
@@ -2381,18 +2178,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
2381
2178
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2382
2179
  return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
2383
2180
  }
2384
- contents = {
2181
+ contents = map({
2385
2182
  $metadata: deserializeMetadata(output),
2386
- };
2183
+ });
2387
2184
  return [4, collectBody(output.body, context)];
2388
2185
  case 1:
2389
2186
  _a.sent();
2390
- return [2, Promise.resolve(contents)];
2187
+ return [2, contents];
2391
2188
  }
2392
2189
  });
2393
2190
  }); };
2394
2191
  var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2395
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2192
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2396
2193
  var _c;
2397
2194
  return __generator(this, function (_d) {
2398
2195
  switch (_d.label) {
@@ -2421,14 +2218,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2421
2218
  case 7: throw _d.sent();
2422
2219
  case 8:
2423
2220
  parsedBody = parsedOutput.body;
2424
- $metadata = deserializeMetadata(output);
2425
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2426
- response = new __BaseException({
2427
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2428
- $fault: "client",
2429
- $metadata: $metadata,
2221
+ throwDefaultError({
2222
+ output: output,
2223
+ parsedBody: parsedBody,
2224
+ exceptionCtor: __BaseException,
2225
+ errorCode: errorCode,
2430
2226
  });
2431
- throw __decorateServiceException(response, parsedBody);
2227
+ _d.label = 9;
2228
+ case 9: return [2];
2432
2229
  }
2433
2230
  });
2434
2231
  }); };
@@ -2440,32 +2237,29 @@ export var deserializeAws_restJson1UpdateConfigCommand = function (output, conte
2440
2237
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2441
2238
  return [2, deserializeAws_restJson1UpdateConfigCommandError(output, context)];
2442
2239
  }
2443
- contents = {
2240
+ contents = map({
2444
2241
  $metadata: deserializeMetadata(output),
2445
- configArn: undefined,
2446
- configId: undefined,
2447
- configType: undefined,
2448
- };
2242
+ });
2449
2243
  _a = __expectNonNull;
2450
2244
  _b = __expectObject;
2451
2245
  return [4, parseBody(output.body, context)];
2452
2246
  case 1:
2453
2247
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2454
- if (data.configArn !== undefined && data.configArn !== null) {
2248
+ if (data.configArn != null) {
2455
2249
  contents.configArn = __expectString(data.configArn);
2456
2250
  }
2457
- if (data.configId !== undefined && data.configId !== null) {
2251
+ if (data.configId != null) {
2458
2252
  contents.configId = __expectString(data.configId);
2459
2253
  }
2460
- if (data.configType !== undefined && data.configType !== null) {
2254
+ if (data.configType != null) {
2461
2255
  contents.configType = __expectString(data.configType);
2462
2256
  }
2463
- return [2, Promise.resolve(contents)];
2257
+ return [2, contents];
2464
2258
  }
2465
2259
  });
2466
2260
  }); };
2467
2261
  var deserializeAws_restJson1UpdateConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2468
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2262
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2469
2263
  var _c;
2470
2264
  return __generator(this, function (_d) {
2471
2265
  switch (_d.label) {
@@ -2494,14 +2288,14 @@ var deserializeAws_restJson1UpdateConfigCommandError = function (output, context
2494
2288
  case 7: throw _d.sent();
2495
2289
  case 8:
2496
2290
  parsedBody = parsedOutput.body;
2497
- $metadata = deserializeMetadata(output);
2498
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2499
- response = new __BaseException({
2500
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2501
- $fault: "client",
2502
- $metadata: $metadata,
2291
+ throwDefaultError({
2292
+ output: output,
2293
+ parsedBody: parsedBody,
2294
+ exceptionCtor: __BaseException,
2295
+ errorCode: errorCode,
2503
2296
  });
2504
- throw __decorateServiceException(response, parsedBody);
2297
+ _d.label = 9;
2298
+ case 9: return [2];
2505
2299
  }
2506
2300
  });
2507
2301
  }); };
@@ -2513,24 +2307,23 @@ export var deserializeAws_restJson1UpdateMissionProfileCommand = function (outpu
2513
2307
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2514
2308
  return [2, deserializeAws_restJson1UpdateMissionProfileCommandError(output, context)];
2515
2309
  }
2516
- contents = {
2310
+ contents = map({
2517
2311
  $metadata: deserializeMetadata(output),
2518
- missionProfileId: undefined,
2519
- };
2312
+ });
2520
2313
  _a = __expectNonNull;
2521
2314
  _b = __expectObject;
2522
2315
  return [4, parseBody(output.body, context)];
2523
2316
  case 1:
2524
2317
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2525
- if (data.missionProfileId !== undefined && data.missionProfileId !== null) {
2318
+ if (data.missionProfileId != null) {
2526
2319
  contents.missionProfileId = __expectString(data.missionProfileId);
2527
2320
  }
2528
- return [2, Promise.resolve(contents)];
2321
+ return [2, contents];
2529
2322
  }
2530
2323
  });
2531
2324
  }); };
2532
2325
  var deserializeAws_restJson1UpdateMissionProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2533
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2326
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2534
2327
  var _c;
2535
2328
  return __generator(this, function (_d) {
2536
2329
  switch (_d.label) {
@@ -2559,26 +2352,27 @@ var deserializeAws_restJson1UpdateMissionProfileCommandError = function (output,
2559
2352
  case 7: throw _d.sent();
2560
2353
  case 8:
2561
2354
  parsedBody = parsedOutput.body;
2562
- $metadata = deserializeMetadata(output);
2563
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2564
- response = new __BaseException({
2565
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2566
- $fault: "client",
2567
- $metadata: $metadata,
2355
+ throwDefaultError({
2356
+ output: output,
2357
+ parsedBody: parsedBody,
2358
+ exceptionCtor: __BaseException,
2359
+ errorCode: errorCode,
2568
2360
  });
2569
- throw __decorateServiceException(response, parsedBody);
2361
+ _d.label = 9;
2362
+ case 9: return [2];
2570
2363
  }
2571
2364
  });
2572
2365
  }); };
2366
+ var map = __map;
2573
2367
  var deserializeAws_restJson1DependencyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2574
2368
  var contents, data, exception;
2575
2369
  return __generator(this, function (_a) {
2576
- contents = {};
2370
+ contents = map({});
2577
2371
  data = parsedOutput.body;
2578
- if (data.message !== undefined && data.message !== null) {
2372
+ if (data.message != null) {
2579
2373
  contents.message = __expectString(data.message);
2580
2374
  }
2581
- if (data.parameterName !== undefined && data.parameterName !== null) {
2375
+ if (data.parameterName != null) {
2582
2376
  contents.parameterName = __expectString(data.parameterName);
2583
2377
  }
2584
2378
  exception = new DependencyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -2588,12 +2382,12 @@ var deserializeAws_restJson1DependencyExceptionResponse = function (parsedOutput
2588
2382
  var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2589
2383
  var contents, data, exception;
2590
2384
  return __generator(this, function (_a) {
2591
- contents = {};
2385
+ contents = map({});
2592
2386
  data = parsedOutput.body;
2593
- if (data.message !== undefined && data.message !== null) {
2387
+ if (data.message != null) {
2594
2388
  contents.message = __expectString(data.message);
2595
2389
  }
2596
- if (data.parameterName !== undefined && data.parameterName !== null) {
2390
+ if (data.parameterName != null) {
2597
2391
  contents.parameterName = __expectString(data.parameterName);
2598
2392
  }
2599
2393
  exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -2603,12 +2397,12 @@ var deserializeAws_restJson1InvalidParameterExceptionResponse = function (parsed
2603
2397
  var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2604
2398
  var contents, data, exception;
2605
2399
  return __generator(this, function (_a) {
2606
- contents = {};
2400
+ contents = map({});
2607
2401
  data = parsedOutput.body;
2608
- if (data.message !== undefined && data.message !== null) {
2402
+ if (data.message != null) {
2609
2403
  contents.message = __expectString(data.message);
2610
2404
  }
2611
- if (data.parameterName !== undefined && data.parameterName !== null) {
2405
+ if (data.parameterName != null) {
2612
2406
  contents.parameterName = __expectString(data.parameterName);
2613
2407
  }
2614
2408
  exception = new ResourceLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -2618,9 +2412,9 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
2618
2412
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
2619
2413
  var contents, data, exception;
2620
2414
  return __generator(this, function (_a) {
2621
- contents = {};
2415
+ contents = map({});
2622
2416
  data = parsedOutput.body;
2623
- if (data.message !== undefined && data.message !== null) {
2417
+ if (data.message != null) {
2624
2418
  contents.message = __expectString(data.message);
2625
2419
  }
2626
2420
  exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -2670,9 +2464,6 @@ var serializeAws_restJson1DataflowEdge = function (input, context) {
2670
2464
  return input
2671
2465
  .filter(function (e) { return e != null; })
2672
2466
  .map(function (entry) {
2673
- if (entry === null) {
2674
- return null;
2675
- }
2676
2467
  return entry;
2677
2468
  });
2678
2469
  };
@@ -2680,9 +2471,6 @@ var serializeAws_restJson1DataflowEdgeList = function (input, context) {
2680
2471
  return input
2681
2472
  .filter(function (e) { return e != null; })
2682
2473
  .map(function (entry) {
2683
- if (entry === null) {
2684
- return null;
2685
- }
2686
2474
  return serializeAws_restJson1DataflowEdge(entry, context);
2687
2475
  });
2688
2476
  };
@@ -2710,9 +2498,6 @@ var serializeAws_restJson1EndpointDetailsList = function (input, context) {
2710
2498
  return input
2711
2499
  .filter(function (e) { return e != null; })
2712
2500
  .map(function (entry) {
2713
- if (entry === null) {
2714
- return null;
2715
- }
2716
2501
  return serializeAws_restJson1EndpointDetails(entry, context);
2717
2502
  });
2718
2503
  };
@@ -2734,9 +2519,6 @@ var serializeAws_restJson1SecurityGroupIdList = function (input, context) {
2734
2519
  return input
2735
2520
  .filter(function (e) { return e != null; })
2736
2521
  .map(function (entry) {
2737
- if (entry === null) {
2738
- return null;
2739
- }
2740
2522
  return entry;
2741
2523
  });
2742
2524
  };
@@ -2752,9 +2534,6 @@ var serializeAws_restJson1StatusList = function (input, context) {
2752
2534
  return input
2753
2535
  .filter(function (e) { return e != null; })
2754
2536
  .map(function (entry) {
2755
- if (entry === null) {
2756
- return null;
2757
- }
2758
2537
  return entry;
2759
2538
  });
2760
2539
  };
@@ -2762,9 +2541,6 @@ var serializeAws_restJson1SubnetList = function (input, context) {
2762
2541
  return input
2763
2542
  .filter(function (e) { return e != null; })
2764
2543
  .map(function (entry) {
2765
- if (entry === null) {
2766
- return null;
2767
- }
2768
2544
  return entry;
2769
2545
  });
2770
2546
  };
@@ -2822,17 +2598,17 @@ var deserializeAws_restJson1AntennaUplinkConfig = function (output, context) {
2822
2598
  };
2823
2599
  };
2824
2600
  var deserializeAws_restJson1ConfigDetails = function (output, context) {
2825
- if (output.antennaDemodDecodeDetails !== undefined && output.antennaDemodDecodeDetails !== null) {
2601
+ if (output.antennaDemodDecodeDetails != null) {
2826
2602
  return {
2827
2603
  antennaDemodDecodeDetails: deserializeAws_restJson1AntennaDemodDecodeDetails(output.antennaDemodDecodeDetails, context),
2828
2604
  };
2829
2605
  }
2830
- if (output.endpointDetails !== undefined && output.endpointDetails !== null) {
2606
+ if (output.endpointDetails != null) {
2831
2607
  return {
2832
2608
  endpointDetails: deserializeAws_restJson1EndpointDetails(output.endpointDetails, context),
2833
2609
  };
2834
2610
  }
2835
- if (output.s3RecordingDetails !== undefined && output.s3RecordingDetails !== null) {
2611
+ if (output.s3RecordingDetails != null) {
2836
2612
  return {
2837
2613
  s3RecordingDetails: deserializeAws_restJson1S3RecordingDetails(output.s3RecordingDetails, context),
2838
2614
  };
@@ -2859,37 +2635,37 @@ var deserializeAws_restJson1ConfigListItem = function (output, context) {
2859
2635
  };
2860
2636
  };
2861
2637
  var deserializeAws_restJson1ConfigTypeData = function (output, context) {
2862
- if (output.antennaDownlinkConfig !== undefined && output.antennaDownlinkConfig !== null) {
2638
+ if (output.antennaDownlinkConfig != null) {
2863
2639
  return {
2864
2640
  antennaDownlinkConfig: deserializeAws_restJson1AntennaDownlinkConfig(output.antennaDownlinkConfig, context),
2865
2641
  };
2866
2642
  }
2867
- if (output.antennaDownlinkDemodDecodeConfig !== undefined && output.antennaDownlinkDemodDecodeConfig !== null) {
2643
+ if (output.antennaDownlinkDemodDecodeConfig != null) {
2868
2644
  return {
2869
2645
  antennaDownlinkDemodDecodeConfig: deserializeAws_restJson1AntennaDownlinkDemodDecodeConfig(output.antennaDownlinkDemodDecodeConfig, context),
2870
2646
  };
2871
2647
  }
2872
- if (output.antennaUplinkConfig !== undefined && output.antennaUplinkConfig !== null) {
2648
+ if (output.antennaUplinkConfig != null) {
2873
2649
  return {
2874
2650
  antennaUplinkConfig: deserializeAws_restJson1AntennaUplinkConfig(output.antennaUplinkConfig, context),
2875
2651
  };
2876
2652
  }
2877
- if (output.dataflowEndpointConfig !== undefined && output.dataflowEndpointConfig !== null) {
2653
+ if (output.dataflowEndpointConfig != null) {
2878
2654
  return {
2879
2655
  dataflowEndpointConfig: deserializeAws_restJson1DataflowEndpointConfig(output.dataflowEndpointConfig, context),
2880
2656
  };
2881
2657
  }
2882
- if (output.s3RecordingConfig !== undefined && output.s3RecordingConfig !== null) {
2658
+ if (output.s3RecordingConfig != null) {
2883
2659
  return {
2884
2660
  s3RecordingConfig: deserializeAws_restJson1S3RecordingConfig(output.s3RecordingConfig, context),
2885
2661
  };
2886
2662
  }
2887
- if (output.trackingConfig !== undefined && output.trackingConfig !== null) {
2663
+ if (output.trackingConfig != null) {
2888
2664
  return {
2889
2665
  trackingConfig: deserializeAws_restJson1TrackingConfig(output.trackingConfig, context),
2890
2666
  };
2891
2667
  }
2892
- if (output.uplinkEchoConfig !== undefined && output.uplinkEchoConfig !== null) {
2668
+ if (output.uplinkEchoConfig != null) {
2893
2669
  return {
2894
2670
  uplinkEchoConfig: deserializeAws_restJson1UplinkEchoConfig(output.uplinkEchoConfig, context),
2895
2671
  };