@aws-sdk/client-groundstation 3.490.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist-cjs/GroundStation.js +1 -77
  2. package/dist-cjs/GroundStationClient.js +1 -43
  3. package/dist-cjs/commands/CancelContactCommand.js +1 -28
  4. package/dist-cjs/commands/CreateConfigCommand.js +1 -28
  5. package/dist-cjs/commands/CreateDataflowEndpointGroupCommand.js +1 -28
  6. package/dist-cjs/commands/CreateEphemerisCommand.js +1 -28
  7. package/dist-cjs/commands/CreateMissionProfileCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteConfigCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteDataflowEndpointGroupCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteEphemerisCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteMissionProfileCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeContactCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeEphemerisCommand.js +1 -28
  14. package/dist-cjs/commands/GetAgentConfigurationCommand.js +1 -28
  15. package/dist-cjs/commands/GetConfigCommand.js +1 -28
  16. package/dist-cjs/commands/GetDataflowEndpointGroupCommand.js +1 -28
  17. package/dist-cjs/commands/GetMinuteUsageCommand.js +1 -28
  18. package/dist-cjs/commands/GetMissionProfileCommand.js +1 -28
  19. package/dist-cjs/commands/GetSatelliteCommand.js +1 -28
  20. package/dist-cjs/commands/ListConfigsCommand.js +1 -28
  21. package/dist-cjs/commands/ListContactsCommand.js +1 -28
  22. package/dist-cjs/commands/ListDataflowEndpointGroupsCommand.js +1 -28
  23. package/dist-cjs/commands/ListEphemeridesCommand.js +1 -28
  24. package/dist-cjs/commands/ListGroundStationsCommand.js +1 -28
  25. package/dist-cjs/commands/ListMissionProfilesCommand.js +1 -28
  26. package/dist-cjs/commands/ListSatellitesCommand.js +1 -28
  27. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  28. package/dist-cjs/commands/RegisterAgentCommand.js +1 -28
  29. package/dist-cjs/commands/ReserveContactCommand.js +1 -28
  30. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  31. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateAgentStatusCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateConfigCommand.js +1 -28
  34. package/dist-cjs/commands/UpdateEphemerisCommand.js +1 -28
  35. package/dist-cjs/commands/UpdateMissionProfileCommand.js +1 -28
  36. package/dist-cjs/commands/index.js +1 -36
  37. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  38. package/dist-cjs/extensionConfiguration.js +1 -2
  39. package/dist-cjs/index.js +3379 -12
  40. package/dist-cjs/models/GroundStationServiceException.js +1 -12
  41. package/dist-cjs/models/index.js +1 -4
  42. package/dist-cjs/models/models_0.js +1 -223
  43. package/dist-cjs/pagination/Interfaces.js +1 -2
  44. package/dist-cjs/pagination/ListConfigsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListContactsPaginator.js +1 -7
  46. package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js +1 -7
  47. package/dist-cjs/pagination/ListEphemeridesPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListGroundStationsPaginator.js +1 -7
  49. package/dist-cjs/pagination/ListMissionProfilesPaginator.js +1 -7
  50. package/dist-cjs/pagination/ListSatellitesPaginator.js +1 -7
  51. package/dist-cjs/pagination/index.js +1 -11
  52. package/dist-cjs/protocols/Aws_restJson1.js +1 -2230
  53. package/dist-cjs/runtimeExtensions.js +1 -22
  54. package/dist-cjs/waiters/index.js +1 -4
  55. package/dist-cjs/waiters/waitForContactScheduled.js +1 -45
  56. package/package.json +41 -41
