@aws-sdk/client-groundstation 3.261.0 → 3.264.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 (31) hide show
  1. package/dist-cjs/GroundStation.js +45 -0
  2. package/dist-cjs/commands/GetAgentConfigurationCommand.js +46 -0
  3. package/dist-cjs/commands/RegisterAgentCommand.js +46 -0
  4. package/dist-cjs/commands/UpdateAgentStatusCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/models_0.js +138 -34
  7. package/dist-cjs/protocols/Aws_restJson1.js +410 -2
  8. package/dist-es/GroundStation.js +45 -0
  9. package/dist-es/commands/GetAgentConfigurationCommand.js +42 -0
  10. package/dist-es/commands/RegisterAgentCommand.js +42 -0
  11. package/dist-es/commands/UpdateAgentStatusCommand.js +42 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/models/models_0.js +117 -30
  14. package/dist-es/protocols/Aws_restJson1.js +403 -1
  15. package/dist-types/GroundStation.d.ts +21 -0
  16. package/dist-types/GroundStationClient.d.ts +5 -2
  17. package/dist-types/commands/GetAgentConfigurationCommand.d.ts +37 -0
  18. package/dist-types/commands/RegisterAgentCommand.d.ts +37 -0
  19. package/dist-types/commands/UpdateAgentStatusCommand.d.ts +37 -0
  20. package/dist-types/commands/index.d.ts +3 -0
  21. package/dist-types/models/models_0.d.ts +425 -47
  22. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  23. package/dist-types/ts3.4/GroundStation.d.ts +51 -0
  24. package/dist-types/ts3.4/GroundStationClient.d.ts +18 -0
  25. package/dist-types/ts3.4/commands/GetAgentConfigurationCommand.d.ts +41 -0
  26. package/dist-types/ts3.4/commands/RegisterAgentCommand.d.ts +37 -0
  27. package/dist-types/ts3.4/commands/UpdateAgentStatusCommand.d.ts +38 -0
  28. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +199 -30
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  31. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.deserializeAws_restJson1GetSatelliteCommand = exports.deserializeAws_restJson1GetMissionProfileCommand = exports.deserializeAws_restJson1GetMinuteUsageCommand = exports.deserializeAws_restJson1GetDataflowEndpointGroupCommand = exports.deserializeAws_restJson1GetConfigCommand = exports.deserializeAws_restJson1GetAgentConfigurationCommand = 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_restJson1UpdateAgentStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ReserveContactCommand = exports.serializeAws_restJson1RegisterAgentCommand = 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_restJson1GetAgentConfigurationCommand = 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_restJson1UpdateAgentStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ReserveContactCommand = exports.deserializeAws_restJson1RegisterAgentCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSatellitesCommand = exports.deserializeAws_restJson1ListMissionProfilesCommand = exports.deserializeAws_restJson1ListGroundStationsCommand = exports.deserializeAws_restJson1ListEphemeridesCommand = exports.deserializeAws_restJson1ListDataflowEndpointGroupsCommand = exports.deserializeAws_restJson1ListContactsCommand = exports.deserializeAws_restJson1ListConfigsCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const GroundStationServiceException_1 = require("../models/GroundStationServiceException");
@@ -125,6 +125,8 @@ const serializeAws_restJson1CreateMissionProfileCommand = async (input, context)
125
125
  minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
126
126
  }),
127
127
  ...(input.name != null && { name: input.name }),
128
+ ...(input.streamsKmsKey != null && { streamsKmsKey: serializeAws_restJson1KmsKey(input.streamsKmsKey, context) }),
129
+ ...(input.streamsKmsRole != null && { streamsKmsRole: input.streamsKmsRole }),
128
130
  ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
129
131
  ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
130
132
  });
@@ -243,6 +245,23 @@ const serializeAws_restJson1DescribeEphemerisCommand = async (input, context) =>
243
245
  });
244
246
  };
245
247
  exports.serializeAws_restJson1DescribeEphemerisCommand = serializeAws_restJson1DescribeEphemerisCommand;
248
+ const serializeAws_restJson1GetAgentConfigurationCommand = async (input, context) => {
249
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
250
+ const headers = {};
251
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}/configuration";
252
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
253
+ let body;
254
+ return new protocol_http_1.HttpRequest({
255
+ protocol,
256
+ hostname,
257
+ port,
258
+ method: "GET",
259
+ headers,
260
+ path: resolvedPath,
261
+ body,
262
+ });
263
+ };
264
+ exports.serializeAws_restJson1GetAgentConfigurationCommand = serializeAws_restJson1GetAgentConfigurationCommand;
246
265
  const serializeAws_restJson1GetConfigCommand = async (input, context) => {
247
266
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
267
  const headers = {};
@@ -517,6 +536,32 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
517
536
  });
