@aws-sdk/client-groundstation 3.204.0 → 3.208.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/GroundStation.js +75 -0
- package/dist-cjs/commands/CreateEphemerisCommand.js +46 -0
- package/dist-cjs/commands/DeleteEphemerisCommand.js +46 -0
- package/dist-cjs/commands/DescribeEphemerisCommand.js +46 -0
- package/dist-cjs/commands/ListEphemeridesCommand.js +46 -0
- package/dist-cjs/commands/UpdateEphemerisCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +129 -2
- package/dist-cjs/pagination/ListEphemeridesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +468 -1
- package/dist-es/GroundStation.js +75 -0
- package/dist-es/commands/CreateEphemerisCommand.js +42 -0
- package/dist-es/commands/DeleteEphemerisCommand.js +42 -0
- package/dist-es/commands/DescribeEphemerisCommand.js +42 -0
- package/dist-es/commands/ListEphemeridesCommand.js +42 -0
- package/dist-es/commands/UpdateEphemerisCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +108 -0
- package/dist-es/pagination/ListEphemeridesPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +457 -1
- package/dist-types/GroundStation.d.ts +35 -0
- package/dist-types/GroundStationClient.d.ts +7 -2
- package/dist-types/commands/CreateEphemerisCommand.d.ts +37 -0
- package/dist-types/commands/DeleteEphemerisCommand.d.ts +37 -0
- package/dist-types/commands/DescribeEphemerisCommand.d.ts +37 -0
- package/dist-types/commands/ListEphemeridesCommand.d.ts +37 -0
- package/dist-types/commands/UpdateEphemerisCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +492 -11
- package/dist-types/pagination/ListEphemeridesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/GroundStation.d.ts +85 -0
- package/dist-types/ts3.4/GroundStationClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateEphemerisCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteEphemerisCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeEphemerisCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListEphemeridesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateEphemerisCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +209 -0
- package/dist-types/ts3.4/pagination/ListEphemeridesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +35 -35
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_restJson1ListEphemeridesCommand = exports.deserializeAws_restJson1ListDataflowEndpointGroupsCommand = exports.deserializeAws_restJson1ListContactsCommand = exports.deserializeAws_restJson1ListConfigsCommand = exports.deserializeAws_restJson1GetSatelliteCommand = exports.deserializeAws_restJson1GetMissionProfileCommand = exports.deserializeAws_restJson1GetMinuteUsageCommand = exports.deserializeAws_restJson1GetDataflowEndpointGroupCommand = exports.deserializeAws_restJson1GetConfigCommand = exports.deserializeAws_restJson1DescribeEphemerisCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DeleteMissionProfileCommand = exports.deserializeAws_restJson1DeleteEphemerisCommand = exports.deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = exports.deserializeAws_restJson1DeleteConfigCommand = exports.deserializeAws_restJson1CreateMissionProfileCommand = exports.deserializeAws_restJson1CreateEphemerisCommand = exports.deserializeAws_restJson1CreateDataflowEndpointGroupCommand = exports.deserializeAws_restJson1CreateConfigCommand = exports.deserializeAws_restJson1CancelContactCommand = exports.serializeAws_restJson1UpdateMissionProfileCommand = exports.serializeAws_restJson1UpdateEphemerisCommand = exports.serializeAws_restJson1UpdateConfigCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ReserveContactCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSatellitesCommand = exports.serializeAws_restJson1ListMissionProfilesCommand = exports.serializeAws_restJson1ListGroundStationsCommand = exports.serializeAws_restJson1ListEphemeridesCommand = exports.serializeAws_restJson1ListDataflowEndpointGroupsCommand = exports.serializeAws_restJson1ListContactsCommand = exports.serializeAws_restJson1ListConfigsCommand = exports.serializeAws_restJson1GetSatelliteCommand = exports.serializeAws_restJson1GetMissionProfileCommand = exports.serializeAws_restJson1GetMinuteUsageCommand = exports.serializeAws_restJson1GetDataflowEndpointGroupCommand = exports.serializeAws_restJson1GetConfigCommand = exports.serializeAws_restJson1DescribeEphemerisCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DeleteMissionProfileCommand = exports.serializeAws_restJson1DeleteEphemerisCommand = exports.serializeAws_restJson1DeleteDataflowEndpointGroupCommand = exports.serializeAws_restJson1DeleteConfigCommand = exports.serializeAws_restJson1CreateMissionProfileCommand = exports.serializeAws_restJson1CreateEphemerisCommand = exports.serializeAws_restJson1CreateDataflowEndpointGroupCommand = exports.serializeAws_restJson1CreateConfigCommand = exports.serializeAws_restJson1CancelContactCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateMissionProfileCommand = exports.deserializeAws_restJson1UpdateEphemerisCommand = exports.deserializeAws_restJson1UpdateConfigCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ReserveContactCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSatellitesCommand = exports.deserializeAws_restJson1ListMissionProfilesCommand = exports.deserializeAws_restJson1ListGroundStationsCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const GroundStationServiceException_1 = require("../models/GroundStationServiceException");
|
|
@@ -69,6 +70,34 @@ const serializeAws_restJson1CreateDataflowEndpointGroupCommand = async (input, c
|
|
|
69
70
|
});
|
|
70
71
|
};
|
|
71
72
|
exports.serializeAws_restJson1CreateDataflowEndpointGroupCommand = serializeAws_restJson1CreateDataflowEndpointGroupCommand;
|
|
73
|
+
const serializeAws_restJson1CreateEphemerisCommand = async (input, context) => {
|
|
74
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
|
+
const headers = {
|
|
76
|
+
"content-type": "application/json",
|
|
77
|
+
};
|
|
78
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris";
|
|
79
|
+
let body;
|
|
80
|
+
body = JSON.stringify({
|
|
81
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
82
|
+
...(input.ephemeris != null && { ephemeris: serializeAws_restJson1EphemerisData(input.ephemeris, context) }),
|
|
83
|
+
...(input.expirationTime != null && { expirationTime: Math.round(input.expirationTime.getTime() / 1000) }),
|
|
84
|
+
...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
|
|
85
|
+
...(input.name != null && { name: input.name }),
|
|
86
|
+
...(input.priority != null && { priority: input.priority }),
|
|
87
|
+
...(input.satelliteId != null && { satelliteId: input.satelliteId }),
|
|
88
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
89
|
+
});
|
|
90
|
+
return new protocol_http_1.HttpRequest({
|
|
91
|
+
protocol,
|
|
92
|
+
hostname,
|
|
93
|
+
port,
|
|
94
|
+
method: "POST",
|
|
95
|
+
headers,
|
|
96
|
+
path: resolvedPath,
|
|
97
|
+
body,
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
exports.serializeAws_restJson1CreateEphemerisCommand = serializeAws_restJson1CreateEphemerisCommand;
|
|
72
101
|
const serializeAws_restJson1CreateMissionProfileCommand = async (input, context) => {
|
|
73
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
103
|
const headers = {
|
|
@@ -140,6 +169,23 @@ const serializeAws_restJson1DeleteDataflowEndpointGroupCommand = async (input, c
|
|
|
140
169
|
});
|
|
141
170
|
};
|
|
142
171
|
exports.serializeAws_restJson1DeleteDataflowEndpointGroupCommand = serializeAws_restJson1DeleteDataflowEndpointGroupCommand;
|
|
172
|
+
const serializeAws_restJson1DeleteEphemerisCommand = async (input, context) => {
|
|
173
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
|
+
const headers = {};
|
|
175
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
|
|
176
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
|
|
177
|
+
let body;
|
|
178
|
+
return new protocol_http_1.HttpRequest({
|
|
179
|
+
protocol,
|
|
180
|
+
hostname,
|
|
181
|
+
port,
|
|
182
|
+
method: "DELETE",
|
|
183
|
+
headers,
|
|
184
|
+
path: resolvedPath,
|
|
185
|
+
body,
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
exports.serializeAws_restJson1DeleteEphemerisCommand = serializeAws_restJson1DeleteEphemerisCommand;
|
|
143
189
|
const serializeAws_restJson1DeleteMissionProfileCommand = async (input, context) => {
|
|
144
190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
145
191
|
const headers = {};
|
|
@@ -174,6 +220,23 @@ const serializeAws_restJson1DescribeContactCommand = async (input, context) => {
|
|
|
174
220
|
});
|
|
175
221
|
};
|
|
176
222
|
exports.serializeAws_restJson1DescribeContactCommand = serializeAws_restJson1DescribeContactCommand;
|
|
223
|
+
const serializeAws_restJson1DescribeEphemerisCommand = async (input, context) => {
|
|
224
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
|
+
const headers = {};
|
|
226
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
|
|
227
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
|
|
228
|
+
let body;
|
|
229
|
+
return new protocol_http_1.HttpRequest({
|
|
230
|
+
protocol,
|
|
231
|
+
hostname,
|
|
232
|
+
port,
|
|
233
|
+
method: "GET",
|
|
234
|
+
headers,
|
|
235
|
+
path: resolvedPath,
|
|
236
|
+
body,
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
exports.serializeAws_restJson1DescribeEphemerisCommand = serializeAws_restJson1DescribeEphemerisCommand;
|
|
177
240
|
const serializeAws_restJson1GetConfigCommand = async (input, context) => {
|
|
178
241
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
242
|
const headers = {};
|
|
@@ -336,6 +399,37 @@ const serializeAws_restJson1ListDataflowEndpointGroupsCommand = async (input, co
|
|
|
336
399
|
});
|
|
337
400
|
};
|
|
338
401
|
exports.serializeAws_restJson1ListDataflowEndpointGroupsCommand = serializeAws_restJson1ListDataflowEndpointGroupsCommand;
|
|
402
|
+
const serializeAws_restJson1ListEphemeridesCommand = async (input, context) => {
|
|
403
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
|
+
const headers = {
|
|
405
|
+
"content-type": "application/json",
|
|
406
|
+
};
|
|
407
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemerides";
|
|
408
|
+
const query = map({
|
|
409
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
410
|
+
nextToken: [, input.nextToken],
|
|
411
|
+
});
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify({
|
|
414
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
415
|
+
...(input.satelliteId != null && { satelliteId: input.satelliteId }),
|
|
416
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
417
|
+
...(input.statusList != null && {
|
|
418
|
+
statusList: serializeAws_restJson1EphemerisStatusList(input.statusList, context),
|
|
419
|
+
}),
|
|
420
|
+
});
|
|
421
|
+
return new protocol_http_1.HttpRequest({
|
|
422
|
+
protocol,
|
|
423
|
+
hostname,
|
|
424
|
+
port,
|
|
425
|
+
method: "POST",
|
|
426
|
+
headers,
|
|
427
|
+
path: resolvedPath,
|
|
428
|
+
query,
|
|
429
|
+
body,
|
|
430
|
+
});
|
|
431
|
+
};
|
|
432
|
+
exports.serializeAws_restJson1ListEphemeridesCommand = serializeAws_restJson1ListEphemeridesCommand;
|
|
339
433
|
const serializeAws_restJson1ListGroundStationsCommand = async (input, context) => {
|
|
340
434
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
435
|
const headers = {};
|
|
@@ -510,6 +604,30 @@ const serializeAws_restJson1UpdateConfigCommand = async (input, context) => {
|
|
|
510
604
|
});
|
|
511
605
|
};
|
|
512
606
|
exports.serializeAws_restJson1UpdateConfigCommand = serializeAws_restJson1UpdateConfigCommand;
|
|
607
|
+
const serializeAws_restJson1UpdateEphemerisCommand = async (input, context) => {
|
|
608
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
|
+
const headers = {
|
|
610
|
+
"content-type": "application/json",
|
|
611
|
+
};
|
|
612
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
|
|
613
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
|
|
614
|
+
let body;
|
|
615
|
+
body = JSON.stringify({
|
|
616
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
617
|
+
...(input.name != null && { name: input.name }),
|
|
618
|
+
...(input.priority != null && { priority: input.priority }),
|
|
619
|
+
});
|
|
620
|
+
return new protocol_http_1.HttpRequest({
|
|
621
|
+
protocol,
|
|
622
|
+
hostname,
|
|
623
|
+
port,
|
|
624
|
+
method: "PUT",
|
|
625
|
+
headers,
|
|
626
|
+
path: resolvedPath,
|
|
627
|
+
body,
|
|
628
|
+
});
|
|
629
|
+
};
|
|
630
|
+
exports.serializeAws_restJson1UpdateEphemerisCommand = serializeAws_restJson1UpdateEphemerisCommand;
|
|
513
631
|
const serializeAws_restJson1UpdateMissionProfileCommand = async (input, context) => {
|
|
514
632
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
515
633
|
const headers = {
|
|
@@ -674,6 +792,46 @@ const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (o
|
|
|
674
792
|
});
|
|
675
793
|
}
|
|
676
794
|
};
|
|
795
|
+
const deserializeAws_restJson1CreateEphemerisCommand = async (output, context) => {
|
|
796
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
797
|
+
return deserializeAws_restJson1CreateEphemerisCommandError(output, context);
|
|
798
|
+
}
|
|
799
|
+
const contents = map({
|
|
800
|
+
$metadata: deserializeMetadata(output),
|
|
801
|
+
});
|
|
802
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
803
|
+
if (data.ephemerisId != null) {
|
|
804
|
+
contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
|
|
805
|
+
}
|
|
806
|
+
return contents;
|
|
807
|
+
};
|
|
808
|
+
exports.deserializeAws_restJson1CreateEphemerisCommand = deserializeAws_restJson1CreateEphemerisCommand;
|
|
809
|
+
const deserializeAws_restJson1CreateEphemerisCommandError = async (output, context) => {
|
|
810
|
+
const parsedOutput = {
|
|
811
|
+
...output,
|
|
812
|
+
body: await parseErrorBody(output.body, context),
|
|
813
|
+
};
|
|
814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
815
|
+
switch (errorCode) {
|
|
816
|
+
case "DependencyException":
|
|
817
|
+
case "com.amazonaws.groundstation#DependencyException":
|
|
818
|
+
throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
|
|
819
|
+
case "InvalidParameterException":
|
|
820
|
+
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
821
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
822
|
+
case "ResourceNotFoundException":
|
|
823
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
824
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
825
|
+
default:
|
|
826
|
+
const parsedBody = parsedOutput.body;
|
|
827
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
828
|
+
output,
|
|
829
|
+
parsedBody,
|
|
830
|
+
exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
|
|
831
|
+
errorCode,
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
};
|
|
677
835
|
const deserializeAws_restJson1CreateMissionProfileCommand = async (output, context) => {
|
|
678
836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
837
|
return deserializeAws_restJson1CreateMissionProfileCommandError(output, context);
|
|
@@ -800,6 +958,46 @@ const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (o
|
|
|
800
958
|
});
|
|
801
959
|
}
|
|
802
960
|
};
|
|
961
|
+
const deserializeAws_restJson1DeleteEphemerisCommand = async (output, context) => {
|
|
962
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
963
|
+
return deserializeAws_restJson1DeleteEphemerisCommandError(output, context);
|
|
964
|
+
}
|
|
965
|
+
const contents = map({
|
|
966
|
+
$metadata: deserializeMetadata(output),
|
|
967
|
+
});
|
|
968
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
969
|
+
if (data.ephemerisId != null) {
|
|
970
|
+
contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
|
|
971
|
+
}
|
|
972
|
+
return contents;
|
|
973
|
+
};
|
|
974
|
+
exports.deserializeAws_restJson1DeleteEphemerisCommand = deserializeAws_restJson1DeleteEphemerisCommand;
|
|
975
|
+
const deserializeAws_restJson1DeleteEphemerisCommandError = async (output, context) => {
|
|
976
|
+
const parsedOutput = {
|
|
977
|
+
...output,
|
|
978
|
+
body: await parseErrorBody(output.body, context),
|
|
979
|
+
};
|
|
980
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
+
switch (errorCode) {
|
|
982
|
+
case "DependencyException":
|
|
983
|
+
case "com.amazonaws.groundstation#DependencyException":
|
|
984
|
+
throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
|
|
985
|
+
case "InvalidParameterException":
|
|
986
|
+
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
987
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
988
|
+
case "ResourceNotFoundException":
|
|
989
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
990
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
991
|
+
default:
|
|
992
|
+
const parsedBody = parsedOutput.body;
|
|
993
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
994
|
+
output,
|
|
995
|
+
parsedBody,
|
|
996
|
+
exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
|
|
997
|
+
errorCode,
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
803
1001
|
const deserializeAws_restJson1DeleteMissionProfileCommand = async (output, context) => {
|
|
804
1002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
1003
|
return deserializeAws_restJson1DeleteMissionProfileCommandError(output, context);
|
|
@@ -919,6 +1117,73 @@ const deserializeAws_restJson1DescribeContactCommandError = async (output, conte
|
|
|
919
1117
|
});
|
|
920
1118
|
}
|
|
921
1119
|
};
|
|
1120
|
+
const deserializeAws_restJson1DescribeEphemerisCommand = async (output, context) => {
|
|
1121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
+
return deserializeAws_restJson1DescribeEphemerisCommandError(output, context);
|
|
1123
|
+
}
|
|
1124
|
+
const contents = map({
|
|
1125
|
+
$metadata: deserializeMetadata(output),
|
|
1126
|
+
});
|
|
1127
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1128
|
+
if (data.creationTime != null) {
|
|
1129
|
+
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
1130
|
+
}
|
|
1131
|
+
if (data.enabled != null) {
|
|
1132
|
+
contents.enabled = (0, smithy_client_1.expectBoolean)(data.enabled);
|
|
1133
|
+
}
|
|
1134
|
+
if (data.ephemerisId != null) {
|
|
1135
|
+
contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
|
|
1136
|
+
}
|
|
1137
|
+
if (data.invalidReason != null) {
|
|
1138
|
+
contents.invalidReason = (0, smithy_client_1.expectString)(data.invalidReason);
|
|
1139
|
+
}
|
|
1140
|
+
if (data.name != null) {
|
|
1141
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1142
|
+
}
|
|
1143
|
+
if (data.priority != null) {
|
|
1144
|
+
contents.priority = (0, smithy_client_1.expectInt32)(data.priority);
|
|
1145
|
+
}
|
|
1146
|
+
if (data.satelliteId != null) {
|
|
1147
|
+
contents.satelliteId = (0, smithy_client_1.expectString)(data.satelliteId);
|
|
1148
|
+
}
|
|
1149
|
+
if (data.status != null) {
|
|
1150
|
+
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1151
|
+
}
|
|
1152
|
+
if (data.suppliedData != null) {
|
|
1153
|
+
contents.suppliedData = deserializeAws_restJson1EphemerisTypeDescription((0, smithy_client_1.expectUnion)(data.suppliedData), context);
|
|
1154
|
+
}
|
|
1155
|
+
if (data.tags != null) {
|
|
1156
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1157
|
+
}
|
|
1158
|
+
return contents;
|
|
1159
|
+
};
|
|
1160
|
+
exports.deserializeAws_restJson1DescribeEphemerisCommand = deserializeAws_restJson1DescribeEphemerisCommand;
|
|
1161
|
+
const deserializeAws_restJson1DescribeEphemerisCommandError = async (output, context) => {
|
|
1162
|
+
const parsedOutput = {
|
|
1163
|
+
...output,
|
|
1164
|
+
body: await parseErrorBody(output.body, context),
|
|
1165
|
+
};
|
|
1166
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
+
switch (errorCode) {
|
|
1168
|
+
case "DependencyException":
|
|
1169
|
+
case "com.amazonaws.groundstation#DependencyException":
|
|
1170
|
+
throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
|
|
1171
|
+
case "InvalidParameterException":
|
|
1172
|
+
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1173
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1174
|
+
case "ResourceNotFoundException":
|
|
1175
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1176
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1177
|
+
default:
|
|
1178
|
+
const parsedBody = parsedOutput.body;
|
|
1179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1180
|
+
output,
|
|
1181
|
+
parsedBody,
|
|
1182
|
+
exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
|
|
1183
|
+
errorCode,
|
|
1184
|
+
});
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
922
1187
|
const deserializeAws_restJson1GetConfigCommand = async (output, context) => {
|
|
923
1188
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
1189
|
return deserializeAws_restJson1GetConfigCommandError(output, context);
|
|
@@ -1150,6 +1415,9 @@ const deserializeAws_restJson1GetSatelliteCommand = async (output, context) => {
|
|
|
1150
1415
|
$metadata: deserializeMetadata(output),
|
|
1151
1416
|
});
|
|
1152
1417
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1418
|
+
if (data.currentEphemeris != null) {
|
|
1419
|
+
contents.currentEphemeris = deserializeAws_restJson1EphemerisMetaData(data.currentEphemeris, context);
|
|
1420
|
+
}
|
|
1153
1421
|
if (data.groundStations != null) {
|
|
1154
1422
|
contents.groundStations = deserializeAws_restJson1GroundStationIdList(data.groundStations, context);
|
|
1155
1423
|
}
|
|
@@ -1320,6 +1588,49 @@ const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (ou
|
|
|
1320
1588
|
});
|
|
1321
1589
|
}
|
|
1322
1590
|
};
|
|
1591
|
+
const deserializeAws_restJson1ListEphemeridesCommand = async (output, context) => {
|
|
1592
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1593
|
+
return deserializeAws_restJson1ListEphemeridesCommandError(output, context);
|
|
1594
|
+
}
|
|
1595
|
+
const contents = map({
|
|
1596
|
+
$metadata: deserializeMetadata(output),
|
|
1597
|
+
});
|
|
1598
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1599
|
+
if (data.ephemerides != null) {
|
|
1600
|
+
contents.ephemerides = deserializeAws_restJson1EphemeridesList(data.ephemerides, context);
|
|
1601
|
+
}
|
|
1602
|
+
if (data.nextToken != null) {
|
|
1603
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1604
|
+
}
|
|
1605
|
+
return contents;
|
|
1606
|
+
};
|
|
1607
|
+
exports.deserializeAws_restJson1ListEphemeridesCommand = deserializeAws_restJson1ListEphemeridesCommand;
|
|
1608
|
+
const deserializeAws_restJson1ListEphemeridesCommandError = async (output, context) => {
|
|
1609
|
+
const parsedOutput = {
|
|
1610
|
+
...output,
|
|
1611
|
+
body: await parseErrorBody(output.body, context),
|
|
1612
|
+
};
|
|
1613
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
|
+
switch (errorCode) {
|
|
1615
|
+
case "DependencyException":
|
|
1616
|
+
case "com.amazonaws.groundstation#DependencyException":
|
|
1617
|
+
throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
|
|
1618
|
+
case "InvalidParameterException":
|
|
1619
|
+
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1620
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1621
|
+
case "ResourceNotFoundException":
|
|
1622
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1623
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1624
|
+
default:
|
|
1625
|
+
const parsedBody = parsedOutput.body;
|
|
1626
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1627
|
+
output,
|
|
1628
|
+
parsedBody,
|
|
1629
|
+
exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
|
|
1630
|
+
errorCode,
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
};
|
|
1323
1634
|
const deserializeAws_restJson1ListGroundStationsCommand = async (output, context) => {
|
|
1324
1635
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1325
1636
|
return deserializeAws_restJson1ListGroundStationsCommandError(output, context);
|
|
@@ -1649,6 +1960,46 @@ const deserializeAws_restJson1UpdateConfigCommandError = async (output, context)
|
|
|
1649
1960
|
});
|
|
1650
1961
|
}
|
|
1651
1962
|
};
|
|
1963
|
+
const deserializeAws_restJson1UpdateEphemerisCommand = async (output, context) => {
|
|
1964
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1965
|
+
return deserializeAws_restJson1UpdateEphemerisCommandError(output, context);
|
|
1966
|
+
}
|
|
1967
|
+
const contents = map({
|
|
1968
|
+
$metadata: deserializeMetadata(output),
|
|
1969
|
+
});
|
|
1970
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1971
|
+
if (data.ephemerisId != null) {
|
|
1972
|
+
contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
|
|
1973
|
+
}
|
|
1974
|
+
return contents;
|
|
1975
|
+
};
|
|
1976
|
+
exports.deserializeAws_restJson1UpdateEphemerisCommand = deserializeAws_restJson1UpdateEphemerisCommand;
|
|
1977
|
+
const deserializeAws_restJson1UpdateEphemerisCommandError = async (output, context) => {
|
|
1978
|
+
const parsedOutput = {
|
|
1979
|
+
...output,
|
|
1980
|
+
body: await parseErrorBody(output.body, context),
|
|
1981
|
+
};
|
|
1982
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
|
+
switch (errorCode) {
|
|
1984
|
+
case "DependencyException":
|
|
1985
|
+
case "com.amazonaws.groundstation#DependencyException":
|
|
1986
|
+
throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
|
|
1987
|
+
case "InvalidParameterException":
|
|
1988
|
+
case "com.amazonaws.groundstation#InvalidParameterException":
|
|
1989
|
+
throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1990
|
+
case "ResourceNotFoundException":
|
|
1991
|
+
case "com.amazonaws.groundstation#ResourceNotFoundException":
|
|
1992
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1993
|
+
default:
|
|
1994
|
+
const parsedBody = parsedOutput.body;
|
|
1995
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1996
|
+
output,
|
|
1997
|
+
parsedBody,
|
|
1998
|
+
exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
|
|
1999
|
+
errorCode,
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
};
|
|
1652
2003
|
const deserializeAws_restJson1UpdateMissionProfileCommand = async (output, context) => {
|
|
1653
2004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1654
2005
|
return deserializeAws_restJson1UpdateMissionProfileCommandError(output, context);
|
|
@@ -1855,6 +2206,20 @@ const serializeAws_restJson1EndpointDetailsList = (input, context) => {
|
|
|
1855
2206
|
return serializeAws_restJson1EndpointDetails(entry, context);
|
|
1856
2207
|
});
|
|
1857
2208
|
};
|
|
2209
|
+
const serializeAws_restJson1EphemerisData = (input, context) => {
|
|
2210
|
+
return models_0_1.EphemerisData.visit(input, {
|
|
2211
|
+
oem: (value) => ({ oem: serializeAws_restJson1OEMEphemeris(value, context) }),
|
|
2212
|
+
tle: (value) => ({ tle: serializeAws_restJson1TLEEphemeris(value, context) }),
|
|
2213
|
+
_: (name, value) => ({ name: value }),
|
|
2214
|
+
});
|
|
2215
|
+
};
|
|
2216
|
+
const serializeAws_restJson1EphemerisStatusList = (input, context) => {
|
|
2217
|
+
return input
|
|
2218
|
+
.filter((e) => e != null)
|
|
2219
|
+
.map((entry) => {
|
|
2220
|
+
return entry;
|
|
2221
|
+
});
|
|
2222
|
+
};
|
|
1858
2223
|
const serializeAws_restJson1Frequency = (input, context) => {
|
|
1859
2224
|
return {
|
|
1860
2225
|
...(input.units != null && { units: input.units }),
|
|
@@ -1867,6 +2232,19 @@ const serializeAws_restJson1FrequencyBandwidth = (input, context) => {
|
|
|
1867
2232
|
...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
|
|
1868
2233
|
};
|
|
1869
2234
|
};
|
|
2235
|
+
const serializeAws_restJson1OEMEphemeris = (input, context) => {
|
|
2236
|
+
return {
|
|
2237
|
+
...(input.oemData != null && { oemData: input.oemData }),
|
|
2238
|
+
...(input.s3Object != null && { s3Object: serializeAws_restJson1S3Object(input.s3Object, context) }),
|
|
2239
|
+
};
|
|
2240
|
+
};
|
|
2241
|
+
const serializeAws_restJson1S3Object = (input, context) => {
|
|
2242
|
+
return {
|
|
2243
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
2244
|
+
...(input.key != null && { key: input.key }),
|
|
2245
|
+
...(input.version != null && { version: input.version }),
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
1870
2248
|
const serializeAws_restJson1S3RecordingConfig = (input, context) => {
|
|
1871
2249
|
return {
|
|
1872
2250
|
...(input.bucketArn != null && { bucketArn: input.bucketArn }),
|
|
@@ -1930,6 +2308,34 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
1930
2308
|
};
|
|
1931
2309
|
}, {});
|
|
1932
2310
|
};
|
|
2311
|
+
const serializeAws_restJson1TimeRange = (input, context) => {
|
|
2312
|
+
return {
|
|
2313
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2314
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2317
|
+
const serializeAws_restJson1TLEData = (input, context) => {
|
|
2318
|
+
return {
|
|
2319
|
+
...(input.tleLine1 != null && { tleLine1: input.tleLine1 }),
|
|
2320
|
+
...(input.tleLine2 != null && { tleLine2: input.tleLine2 }),
|
|
2321
|
+
...(input.validTimeRange != null && {
|
|
2322
|
+
validTimeRange: serializeAws_restJson1TimeRange(input.validTimeRange, context),
|
|
2323
|
+
}),
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
const serializeAws_restJson1TLEDataList = (input, context) => {
|
|
2327
|
+
return input
|
|
2328
|
+
.filter((e) => e != null)
|
|
2329
|
+
.map((entry) => {
|
|
2330
|
+
return serializeAws_restJson1TLEData(entry, context);
|
|
2331
|
+
});
|
|
2332
|
+
};
|
|
2333
|
+
const serializeAws_restJson1TLEEphemeris = (input, context) => {
|
|
2334
|
+
return {
|
|
2335
|
+
...(input.s3Object != null && { s3Object: serializeAws_restJson1S3Object(input.s3Object, context) }),
|
|
2336
|
+
...(input.tleData != null && { tleData: serializeAws_restJson1TLEDataList(input.tleData, context) }),
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
1933
2339
|
const serializeAws_restJson1TrackingConfig = (input, context) => {
|
|
1934
2340
|
return {
|
|
1935
2341
|
...(input.autotrack != null && { autotrack: input.autotrack }),
|
|
@@ -2210,6 +2616,57 @@ const deserializeAws_restJson1EndpointDetailsList = (output, context) => {
|
|
|
2210
2616
|
});
|
|
2211
2617
|
return retVal;
|
|
2212
2618
|
};
|
|
2619
|
+
const deserializeAws_restJson1EphemeridesList = (output, context) => {
|
|
2620
|
+
const retVal = (output || [])
|
|
2621
|
+
.filter((e) => e != null)
|
|
2622
|
+
.map((entry) => {
|
|
2623
|
+
if (entry === null) {
|
|
2624
|
+
return null;
|
|
2625
|
+
}
|
|
2626
|
+
return deserializeAws_restJson1EphemerisItem(entry, context);
|
|
2627
|
+
});
|
|
2628
|
+
return retVal;
|
|
2629
|
+
};
|
|
2630
|
+
const deserializeAws_restJson1EphemerisDescription = (output, context) => {
|
|
2631
|
+
return {
|
|
2632
|
+
ephemerisData: (0, smithy_client_1.expectString)(output.ephemerisData),
|
|
2633
|
+
sourceS3Object: output.sourceS3Object != null ? deserializeAws_restJson1S3Object(output.sourceS3Object, context) : undefined,
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
const deserializeAws_restJson1EphemerisItem = (output, context) => {
|
|
2637
|
+
return {
|
|
2638
|
+
creationTime: output.creationTime != null
|
|
2639
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2640
|
+
: undefined,
|
|
2641
|
+
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2642
|
+
ephemerisId: (0, smithy_client_1.expectString)(output.ephemerisId),
|
|
2643
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2644
|
+
priority: (0, smithy_client_1.expectInt32)(output.priority),
|
|
2645
|
+
sourceS3Object: output.sourceS3Object != null ? deserializeAws_restJson1S3Object(output.sourceS3Object, context) : undefined,
|
|
2646
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2647
|
+
};
|
|
2648
|
+
};
|
|
2649
|
+
const deserializeAws_restJson1EphemerisMetaData = (output, context) => {
|
|
2650
|
+
return {
|
|
2651
|
+
ephemerisId: (0, smithy_client_1.expectString)(output.ephemerisId),
|
|
2652
|
+
epoch: output.epoch != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.epoch))) : undefined,
|
|
2653
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2654
|
+
source: (0, smithy_client_1.expectString)(output.source),
|
|
2655
|
+
};
|
|
2656
|
+
};
|
|
2657
|
+
const deserializeAws_restJson1EphemerisTypeDescription = (output, context) => {
|
|
2658
|
+
if (output.oem != null) {
|
|
2659
|
+
return {
|
|
2660
|
+
oem: deserializeAws_restJson1EphemerisDescription(output.oem, context),
|
|
2661
|
+
};
|
|
2662
|
+
}
|
|
2663
|
+
if (output.tle != null) {
|
|
2664
|
+
return {
|
|
2665
|
+
tle: deserializeAws_restJson1EphemerisDescription(output.tle, context),
|
|
2666
|
+
};
|
|
2667
|
+
}
|
|
2668
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2669
|
+
};
|
|
2213
2670
|
const deserializeAws_restJson1Frequency = (output, context) => {
|
|
2214
2671
|
return {
|
|
2215
2672
|
units: (0, smithy_client_1.expectString)(output.units),
|
|
@@ -2270,6 +2727,13 @@ const deserializeAws_restJson1MissionProfileListItem = (output, context) => {
|
|
|
2270
2727
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
2271
2728
|
};
|
|
2272
2729
|
};
|
|
2730
|
+
const deserializeAws_restJson1S3Object = (output, context) => {
|
|
2731
|
+
return {
|
|
2732
|
+
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
2733
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
2734
|
+
version: (0, smithy_client_1.expectString)(output.version),
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2273
2737
|
const deserializeAws_restJson1S3RecordingConfig = (output, context) => {
|
|
2274
2738
|
return {
|
|
2275
2739
|
bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
|
|
@@ -2296,6 +2760,9 @@ const deserializeAws_restJson1SatelliteList = (output, context) => {
|
|
|
2296
2760
|
};
|
|
2297
2761
|
const deserializeAws_restJson1SatelliteListItem = (output, context) => {
|
|
2298
2762
|
return {
|
|
2763
|
+
currentEphemeris: output.currentEphemeris != null
|
|
2764
|
+
? deserializeAws_restJson1EphemerisMetaData(output.currentEphemeris, context)
|
|
2765
|
+
: undefined,
|
|
2299
2766
|
groundStations: output.groundStations != null
|
|
2300
2767
|
? deserializeAws_restJson1GroundStationIdList(output.groundStations, context)
|
|
2301
2768
|
: undefined,
|