@@ -1,2230 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetSatelliteCommand = exports.de_GetMissionProfileCommand = exports.de_GetMinuteUsageCommand = exports.de_GetDataflowEndpointGroupCommand = exports.de_GetConfigCommand = exports.de_GetAgentConfigurationCommand = exports.de_DescribeEphemerisCommand = exports.de_DescribeContactCommand = exports.de_DeleteMissionProfileCommand = exports.de_DeleteEphemerisCommand = exports.de_DeleteDataflowEndpointGroupCommand = exports.de_DeleteConfigCommand = exports.de_CreateMissionProfileCommand = exports.de_CreateEphemerisCommand = exports.de_CreateDataflowEndpointGroupCommand = exports.de_CreateConfigCommand = exports.de_CancelContactCommand = exports.se_UpdateMissionProfileCommand = exports.se_UpdateEphemerisCommand = exports.se_UpdateConfigCommand = exports.se_UpdateAgentStatusCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ReserveContactCommand = exports.se_RegisterAgentCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSatellitesCommand = exports.se_ListMissionProfilesCommand = exports.se_ListGroundStationsCommand = exports.se_ListEphemeridesCommand = exports.se_ListDataflowEndpointGroupsCommand = exports.se_ListContactsCommand = exports.se_ListConfigsCommand = exports.se_GetSatelliteCommand = exports.se_GetMissionProfileCommand = exports.se_GetMinuteUsageCommand = exports.se_GetDataflowEndpointGroupCommand = exports.se_GetConfigCommand = exports.se_GetAgentConfigurationCommand = exports.se_DescribeEphemerisCommand = exports.se_DescribeContactCommand = exports.se_DeleteMissionProfileCommand = exports.se_DeleteEphemerisCommand = exports.se_DeleteDataflowEndpointGroupCommand = exports.se_DeleteConfigCommand = exports.se_CreateMissionProfileCommand = exports.se_CreateEphemerisCommand = exports.se_CreateDataflowEndpointGroupCommand = exports.se_CreateConfigCommand = exports.se_CancelContactCommand = void 0;
4
- exports.de_UpdateMissionProfileCommand = exports.de_UpdateEphemerisCommand = exports.de_UpdateConfigCommand = exports.de_UpdateAgentStatusCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ReserveContactCommand = exports.de_RegisterAgentCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSatellitesCommand = exports.de_ListMissionProfilesCommand = exports.de_ListGroundStationsCommand = exports.de_ListEphemeridesCommand = exports.de_ListDataflowEndpointGroupsCommand = exports.de_ListContactsCommand = exports.de_ListConfigsCommand = void 0;
5
- const core_1 = require("@aws-sdk/core");
6
- const core_2 = require("@smithy/core");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const GroundStationServiceException_1 = require("../models/GroundStationServiceException");
9
- const models_0_1 = require("../models/models_0");
10
- const se_CancelContactCommand = async (input, context) => {
11
- const b = (0, core_2.requestBuilder)(input, context);
12
- const headers = {};
13
- b.bp("/contact/{contactId}");
14
- b.p("contactId", () => input.contactId, "{contactId}", false);
15
- let body;
16
- b.m("DELETE").h(headers).b(body);
17
- return b.build();
18
- };
19
- exports.se_CancelContactCommand = se_CancelContactCommand;
20
- const se_CreateConfigCommand = async (input, context) => {
21
- const b = (0, core_2.requestBuilder)(input, context);
22
- const headers = {
23
- "content-type": "application/json",
24
- };
25
- b.bp("/config");
26
- let body;
27
- body = JSON.stringify((0, smithy_client_1.take)(input, {
28
- configData: (_) => se_ConfigTypeData(_, context),
29
- name: [],
30
- tags: (_) => (0, smithy_client_1._json)(_),
31
- }));
32
- b.m("POST").h(headers).b(body);
33
- return b.build();
34
- };
35
- exports.se_CreateConfigCommand = se_CreateConfigCommand;
36
- const se_CreateDataflowEndpointGroupCommand = async (input, context) => {
37
- const b = (0, core_2.requestBuilder)(input, context);
38
- const headers = {
39
- "content-type": "application/json",
40
- };
41
- b.bp("/dataflowEndpointGroup");
42
- let body;
43
- body = JSON.stringify((0, smithy_client_1.take)(input, {
44
- contactPostPassDurationSeconds: [],
45
- contactPrePassDurationSeconds: [],
46
- endpointDetails: (_) => (0, smithy_client_1._json)(_),
47
- tags: (_) => (0, smithy_client_1._json)(_),
48
- }));
49
- b.m("POST").h(headers).b(body);
50
- return b.build();
51
- };
52
- exports.se_CreateDataflowEndpointGroupCommand = se_CreateDataflowEndpointGroupCommand;
53
- const se_CreateEphemerisCommand = async (input, context) => {
54
- const b = (0, core_2.requestBuilder)(input, context);
55
- const headers = {
56
- "content-type": "application/json",
57
- };
58
- b.bp("/ephemeris");
59
- let body;
60
- body = JSON.stringify((0, smithy_client_1.take)(input, {
61
- enabled: [],
62
- ephemeris: (_) => se_EphemerisData(_, context),
63
- expirationTime: (_) => Math.round(_.getTime() / 1000),
64
- kmsKeyArn: [],
65
- name: [],
66
- priority: [],
67
- satelliteId: [],
68
- tags: (_) => (0, smithy_client_1._json)(_),
69
- }));
70
- b.m("POST").h(headers).b(body);
71
- return b.build();
72
- };
73
- exports.se_CreateEphemerisCommand = se_CreateEphemerisCommand;
74
- const se_CreateMissionProfileCommand = async (input, context) => {
75
- const b = (0, core_2.requestBuilder)(input, context);
76
- const headers = {
77
- "content-type": "application/json",
78
- };
79
- b.bp("/missionprofile");
80
- let body;
81
- body = JSON.stringify((0, smithy_client_1.take)(input, {
82
- contactPostPassDurationSeconds: [],
83
- contactPrePassDurationSeconds: [],
84
- dataflowEdges: (_) => (0, smithy_client_1._json)(_),
85
- minimumViableContactDurationSeconds: [],
86
- name: [],
87
- streamsKmsKey: (_) => (0, smithy_client_1._json)(_),
88
- streamsKmsRole: [],
89
- tags: (_) => (0, smithy_client_1._json)(_),
90
- trackingConfigArn: [],
91
- }));
92
- b.m("POST").h(headers).b(body);
93
- return b.build();
94
- };
95
- exports.se_CreateMissionProfileCommand = se_CreateMissionProfileCommand;
96
- const se_DeleteConfigCommand = async (input, context) => {
97
- const b = (0, core_2.requestBuilder)(input, context);
98
- const headers = {};
99
- b.bp("/config/{configType}/{configId}");
100
- b.p("configId", () => input.configId, "{configId}", false);
101
- b.p("configType", () => input.configType, "{configType}", false);
102
- let body;
103
- b.m("DELETE").h(headers).b(body);
104
- return b.build();
105
- };
106
- exports.se_DeleteConfigCommand = se_DeleteConfigCommand;
107
- const se_DeleteDataflowEndpointGroupCommand = async (input, context) => {
108
- const b = (0, core_2.requestBuilder)(input, context);
109
- const headers = {};
110
- b.bp("/dataflowEndpointGroup/{dataflowEndpointGroupId}");
111
- b.p("dataflowEndpointGroupId", () => input.dataflowEndpointGroupId, "{dataflowEndpointGroupId}", false);
112
- let body;
113
- b.m("DELETE").h(headers).b(body);
114
- return b.build();
115
- };
116
- exports.se_DeleteDataflowEndpointGroupCommand = se_DeleteDataflowEndpointGroupCommand;
117
- const se_DeleteEphemerisCommand = async (input, context) => {
118
- const b = (0, core_2.requestBuilder)(input, context);
119
- const headers = {};
120
- b.bp("/ephemeris/{ephemerisId}");
121
- b.p("ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
122
- let body;
123
- b.m("DELETE").h(headers).b(body);
124
- return b.build();
125
- };
126
- exports.se_DeleteEphemerisCommand = se_DeleteEphemerisCommand;
127
- const se_DeleteMissionProfileCommand = async (input, context) => {
128
- const b = (0, core_2.requestBuilder)(input, context);
129
- const headers = {};
130
- b.bp("/missionprofile/{missionProfileId}");
131
- b.p("missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
132
- let body;
133
- b.m("DELETE").h(headers).b(body);
134
- return b.build();
135
- };
136
- exports.se_DeleteMissionProfileCommand = se_DeleteMissionProfileCommand;
137
- const se_DescribeContactCommand = async (input, context) => {
138
- const b = (0, core_2.requestBuilder)(input, context);
139
- const headers = {};
140
- b.bp("/contact/{contactId}");
141
- b.p("contactId", () => input.contactId, "{contactId}", false);
142
- let body;
143
- b.m("GET").h(headers).b(body);
144
- return b.build();
145
- };
146
- exports.se_DescribeContactCommand = se_DescribeContactCommand;
147
- const se_DescribeEphemerisCommand = async (input, context) => {
148
- const b = (0, core_2.requestBuilder)(input, context);
149
- const headers = {};
150
- b.bp("/ephemeris/{ephemerisId}");
151
- b.p("ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
152
- let body;
153
- b.m("GET").h(headers).b(body);
154
- return b.build();
155
- };
156
- exports.se_DescribeEphemerisCommand = se_DescribeEphemerisCommand;
157
- const se_GetAgentConfigurationCommand = async (input, context) => {
158
- const b = (0, core_2.requestBuilder)(input, context);
159
- const headers = {};
160
- b.bp("/agent/{agentId}/configuration");
161
- b.p("agentId", () => input.agentId, "{agentId}", false);
162
- let body;
163
- b.m("GET").h(headers).b(body);
164
- return b.build();
165
- };
166
- exports.se_GetAgentConfigurationCommand = se_GetAgentConfigurationCommand;
167
- const se_GetConfigCommand = async (input, context) => {
168
- const b = (0, core_2.requestBuilder)(input, context);
169
- const headers = {};
170
- b.bp("/config/{configType}/{configId}");
171
- b.p("configId", () => input.configId, "{configId}", false);
172
- b.p("configType", () => input.configType, "{configType}", false);
173
- let body;
174
- b.m("GET").h(headers).b(body);
175
- return b.build();
176
- };
177
- exports.se_GetConfigCommand = se_GetConfigCommand;
178
- const se_GetDataflowEndpointGroupCommand = async (input, context) => {
179
- const b = (0, core_2.requestBuilder)(input, context);
180
- const headers = {};
181
- b.bp("/dataflowEndpointGroup/{dataflowEndpointGroupId}");
182
- b.p("dataflowEndpointGroupId", () => input.dataflowEndpointGroupId, "{dataflowEndpointGroupId}", false);
183
- let body;
184
- b.m("GET").h(headers).b(body);
185
- return b.build();
186
- };
187
- exports.se_GetDataflowEndpointGroupCommand = se_GetDataflowEndpointGroupCommand;
188
- const se_GetMinuteUsageCommand = async (input, context) => {
189
- const b = (0, core_2.requestBuilder)(input, context);
190
- const headers = {
191
- "content-type": "application/json",
192
- };
193
- b.bp("/minute-usage");
194
- let body;
195
- body = JSON.stringify((0, smithy_client_1.take)(input, {
196
- month: [],
197
- year: [],
198
- }));
199
- b.m("POST").h(headers).b(body);
200
- return b.build();
201
- };
202
- exports.se_GetMinuteUsageCommand = se_GetMinuteUsageCommand;
203
- const se_GetMissionProfileCommand = async (input, context) => {
204
- const b = (0, core_2.requestBuilder)(input, context);
205
- const headers = {};
206
- b.bp("/missionprofile/{missionProfileId}");
207
- b.p("missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
208
- let body;
209
- b.m("GET").h(headers).b(body);
210
- return b.build();
211
- };
212
- exports.se_GetMissionProfileCommand = se_GetMissionProfileCommand;
213
- const se_GetSatelliteCommand = async (input, context) => {
214
- const b = (0, core_2.requestBuilder)(input, context);
215
- const headers = {};
216
- b.bp("/satellite/{satelliteId}");
217
- b.p("satelliteId", () => input.satelliteId, "{satelliteId}", false);
218
- let body;
219
- b.m("GET").h(headers).b(body);
220
- return b.build();
221
- };
222
- exports.se_GetSatelliteCommand = se_GetSatelliteCommand;
223
- const se_ListConfigsCommand = async (input, context) => {
224
- const b = (0, core_2.requestBuilder)(input, context);
225
- const headers = {};
226
- b.bp("/config");
227
- const query = (0, smithy_client_1.map)({
228
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
229
- [_nT]: [, input[_nT]],
230
- });
231
- let body;
232
- b.m("GET").h(headers).q(query).b(body);
233
- return b.build();
234
- };
235
- exports.se_ListConfigsCommand = se_ListConfigsCommand;
236
- const se_ListContactsCommand = async (input, context) => {
237
- const b = (0, core_2.requestBuilder)(input, context);
238
- const headers = {
239
- "content-type": "application/json",
240
- };
241
- b.bp("/contacts");
242
- let body;
243
- body = JSON.stringify((0, smithy_client_1.take)(input, {
244
- endTime: (_) => Math.round(_.getTime() / 1000),
245
- groundStation: [],
246
- maxResults: [],
247
- missionProfileArn: [],
248
- nextToken: [],
249
- satelliteArn: [],
250
- startTime: (_) => Math.round(_.getTime() / 1000),
251
- statusList: (_) => (0, smithy_client_1._json)(_),
252
- }));
253
- b.m("POST").h(headers).b(body);
254
- return b.build();
255
- };
256
- exports.se_ListContactsCommand = se_ListContactsCommand;
257
- const se_ListDataflowEndpointGroupsCommand = async (input, context) => {
258
- const b = (0, core_2.requestBuilder)(input, context);
259
- const headers = {};
260
- b.bp("/dataflowEndpointGroup");
261
- const query = (0, smithy_client_1.map)({
262
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
263
- [_nT]: [, input[_nT]],
264
- });
265
- let body;
266
- b.m("GET").h(headers).q(query).b(body);
267
- return b.build();
268
- };
269
- exports.se_ListDataflowEndpointGroupsCommand = se_ListDataflowEndpointGroupsCommand;
270
- const se_ListEphemeridesCommand = async (input, context) => {
271
- const b = (0, core_2.requestBuilder)(input, context);
272
- const headers = {
273
- "content-type": "application/json",
274
- };
275
- b.bp("/ephemerides");
276
- const query = (0, smithy_client_1.map)({
277
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
278
- [_nT]: [, input[_nT]],
279
- });
280
- let body;
281
- body = JSON.stringify((0, smithy_client_1.take)(input, {
282
- endTime: (_) => Math.round(_.getTime() / 1000),
283
- satelliteId: [],
284
- startTime: (_) => Math.round(_.getTime() / 1000),
285
- statusList: (_) => (0, smithy_client_1._json)(_),
286
- }));
287
- b.m("POST").h(headers).q(query).b(body);
288
- return b.build();
289
- };
290
- exports.se_ListEphemeridesCommand = se_ListEphemeridesCommand;
291
- const se_ListGroundStationsCommand = async (input, context) => {
292
- const b = (0, core_2.requestBuilder)(input, context);
293
- const headers = {};
294
- b.bp("/groundstation");
295
- const query = (0, smithy_client_1.map)({
296
- [_sI]: [, input[_sI]],
297
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
298
- [_nT]: [, input[_nT]],
299
- });
300
- let body;
301
- b.m("GET").h(headers).q(query).b(body);
302
- return b.build();
303
- };
304
- exports.se_ListGroundStationsCommand = se_ListGroundStationsCommand;
305
- const se_ListMissionProfilesCommand = async (input, context) => {
306
- const b = (0, core_2.requestBuilder)(input, context);
307
- const headers = {};
308
- b.bp("/missionprofile");
309
- const query = (0, smithy_client_1.map)({
310
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
311
- [_nT]: [, input[_nT]],
312
- });
313
- let body;
314
- b.m("GET").h(headers).q(query).b(body);
315
- return b.build();
316
- };
317
- exports.se_ListMissionProfilesCommand = se_ListMissionProfilesCommand;
318
- const se_ListSatellitesCommand = async (input, context) => {
319
- const b = (0, core_2.requestBuilder)(input, context);
320
- const headers = {};
321
- b.bp("/satellite");
322
- const query = (0, smithy_client_1.map)({
323
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
324
- [_nT]: [, input[_nT]],
325
- });
326
- let body;
327
- b.m("GET").h(headers).q(query).b(body);
328
- return b.build();
329
- };
330
- exports.se_ListSatellitesCommand = se_ListSatellitesCommand;
331
- const se_ListTagsForResourceCommand = async (input, context) => {
332
- const b = (0, core_2.requestBuilder)(input, context);
333
- const headers = {};
334
- b.bp("/tags/{resourceArn}");
335
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
336
- let body;
337
- b.m("GET").h(headers).b(body);
338
- return b.build();
339
- };
340
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
341
- const se_RegisterAgentCommand = async (input, context) => {
342
- const b = (0, core_2.requestBuilder)(input, context);
343
- const headers = {
344
- "content-type": "application/json",
345
- };
346
- b.bp("/agent");
347
- let body;
348
- body = JSON.stringify((0, smithy_client_1.take)(input, {
349
- agentDetails: (_) => (0, smithy_client_1._json)(_),
350
- discoveryData: (_) => (0, smithy_client_1._json)(_),
351
- }));
352
- b.m("POST").h(headers).b(body);
353
- return b.build();
354
- };
355
- exports.se_RegisterAgentCommand = se_RegisterAgentCommand;
356
- const se_ReserveContactCommand = async (input, context) => {
357
- const b = (0, core_2.requestBuilder)(input, context);
358
- const headers = {
359
- "content-type": "application/json",
360
- };
361
- b.bp("/contact");
362
- let body;
363
- body = JSON.stringify((0, smithy_client_1.take)(input, {
364
- endTime: (_) => Math.round(_.getTime() / 1000),
365
- groundStation: [],
366
- missionProfileArn: [],
367
- satelliteArn: [],
368
- startTime: (_) => Math.round(_.getTime() / 1000),
369
- tags: (_) => (0, smithy_client_1._json)(_),
370
- }));
371
- b.m("POST").h(headers).b(body);
372
- return b.build();
373
- };
374
- exports.se_ReserveContactCommand = se_ReserveContactCommand;
375
- const se_TagResourceCommand = async (input, context) => {
376
- const b = (0, core_2.requestBuilder)(input, context);
377
- const headers = {
378
- "content-type": "application/json",
379
- };
380
- b.bp("/tags/{resourceArn}");
381
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
382
- let body;
383
- body = JSON.stringify((0, smithy_client_1.take)(input, {
384
- tags: (_) => (0, smithy_client_1._json)(_),
385
- }));
386
- b.m("POST").h(headers).b(body);
387
- return b.build();
388
- };
389
- exports.se_TagResourceCommand = se_TagResourceCommand;
390
- const se_UntagResourceCommand = async (input, context) => {
391
- const b = (0, core_2.requestBuilder)(input, context);
392
- const headers = {};
393
- b.bp("/tags/{resourceArn}");
394
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
395
- const query = (0, smithy_client_1.map)({
396
- [_tK]: [
397
- (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
398
- () => (input[_tK] || []).map((_entry) => _entry),
399
- ],
400
- });
401
- let body;
402
- b.m("DELETE").h(headers).q(query).b(body);
403
- return b.build();
404
- };
405
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
406
- const se_UpdateAgentStatusCommand = async (input, context) => {
407
- const b = (0, core_2.requestBuilder)(input, context);
408
- const headers = {
409
- "content-type": "application/json",
410
- };
411
- b.bp("/agent/{agentId}");
412
- b.p("agentId", () => input.agentId, "{agentId}", false);
413
- let body;
414
- body = JSON.stringify((0, smithy_client_1.take)(input, {
415
- aggregateStatus: (_) => (0, smithy_client_1._json)(_),
416
- componentStatuses: (_) => (0, smithy_client_1._json)(_),
417
- taskId: [],
418
- }));
419
- b.m("PUT").h(headers).b(body);
420
- return b.build();
421
- };
422
- exports.se_UpdateAgentStatusCommand = se_UpdateAgentStatusCommand;
423
- const se_UpdateConfigCommand = async (input, context) => {
424
- const b = (0, core_2.requestBuilder)(input, context);
425
- const headers = {
426
- "content-type": "application/json",
427
- };
428
- b.bp("/config/{configType}/{configId}");
429
- b.p("configId", () => input.configId, "{configId}", false);
430
- b.p("configType", () => input.configType, "{configType}", false);
431
- let body;
432
- body = JSON.stringify((0, smithy_client_1.take)(input, {
433
- configData: (_) => se_ConfigTypeData(_, context),
434
- name: [],
435
- }));
436
- b.m("PUT").h(headers).b(body);
437
- return b.build();
438
- };
439
- exports.se_UpdateConfigCommand = se_UpdateConfigCommand;
440
- const se_UpdateEphemerisCommand = async (input, context) => {
441
- const b = (0, core_2.requestBuilder)(input, context);
442
- const headers = {
443
- "content-type": "application/json",
444
- };
445
- b.bp("/ephemeris/{ephemerisId}");
446
- b.p("ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
447
- let body;
448
- body = JSON.stringify((0, smithy_client_1.take)(input, {
449
- enabled: [],
450
- name: [],
451
- priority: [],
452
- }));
453
- b.m("PUT").h(headers).b(body);
454
- return b.build();
455
- };
456
- exports.se_UpdateEphemerisCommand = se_UpdateEphemerisCommand;
457
- const se_UpdateMissionProfileCommand = async (input, context) => {
458
- const b = (0, core_2.requestBuilder)(input, context);
459
- const headers = {
460
- "content-type": "application/json",
461
- };
462
- b.bp("/missionprofile/{missionProfileId}");
463
- b.p("missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
464
- let body;
465
- body = JSON.stringify((0, smithy_client_1.take)(input, {
466
- contactPostPassDurationSeconds: [],
467
- contactPrePassDurationSeconds: [],
468
- dataflowEdges: (_) => (0, smithy_client_1._json)(_),
469
- minimumViableContactDurationSeconds: [],
470
- name: [],
471
- streamsKmsKey: (_) => (0, smithy_client_1._json)(_),
472
- streamsKmsRole: [],
473
- trackingConfigArn: [],
474
- }));
475
- b.m("PUT").h(headers).b(body);
476
- return b.build();
477
- };
478
- exports.se_UpdateMissionProfileCommand = se_UpdateMissionProfileCommand;
479
- const de_CancelContactCommand = async (output, context) => {
480
- if (output.statusCode !== 200 && output.statusCode >= 300) {
481
- return de_CancelContactCommandError(output, context);
482
- }
483
- const contents = (0, smithy_client_1.map)({
484
- $metadata: deserializeMetadata(output),
485
- });
486
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
487
- const doc = (0, smithy_client_1.take)(data, {
488
- contactId: smithy_client_1.expectString,
489
- });
490
- Object.assign(contents, doc);
491
- return contents;
492
- };
493
- exports.de_CancelContactCommand = de_CancelContactCommand;
494
- const de_CancelContactCommandError = async (output, context) => {
495
- const parsedOutput = {
496
- ...output,
497
- body: await parseErrorBody(output.body, context),
498
- };
499
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
500
- switch (errorCode) {
501
- case "DependencyException":
502
- case "com.amazonaws.groundstation#DependencyException":
503
- throw await de_DependencyExceptionRes(parsedOutput, context);
504
- case "InvalidParameterException":
505
- case "com.amazonaws.groundstation#InvalidParameterException":
506
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
507
- case "ResourceNotFoundException":
508
- case "com.amazonaws.groundstation#ResourceNotFoundException":
509
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
510
- default:
511
- const parsedBody = parsedOutput.body;
512
- return throwDefaultError({
513
- output,
514
- parsedBody,
515
- errorCode,
516
- });
517
- }
518
- };
519
- const de_CreateConfigCommand = async (output, context) => {
520
- if (output.statusCode !== 200 && output.statusCode >= 300) {
521
- return de_CreateConfigCommandError(output, context);
522
- }
523
- const contents = (0, smithy_client_1.map)({
524
- $metadata: deserializeMetadata(output),
525
- });
526
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
527
- const doc = (0, smithy_client_1.take)(data, {
528
- configArn: smithy_client_1.expectString,
529
- configId: smithy_client_1.expectString,
530
- configType: smithy_client_1.expectString,
531
- });
532
- Object.assign(contents, doc);
533
- return contents;
534
- };
535
- exports.de_CreateConfigCommand = de_CreateConfigCommand;
536
- const de_CreateConfigCommandError = async (output, context) => {
537
- const parsedOutput = {
538
- ...output,
539
- body: await parseErrorBody(output.body, context),
540
- };
541
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
542
- switch (errorCode) {
543
- case "DependencyException":
544
- case "com.amazonaws.groundstation#DependencyException":
545
- throw await de_DependencyExceptionRes(parsedOutput, context);
546
- case "InvalidParameterException":
547
- case "com.amazonaws.groundstation#InvalidParameterException":
548
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
549
- case "ResourceLimitExceededException":
550
- case "com.amazonaws.groundstation#ResourceLimitExceededException":
551
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
552
- case "ResourceNotFoundException":
553
- case "com.amazonaws.groundstation#ResourceNotFoundException":
554
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
555
- default:
556
- const parsedBody = parsedOutput.body;
557
- return throwDefaultError({
558
- output,
559
- parsedBody,
560
- errorCode,
561
- });
562
- }
563
- };
564
- const de_CreateDataflowEndpointGroupCommand = async (output, context) => {
565
- if (output.statusCode !== 200 && output.statusCode >= 300) {
566
- return de_CreateDataflowEndpointGroupCommandError(output, context);
567
- }
568
- const contents = (0, smithy_client_1.map)({
569
- $metadata: deserializeMetadata(output),
570
- });
571
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
572
- const doc = (0, smithy_client_1.take)(data, {
573
- dataflowEndpointGroupId: smithy_client_1.expectString,
574
- });
575
- Object.assign(contents, doc);
576
- return contents;
577
- };
578
- exports.de_CreateDataflowEndpointGroupCommand = de_CreateDataflowEndpointGroupCommand;
579
- const de_CreateDataflowEndpointGroupCommandError = async (output, context) => {
580
- const parsedOutput = {
581
- ...output,
582
- body: await parseErrorBody(output.body, context),
583
- };
584
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
585
- switch (errorCode) {
586
- case "DependencyException":
587
- case "com.amazonaws.groundstation#DependencyException":
588
- throw await de_DependencyExceptionRes(parsedOutput, context);
589
- case "InvalidParameterException":
590
- case "com.amazonaws.groundstation#InvalidParameterException":
591
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
592
- case "ResourceNotFoundException":
593
- case "com.amazonaws.groundstation#ResourceNotFoundException":
594
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
595
- default:
596
- const parsedBody = parsedOutput.body;
597
- return throwDefaultError({
598
- output,
599
- parsedBody,
600
- errorCode,
601
- });
602
- }
603
- };
604
- const de_CreateEphemerisCommand = async (output, context) => {
605
- if (output.statusCode !== 200 && output.statusCode >= 300) {
606
- return de_CreateEphemerisCommandError(output, context);
607
- }
608
- const contents = (0, smithy_client_1.map)({
609
- $metadata: deserializeMetadata(output),
610
- });
611
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
612
- const doc = (0, smithy_client_1.take)(data, {
613
- ephemerisId: smithy_client_1.expectString,
614
- });
615
- Object.assign(contents, doc);
616
- return contents;
617
- };
618
- exports.de_CreateEphemerisCommand = de_CreateEphemerisCommand;
619
- const de_CreateEphemerisCommandError = async (output, context) => {
620
- const parsedOutput = {
621
- ...output,
622
- body: await parseErrorBody(output.body, context),
623
- };
624
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
625
- switch (errorCode) {
626
- case "DependencyException":
627
- case "com.amazonaws.groundstation#DependencyException":
628
- throw await de_DependencyExceptionRes(parsedOutput, context);
629
- case "InvalidParameterException":
630
- case "com.amazonaws.groundstation#InvalidParameterException":
631
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
632
- case "ResourceNotFoundException":
633
- case "com.amazonaws.groundstation#ResourceNotFoundException":
634
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
635
- default:
636
- const parsedBody = parsedOutput.body;
637
- return throwDefaultError({
638
- output,
639
- parsedBody,
640
- errorCode,
641
- });
642
- }
643
- };
644
- const de_CreateMissionProfileCommand = async (output, context) => {
645
- if (output.statusCode !== 200 && output.statusCode >= 300) {
646
- return de_CreateMissionProfileCommandError(output, context);
647
- }
648
- const contents = (0, smithy_client_1.map)({
649
- $metadata: deserializeMetadata(output),
650
- });
651
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
652
- const doc = (0, smithy_client_1.take)(data, {
653
- missionProfileId: smithy_client_1.expectString,
654
- });
655
- Object.assign(contents, doc);
656
- return contents;
657
- };
658
- exports.de_CreateMissionProfileCommand = de_CreateMissionProfileCommand;
659
- const de_CreateMissionProfileCommandError = async (output, context) => {
660
- const parsedOutput = {
661
- ...output,
662
- body: await parseErrorBody(output.body, context),
663
- };
664
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
665
- switch (errorCode) {
666
- case "DependencyException":
667
- case "com.amazonaws.groundstation#DependencyException":
668
- throw await de_DependencyExceptionRes(parsedOutput, context);
669
- case "InvalidParameterException":
670
- case "com.amazonaws.groundstation#InvalidParameterException":
671
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
672
- case "ResourceNotFoundException":
673
- case "com.amazonaws.groundstation#ResourceNotFoundException":
674
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
675
- default:
676
- const parsedBody = parsedOutput.body;
677
- return throwDefaultError({
678
- output,
679
- parsedBody,
680
- errorCode,
681
- });
682
- }
683
- };
684
- const de_DeleteConfigCommand = async (output, context) => {
685
- if (output.statusCode !== 200 && output.statusCode >= 300) {
686
- return de_DeleteConfigCommandError(output, context);
687
- }
688
- const contents = (0, smithy_client_1.map)({
689
- $metadata: deserializeMetadata(output),
690
- });
691
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
692
- const doc = (0, smithy_client_1.take)(data, {
693
- configArn: smithy_client_1.expectString,
694
- configId: smithy_client_1.expectString,
695
- configType: smithy_client_1.expectString,
696
- });
697
- Object.assign(contents, doc);
698
- return contents;
699
- };
700
- exports.de_DeleteConfigCommand = de_DeleteConfigCommand;
701
- const de_DeleteConfigCommandError = async (output, context) => {
702
- const parsedOutput = {
703
- ...output,
704
- body: await parseErrorBody(output.body, context),
705
- };
706
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
707
- switch (errorCode) {
708
- case "DependencyException":
709
- case "com.amazonaws.groundstation#DependencyException":
710
- throw await de_DependencyExceptionRes(parsedOutput, context);
711
- case "InvalidParameterException":
712
- case "com.amazonaws.groundstation#InvalidParameterException":
713
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
714
- case "ResourceNotFoundException":
715
- case "com.amazonaws.groundstation#ResourceNotFoundException":
716
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
717
- default:
718
- const parsedBody = parsedOutput.body;
719
- return throwDefaultError({
720
- output,
721
- parsedBody,
722
- errorCode,
723
- });
724
- }
725
- };
726
- const de_DeleteDataflowEndpointGroupCommand = async (output, context) => {
727
- if (output.statusCode !== 200 && output.statusCode >= 300) {
728
- return de_DeleteDataflowEndpointGroupCommandError(output, context);
729
- }
730
- const contents = (0, smithy_client_1.map)({
731
- $metadata: deserializeMetadata(output),
732
- });
733
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
734
- const doc = (0, smithy_client_1.take)(data, {
735
- dataflowEndpointGroupId: smithy_client_1.expectString,
736
- });
737
- Object.assign(contents, doc);
738
- return contents;
739
- };
740
- exports.de_DeleteDataflowEndpointGroupCommand = de_DeleteDataflowEndpointGroupCommand;
741
- const de_DeleteDataflowEndpointGroupCommandError = async (output, context) => {
742
- const parsedOutput = {
743
- ...output,
744
- body: await parseErrorBody(output.body, context),
745
- };
746
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
747
- switch (errorCode) {
748
- case "DependencyException":
749
- case "com.amazonaws.groundstation#DependencyException":
750
- throw await de_DependencyExceptionRes(parsedOutput, context);
751
- case "InvalidParameterException":
752
- case "com.amazonaws.groundstation#InvalidParameterException":
753
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
754
- case "ResourceNotFoundException":
755
- case "com.amazonaws.groundstation#ResourceNotFoundException":
756
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
757
- default:
758
- const parsedBody = parsedOutput.body;
759
- return throwDefaultError({
760
- output,
761
- parsedBody,
762
- errorCode,
763
- });
764
- }
765
- };
766
- const de_DeleteEphemerisCommand = async (output, context) => {
767
- if (output.statusCode !== 200 && output.statusCode >= 300) {
768
- return de_DeleteEphemerisCommandError(output, context);
769
- }
770
- const contents = (0, smithy_client_1.map)({
771
- $metadata: deserializeMetadata(output),
772
- });
773
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
774
- const doc = (0, smithy_client_1.take)(data, {
775
- ephemerisId: smithy_client_1.expectString,
776
- });
777
- Object.assign(contents, doc);
778
- return contents;
779
- };
780
- exports.de_DeleteEphemerisCommand = de_DeleteEphemerisCommand;
781
- const de_DeleteEphemerisCommandError = async (output, context) => {
782
- const parsedOutput = {
783
- ...output,
784
- body: await parseErrorBody(output.body, context),
785
- };
786
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
787
- switch (errorCode) {
788
- case "DependencyException":
789
- case "com.amazonaws.groundstation#DependencyException":
790
- throw await de_DependencyExceptionRes(parsedOutput, context);
791
- case "InvalidParameterException":
792
- case "com.amazonaws.groundstation#InvalidParameterException":
793
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
794
- case "ResourceNotFoundException":
795
- case "com.amazonaws.groundstation#ResourceNotFoundException":
796
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
797
- default:
798
- const parsedBody = parsedOutput.body;
799
- return throwDefaultError({
800
- output,
801
- parsedBody,
802
- errorCode,
803
- });
804
- }
805
- };
806
- const de_DeleteMissionProfileCommand = async (output, context) => {
807
- if (output.statusCode !== 200 && output.statusCode >= 300) {
808
- return de_DeleteMissionProfileCommandError(output, context);
809
- }
810
- const contents = (0, smithy_client_1.map)({
811
- $metadata: deserializeMetadata(output),
812
- });
813
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
814
- const doc = (0, smithy_client_1.take)(data, {
815
- missionProfileId: smithy_client_1.expectString,
816
- });
817
- Object.assign(contents, doc);
818
- return contents;
819
- };
820
- exports.de_DeleteMissionProfileCommand = de_DeleteMissionProfileCommand;
821
- const de_DeleteMissionProfileCommandError = async (output, context) => {
822
- const parsedOutput = {
823
- ...output,
824
- body: await parseErrorBody(output.body, context),
825
- };
826
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
827
- switch (errorCode) {
828
- case "DependencyException":
829
- case "com.amazonaws.groundstation#DependencyException":
830
- throw await de_DependencyExceptionRes(parsedOutput, context);
831
- case "InvalidParameterException":
832
- case "com.amazonaws.groundstation#InvalidParameterException":
833
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
834
- case "ResourceNotFoundException":
835
- case "com.amazonaws.groundstation#ResourceNotFoundException":
836
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
837
- default:
838
- const parsedBody = parsedOutput.body;
839
- return throwDefaultError({
840
- output,
841
- parsedBody,
842
- errorCode,
843
- });
844
- }
845
- };
846
- const de_DescribeContactCommand = async (output, context) => {
847
- if (output.statusCode !== 200 && output.statusCode >= 300) {
848
- return de_DescribeContactCommandError(output, context);
849
- }
850
- const contents = (0, smithy_client_1.map)({
851
- $metadata: deserializeMetadata(output),
852
- });
853
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
854
- const doc = (0, smithy_client_1.take)(data, {
855
- contactId: smithy_client_1.expectString,
856
- contactStatus: smithy_client_1.expectString,
857
- dataflowList: smithy_client_1._json,
858
- endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
859
- errorMessage: smithy_client_1.expectString,
860
- groundStation: smithy_client_1.expectString,
861
- maximumElevation: (_) => de_Elevation(_, context),
862
- missionProfileArn: smithy_client_1.expectString,
863
- postPassEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
864
- prePassStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
865
- region: smithy_client_1.expectString,
866
- satelliteArn: smithy_client_1.expectString,
867
- startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
868
- tags: smithy_client_1._json,
869
- });
870
- Object.assign(contents, doc);
871
- return contents;
872
- };
873
- exports.de_DescribeContactCommand = de_DescribeContactCommand;
874
- const de_DescribeContactCommandError = async (output, context) => {
875
- const parsedOutput = {
876
- ...output,
877
- body: await parseErrorBody(output.body, context),
878
- };
879
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
880
- switch (errorCode) {
881
- case "DependencyException":
882
- case "com.amazonaws.groundstation#DependencyException":
883
- throw await de_DependencyExceptionRes(parsedOutput, context);
884
- case "InvalidParameterException":
885
- case "com.amazonaws.groundstation#InvalidParameterException":
886
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
887
- case "ResourceNotFoundException":
888
- case "com.amazonaws.groundstation#ResourceNotFoundException":
889
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
890
- default:
891
- const parsedBody = parsedOutput.body;
892
- return throwDefaultError({
893
- output,
894
- parsedBody,
895
- errorCode,
896
- });
897
- }
898
- };
899
- const de_DescribeEphemerisCommand = async (output, context) => {
900
- if (output.statusCode !== 200 && output.statusCode >= 300) {
901
- return de_DescribeEphemerisCommandError(output, context);
902
- }
903
- const contents = (0, smithy_client_1.map)({
904
- $metadata: deserializeMetadata(output),
905
- });
906
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
907
- const doc = (0, smithy_client_1.take)(data, {
908
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
909
- enabled: smithy_client_1.expectBoolean,
910
- ephemerisId: smithy_client_1.expectString,
911
- invalidReason: smithy_client_1.expectString,
912
- name: smithy_client_1.expectString,
913
- priority: smithy_client_1.expectInt32,
914
- satelliteId: smithy_client_1.expectString,
915
- status: smithy_client_1.expectString,
916
- suppliedData: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
917
- tags: smithy_client_1._json,
918
- });
919
- Object.assign(contents, doc);
920
- return contents;
921
- };
922
- exports.de_DescribeEphemerisCommand = de_DescribeEphemerisCommand;
923
- const de_DescribeEphemerisCommandError = async (output, context) => {
924
- const parsedOutput = {
925
- ...output,
926
- body: await parseErrorBody(output.body, context),
927
- };
928
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
929
- switch (errorCode) {
930
- case "DependencyException":
931
- case "com.amazonaws.groundstation#DependencyException":
932
- throw await de_DependencyExceptionRes(parsedOutput, context);
933
- case "InvalidParameterException":
934
- case "com.amazonaws.groundstation#InvalidParameterException":
935
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
936
- case "ResourceNotFoundException":
937
- case "com.amazonaws.groundstation#ResourceNotFoundException":
938
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
939
- default:
940
- const parsedBody = parsedOutput.body;
941
- return throwDefaultError({
942
- output,
943
- parsedBody,
944
- errorCode,
945
- });
946
- }
947
- };
948
- const de_GetAgentConfigurationCommand = async (output, context) => {
949
- if (output.statusCode !== 200 && output.statusCode >= 300) {
950
- return de_GetAgentConfigurationCommandError(output, context);
951
- }
952
- const contents = (0, smithy_client_1.map)({
953
- $metadata: deserializeMetadata(output),
954
- });
955
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
956
- const doc = (0, smithy_client_1.take)(data, {
957
- agentId: smithy_client_1.expectString,
958
- taskingDocument: smithy_client_1.expectString,
959
- });
960
- Object.assign(contents, doc);
961
- return contents;
962
- };
963
- exports.de_GetAgentConfigurationCommand = de_GetAgentConfigurationCommand;
964
- const de_GetAgentConfigurationCommandError = async (output, context) => {
965
- const parsedOutput = {
966
- ...output,
967
- body: await parseErrorBody(output.body, context),
968
- };
969
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
970
- switch (errorCode) {
971
- case "DependencyException":
972
- case "com.amazonaws.groundstation#DependencyException":
973
- throw await de_DependencyExceptionRes(parsedOutput, context);
974
- case "InvalidParameterException":
975
- case "com.amazonaws.groundstation#InvalidParameterException":
976
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
977
- case "ResourceNotFoundException":
978
- case "com.amazonaws.groundstation#ResourceNotFoundException":
979
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
980
- default:
981
- const parsedBody = parsedOutput.body;
982
- return throwDefaultError({
983
- output,
984
- parsedBody,
985
- errorCode,
986
- });
987
- }
988
- };
989
- const de_GetConfigCommand = async (output, context) => {
990
- if (output.statusCode !== 200 && output.statusCode >= 300) {
991
- return de_GetConfigCommandError(output, context);
992
- }
993
- const contents = (0, smithy_client_1.map)({
994
- $metadata: deserializeMetadata(output),
995
- });
996
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
997
- const doc = (0, smithy_client_1.take)(data, {
998
- configArn: smithy_client_1.expectString,
999
- configData: (_) => de_ConfigTypeData((0, core_1.awsExpectUnion)(_), context),
1000
- configId: smithy_client_1.expectString,
1001
- configType: smithy_client_1.expectString,
1002
- name: smithy_client_1.expectString,
1003
- tags: smithy_client_1._json,
1004
- });
1005
- Object.assign(contents, doc);
1006
- return contents;
1007
- };
1008
- exports.de_GetConfigCommand = de_GetConfigCommand;
1009
- const de_GetConfigCommandError = async (output, context) => {
1010
- const parsedOutput = {
1011
- ...output,
1012
- body: await parseErrorBody(output.body, context),
1013
- };
1014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
- switch (errorCode) {
1016
- case "DependencyException":
1017
- case "com.amazonaws.groundstation#DependencyException":
1018
- throw await de_DependencyExceptionRes(parsedOutput, context);
1019
- case "InvalidParameterException":
1020
- case "com.amazonaws.groundstation#InvalidParameterException":
1021
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1022
- case "ResourceNotFoundException":
1023
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1024
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1025
- default:
1026
- const parsedBody = parsedOutput.body;
1027
- return throwDefaultError({
1028
- output,
1029
- parsedBody,
1030
- errorCode,
1031
- });
1032
- }
1033
- };
1034
- const de_GetDataflowEndpointGroupCommand = async (output, context) => {
1035
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1036
- return de_GetDataflowEndpointGroupCommandError(output, context);
1037
- }
1038
- const contents = (0, smithy_client_1.map)({
1039
- $metadata: deserializeMetadata(output),
1040
- });
1041
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1042
- const doc = (0, smithy_client_1.take)(data, {
1043
- contactPostPassDurationSeconds: smithy_client_1.expectInt32,
1044
- contactPrePassDurationSeconds: smithy_client_1.expectInt32,
1045
- dataflowEndpointGroupArn: smithy_client_1.expectString,
1046
- dataflowEndpointGroupId: smithy_client_1.expectString,
1047
- endpointsDetails: smithy_client_1._json,
1048
- tags: smithy_client_1._json,
1049
- });
1050
- Object.assign(contents, doc);
1051
- return contents;
1052
- };
1053
- exports.de_GetDataflowEndpointGroupCommand = de_GetDataflowEndpointGroupCommand;
1054
- const de_GetDataflowEndpointGroupCommandError = async (output, context) => {
1055
- const parsedOutput = {
1056
- ...output,
1057
- body: await parseErrorBody(output.body, context),
1058
- };
1059
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
- switch (errorCode) {
1061
- case "DependencyException":
1062
- case "com.amazonaws.groundstation#DependencyException":
1063
- throw await de_DependencyExceptionRes(parsedOutput, context);
1064
- case "InvalidParameterException":
1065
- case "com.amazonaws.groundstation#InvalidParameterException":
1066
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1067
- case "ResourceNotFoundException":
1068
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1069
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1070
- default:
1071
- const parsedBody = parsedOutput.body;
1072
- return throwDefaultError({
1073
- output,
1074
- parsedBody,
1075
- errorCode,
1076
- });
1077
- }
1078
- };
1079
- const de_GetMinuteUsageCommand = async (output, context) => {
1080
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1081
- return de_GetMinuteUsageCommandError(output, context);
1082
- }
1083
- const contents = (0, smithy_client_1.map)({
1084
- $metadata: deserializeMetadata(output),
1085
- });
1086
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1087
- const doc = (0, smithy_client_1.take)(data, {
1088
- estimatedMinutesRemaining: smithy_client_1.expectInt32,
1089
- isReservedMinutesCustomer: smithy_client_1.expectBoolean,
1090
- totalReservedMinuteAllocation: smithy_client_1.expectInt32,
1091
- totalScheduledMinutes: smithy_client_1.expectInt32,
1092
- upcomingMinutesScheduled: smithy_client_1.expectInt32,
1093
- });
1094
- Object.assign(contents, doc);
1095
- return contents;
1096
- };
1097
- exports.de_GetMinuteUsageCommand = de_GetMinuteUsageCommand;
1098
- const de_GetMinuteUsageCommandError = async (output, context) => {
1099
- const parsedOutput = {
1100
- ...output,
1101
- body: await parseErrorBody(output.body, context),
1102
- };
1103
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1104
- switch (errorCode) {
1105
- case "DependencyException":
1106
- case "com.amazonaws.groundstation#DependencyException":
1107
- throw await de_DependencyExceptionRes(parsedOutput, context);
1108
- case "InvalidParameterException":
1109
- case "com.amazonaws.groundstation#InvalidParameterException":
1110
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1111
- case "ResourceNotFoundException":
1112
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1113
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1114
- default:
1115
- const parsedBody = parsedOutput.body;
1116
- return throwDefaultError({
1117
- output,
1118
- parsedBody,
1119
- errorCode,
1120
- });
1121
- }
1122
- };
1123
- const de_GetMissionProfileCommand = async (output, context) => {
1124
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1125
- return de_GetMissionProfileCommandError(output, context);
1126
- }
1127
- const contents = (0, smithy_client_1.map)({
1128
- $metadata: deserializeMetadata(output),
1129
- });
1130
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1131
- const doc = (0, smithy_client_1.take)(data, {
1132
- contactPostPassDurationSeconds: smithy_client_1.expectInt32,
1133
- contactPrePassDurationSeconds: smithy_client_1.expectInt32,
1134
- dataflowEdges: smithy_client_1._json,
1135
- minimumViableContactDurationSeconds: smithy_client_1.expectInt32,
1136
- missionProfileArn: smithy_client_1.expectString,
1137
- missionProfileId: smithy_client_1.expectString,
1138
- name: smithy_client_1.expectString,
1139
- region: smithy_client_1.expectString,
1140
- streamsKmsKey: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
1141
- streamsKmsRole: smithy_client_1.expectString,
1142
- tags: smithy_client_1._json,
1143
- trackingConfigArn: smithy_client_1.expectString,
1144
- });
1145
- Object.assign(contents, doc);
1146
- return contents;
1147
- };
1148
- exports.de_GetMissionProfileCommand = de_GetMissionProfileCommand;
1149
- const de_GetMissionProfileCommandError = async (output, context) => {
1150
- const parsedOutput = {
1151
- ...output,
1152
- body: await parseErrorBody(output.body, context),
1153
- };
1154
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1155
- switch (errorCode) {
1156
- case "DependencyException":
1157
- case "com.amazonaws.groundstation#DependencyException":
1158
- throw await de_DependencyExceptionRes(parsedOutput, context);
1159
- case "InvalidParameterException":
1160
- case "com.amazonaws.groundstation#InvalidParameterException":
1161
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1162
- case "ResourceNotFoundException":
1163
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1164
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1165
- default:
1166
- const parsedBody = parsedOutput.body;
1167
- return throwDefaultError({
1168
- output,
1169
- parsedBody,
1170
- errorCode,
1171
- });
1172
- }
1173
- };
1174
- const de_GetSatelliteCommand = async (output, context) => {
1175
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1176
- return de_GetSatelliteCommandError(output, context);
1177
- }
1178
- const contents = (0, smithy_client_1.map)({
1179
- $metadata: deserializeMetadata(output),
1180
- });
1181
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1182
- const doc = (0, smithy_client_1.take)(data, {
1183
- currentEphemeris: (_) => de_EphemerisMetaData(_, context),
1184
- groundStations: smithy_client_1._json,
1185
- noradSatelliteID: smithy_client_1.expectInt32,
1186
- satelliteArn: smithy_client_1.expectString,
1187
- satelliteId: smithy_client_1.expectString,
1188
- });
1189
- Object.assign(contents, doc);
1190
- return contents;
1191
- };
1192
- exports.de_GetSatelliteCommand = de_GetSatelliteCommand;
1193
- const de_GetSatelliteCommandError = async (output, context) => {
1194
- const parsedOutput = {
1195
- ...output,
1196
- body: await parseErrorBody(output.body, context),
1197
- };
1198
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1199
- switch (errorCode) {
1200
- case "DependencyException":
1201
- case "com.amazonaws.groundstation#DependencyException":
1202
- throw await de_DependencyExceptionRes(parsedOutput, context);
1203
- case "InvalidParameterException":
1204
- case "com.amazonaws.groundstation#InvalidParameterException":
1205
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1206
- case "ResourceNotFoundException":
1207
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1208
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1209
- default:
1210
- const parsedBody = parsedOutput.body;
1211
- return throwDefaultError({
1212
- output,
1213
- parsedBody,
1214
- errorCode,
1215
- });
1216
- }
1217
- };
1218
- const de_ListConfigsCommand = async (output, context) => {
1219
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1220
- return de_ListConfigsCommandError(output, context);
1221
- }
1222
- const contents = (0, smithy_client_1.map)({
1223
- $metadata: deserializeMetadata(output),
1224
- });
1225
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1226
- const doc = (0, smithy_client_1.take)(data, {
1227
- configList: smithy_client_1._json,
1228
- nextToken: smithy_client_1.expectString,
1229
- });
1230
- Object.assign(contents, doc);
1231
- return contents;
1232
- };
1233
- exports.de_ListConfigsCommand = de_ListConfigsCommand;
1234
- const de_ListConfigsCommandError = async (output, context) => {
1235
- const parsedOutput = {
1236
- ...output,
1237
- body: await parseErrorBody(output.body, context),
1238
- };
1239
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1240
- switch (errorCode) {
1241
- case "DependencyException":
1242
- case "com.amazonaws.groundstation#DependencyException":
1243
- throw await de_DependencyExceptionRes(parsedOutput, context);
1244
- case "InvalidParameterException":
1245
- case "com.amazonaws.groundstation#InvalidParameterException":
1246
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1247
- case "ResourceNotFoundException":
1248
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1249
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1250
- default:
1251
- const parsedBody = parsedOutput.body;
1252
- return throwDefaultError({
1253
- output,
1254
- parsedBody,
1255
- errorCode,
1256
- });
1257
- }
1258
- };
1259
- const de_ListContactsCommand = async (output, context) => {
1260
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1261
- return de_ListContactsCommandError(output, context);
1262
- }
1263
- const contents = (0, smithy_client_1.map)({
1264
- $metadata: deserializeMetadata(output),
1265
- });
1266
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1267
- const doc = (0, smithy_client_1.take)(data, {
1268
- contactList: (_) => de_ContactList(_, context),
1269
- nextToken: smithy_client_1.expectString,
1270
- });
1271
- Object.assign(contents, doc);
1272
- return contents;
1273
- };
1274
- exports.de_ListContactsCommand = de_ListContactsCommand;
1275
- const de_ListContactsCommandError = async (output, context) => {
1276
- const parsedOutput = {
1277
- ...output,
1278
- body: await parseErrorBody(output.body, context),
1279
- };
1280
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1281
- switch (errorCode) {
1282
- case "DependencyException":
1283
- case "com.amazonaws.groundstation#DependencyException":
1284
- throw await de_DependencyExceptionRes(parsedOutput, context);
1285
- case "InvalidParameterException":
1286
- case "com.amazonaws.groundstation#InvalidParameterException":
1287
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1288
- case "ResourceNotFoundException":
1289
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1290
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1291
- default:
1292
- const parsedBody = parsedOutput.body;
1293
- return throwDefaultError({
1294
- output,
1295
- parsedBody,
1296
- errorCode,
1297
- });
1298
- }
1299
- };
1300
- const de_ListDataflowEndpointGroupsCommand = async (output, context) => {
1301
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1302
- return de_ListDataflowEndpointGroupsCommandError(output, context);
1303
- }
1304
- const contents = (0, smithy_client_1.map)({
1305
- $metadata: deserializeMetadata(output),
1306
- });
1307
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1308
- const doc = (0, smithy_client_1.take)(data, {
1309
- dataflowEndpointGroupList: smithy_client_1._json,
1310
- nextToken: smithy_client_1.expectString,
1311
- });
1312
- Object.assign(contents, doc);
1313
- return contents;
1314
- };
1315
- exports.de_ListDataflowEndpointGroupsCommand = de_ListDataflowEndpointGroupsCommand;
1316
- const de_ListDataflowEndpointGroupsCommandError = async (output, context) => {
1317
- const parsedOutput = {
1318
- ...output,
1319
- body: await parseErrorBody(output.body, context),
1320
- };
1321
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1322
- switch (errorCode) {
1323
- case "DependencyException":
1324
- case "com.amazonaws.groundstation#DependencyException":
1325
- throw await de_DependencyExceptionRes(parsedOutput, context);
1326
- case "InvalidParameterException":
1327
- case "com.amazonaws.groundstation#InvalidParameterException":
1328
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1329
- case "ResourceNotFoundException":
1330
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1331
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1332
- default:
1333
- const parsedBody = parsedOutput.body;
1334
- return throwDefaultError({
1335
- output,
1336
- parsedBody,
1337
- errorCode,
1338
- });
1339
- }
1340
- };
1341
- const de_ListEphemeridesCommand = async (output, context) => {
1342
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1343
- return de_ListEphemeridesCommandError(output, context);
1344
- }
1345
- const contents = (0, smithy_client_1.map)({
1346
- $metadata: deserializeMetadata(output),
1347
- });
1348
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1349
- const doc = (0, smithy_client_1.take)(data, {
1350
- ephemerides: (_) => de_EphemeridesList(_, context),
1351
- nextToken: smithy_client_1.expectString,
1352
- });
1353
- Object.assign(contents, doc);
1354
- return contents;
1355
- };
1356
- exports.de_ListEphemeridesCommand = de_ListEphemeridesCommand;
1357
- const de_ListEphemeridesCommandError = async (output, context) => {
1358
- const parsedOutput = {
1359
- ...output,
1360
- body: await parseErrorBody(output.body, context),
1361
- };
1362
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
- switch (errorCode) {
1364
- case "DependencyException":
1365
- case "com.amazonaws.groundstation#DependencyException":
1366
- throw await de_DependencyExceptionRes(parsedOutput, context);
1367
- case "InvalidParameterException":
1368
- case "com.amazonaws.groundstation#InvalidParameterException":
1369
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1370
- case "ResourceNotFoundException":
1371
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1372
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1373
- default:
1374
- const parsedBody = parsedOutput.body;
1375
- return throwDefaultError({
1376
- output,
1377
- parsedBody,
1378
- errorCode,
1379
- });
1380
- }
1381
- };
1382
- const de_ListGroundStationsCommand = async (output, context) => {
1383
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1384
- return de_ListGroundStationsCommandError(output, context);
1385
- }
1386
- const contents = (0, smithy_client_1.map)({
1387
- $metadata: deserializeMetadata(output),
1388
- });
1389
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1390
- const doc = (0, smithy_client_1.take)(data, {
1391
- groundStationList: smithy_client_1._json,
1392
- nextToken: smithy_client_1.expectString,
1393
- });
1394
- Object.assign(contents, doc);
1395
- return contents;
1396
- };
1397
- exports.de_ListGroundStationsCommand = de_ListGroundStationsCommand;
1398
- const de_ListGroundStationsCommandError = async (output, context) => {
1399
- const parsedOutput = {
1400
- ...output,
1401
- body: await parseErrorBody(output.body, context),
1402
- };
1403
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1404
- switch (errorCode) {
1405
- case "DependencyException":
1406
- case "com.amazonaws.groundstation#DependencyException":
1407
- throw await de_DependencyExceptionRes(parsedOutput, context);
1408
- case "InvalidParameterException":
1409
- case "com.amazonaws.groundstation#InvalidParameterException":
1410
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1411
- case "ResourceNotFoundException":
1412
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1413
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1414
- default:
1415
- const parsedBody = parsedOutput.body;
1416
- return throwDefaultError({
1417
- output,
1418
- parsedBody,
1419
- errorCode,
1420
- });
1421
- }
1422
- };
1423
- const de_ListMissionProfilesCommand = async (output, context) => {
1424
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1425
- return de_ListMissionProfilesCommandError(output, context);
1426
- }
1427
- const contents = (0, smithy_client_1.map)({
1428
- $metadata: deserializeMetadata(output),
1429
- });
1430
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1431
- const doc = (0, smithy_client_1.take)(data, {
1432
- missionProfileList: smithy_client_1._json,
1433
- nextToken: smithy_client_1.expectString,
1434
- });
1435
- Object.assign(contents, doc);
1436
- return contents;
1437
- };
1438
- exports.de_ListMissionProfilesCommand = de_ListMissionProfilesCommand;
1439
- const de_ListMissionProfilesCommandError = async (output, context) => {
1440
- const parsedOutput = {
1441
- ...output,
1442
- body: await parseErrorBody(output.body, context),
1443
- };
1444
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1445
- switch (errorCode) {
1446
- case "DependencyException":
1447
- case "com.amazonaws.groundstation#DependencyException":
1448
- throw await de_DependencyExceptionRes(parsedOutput, context);
1449
- case "InvalidParameterException":
1450
- case "com.amazonaws.groundstation#InvalidParameterException":
1451
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1452
- case "ResourceNotFoundException":
1453
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1454
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1455
- default:
1456
- const parsedBody = parsedOutput.body;
1457
- return throwDefaultError({
1458
- output,
1459
- parsedBody,
1460
- errorCode,
1461
- });
1462
- }
1463
- };
1464
- const de_ListSatellitesCommand = async (output, context) => {
1465
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1466
- return de_ListSatellitesCommandError(output, context);
1467
- }
1468
- const contents = (0, smithy_client_1.map)({
1469
- $metadata: deserializeMetadata(output),
1470
- });
1471
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1472
- const doc = (0, smithy_client_1.take)(data, {
1473
- nextToken: smithy_client_1.expectString,
1474
- satellites: (_) => de_SatelliteList(_, context),
1475
- });
1476
- Object.assign(contents, doc);
1477
- return contents;
1478
- };
1479
- exports.de_ListSatellitesCommand = de_ListSatellitesCommand;
1480
- const de_ListSatellitesCommandError = async (output, context) => {
1481
- const parsedOutput = {
1482
- ...output,
1483
- body: await parseErrorBody(output.body, context),
1484
- };
1485
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1486
- switch (errorCode) {
1487
- case "DependencyException":
1488
- case "com.amazonaws.groundstation#DependencyException":
1489
- throw await de_DependencyExceptionRes(parsedOutput, context);
1490
- case "InvalidParameterException":
1491
- case "com.amazonaws.groundstation#InvalidParameterException":
1492
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1493
- case "ResourceNotFoundException":
1494
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1495
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1496
- default:
1497
- const parsedBody = parsedOutput.body;
1498
- return throwDefaultError({
1499
- output,
1500
- parsedBody,
1501
- errorCode,
1502
- });
1503
- }
1504
- };
1505
- const de_ListTagsForResourceCommand = async (output, context) => {
1506
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1507
- return de_ListTagsForResourceCommandError(output, context);
1508
- }
1509
- const contents = (0, smithy_client_1.map)({
1510
- $metadata: deserializeMetadata(output),
1511
- });
1512
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1513
- const doc = (0, smithy_client_1.take)(data, {
1514
- tags: smithy_client_1._json,
1515
- });
1516
- Object.assign(contents, doc);
1517
- return contents;
1518
- };
1519
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1520
- const de_ListTagsForResourceCommandError = async (output, context) => {
1521
- const parsedOutput = {
1522
- ...output,
1523
- body: await parseErrorBody(output.body, context),
1524
- };
1525
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1526
- switch (errorCode) {
1527
- case "DependencyException":
1528
- case "com.amazonaws.groundstation#DependencyException":
1529
- throw await de_DependencyExceptionRes(parsedOutput, context);
1530
- case "InvalidParameterException":
1531
- case "com.amazonaws.groundstation#InvalidParameterException":
1532
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1533
- case "ResourceNotFoundException":
1534
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1535
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1536
- default:
1537
- const parsedBody = parsedOutput.body;
1538
- return throwDefaultError({
1539
- output,
1540
- parsedBody,
1541
- errorCode,
1542
- });
1543
- }
1544
- };
1545
- const de_RegisterAgentCommand = async (output, context) => {
1546
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1547
- return de_RegisterAgentCommandError(output, context);
1548
- }
1549
- const contents = (0, smithy_client_1.map)({
1550
- $metadata: deserializeMetadata(output),
1551
- });
1552
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1553
- const doc = (0, smithy_client_1.take)(data, {
1554
- agentId: smithy_client_1.expectString,
1555
- });
1556
- Object.assign(contents, doc);
1557
- return contents;
1558
- };
1559
- exports.de_RegisterAgentCommand = de_RegisterAgentCommand;
1560
- const de_RegisterAgentCommandError = async (output, context) => {
1561
- const parsedOutput = {
1562
- ...output,
1563
- body: await parseErrorBody(output.body, context),
1564
- };
1565
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1566
- switch (errorCode) {
1567
- case "DependencyException":
1568
- case "com.amazonaws.groundstation#DependencyException":
1569
- throw await de_DependencyExceptionRes(parsedOutput, context);
1570
- case "InvalidParameterException":
1571
- case "com.amazonaws.groundstation#InvalidParameterException":
1572
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1573
- case "ResourceNotFoundException":
1574
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1575
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1576
- default:
1577
- const parsedBody = parsedOutput.body;
1578
- return throwDefaultError({
1579
- output,
1580
- parsedBody,
1581
- errorCode,
1582
- });
1583
- }
1584
- };
1585
- const de_ReserveContactCommand = async (output, context) => {
1586
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1587
- return de_ReserveContactCommandError(output, context);
1588
- }
1589
- const contents = (0, smithy_client_1.map)({
1590
- $metadata: deserializeMetadata(output),
1591
- });
1592
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1593
- const doc = (0, smithy_client_1.take)(data, {
1594
- contactId: smithy_client_1.expectString,
1595
- });
1596
- Object.assign(contents, doc);
1597
- return contents;
1598
- };
1599
- exports.de_ReserveContactCommand = de_ReserveContactCommand;
1600
- const de_ReserveContactCommandError = async (output, context) => {
1601
- const parsedOutput = {
1602
- ...output,
1603
- body: await parseErrorBody(output.body, context),
1604
- };
1605
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
- switch (errorCode) {
1607
- case "DependencyException":
1608
- case "com.amazonaws.groundstation#DependencyException":
1609
- throw await de_DependencyExceptionRes(parsedOutput, context);
1610
- case "InvalidParameterException":
1611
- case "com.amazonaws.groundstation#InvalidParameterException":
1612
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1613
- case "ResourceNotFoundException":
1614
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1615
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
- default:
1617
- const parsedBody = parsedOutput.body;
1618
- return throwDefaultError({
1619
- output,
1620
- parsedBody,
1621
- errorCode,
1622
- });
1623
- }
1624
- };
1625
- const de_TagResourceCommand = async (output, context) => {
1626
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1627
- return de_TagResourceCommandError(output, context);
1628
- }
1629
- const contents = (0, smithy_client_1.map)({
1630
- $metadata: deserializeMetadata(output),
1631
- });
1632
- await (0, smithy_client_1.collectBody)(output.body, context);
1633
- return contents;
1634
- };
1635
- exports.de_TagResourceCommand = de_TagResourceCommand;
1636
- const de_TagResourceCommandError = async (output, context) => {
1637
- const parsedOutput = {
1638
- ...output,
1639
- body: await parseErrorBody(output.body, context),
1640
- };
1641
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1642
- switch (errorCode) {
1643
- case "DependencyException":
1644
- case "com.amazonaws.groundstation#DependencyException":
1645
- throw await de_DependencyExceptionRes(parsedOutput, context);
1646
- case "InvalidParameterException":
1647
- case "com.amazonaws.groundstation#InvalidParameterException":
1648
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1649
- case "ResourceNotFoundException":
1650
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1651
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1652
- default:
1653
- const parsedBody = parsedOutput.body;
1654
- return throwDefaultError({
1655
- output,
1656
- parsedBody,
1657
- errorCode,
1658
- });
1659
- }
1660
- };
1661
- const de_UntagResourceCommand = async (output, context) => {
1662
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1663
- return de_UntagResourceCommandError(output, context);
1664
- }
1665
- const contents = (0, smithy_client_1.map)({
1666
- $metadata: deserializeMetadata(output),
1667
- });
1668
- await (0, smithy_client_1.collectBody)(output.body, context);
1669
- return contents;
1670
- };
1671
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
1672
- const de_UntagResourceCommandError = async (output, context) => {
1673
- const parsedOutput = {
1674
- ...output,
1675
- body: await parseErrorBody(output.body, context),
1676
- };
1677
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1678
- switch (errorCode) {
1679
- case "DependencyException":
1680
- case "com.amazonaws.groundstation#DependencyException":
1681
- throw await de_DependencyExceptionRes(parsedOutput, context);
1682
- case "InvalidParameterException":
1683
- case "com.amazonaws.groundstation#InvalidParameterException":
1684
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1685
- case "ResourceNotFoundException":
1686
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1687
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1688
- default:
1689
- const parsedBody = parsedOutput.body;
1690
- return throwDefaultError({
1691
- output,
1692
- parsedBody,
1693
- errorCode,
1694
- });
1695
- }
1696
- };
1697
- const de_UpdateAgentStatusCommand = async (output, context) => {
1698
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1699
- return de_UpdateAgentStatusCommandError(output, context);
1700
- }
1701
- const contents = (0, smithy_client_1.map)({
1702
- $metadata: deserializeMetadata(output),
1703
- });
1704
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1705
- const doc = (0, smithy_client_1.take)(data, {
1706
- agentId: smithy_client_1.expectString,
1707
- });
1708
- Object.assign(contents, doc);
1709
- return contents;
1710
- };
1711
- exports.de_UpdateAgentStatusCommand = de_UpdateAgentStatusCommand;
1712
- const de_UpdateAgentStatusCommandError = async (output, context) => {
1713
- const parsedOutput = {
1714
- ...output,
1715
- body: await parseErrorBody(output.body, context),
1716
- };
1717
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1718
- switch (errorCode) {
1719
- case "DependencyException":
1720
- case "com.amazonaws.groundstation#DependencyException":
1721
- throw await de_DependencyExceptionRes(parsedOutput, context);
1722
- case "InvalidParameterException":
1723
- case "com.amazonaws.groundstation#InvalidParameterException":
1724
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1725
- case "ResourceNotFoundException":
1726
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1727
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1728
- default:
1729
- const parsedBody = parsedOutput.body;
1730
- return throwDefaultError({
1731
- output,
1732
- parsedBody,
1733
- errorCode,
1734
- });
1735
- }
1736
- };
1737
- const de_UpdateConfigCommand = async (output, context) => {
1738
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
- return de_UpdateConfigCommandError(output, context);
1740
- }
1741
- const contents = (0, smithy_client_1.map)({
1742
- $metadata: deserializeMetadata(output),
1743
- });
1744
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1745
- const doc = (0, smithy_client_1.take)(data, {
1746
- configArn: smithy_client_1.expectString,
1747
- configId: smithy_client_1.expectString,
1748
- configType: smithy_client_1.expectString,
1749
- });
1750
- Object.assign(contents, doc);
1751
- return contents;
1752
- };
1753
- exports.de_UpdateConfigCommand = de_UpdateConfigCommand;
1754
- const de_UpdateConfigCommandError = async (output, context) => {
1755
- const parsedOutput = {
1756
- ...output,
1757
- body: await parseErrorBody(output.body, context),
1758
- };
1759
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1760
- switch (errorCode) {
1761
- case "DependencyException":
1762
- case "com.amazonaws.groundstation#DependencyException":
1763
- throw await de_DependencyExceptionRes(parsedOutput, context);
1764
- case "InvalidParameterException":
1765
- case "com.amazonaws.groundstation#InvalidParameterException":
1766
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1767
- case "ResourceNotFoundException":
1768
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1769
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1770
- default:
1771
- const parsedBody = parsedOutput.body;
1772
- return throwDefaultError({
1773
- output,
1774
- parsedBody,
1775
- errorCode,
1776
- });
1777
- }
1778
- };
1779
- const de_UpdateEphemerisCommand = async (output, context) => {
1780
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1781
- return de_UpdateEphemerisCommandError(output, context);
1782
- }
1783
- const contents = (0, smithy_client_1.map)({
1784
- $metadata: deserializeMetadata(output),
1785
- });
1786
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1787
- const doc = (0, smithy_client_1.take)(data, {
1788
- ephemerisId: smithy_client_1.expectString,
1789
- });
1790
- Object.assign(contents, doc);
1791
- return contents;
1792
- };
1793
- exports.de_UpdateEphemerisCommand = de_UpdateEphemerisCommand;
1794
- const de_UpdateEphemerisCommandError = async (output, context) => {
1795
- const parsedOutput = {
1796
- ...output,
1797
- body: await parseErrorBody(output.body, context),
1798
- };
1799
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1800
- switch (errorCode) {
1801
- case "DependencyException":
1802
- case "com.amazonaws.groundstation#DependencyException":
1803
- throw await de_DependencyExceptionRes(parsedOutput, context);
1804
- case "InvalidParameterException":
1805
- case "com.amazonaws.groundstation#InvalidParameterException":
1806
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1807
- case "ResourceNotFoundException":
1808
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1809
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1810
- default:
1811
- const parsedBody = parsedOutput.body;
1812
- return throwDefaultError({
1813
- output,
1814
- parsedBody,
1815
- errorCode,
1816
- });
1817
- }
1818
- };
1819
- const de_UpdateMissionProfileCommand = async (output, context) => {
1820
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1821
- return de_UpdateMissionProfileCommandError(output, context);
1822
- }
1823
- const contents = (0, smithy_client_1.map)({
1824
- $metadata: deserializeMetadata(output),
1825
- });
1826
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1827
- const doc = (0, smithy_client_1.take)(data, {
1828
- missionProfileId: smithy_client_1.expectString,
1829
- });
1830
- Object.assign(contents, doc);
1831
- return contents;
1832
- };
1833
- exports.de_UpdateMissionProfileCommand = de_UpdateMissionProfileCommand;
1834
- const de_UpdateMissionProfileCommandError = async (output, context) => {
1835
- const parsedOutput = {
1836
- ...output,
1837
- body: await parseErrorBody(output.body, context),
1838
- };
1839
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1840
- switch (errorCode) {
1841
- case "DependencyException":
1842
- case "com.amazonaws.groundstation#DependencyException":
1843
- throw await de_DependencyExceptionRes(parsedOutput, context);
1844
- case "InvalidParameterException":
1845
- case "com.amazonaws.groundstation#InvalidParameterException":
1846
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1847
- case "ResourceNotFoundException":
1848
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1849
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1850
- default:
1851
- const parsedBody = parsedOutput.body;
1852
- return throwDefaultError({
1853
- output,
1854
- parsedBody,
1855
- errorCode,
1856
- });
1857
- }
1858
- };
1859
- const throwDefaultError = (0, smithy_client_1.withBaseException)(GroundStationServiceException_1.GroundStationServiceException);
1860
- const de_DependencyExceptionRes = async (parsedOutput, context) => {
1861
- const contents = (0, smithy_client_1.map)({});
1862
- const data = parsedOutput.body;
1863
- const doc = (0, smithy_client_1.take)(data, {
1864
- message: smithy_client_1.expectString,
1865
- parameterName: smithy_client_1.expectString,
1866
- });
1867
- Object.assign(contents, doc);
1868
- const exception = new models_0_1.DependencyException({
1869
- $metadata: deserializeMetadata(parsedOutput),
1870
- ...contents,
1871
- });
1872
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1873
- };
1874
- const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1875
- const contents = (0, smithy_client_1.map)({});
1876
- const data = parsedOutput.body;
1877
- const doc = (0, smithy_client_1.take)(data, {
1878
- message: smithy_client_1.expectString,
1879
- parameterName: smithy_client_1.expectString,
1880
- });
1881
- Object.assign(contents, doc);
1882
- const exception = new models_0_1.InvalidParameterException({
1883
- $metadata: deserializeMetadata(parsedOutput),
1884
- ...contents,
1885
- });
1886
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1887
- };
1888
- const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
1889
- const contents = (0, smithy_client_1.map)({});
1890
- const data = parsedOutput.body;
1891
- const doc = (0, smithy_client_1.take)(data, {
1892
- message: smithy_client_1.expectString,
1893
- parameterName: smithy_client_1.expectString,
1894
- });
1895
- Object.assign(contents, doc);
1896
- const exception = new models_0_1.ResourceLimitExceededException({
1897
- $metadata: deserializeMetadata(parsedOutput),
1898
- ...contents,
1899
- });
1900
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1901
- };
1902
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1903
- const contents = (0, smithy_client_1.map)({});
1904
- const data = parsedOutput.body;
1905
- const doc = (0, smithy_client_1.take)(data, {
1906
- message: smithy_client_1.expectString,
1907
- });
1908
- Object.assign(contents, doc);
1909
- const exception = new models_0_1.ResourceNotFoundException({
1910
- $metadata: deserializeMetadata(parsedOutput),
1911
- ...contents,
1912
- });
1913
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1914
- };
1915
- const se_AntennaDownlinkConfig = (input, context) => {
1916
- return (0, smithy_client_1.take)(input, {
1917
- spectrumConfig: (_) => se_SpectrumConfig(_, context),
1918
- });
1919
- };
1920
- const se_AntennaDownlinkDemodDecodeConfig = (input, context) => {
1921
- return (0, smithy_client_1.take)(input, {
1922
- decodeConfig: smithy_client_1._json,
1923
- demodulationConfig: smithy_client_1._json,
1924
- spectrumConfig: (_) => se_SpectrumConfig(_, context),
1925
- });
1926
- };
1927
- const se_AntennaUplinkConfig = (input, context) => {
1928
- return (0, smithy_client_1.take)(input, {
1929
- spectrumConfig: (_) => se_UplinkSpectrumConfig(_, context),
1930
- targetEirp: (_) => se_Eirp(_, context),
1931
- transmitDisabled: [],
1932
- });
1933
- };
1934
- const se_ConfigTypeData = (input, context) => {
1935
- return models_0_1.ConfigTypeData.visit(input, {
1936
- antennaDownlinkConfig: (value) => ({ antennaDownlinkConfig: se_AntennaDownlinkConfig(value, context) }),
1937
- antennaDownlinkDemodDecodeConfig: (value) => ({
1938
- antennaDownlinkDemodDecodeConfig: se_AntennaDownlinkDemodDecodeConfig(value, context),
1939
- }),
1940
- antennaUplinkConfig: (value) => ({ antennaUplinkConfig: se_AntennaUplinkConfig(value, context) }),
1941
- dataflowEndpointConfig: (value) => ({ dataflowEndpointConfig: (0, smithy_client_1._json)(value) }),
1942
- s3RecordingConfig: (value) => ({ s3RecordingConfig: (0, smithy_client_1._json)(value) }),
1943
- trackingConfig: (value) => ({ trackingConfig: (0, smithy_client_1._json)(value) }),
1944
- uplinkEchoConfig: (value) => ({ uplinkEchoConfig: (0, smithy_client_1._json)(value) }),
1945
- _: (name, value) => ({ name: value }),
1946
- });
1947
- };
1948
- const se_Eirp = (input, context) => {
1949
- return (0, smithy_client_1.take)(input, {
1950
- units: [],
1951
- value: smithy_client_1.serializeFloat,
1952
- });
1953
- };
1954
- const se_EphemerisData = (input, context) => {
1955
- return models_0_1.EphemerisData.visit(input, {
1956
- oem: (value) => ({ oem: (0, smithy_client_1._json)(value) }),
1957
- tle: (value) => ({ tle: se_TLEEphemeris(value, context) }),
1958
- _: (name, value) => ({ name: value }),
1959
- });
1960
- };
1961
- const se_Frequency = (input, context) => {
1962
- return (0, smithy_client_1.take)(input, {
1963
- units: [],
1964
- value: smithy_client_1.serializeFloat,
1965
- });
1966
- };
1967
- const se_FrequencyBandwidth = (input, context) => {
1968
- return (0, smithy_client_1.take)(input, {
1969
- units: [],
1970
- value: smithy_client_1.serializeFloat,
1971
- });
1972
- };
1973
- const se_SpectrumConfig = (input, context) => {
1974
- return (0, smithy_client_1.take)(input, {
1975
- bandwidth: (_) => se_FrequencyBandwidth(_, context),
1976
- centerFrequency: (_) => se_Frequency(_, context),
1977
- polarization: [],
1978
- });
1979
- };
1980
- const se_TimeRange = (input, context) => {
1981
- return (0, smithy_client_1.take)(input, {
1982
- endTime: (_) => Math.round(_.getTime() / 1000),
1983
- startTime: (_) => Math.round(_.getTime() / 1000),
1984
- });
1985
- };
1986
- const se_TLEData = (input, context) => {
1987
- return (0, smithy_client_1.take)(input, {
1988
- tleLine1: [],
1989
- tleLine2: [],
1990
- validTimeRange: (_) => se_TimeRange(_, context),
1991
- });
1992
- };
1993
- const se_TLEDataList = (input, context) => {
1994
- return input
1995
- .filter((e) => e != null)
1996
- .map((entry) => {
1997
- return se_TLEData(entry, context);
1998
- });
1999
- };
2000
- const se_TLEEphemeris = (input, context) => {
2001
- return (0, smithy_client_1.take)(input, {
2002
- s3Object: smithy_client_1._json,
2003
- tleData: (_) => se_TLEDataList(_, context),
2004
- });
2005
- };
2006
- const se_UplinkSpectrumConfig = (input, context) => {
2007
- return (0, smithy_client_1.take)(input, {
2008
- centerFrequency: (_) => se_Frequency(_, context),
2009
- polarization: [],
2010
- });
2011
- };
2012
- const de_AntennaDownlinkConfig = (output, context) => {
2013
- return (0, smithy_client_1.take)(output, {
2014
- spectrumConfig: (_) => de_SpectrumConfig(_, context),
2015
- });
2016
- };
2017
- const de_AntennaDownlinkDemodDecodeConfig = (output, context) => {
2018
- return (0, smithy_client_1.take)(output, {
2019
- decodeConfig: smithy_client_1._json,
2020
- demodulationConfig: smithy_client_1._json,
2021
- spectrumConfig: (_) => de_SpectrumConfig(_, context),
2022
- });
2023
- };
2024
- const de_AntennaUplinkConfig = (output, context) => {
2025
- return (0, smithy_client_1.take)(output, {
2026
- spectrumConfig: (_) => de_UplinkSpectrumConfig(_, context),
2027
- targetEirp: (_) => de_Eirp(_, context),
2028
- transmitDisabled: smithy_client_1.expectBoolean,
2029
- });
2030
- };
2031
- const de_ConfigTypeData = (output, context) => {
2032
- if (output.antennaDownlinkConfig != null) {
2033
- return {
2034
- antennaDownlinkConfig: de_AntennaDownlinkConfig(output.antennaDownlinkConfig, context),
2035
- };
2036
- }
2037
- if (output.antennaDownlinkDemodDecodeConfig != null) {
2038
- return {
2039
- antennaDownlinkDemodDecodeConfig: de_AntennaDownlinkDemodDecodeConfig(output.antennaDownlinkDemodDecodeConfig, context),
2040
- };
2041
- }
2042
- if (output.antennaUplinkConfig != null) {
2043
- return {
2044
- antennaUplinkConfig: de_AntennaUplinkConfig(output.antennaUplinkConfig, context),
2045
- };
2046
- }
2047
- if (output.dataflowEndpointConfig != null) {
2048
- return {
2049
- dataflowEndpointConfig: (0, smithy_client_1._json)(output.dataflowEndpointConfig),
2050
- };
2051
- }
2052
- if (output.s3RecordingConfig != null) {
2053
- return {
2054
- s3RecordingConfig: (0, smithy_client_1._json)(output.s3RecordingConfig),
2055
- };
2056
- }
2057
- if (output.trackingConfig != null) {
2058
- return {
2059
- trackingConfig: (0, smithy_client_1._json)(output.trackingConfig),
2060
- };
2061
- }
2062
- if (output.uplinkEchoConfig != null) {
2063
- return {
2064
- uplinkEchoConfig: (0, smithy_client_1._json)(output.uplinkEchoConfig),
2065
- };
2066
- }
2067
- return { $unknown: Object.entries(output)[0] };
2068
- };
2069
- const de_ContactData = (output, context) => {
2070
- return (0, smithy_client_1.take)(output, {
2071
- contactId: smithy_client_1.expectString,
2072
- contactStatus: smithy_client_1.expectString,
2073
- endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2074
- errorMessage: smithy_client_1.expectString,
2075
- groundStation: smithy_client_1.expectString,
2076
- maximumElevation: (_) => de_Elevation(_, context),
2077
- missionProfileArn: smithy_client_1.expectString,
2078
- postPassEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2079
- prePassStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2080
- region: smithy_client_1.expectString,
2081
- satelliteArn: smithy_client_1.expectString,
2082
- startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2083
- tags: smithy_client_1._json,
2084
- });
2085
- };
2086
- const de_ContactList = (output, context) => {
2087
- const retVal = (output || [])
2088
- .filter((e) => e != null)
2089
- .map((entry) => {
2090
- return de_ContactData(entry, context);
2091
- });
2092
- return retVal;
2093
- };
2094
- const de_Eirp = (output, context) => {
2095
- return (0, smithy_client_1.take)(output, {
2096
- units: smithy_client_1.expectString,
2097
- value: smithy_client_1.limitedParseDouble,
2098
- });
2099
- };
2100
- const de_Elevation = (output, context) => {
2101
- return (0, smithy_client_1.take)(output, {
2102
- unit: smithy_client_1.expectString,
2103
- value: smithy_client_1.limitedParseDouble,
2104
- });
2105
- };
2106
- const de_EphemeridesList = (output, context) => {
2107
- const retVal = (output || [])
2108
- .filter((e) => e != null)
2109
- .map((entry) => {
2110
- return de_EphemerisItem(entry, context);
2111
- });
2112
- return retVal;
2113
- };
2114
- const de_EphemerisItem = (output, context) => {
2115
- return (0, smithy_client_1.take)(output, {
2116
- creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2117
- enabled: smithy_client_1.expectBoolean,
2118
- ephemerisId: smithy_client_1.expectString,
2119
- name: smithy_client_1.expectString,
2120
- priority: smithy_client_1.expectInt32,
2121
- sourceS3Object: smithy_client_1._json,
2122
- status: smithy_client_1.expectString,
2123
- });
2124
- };
2125
- const de_EphemerisMetaData = (output, context) => {
2126
- return (0, smithy_client_1.take)(output, {
2127
- ephemerisId: smithy_client_1.expectString,
2128
- epoch: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2129
- name: smithy_client_1.expectString,
2130
- source: smithy_client_1.expectString,
2131
- });
2132
- };
2133
- const de_Frequency = (output, context) => {
2134
- return (0, smithy_client_1.take)(output, {
2135
- units: smithy_client_1.expectString,
2136
- value: smithy_client_1.limitedParseDouble,
2137
- });
2138
- };
2139
- const de_FrequencyBandwidth = (output, context) => {
2140
- return (0, smithy_client_1.take)(output, {
2141
- units: smithy_client_1.expectString,
2142
- value: smithy_client_1.limitedParseDouble,
2143
- });
2144
- };
2145
- const de_SatelliteList = (output, context) => {
2146
- const retVal = (output || [])
2147
- .filter((e) => e != null)
2148
- .map((entry) => {
2149
- return de_SatelliteListItem(entry, context);
2150
- });
2151
- return retVal;
2152
- };
2153
- const de_SatelliteListItem = (output, context) => {
2154
- return (0, smithy_client_1.take)(output, {
2155
- currentEphemeris: (_) => de_EphemerisMetaData(_, context),
2156
- groundStations: smithy_client_1._json,
2157
- noradSatelliteID: smithy_client_1.expectInt32,
2158
- satelliteArn: smithy_client_1.expectString,
2159
- satelliteId: smithy_client_1.expectString,
2160
- });
2161
- };
2162
- const de_SpectrumConfig = (output, context) => {
2163
- return (0, smithy_client_1.take)(output, {
2164
- bandwidth: (_) => de_FrequencyBandwidth(_, context),
2165
- centerFrequency: (_) => de_Frequency(_, context),
2166
- polarization: smithy_client_1.expectString,
2167
- });
2168
- };
2169
- const de_UplinkSpectrumConfig = (output, context) => {
2170
- return (0, smithy_client_1.take)(output, {
2171
- centerFrequency: (_) => de_Frequency(_, context),
2172
- polarization: smithy_client_1.expectString,
2173
- });
2174
- };
2175
- const deserializeMetadata = (output) => ({
2176
- httpStatusCode: output.statusCode,
2177
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2178
- extendedRequestId: output.headers["x-amz-id-2"],
2179
- cfId: output.headers["x-amz-cf-id"],
2180
- });
2181
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
2182
- const isSerializableHeaderValue = (value) => value !== undefined &&
2183
- value !== null &&
2184
- value !== "" &&
2185
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2186
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2187
- const _mR = "maxResults";
2188
- const _nT = "nextToken";
2189
- const _sI = "satelliteId";
2190
- const _tK = "tagKeys";
2191
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2192
- if (encoded.length) {
2193
- return JSON.parse(encoded);
2194
- }
2195
- return {};
2196
- });
2197
- const parseErrorBody = async (errorBody, context) => {
2198
- const value = await parseBody(errorBody, context);
2199
- value.message = value.message ?? value.Message;
2200
- return value;
2201
- };
2202
- const loadRestJsonErrorCode = (output, data) => {
2203
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2204
- const sanitizeErrorCode = (rawValue) => {
2205
- let cleanValue = rawValue;
2206
- if (typeof cleanValue === "number") {
2207
- cleanValue = cleanValue.toString();
2208
- }
2209
- if (cleanValue.indexOf(",") >= 0) {
2210
- cleanValue = cleanValue.split(",")[0];
2211
- }
2212
- if (cleanValue.indexOf(":") >= 0) {
2213
- cleanValue = cleanValue.split(":")[0];
2214
- }
2215
- if (cleanValue.indexOf("#") >= 0) {
2216
- cleanValue = cleanValue.split("#")[1];
2217
- }
2218
- return cleanValue;
2219
- };
2220
- const headerKey = findKey(output.headers, "x-amzn-errortype");
2221
- if (headerKey !== undefined) {
2222
- return sanitizeErrorCode(output.headers[headerKey]);
2223
- }
2224
- if (data.code !== undefined) {
2225
- return sanitizeErrorCode(data.code);
2226
- }
2227
- if (data["__type"] !== undefined) {
2228
- return sanitizeErrorCode(data["__type"]);
2229
- }
2230
- };
1
+ module.exports = require("../index.js");