518
537
  };
519
538
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
539
+ const serializeAws_restJson1RegisterAgentCommand = async (input, context) => {
540
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
541
+ const headers = {
542
+ "content-type": "application/json",
543
+ };
544
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent";
545
+ let body;
546
+ body = JSON.stringify({
547
+ ...(input.agentDetails != null && {
548
+ agentDetails: serializeAws_restJson1AgentDetails(input.agentDetails, context),
549
+ }),
550
+ ...(input.discoveryData != null && {
551
+ discoveryData: serializeAws_restJson1DiscoveryData(input.discoveryData, context),
552
+ }),
553
+ });
554
+ return new protocol_http_1.HttpRequest({
555
+ protocol,
556
+ hostname,
557
+ port,
558
+ method: "POST",
559
+ headers,
560
+ path: resolvedPath,
561
+ body,
562
+ });
563
+ };
564
+ exports.serializeAws_restJson1RegisterAgentCommand = serializeAws_restJson1RegisterAgentCommand;
520
565
  const serializeAws_restJson1ReserveContactCommand = async (input, context) => {
521
566
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
522
567
  const headers = {
@@ -589,6 +634,34 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
589
634
  });
590
635
  };
591
636
  exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
637
+ const serializeAws_restJson1UpdateAgentStatusCommand = async (input, context) => {
638
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
639
+ const headers = {
640
+ "content-type": "application/json",
641
+ };
642
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}";
643
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
644
+ let body;
645
+ body = JSON.stringify({
646
+ ...(input.aggregateStatus != null && {
647
+ aggregateStatus: serializeAws_restJson1AggregateStatus(input.aggregateStatus, context),
648
+ }),
649
+ ...(input.componentStatuses != null && {
650
+ componentStatuses: serializeAws_restJson1ComponentStatusList(input.componentStatuses, context),
651
+ }),
652
+ ...(input.taskId != null && { taskId: input.taskId }),
653
+ });
654
+ return new protocol_http_1.HttpRequest({
655
+ protocol,
656
+ hostname,
657
+ port,
658
+ method: "PUT",
659
+ headers,
660
+ path: resolvedPath,
661
+ body,
662
+ });
663
+ };
664
+ exports.serializeAws_restJson1UpdateAgentStatusCommand = serializeAws_restJson1UpdateAgentStatusCommand;
592
665
  const serializeAws_restJson1UpdateConfigCommand = async (input, context) => {
593
666
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
594
667
  const headers = {
@@ -659,6 +732,8 @@ const serializeAws_restJson1UpdateMissionProfileCommand = async (input, context)
659
732
  minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
660
733
  }),
661
734
  ...(input.name != null && { name: input.name }),
735
+ ...(input.streamsKmsKey != null && { streamsKmsKey: serializeAws_restJson1KmsKey(input.streamsKmsKey, context) }),
736
+ ...(input.streamsKmsRole != null && { streamsKmsRole: input.streamsKmsRole }),
662
737
  ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
663
738
  });
664
739
  return new protocol_http_1.HttpRequest({
@@ -1193,6 +1268,49 @@ const deserializeAws_restJson1DescribeEphemerisCommandError = async (output, con
1193
1268
  });
1194
1269
  }
1195
1270
  };
1271
+ const deserializeAws_restJson1GetAgentConfigurationCommand = async (output, context) => {
1272
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1273
+ return deserializeAws_restJson1GetAgentConfigurationCommandError(output, context);
1274
+ }
1275
+ const contents = map({
1276
+ $metadata: deserializeMetadata(output),
1277
+ });
1278
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1279
+ if (data.agentId != null) {
1280
+ contents.agentId = (0, smithy_client_1.expectString)(data.agentId);
1281
+ }
1282
+ if (data.taskingDocument != null) {
1283
+ contents.taskingDocument = (0, smithy_client_1.expectString)(data.taskingDocument);
1284
+ }
1285
+ return contents;
1286
+ };
1287
+ exports.deserializeAws_restJson1GetAgentConfigurationCommand = deserializeAws_restJson1GetAgentConfigurationCommand;
1288
+ const deserializeAws_restJson1GetAgentConfigurationCommandError = async (output, context) => {
1289
+ const parsedOutput = {
1290
+ ...output,
1291
+ body: await parseErrorBody(output.body, context),
1292
+ };
1293
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1294
+ switch (errorCode) {
1295
+ case "DependencyException":
1296
+ case "com.amazonaws.groundstation#DependencyException":
1297
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1298
+ case "InvalidParameterException":
1299
+ case "com.amazonaws.groundstation#InvalidParameterException":
1300
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1301
+ case "ResourceNotFoundException":
1302
+ case "com.amazonaws.groundstation#ResourceNotFoundException":
1303
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1304
+ default:
1305
+ const parsedBody = parsedOutput.body;
1306
+ (0, smithy_client_1.throwDefaultError)({
1307
+ output,
1308
+ parsedBody,
1309
+ exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1310
+ errorCode,
1311
+ });
1312
+ }
1313
+ };
1196
1314
  const deserializeAws_restJson1GetConfigCommand = async (output, context) => {
1197
1315
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1198
1316
  return deserializeAws_restJson1GetConfigCommandError(output, context);
@@ -1387,6 +1505,12 @@ const deserializeAws_restJson1GetMissionProfileCommand = async (output, context)
1387
1505
  if (data.region != null) {
1388
1506
  contents.region = (0, smithy_client_1.expectString)(data.region);
1389
1507
  }
1508
+ if (data.streamsKmsKey != null) {
1509
+ contents.streamsKmsKey = deserializeAws_restJson1KmsKey((0, smithy_client_1.expectUnion)(data.streamsKmsKey), context);
1510
+ }
1511
+ if (data.streamsKmsRole != null) {
1512
+ contents.streamsKmsRole = (0, smithy_client_1.expectString)(data.streamsKmsRole);
1513
+ }
1390
1514
  if (data.tags != null) {
1391
1515
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1392
1516
  }
@@ -1815,6 +1939,46 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1815
1939
  });
1816
1940
  }
1817
1941
  };
1942
+ const deserializeAws_restJson1RegisterAgentCommand = async (output, context) => {
1943
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1944
+ return deserializeAws_restJson1RegisterAgentCommandError(output, context);
1945
+ }
1946
+ const contents = map({
1947
+ $metadata: deserializeMetadata(output),
1948
+ });
1949
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1950
+ if (data.agentId != null) {
1951
+ contents.agentId = (0, smithy_client_1.expectString)(data.agentId);
1952
+ }
1953
+ return contents;
1954
+ };
1955
+ exports.deserializeAws_restJson1RegisterAgentCommand = deserializeAws_restJson1RegisterAgentCommand;
1956
+ const deserializeAws_restJson1RegisterAgentCommandError = async (output, context) => {
1957
+ const parsedOutput = {
1958
+ ...output,
1959
+ body: await parseErrorBody(output.body, context),
1960
+ };
1961
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1962
+ switch (errorCode) {
1963
+ case "DependencyException":
1964
+ case "com.amazonaws.groundstation#DependencyException":
1965
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1966
+ case "InvalidParameterException":
1967
+ case "com.amazonaws.groundstation#InvalidParameterException":
1968
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1969
+ case "ResourceNotFoundException":
1970
+ case "com.amazonaws.groundstation#ResourceNotFoundException":
1971
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1972
+ default:
1973
+ const parsedBody = parsedOutput.body;
1974
+ (0, smithy_client_1.throwDefaultError)({
1975
+ output,
1976
+ parsedBody,
1977
+ exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1978
+ errorCode,
1979
+ });
1980
+ }
1981
+ };
1818
1982
  const deserializeAws_restJson1ReserveContactCommand = async (output, context) => {
1819
1983
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1820
1984
  return deserializeAws_restJson1ReserveContactCommandError(output, context);
@@ -1929,6 +2093,46 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1929
2093
  });
1930
2094
  }
1931
2095
  };
2096
+ const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context) => {
2097
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2098
+ return deserializeAws_restJson1UpdateAgentStatusCommandError(output, context);
2099
+ }
2100
+ const contents = map({
2101
+ $metadata: deserializeMetadata(output),
2102
+ });
2103
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2104
+ if (data.agentId != null) {
2105
+ contents.agentId = (0, smithy_client_1.expectString)(data.agentId);
2106
+ }
2107
+ return contents;
2108
+ };
2109
+ exports.deserializeAws_restJson1UpdateAgentStatusCommand = deserializeAws_restJson1UpdateAgentStatusCommand;
2110
+ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, context) => {
2111
+ const parsedOutput = {
2112
+ ...output,
2113
+ body: await parseErrorBody(output.body, context),
2114
+ };
2115
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2116
+ switch (errorCode) {
2117
+ case "DependencyException":
2118
+ case "com.amazonaws.groundstation#DependencyException":
2119
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2120
+ case "InvalidParameterException":
2121
+ case "com.amazonaws.groundstation#InvalidParameterException":
2122
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2123
+ case "ResourceNotFoundException":
2124
+ case "com.amazonaws.groundstation#ResourceNotFoundException":
2125
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2126
+ default:
2127
+ const parsedBody = parsedOutput.body;
2128
+ (0, smithy_client_1.throwDefaultError)({
2129
+ output,
2130
+ parsedBody,
2131
+ exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2132
+ errorCode,
2133
+ });
2134
+ }
2135
+ };
1932
2136
  const deserializeAws_restJson1UpdateConfigCommand = async (output, context) => {
1933
2137
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1934
2138
  return deserializeAws_restJson1UpdateConfigCommandError(output, context);
@@ -2113,6 +2317,27 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2113
2317
  });
2114
2318
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2115
2319
  };
2320
+ const serializeAws_restJson1AgentDetails = (input, context) => {
2321
+ return {
2322
+ ...(input.agentVersion != null && { agentVersion: input.agentVersion }),
2323
+ ...(input.componentVersions != null && {
2324
+ componentVersions: serializeAws_restJson1ComponentVersionList(input.componentVersions, context),
2325
+ }),
2326
+ ...(input.instanceId != null && { instanceId: input.instanceId }),
2327
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
2328
+ ...(input.reservedCpuCores != null && {
2329
+ reservedCpuCores: serializeAws_restJson1ReservedCpuCoresList(input.reservedCpuCores, context),
2330
+ }),
2331
+ };
2332
+ };
2333
+ const serializeAws_restJson1AggregateStatus = (input, context) => {
2334
+ return {
2335
+ ...(input.signatureMap != null && {
2336
+ signatureMap: serializeAws_restJson1SignatureMap(input.signatureMap, context),
2337
+ }),
2338
+ ...(input.status != null && { status: input.status }),
2339
+ };
2340
+ };
2116
2341
  const serializeAws_restJson1AntennaDownlinkConfig = (input, context) => {
2117
2342
  return {
2118
2343
  ...(input.spectrumConfig != null && {
@@ -2142,6 +2367,57 @@ const serializeAws_restJson1AntennaUplinkConfig = (input, context) => {
2142
2367
  ...(input.transmitDisabled != null && { transmitDisabled: input.transmitDisabled }),
2143
2368
  };
2144
2369
  };
2370
+ const serializeAws_restJson1AwsGroundStationAgentEndpoint = (input, context) => {
2371
+ return {
2372
+ ...(input.agentStatus != null && { agentStatus: input.agentStatus }),
2373
+ ...(input.auditResults != null && { auditResults: input.auditResults }),
2374
+ ...(input.egressAddress != null && {
2375
+ egressAddress: serializeAws_restJson1ConnectionDetails(input.egressAddress, context),
2376
+ }),
2377
+ ...(input.ingressAddress != null && {
2378
+ ingressAddress: serializeAws_restJson1RangedConnectionDetails(input.ingressAddress, context),
2379
+ }),
2380
+ ...(input.name != null && { name: input.name }),
2381
+ };
2382
+ };
2383
+ const serializeAws_restJson1CapabilityArnList = (input, context) => {
2384
+ return input
2385
+ .filter((e) => e != null)
2386
+ .map((entry) => {
2387
+ return entry;
2388
+ });
2389
+ };
2390
+ const serializeAws_restJson1ComponentStatusData = (input, context) => {
2391
+ return {
2392
+ ...(input.bytesReceived != null && { bytesReceived: input.bytesReceived }),
2393
+ ...(input.bytesSent != null && { bytesSent: input.bytesSent }),
2394
+ ...(input.capabilityArn != null && { capabilityArn: input.capabilityArn }),
2395
+ ...(input.componentType != null && { componentType: input.componentType }),
2396
+ ...(input.dataflowId != null && { dataflowId: input.dataflowId }),
2397
+ ...(input.packetsDropped != null && { packetsDropped: input.packetsDropped }),
2398
+ ...(input.status != null && { status: input.status }),
2399
+ };
2400
+ };
2401
+ const serializeAws_restJson1ComponentStatusList = (input, context) => {
2402
+ return input
2403
+ .filter((e) => e != null)
2404
+ .map((entry) => {
2405
+ return serializeAws_restJson1ComponentStatusData(entry, context);
2406
+ });
2407
+ };
2408
+ const serializeAws_restJson1ComponentVersion = (input, context) => {
2409
+ return {
2410
+ ...(input.componentType != null && { componentType: input.componentType }),
2411
+ ...(input.versions != null && { versions: serializeAws_restJson1VersionStringList(input.versions, context) }),
2412
+ };
2413
+ };
2414
+ const serializeAws_restJson1ComponentVersionList = (input, context) => {
2415
+ return input
2416
+ .filter((e) => e != null)
2417
+ .map((entry) => {
2418
+ return serializeAws_restJson1ComponentVersion(entry, context);
2419
+ });
2420
+ };
2145
2421
  const serializeAws_restJson1ConfigTypeData = (input, context) => {
2146
2422
  return models_0_1.ConfigTypeData.visit(input, {
2147
2423
  antennaDownlinkConfig: (value) => ({
@@ -2162,6 +2438,14 @@ const serializeAws_restJson1ConfigTypeData = (input, context) => {
2162
2438
  _: (name, value) => ({ name: value }),
2163
2439
  });
2164
2440
  };
2441
+ const serializeAws_restJson1ConnectionDetails = (input, context) => {
2442
+ return {
2443
+ ...(input.mtu != null && { mtu: input.mtu }),
2444
+ ...(input.socketAddress != null && {
2445
+ socketAddress: serializeAws_restJson1SocketAddress(input.socketAddress, context),
2446
+ }),
2447
+ };
2448
+ };
2165
2449
  const serializeAws_restJson1DataflowEdge = (input, context) => {
2166
2450
  return input
2167
2451
  .filter((e) => e != null)
@@ -2200,6 +2484,19 @@ const serializeAws_restJson1DemodulationConfig = (input, context) => {
2200
2484
  ...(input.unvalidatedJSON != null && { unvalidatedJSON: input.unvalidatedJSON }),
2201
2485
  };
2202
2486
  };
2487
+ const serializeAws_restJson1DiscoveryData = (input, context) => {
2488
+ return {
2489
+ ...(input.capabilityArns != null && {
2490
+ capabilityArns: serializeAws_restJson1CapabilityArnList(input.capabilityArns, context),
2491
+ }),
2492
+ ...(input.privateIpAddresses != null && {
2493
+ privateIpAddresses: serializeAws_restJson1IpAddressList(input.privateIpAddresses, context),
2494
+ }),
2495
+ ...(input.publicIpAddresses != null && {
2496
+ publicIpAddresses: serializeAws_restJson1IpAddressList(input.publicIpAddresses, context),
2497
+ }),
2498
+ };
2499
+ };
2203
2500
  const serializeAws_restJson1Eirp = (input, context) => {
2204
2501
  return {
2205
2502
  ...(input.units != null && { units: input.units }),
@@ -2208,6 +2505,9 @@ const serializeAws_restJson1Eirp = (input, context) => {
2208
2505
  };
2209
2506
  const serializeAws_restJson1EndpointDetails = (input, context) => {
2210
2507
  return {
2508
+ ...(input.awsGroundStationAgentEndpoint != null && {
2509
+ awsGroundStationAgentEndpoint: serializeAws_restJson1AwsGroundStationAgentEndpoint(input.awsGroundStationAgentEndpoint, context),
2510
+ }),
2211
2511
  ...(input.endpoint != null && { endpoint: serializeAws_restJson1DataflowEndpoint(input.endpoint, context) }),
2212
2512
  ...(input.securityDetails != null && {
2213
2513
  securityDetails: serializeAws_restJson1SecurityDetails(input.securityDetails, context),
@@ -2247,12 +2547,53 @@ const serializeAws_restJson1FrequencyBandwidth = (input, context) => {
2247
2547
  ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2248
2548
  };
2249
2549
  };
2550
+ const serializeAws_restJson1IntegerRange = (input, context) => {
2551
+ return {
2552
+ ...(input.maximum != null && { maximum: input.maximum }),
2553
+ ...(input.minimum != null && { minimum: input.minimum }),
2554
+ };
2555
+ };
2556
+ const serializeAws_restJson1IpAddressList = (input, context) => {
2557
+ return input
2558
+ .filter((e) => e != null)
2559
+ .map((entry) => {
2560
+ return entry;
2561
+ });
2562
+ };
2563
+ const serializeAws_restJson1KmsKey = (input, context) => {
2564
+ return models_0_1.KmsKey.visit(input, {
2565
+ kmsAliasArn: (value) => ({ kmsAliasArn: value }),
2566
+ kmsKeyArn: (value) => ({ kmsKeyArn: value }),
2567
+ _: (name, value) => ({ name: value }),
2568
+ });
2569
+ };
2250
2570
  const serializeAws_restJson1OEMEphemeris = (input, context) => {
2251
2571
  return {
2252
2572
  ...(input.oemData != null && { oemData: input.oemData }),
2253
2573
  ...(input.s3Object != null && { s3Object: serializeAws_restJson1S3Object(input.s3Object, context) }),
2254
2574
  };
2255
2575
  };
2576
+ const serializeAws_restJson1RangedConnectionDetails = (input, context) => {
2577
+ return {
2578
+ ...(input.mtu != null && { mtu: input.mtu }),
2579
+ ...(input.socketAddress != null && {
2580
+ socketAddress: serializeAws_restJson1RangedSocketAddress(input.socketAddress, context),
2581
+ }),
2582
+ };
2583
+ };
2584
+ const serializeAws_restJson1RangedSocketAddress = (input, context) => {
2585
+ return {
2586
+ ...(input.name != null && { name: input.name }),
2587
+ ...(input.portRange != null && { portRange: serializeAws_restJson1IntegerRange(input.portRange, context) }),
2588
+ };
2589
+ };
2590
+ const serializeAws_restJson1ReservedCpuCoresList = (input, context) => {
2591
+ return input
2592
+ .filter((e) => e != null)
2593
+ .map((entry) => {
2594
+ return entry;
2595
+ });
2596
+ };
2256
2597
  const serializeAws_restJson1S3Object = (input, context) => {
2257
2598
  return {
2258
2599
  ...(input.bucket != null && { bucket: input.bucket }),
@@ -2283,6 +2624,15 @@ const serializeAws_restJson1SecurityGroupIdList = (input, context) => {
2283
2624
  return entry;
2284
2625
  });
2285
2626
  };
2627
+ const serializeAws_restJson1SignatureMap = (input, context) => {
2628
+ return Object.entries(input).reduce((acc, [key, value]) => {
2629
+ if (value === null) {
2630
+ return acc;
2631
+ }
2632
+ acc[key] = value;
2633
+ return acc;
2634
+ }, {});
2635
+ };
2286
2636
  const serializeAws_restJson1SocketAddress = (input, context) => {
2287
2637
  return {
2288
2638
  ...(input.name != null && { name: input.name }),
@@ -2368,6 +2718,13 @@ const serializeAws_restJson1UplinkSpectrumConfig = (input, context) => {
2368
2718
  ...(input.polarization != null && { polarization: input.polarization }),
2369
2719
  };
2370
2720
  };
2721
+ const serializeAws_restJson1VersionStringList = (input, context) => {
2722
+ return input
2723
+ .filter((e) => e != null)
2724
+ .map((entry) => {
2725
+ return entry;
2726
+ });
2727
+ };
2371
2728
  const deserializeAws_restJson1AntennaDemodDecodeDetails = (output, context) => {
2372
2729
  return {
2373
2730
  outputNode: (0, smithy_client_1.expectString)(output.outputNode),
@@ -2400,6 +2757,19 @@ const deserializeAws_restJson1AntennaUplinkConfig = (output, context) => {
2400
2757
  transmitDisabled: (0, smithy_client_1.expectBoolean)(output.transmitDisabled),
2401
2758
  };
2402
2759
  };
2760
+ const deserializeAws_restJson1AwsGroundStationAgentEndpoint = (output, context) => {
2761
+ return {
2762
+ agentStatus: (0, smithy_client_1.expectString)(output.agentStatus),
2763
+ auditResults: (0, smithy_client_1.expectString)(output.auditResults),
2764
+ egressAddress: output.egressAddress != null
2765
+ ? deserializeAws_restJson1ConnectionDetails(output.egressAddress, context)
2766
+ : undefined,
2767
+ ingressAddress: output.ingressAddress != null
2768
+ ? deserializeAws_restJson1RangedConnectionDetails(output.ingressAddress, context)
2769
+ : undefined,
2770
+ name: (0, smithy_client_1.expectString)(output.name),
2771
+ };
2772
+ };
2403
2773
  const deserializeAws_restJson1ConfigDetails = (output, context) => {
2404
2774
  if (output.antennaDemodDecodeDetails != null) {
2405
2775
  return {
@@ -2475,6 +2845,12 @@ const deserializeAws_restJson1ConfigTypeData = (output, context) => {
2475
2845
  }
2476
2846
  return { $unknown: Object.entries(output)[0] };
2477
2847
  };
2848
+ const deserializeAws_restJson1ConnectionDetails = (output, context) => {
2849
+ return {
2850
+ mtu: (0, smithy_client_1.expectInt32)(output.mtu),
2851
+ socketAddress: output.socketAddress != null ? deserializeAws_restJson1SocketAddress(output.socketAddress, context) : undefined,
2852
+ };
2853
+ };
2478
2854
  const deserializeAws_restJson1ContactData = (output, context) => {
2479
2855
  return {
2480
2856
  contactId: (0, smithy_client_1.expectString)(output.contactId),
@@ -2612,6 +2988,9 @@ const deserializeAws_restJson1Elevation = (output, context) => {
2612
2988
  };
2613
2989
  const deserializeAws_restJson1EndpointDetails = (output, context) => {
2614
2990
  return {
2991
+ awsGroundStationAgentEndpoint: output.awsGroundStationAgentEndpoint != null
2992
+ ? deserializeAws_restJson1AwsGroundStationAgentEndpoint(output.awsGroundStationAgentEndpoint, context)
2993
+ : undefined,
2615
2994
  endpoint: output.endpoint != null ? deserializeAws_restJson1DataflowEndpoint(output.endpoint, context) : undefined,
2616
2995
  securityDetails: output.securityDetails != null
2617
2996
  ? deserializeAws_restJson1SecurityDetails(output.securityDetails, context)
@@ -2721,6 +3100,21 @@ const deserializeAws_restJson1GroundStationList = (output, context) => {
2721
3100
  });
2722
3101
  return retVal;
2723
3102
  };
3103
+ const deserializeAws_restJson1IntegerRange = (output, context) => {
3104
+ return {
3105
+ maximum: (0, smithy_client_1.expectInt32)(output.maximum),
3106
+ minimum: (0, smithy_client_1.expectInt32)(output.minimum),
3107
+ };
3108
+ };
3109
+ const deserializeAws_restJson1KmsKey = (output, context) => {
3110
+ if ((0, smithy_client_1.expectString)(output.kmsAliasArn) !== undefined) {
3111
+ return { kmsAliasArn: (0, smithy_client_1.expectString)(output.kmsAliasArn) };
3112
+ }
3113
+ if ((0, smithy_client_1.expectString)(output.kmsKeyArn) !== undefined) {
3114
+ return { kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn) };
3115
+ }
3116
+ return { $unknown: Object.entries(output)[0] };
3117
+ };
2724
3118
  const deserializeAws_restJson1MissionProfileList = (output, context) => {
2725
3119
  const retVal = (output || [])
2726
3120
  .filter((e) => e != null)
@@ -2740,6 +3134,20 @@ const deserializeAws_restJson1MissionProfileListItem = (output, context) => {
2740
3134
  region: (0, smithy_client_1.expectString)(output.region),
2741
3135
  };
2742
3136
  };
3137
+ const deserializeAws_restJson1RangedConnectionDetails = (output, context) => {
3138
+ return {
3139
+ mtu: (0, smithy_client_1.expectInt32)(output.mtu),
3140
+ socketAddress: output.socketAddress != null
3141
+ ? deserializeAws_restJson1RangedSocketAddress(output.socketAddress, context)
3142
+ : undefined,
3143
+ };
3144
+ };
3145
+ const deserializeAws_restJson1RangedSocketAddress = (output, context) => {
3146
+ return {
3147
+ name: (0, smithy_client_1.expectString)(output.name),
3148
+ portRange: output.portRange != null ? deserializeAws_restJson1IntegerRange(output.portRange, context) : undefined,
3149
+ };
3150
+ };
2743
3151
  const deserializeAws_restJson1S3Object = (output, context) => {
2744
3152
  return {
2745
3153
  bucket: (0, smithy_client_1.expectString)(output.bucket),
@@ -9,6 +9,7 @@ import { DeleteEphemerisCommand, } from "./commands/DeleteEphemerisCommand";
9
9
  import { DeleteMissionProfileCommand, } from "./commands/DeleteMissionProfileCommand";
10
10
  import { DescribeContactCommand, } from "./commands/DescribeContactCommand";
11
11
  import { DescribeEphemerisCommand, } from "./commands/DescribeEphemerisCommand";
12
+ import { GetAgentConfigurationCommand, } from "./commands/GetAgentConfigurationCommand";
12
13
  import { GetConfigCommand } from "./commands/GetConfigCommand";
13
14
  import { GetDataflowEndpointGroupCommand, } from "./commands/GetDataflowEndpointGroupCommand";
14
15
  import { GetMinuteUsageCommand, } from "./commands/GetMinuteUsageCommand";
@@ -22,9 +23,11 @@ import { ListGroundStationsCommand, } from "./commands/ListGroundStationsCommand
22
23
  import { ListMissionProfilesCommand, } from "./commands/ListMissionProfilesCommand";
23
24
  import { ListSatellitesCommand, } from "./commands/ListSatellitesCommand";
24
25
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
26
+ import { RegisterAgentCommand, } from "./commands/RegisterAgentCommand";
25
27
  import { ReserveContactCommand, } from "./commands/ReserveContactCommand";
26
28
  import { TagResourceCommand } from "./commands/TagResourceCommand";
27
29
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
+ import { UpdateAgentStatusCommand, } from "./commands/UpdateAgentStatusCommand";
28
31
  import { UpdateConfigCommand, } from "./commands/UpdateConfigCommand";
29
32
  import { UpdateEphemerisCommand, } from "./commands/UpdateEphemerisCommand";
30
33
  import { UpdateMissionProfileCommand, } from "./commands/UpdateMissionProfileCommand";
@@ -184,6 +187,20 @@ export class GroundStation extends GroundStationClient {
184
187
  return this.send(command, optionsOrCb);
185
188
  }
186
189
  }
190
+ getAgentConfiguration(args, optionsOrCb, cb) {
191
+ const command = new GetAgentConfigurationCommand(args);
192
+ if (typeof optionsOrCb === "function") {
193
+ this.send(command, optionsOrCb);
194
+ }
195
+ else if (typeof cb === "function") {
196
+ if (typeof optionsOrCb !== "object")
197
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ this.send(command, optionsOrCb || {}, cb);
199
+ }
200
+ else {
201
+ return this.send(command, optionsOrCb);
202
+ }
203
+ }
187
204
  getConfig(args, optionsOrCb, cb) {
188
205
  const command = new GetConfigCommand(args);
189
206
  if (typeof optionsOrCb === "function") {
@@ -366,6 +383,20 @@ export class GroundStation extends GroundStationClient {
366
383
  return this.send(command, optionsOrCb);
367
384
  }
368
385
  }
386
+ registerAgent(args, optionsOrCb, cb) {
387
+ const command = new RegisterAgentCommand(args);
388
+ if (typeof optionsOrCb === "function") {
389
+ this.send(command, optionsOrCb);
390
+ }
391
+ else if (typeof cb === "function") {
392
+ if (typeof optionsOrCb !== "object")
393
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
+ this.send(command, optionsOrCb || {}, cb);
395
+ }
396
+ else {
397
+ return this.send(command, optionsOrCb);
398
+ }
399
+ }
369
400
  reserveContact(args, optionsOrCb, cb) {
370
401
  const command = new ReserveContactCommand(args);
371
402
  if (typeof optionsOrCb === "function") {
@@ -408,6 +439,20 @@ export class GroundStation extends GroundStationClient {
408
439
  return this.send(command, optionsOrCb);
409
440
  }
410
441
  }
442
+ updateAgentStatus(args, optionsOrCb, cb) {
443
+ const command = new UpdateAgentStatusCommand(args);
444
+ if (typeof optionsOrCb === "function") {
445
+ this.send(command, optionsOrCb);
446
+ }
447
+ else if (typeof cb === "function") {
448
+ if (typeof optionsOrCb !== "object")
449
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
450
+ this.send(command, optionsOrCb || {}, cb);
451
+ }
452
+ else {
453
+ return this.send(command, optionsOrCb);
454
+ }
455
+ }
411
456
  updateConfig(args, optionsOrCb, cb) {
412
457
  const command = new UpdateConfigCommand(args);
413
458
  if (typeof optionsOrCb === "function") {