@aws-sdk/client-groundstation 3.261.0 → 3.262.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 +2 -2
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { GroundStationServiceException as __BaseException } from "../models/GroundStationServiceException";
4
- import { ConfigTypeData, DependencyException, EphemerisData, InvalidParameterException, ResourceLimitExceededException, ResourceNotFoundException, } from "../models/models_0";
4
+ import { ConfigTypeData, DependencyException, EphemerisData, InvalidParameterException, KmsKey, ResourceLimitExceededException, ResourceNotFoundException, } from "../models/models_0";
5
5
  export const serializeAws_restJson1CancelContactCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {};
@@ -117,6 +117,8 @@ export const serializeAws_restJson1CreateMissionProfileCommand = async (input, c
117
117
  minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
118
118
  }),
119
119
  ...(input.name != null && { name: input.name }),
120
+ ...(input.streamsKmsKey != null && { streamsKmsKey: serializeAws_restJson1KmsKey(input.streamsKmsKey, context) }),
121
+ ...(input.streamsKmsRole != null && { streamsKmsRole: input.streamsKmsRole }),
120
122
  ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
121
123
  ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
122
124
  });
@@ -228,6 +230,22 @@ export const serializeAws_restJson1DescribeEphemerisCommand = async (input, cont
228
230
  body,
229
231
  });
230
232
  };
233
+ export const serializeAws_restJson1GetAgentConfigurationCommand = async (input, context) => {
234
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
235
+ const headers = {};
236
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}/configuration";
237
+ resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
238
+ let body;
239
+ return new __HttpRequest({
240
+ protocol,
241
+ hostname,
242
+ port,
243
+ method: "GET",
244
+ headers,
245
+ path: resolvedPath,
246
+ body,
247
+ });
248
+ };
231
249
  export const serializeAws_restJson1GetConfigCommand = async (input, context) => {
232
250
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
233
251
  const headers = {};
@@ -489,6 +507,31 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
489
507
  body,
490
508
  });
491
509
  };
510
+ export const serializeAws_restJson1RegisterAgentCommand = async (input, context) => {
511
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
+ const headers = {
513
+ "content-type": "application/json",
514
+ };
515
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent";
516
+ let body;
517
+ body = JSON.stringify({
518
+ ...(input.agentDetails != null && {
519
+ agentDetails: serializeAws_restJson1AgentDetails(input.agentDetails, context),
520
+ }),
521
+ ...(input.discoveryData != null && {
522
+ discoveryData: serializeAws_restJson1DiscoveryData(input.discoveryData, context),
523
+ }),
524
+ });
525
+ return new __HttpRequest({
526
+ protocol,
527
+ hostname,
528
+ port,
529
+ method: "POST",
530
+ headers,
531
+ path: resolvedPath,
532
+ body,
533
+ });
534
+ };
492
535
  export const serializeAws_restJson1ReserveContactCommand = async (input, context) => {
493
536
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
494
537
  const headers = {
@@ -558,6 +601,33 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
558
601
  body,
559
602
  });
560
603
  };
604
+ export const serializeAws_restJson1UpdateAgentStatusCommand = async (input, context) => {
605
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
+ const headers = {
607
+ "content-type": "application/json",
608
+ };
609
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}";
610
+ resolvedPath = __resolvedPath(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
611
+ let body;
612
+ body = JSON.stringify({
613
+ ...(input.aggregateStatus != null && {
614
+ aggregateStatus: serializeAws_restJson1AggregateStatus(input.aggregateStatus, context),
615
+ }),
616
+ ...(input.componentStatuses != null && {
617
+ componentStatuses: serializeAws_restJson1ComponentStatusList(input.componentStatuses, context),
618
+ }),
619
+ ...(input.taskId != null && { taskId: input.taskId }),
620
+ });
621
+ return new __HttpRequest({
622
+ protocol,
623
+ hostname,
624
+ port,
625
+ method: "PUT",
626
+ headers,
627
+ path: resolvedPath,
628
+ body,
629
+ });
630
+ };
561
631
  export const serializeAws_restJson1UpdateConfigCommand = async (input, context) => {
562
632
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
563
633
  const headers = {
@@ -626,6 +696,8 @@ export const serializeAws_restJson1UpdateMissionProfileCommand = async (input, c
626
696
  minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
627
697
  }),
628
698
  ...(input.name != null && { name: input.name }),
699
+ ...(input.streamsKmsKey != null && { streamsKmsKey: serializeAws_restJson1KmsKey(input.streamsKmsKey, context) }),
700
+ ...(input.streamsKmsRole != null && { streamsKmsRole: input.streamsKmsRole }),
629
701
  ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
630
702
  });
631
703
  return new __HttpRequest({
@@ -1148,6 +1220,48 @@ const deserializeAws_restJson1DescribeEphemerisCommandError = async (output, con
1148
1220
  });
1149
1221
  }
1150
1222
  };
1223
+ export const deserializeAws_restJson1GetAgentConfigurationCommand = async (output, context) => {
1224
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1225
+ return deserializeAws_restJson1GetAgentConfigurationCommandError(output, context);
1226
+ }
1227
+ const contents = map({
1228
+ $metadata: deserializeMetadata(output),
1229
+ });
1230
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1231
+ if (data.agentId != null) {
1232
+ contents.agentId = __expectString(data.agentId);
1233
+ }
1234
+ if (data.taskingDocument != null) {
1235
+ contents.taskingDocument = __expectString(data.taskingDocument);
1236
+ }
1237
+ return contents;
1238
+ };
1239
+ const deserializeAws_restJson1GetAgentConfigurationCommandError = async (output, context) => {
1240
+ const parsedOutput = {
1241
+ ...output,
1242
+ body: await parseErrorBody(output.body, context),
1243
+ };
1244
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1245
+ switch (errorCode) {
1246
+ case "DependencyException":
1247
+ case "com.amazonaws.groundstation#DependencyException":
1248
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1249
+ case "InvalidParameterException":
1250
+ case "com.amazonaws.groundstation#InvalidParameterException":
1251
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1252
+ case "ResourceNotFoundException":
1253
+ case "com.amazonaws.groundstation#ResourceNotFoundException":
1254
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1255
+ default:
1256
+ const parsedBody = parsedOutput.body;
1257
+ throwDefaultError({
1258
+ output,
1259
+ parsedBody,
1260
+ exceptionCtor: __BaseException,
1261
+ errorCode,
1262
+ });
1263
+ }
1264
+ };
1151
1265
  export const deserializeAws_restJson1GetConfigCommand = async (output, context) => {
1152
1266
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1153
1267
  return deserializeAws_restJson1GetConfigCommandError(output, context);
@@ -1339,6 +1453,12 @@ export const deserializeAws_restJson1GetMissionProfileCommand = async (output, c
1339
1453
  if (data.region != null) {
1340
1454
  contents.region = __expectString(data.region);
1341
1455
  }
1456
+ if (data.streamsKmsKey != null) {
1457
+ contents.streamsKmsKey = deserializeAws_restJson1KmsKey(__expectUnion(data.streamsKmsKey), context);
1458
+ }
1459
+ if (data.streamsKmsRole != null) {
1460
+ contents.streamsKmsRole = __expectString(data.streamsKmsRole);
1461
+ }
1342
1462
  if (data.tags != null) {
1343
1463
  contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
1344
1464
  }
@@ -1757,6 +1877,45 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1757
1877
  });
1758
1878
  }
1759
1879
  };
1880
+ export const deserializeAws_restJson1RegisterAgentCommand = async (output, context) => {
1881
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1882
+ return deserializeAws_restJson1RegisterAgentCommandError(output, context);
1883
+ }
1884
+ const contents = map({
1885
+ $metadata: deserializeMetadata(output),
1886
+ });
1887
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1888
+ if (data.agentId != null) {
1889
+ contents.agentId = __expectString(data.agentId);
1890
+ }
1891
+ return contents;
1892
+ };
1893
+ const deserializeAws_restJson1RegisterAgentCommandError = async (output, context) => {
1894
+ const parsedOutput = {
1895
+ ...output,
1896
+ body: await parseErrorBody(output.body, context),
1897
+ };
1898
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1899
+ switch (errorCode) {
1900
+ case "DependencyException":
1901
+ case "com.amazonaws.groundstation#DependencyException":
1902
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1903
+ case "InvalidParameterException":
1904
+ case "com.amazonaws.groundstation#InvalidParameterException":
1905
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1906
+ case "ResourceNotFoundException":
1907
+ case "com.amazonaws.groundstation#ResourceNotFoundException":
1908
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1909
+ default:
1910
+ const parsedBody = parsedOutput.body;
1911
+ throwDefaultError({
1912
+ output,
1913
+ parsedBody,
1914
+ exceptionCtor: __BaseException,
1915
+ errorCode,
1916
+ });
1917
+ }
1918
+ };
1760
1919
  export const deserializeAws_restJson1ReserveContactCommand = async (output, context) => {
1761
1920
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1762
1921
  return deserializeAws_restJson1ReserveContactCommandError(output, context);
@@ -1868,6 +2027,45 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1868
2027
  });
1869
2028
  }
1870
2029
  };
2030
+ export const deserializeAws_restJson1UpdateAgentStatusCommand = async (output, context) => {
2031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2032
+ return deserializeAws_restJson1UpdateAgentStatusCommandError(output, context);
2033
+ }
2034
+ const contents = map({
2035
+ $metadata: deserializeMetadata(output),
2036
+ });
2037
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2038
+ if (data.agentId != null) {
2039
+ contents.agentId = __expectString(data.agentId);
2040
+ }
2041
+ return contents;
2042
+ };
2043
+ const deserializeAws_restJson1UpdateAgentStatusCommandError = async (output, context) => {
2044
+ const parsedOutput = {
2045
+ ...output,
2046
+ body: await parseErrorBody(output.body, context),
2047
+ };
2048
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2049
+ switch (errorCode) {
2050
+ case "DependencyException":
2051
+ case "com.amazonaws.groundstation#DependencyException":
2052
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2053
+ case "InvalidParameterException":
2054
+ case "com.amazonaws.groundstation#InvalidParameterException":
2055
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2056
+ case "ResourceNotFoundException":
2057
+ case "com.amazonaws.groundstation#ResourceNotFoundException":
2058
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2059
+ default:
2060
+ const parsedBody = parsedOutput.body;
2061
+ throwDefaultError({
2062
+ output,
2063
+ parsedBody,
2064
+ exceptionCtor: __BaseException,
2065
+ errorCode,
2066
+ });
2067
+ }
2068
+ };
1871
2069
  export const deserializeAws_restJson1UpdateConfigCommand = async (output, context) => {
1872
2070
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1873
2071
  return deserializeAws_restJson1UpdateConfigCommandError(output, context);
@@ -2049,6 +2247,27 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2049
2247
  });
2050
2248
  return __decorateServiceException(exception, parsedOutput.body);
2051
2249
  };
2250
+ const serializeAws_restJson1AgentDetails = (input, context) => {
2251
+ return {
2252
+ ...(input.agentVersion != null && { agentVersion: input.agentVersion }),
2253
+ ...(input.componentVersions != null && {
2254
+ componentVersions: serializeAws_restJson1ComponentVersionList(input.componentVersions, context),
2255
+ }),
2256
+ ...(input.instanceId != null && { instanceId: input.instanceId }),
2257
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
2258
+ ...(input.reservedCpuCores != null && {
2259
+ reservedCpuCores: serializeAws_restJson1ReservedCpuCoresList(input.reservedCpuCores, context),
2260
+ }),
2261
+ };
2262
+ };
2263
+ const serializeAws_restJson1AggregateStatus = (input, context) => {
2264
+ return {
2265
+ ...(input.signatureMap != null && {
2266
+ signatureMap: serializeAws_restJson1SignatureMap(input.signatureMap, context),
2267
+ }),
2268
+ ...(input.status != null && { status: input.status }),
2269
+ };
2270
+ };
2052
2271
  const serializeAws_restJson1AntennaDownlinkConfig = (input, context) => {
2053
2272
  return {
2054
2273
  ...(input.spectrumConfig != null && {
@@ -2078,6 +2297,57 @@ const serializeAws_restJson1AntennaUplinkConfig = (input, context) => {
2078
2297
  ...(input.transmitDisabled != null && { transmitDisabled: input.transmitDisabled }),
2079
2298
  };
2080
2299
  };
2300
+ const serializeAws_restJson1AwsGroundStationAgentEndpoint = (input, context) => {
2301
+ return {
2302
+ ...(input.agentStatus != null && { agentStatus: input.agentStatus }),
2303
+ ...(input.auditResults != null && { auditResults: input.auditResults }),
2304
+ ...(input.egressAddress != null && {
2305
+ egressAddress: serializeAws_restJson1ConnectionDetails(input.egressAddress, context),
2306
+ }),
2307
+ ...(input.ingressAddress != null && {
2308
+ ingressAddress: serializeAws_restJson1RangedConnectionDetails(input.ingressAddress, context),
2309
+ }),
2310
+ ...(input.name != null && { name: input.name }),
2311
+ };
2312
+ };
2313
+ const serializeAws_restJson1CapabilityArnList = (input, context) => {
2314
+ return input
2315
+ .filter((e) => e != null)
2316
+ .map((entry) => {
2317
+ return entry;
2318
+ });
2319
+ };
2320
+ const serializeAws_restJson1ComponentStatusData = (input, context) => {
2321
+ return {
2322
+ ...(input.bytesReceived != null && { bytesReceived: input.bytesReceived }),
2323
+ ...(input.bytesSent != null && { bytesSent: input.bytesSent }),
2324
+ ...(input.capabilityArn != null && { capabilityArn: input.capabilityArn }),
2325
+ ...(input.componentType != null && { componentType: input.componentType }),
2326
+ ...(input.dataflowId != null && { dataflowId: input.dataflowId }),
2327
+ ...(input.packetsDropped != null && { packetsDropped: input.packetsDropped }),
2328
+ ...(input.status != null && { status: input.status }),
2329
+ };
2330
+ };
2331
+ const serializeAws_restJson1ComponentStatusList = (input, context) => {
2332
+ return input
2333
+ .filter((e) => e != null)
2334
+ .map((entry) => {
2335
+ return serializeAws_restJson1ComponentStatusData(entry, context);
2336
+ });
2337
+ };
2338
+ const serializeAws_restJson1ComponentVersion = (input, context) => {
2339
+ return {
2340
+ ...(input.componentType != null && { componentType: input.componentType }),
2341
+ ...(input.versions != null && { versions: serializeAws_restJson1VersionStringList(input.versions, context) }),
2342
+ };
2343
+ };
2344
+ const serializeAws_restJson1ComponentVersionList = (input, context) => {
2345
+ return input
2346
+ .filter((e) => e != null)
2347
+ .map((entry) => {
2348
+ return serializeAws_restJson1ComponentVersion(entry, context);
2349
+ });
2350
+ };
2081
2351
  const serializeAws_restJson1ConfigTypeData = (input, context) => {
2082
2352
  return ConfigTypeData.visit(input, {
2083
2353
  antennaDownlinkConfig: (value) => ({
@@ -2098,6 +2368,14 @@ const serializeAws_restJson1ConfigTypeData = (input, context) => {
2098
2368
  _: (name, value) => ({ name: value }),
2099
2369
  });
2100
2370
  };
2371
+ const serializeAws_restJson1ConnectionDetails = (input, context) => {
2372
+ return {
2373
+ ...(input.mtu != null && { mtu: input.mtu }),
2374
+ ...(input.socketAddress != null && {
2375
+ socketAddress: serializeAws_restJson1SocketAddress(input.socketAddress, context),
2376
+ }),
2377
+ };
2378
+ };
2101
2379
  const serializeAws_restJson1DataflowEdge = (input, context) => {
2102
2380
  return input
2103
2381
  .filter((e) => e != null)
@@ -2136,6 +2414,19 @@ const serializeAws_restJson1DemodulationConfig = (input, context) => {
2136
2414
  ...(input.unvalidatedJSON != null && { unvalidatedJSON: input.unvalidatedJSON }),
2137
2415
  };
2138
2416
  };
2417
+ const serializeAws_restJson1DiscoveryData = (input, context) => {
2418
+ return {
2419
+ ...(input.capabilityArns != null && {
2420
+ capabilityArns: serializeAws_restJson1CapabilityArnList(input.capabilityArns, context),
2421
+ }),
2422
+ ...(input.privateIpAddresses != null && {
2423
+ privateIpAddresses: serializeAws_restJson1IpAddressList(input.privateIpAddresses, context),
2424
+ }),
2425
+ ...(input.publicIpAddresses != null && {
2426
+ publicIpAddresses: serializeAws_restJson1IpAddressList(input.publicIpAddresses, context),
2427
+ }),
2428
+ };
2429
+ };
2139
2430
  const serializeAws_restJson1Eirp = (input, context) => {
2140
2431
  return {
2141
2432
  ...(input.units != null && { units: input.units }),
@@ -2144,6 +2435,9 @@ const serializeAws_restJson1Eirp = (input, context) => {
2144
2435
  };
2145
2436
  const serializeAws_restJson1EndpointDetails = (input, context) => {
2146
2437
  return {
2438
+ ...(input.awsGroundStationAgentEndpoint != null && {
2439
+ awsGroundStationAgentEndpoint: serializeAws_restJson1AwsGroundStationAgentEndpoint(input.awsGroundStationAgentEndpoint, context),
2440
+ }),
2147
2441
  ...(input.endpoint != null && { endpoint: serializeAws_restJson1DataflowEndpoint(input.endpoint, context) }),
2148
2442
  ...(input.securityDetails != null && {
2149
2443
  securityDetails: serializeAws_restJson1SecurityDetails(input.securityDetails, context),
@@ -2183,12 +2477,53 @@ const serializeAws_restJson1FrequencyBandwidth = (input, context) => {
2183
2477
  ...(input.value != null && { value: __serializeFloat(input.value) }),
2184
2478
  };
2185
2479
  };
2480
+ const serializeAws_restJson1IntegerRange = (input, context) => {
2481
+ return {
2482
+ ...(input.maximum != null && { maximum: input.maximum }),
2483
+ ...(input.minimum != null && { minimum: input.minimum }),
2484
+ };
2485
+ };
2486
+ const serializeAws_restJson1IpAddressList = (input, context) => {
2487
+ return input
2488
+ .filter((e) => e != null)
2489
+ .map((entry) => {
2490
+ return entry;
2491
+ });
2492
+ };
2493
+ const serializeAws_restJson1KmsKey = (input, context) => {
2494
+ return KmsKey.visit(input, {
2495
+ kmsAliasArn: (value) => ({ kmsAliasArn: value }),
2496
+ kmsKeyArn: (value) => ({ kmsKeyArn: value }),
2497
+ _: (name, value) => ({ name: value }),
2498
+ });
2499
+ };
2186
2500
  const serializeAws_restJson1OEMEphemeris = (input, context) => {
2187
2501
  return {
2188
2502
  ...(input.oemData != null && { oemData: input.oemData }),
2189
2503
  ...(input.s3Object != null && { s3Object: serializeAws_restJson1S3Object(input.s3Object, context) }),
2190
2504
  };
2191
2505
  };
2506
+ const serializeAws_restJson1RangedConnectionDetails = (input, context) => {
2507
+ return {
2508
+ ...(input.mtu != null && { mtu: input.mtu }),
2509
+ ...(input.socketAddress != null && {
2510
+ socketAddress: serializeAws_restJson1RangedSocketAddress(input.socketAddress, context),
2511
+ }),
2512
+ };
2513
+ };
2514
+ const serializeAws_restJson1RangedSocketAddress = (input, context) => {
2515
+ return {
2516
+ ...(input.name != null && { name: input.name }),
2517
+ ...(input.portRange != null && { portRange: serializeAws_restJson1IntegerRange(input.portRange, context) }),
2518
+ };
2519
+ };
2520
+ const serializeAws_restJson1ReservedCpuCoresList = (input, context) => {
2521
+ return input
2522
+ .filter((e) => e != null)
2523
+ .map((entry) => {
2524
+ return entry;
2525
+ });
2526
+ };
2192
2527
  const serializeAws_restJson1S3Object = (input, context) => {
2193
2528
  return {
2194
2529
  ...(input.bucket != null && { bucket: input.bucket }),
@@ -2219,6 +2554,15 @@ const serializeAws_restJson1SecurityGroupIdList = (input, context) => {
2219
2554
  return entry;
2220
2555
  });
2221
2556
  };
2557
+ const serializeAws_restJson1SignatureMap = (input, context) => {
2558
+ return Object.entries(input).reduce((acc, [key, value]) => {
2559
+ if (value === null) {
2560
+ return acc;
2561
+ }
2562
+ acc[key] = value;
2563
+ return acc;
2564
+ }, {});
2565
+ };
2222
2566
  const serializeAws_restJson1SocketAddress = (input, context) => {
2223
2567
  return {
2224
2568
  ...(input.name != null && { name: input.name }),
@@ -2304,6 +2648,13 @@ const serializeAws_restJson1UplinkSpectrumConfig = (input, context) => {
2304
2648
  ...(input.polarization != null && { polarization: input.polarization }),
2305
2649
  };
2306
2650
  };
2651
+ const serializeAws_restJson1VersionStringList = (input, context) => {
2652
+ return input
2653
+ .filter((e) => e != null)
2654
+ .map((entry) => {
2655
+ return entry;
2656
+ });
2657
+ };
2307
2658
  const deserializeAws_restJson1AntennaDemodDecodeDetails = (output, context) => {
2308
2659
  return {
2309
2660
  outputNode: __expectString(output.outputNode),
@@ -2336,6 +2687,19 @@ const deserializeAws_restJson1AntennaUplinkConfig = (output, context) => {
2336
2687
  transmitDisabled: __expectBoolean(output.transmitDisabled),
2337
2688
  };
2338
2689
  };
2690
+ const deserializeAws_restJson1AwsGroundStationAgentEndpoint = (output, context) => {
2691
+ return {
2692
+ agentStatus: __expectString(output.agentStatus),
2693
+ auditResults: __expectString(output.auditResults),
2694
+ egressAddress: output.egressAddress != null
2695
+ ? deserializeAws_restJson1ConnectionDetails(output.egressAddress, context)
2696
+ : undefined,
2697
+ ingressAddress: output.ingressAddress != null
2698
+ ? deserializeAws_restJson1RangedConnectionDetails(output.ingressAddress, context)
2699
+ : undefined,
2700
+ name: __expectString(output.name),
2701
+ };
2702
+ };
2339
2703
  const deserializeAws_restJson1ConfigDetails = (output, context) => {
2340
2704
  if (output.antennaDemodDecodeDetails != null) {
2341
2705
  return {
@@ -2411,6 +2775,12 @@ const deserializeAws_restJson1ConfigTypeData = (output, context) => {
2411
2775
  }
2412
2776
  return { $unknown: Object.entries(output)[0] };
2413
2777
  };
2778
+ const deserializeAws_restJson1ConnectionDetails = (output, context) => {
2779
+ return {
2780
+ mtu: __expectInt32(output.mtu),
2781
+ socketAddress: output.socketAddress != null ? deserializeAws_restJson1SocketAddress(output.socketAddress, context) : undefined,
2782
+ };
2783
+ };
2414
2784
  const deserializeAws_restJson1ContactData = (output, context) => {
2415
2785
  return {
2416
2786
  contactId: __expectString(output.contactId),
@@ -2548,6 +2918,9 @@ const deserializeAws_restJson1Elevation = (output, context) => {
2548
2918
  };
2549
2919
  const deserializeAws_restJson1EndpointDetails = (output, context) => {
2550
2920
  return {
2921
+ awsGroundStationAgentEndpoint: output.awsGroundStationAgentEndpoint != null
2922
+ ? deserializeAws_restJson1AwsGroundStationAgentEndpoint(output.awsGroundStationAgentEndpoint, context)
2923
+ : undefined,
2551
2924
  endpoint: output.endpoint != null ? deserializeAws_restJson1DataflowEndpoint(output.endpoint, context) : undefined,
2552
2925
  securityDetails: output.securityDetails != null
2553
2926
  ? deserializeAws_restJson1SecurityDetails(output.securityDetails, context)
@@ -2657,6 +3030,21 @@ const deserializeAws_restJson1GroundStationList = (output, context) => {
2657
3030
  });
2658
3031
  return retVal;
2659
3032
  };
3033
+ const deserializeAws_restJson1IntegerRange = (output, context) => {
3034
+ return {
3035
+ maximum: __expectInt32(output.maximum),
3036
+ minimum: __expectInt32(output.minimum),
3037
+ };
3038
+ };
3039
+ const deserializeAws_restJson1KmsKey = (output, context) => {
3040
+ if (__expectString(output.kmsAliasArn) !== undefined) {
3041
+ return { kmsAliasArn: __expectString(output.kmsAliasArn) };
3042
+ }
3043
+ if (__expectString(output.kmsKeyArn) !== undefined) {
3044
+ return { kmsKeyArn: __expectString(output.kmsKeyArn) };
3045
+ }
3046
+ return { $unknown: Object.entries(output)[0] };
3047
+ };
2660
3048
  const deserializeAws_restJson1MissionProfileList = (output, context) => {
2661
3049
  const retVal = (output || [])
2662
3050
  .filter((e) => e != null)
@@ -2676,6 +3064,20 @@ const deserializeAws_restJson1MissionProfileListItem = (output, context) => {
2676
3064
  region: __expectString(output.region),
2677
3065
  };
2678
3066
  };
3067
+ const deserializeAws_restJson1RangedConnectionDetails = (output, context) => {
3068
+ return {
3069
+ mtu: __expectInt32(output.mtu),
3070
+ socketAddress: output.socketAddress != null
3071
+ ? deserializeAws_restJson1RangedSocketAddress(output.socketAddress, context)
3072
+ : undefined,
3073
+ };
3074
+ };
3075
+ const deserializeAws_restJson1RangedSocketAddress = (output, context) => {
3076
+ return {
3077
+ name: __expectString(output.name),
3078
+ portRange: output.portRange != null ? deserializeAws_restJson1IntegerRange(output.portRange, context) : undefined,
3079
+ };
3080
+ };
2679
3081
  const deserializeAws_restJson1S3Object = (output, context) => {
2680
3082
  return {
2681
3083
  bucket: __expectString(output.bucket),
@@ -10,6 +10,7 @@ import { DeleteEphemerisCommandInput, DeleteEphemerisCommandOutput } from "./com
10
10
  import { DeleteMissionProfileCommandInput, DeleteMissionProfileCommandOutput } from "./commands/DeleteMissionProfileCommand";
11
11
  import { DescribeContactCommandInput, DescribeContactCommandOutput } from "./commands/DescribeContactCommand";
12
12
  import { DescribeEphemerisCommandInput, DescribeEphemerisCommandOutput } from "./commands/DescribeEphemerisCommand";
13
+ import { GetAgentConfigurationCommandInput, GetAgentConfigurationCommandOutput } from "./commands/GetAgentConfigurationCommand";
13
14
  import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
14
15
  import { GetDataflowEndpointGroupCommandInput, GetDataflowEndpointGroupCommandOutput } from "./commands/GetDataflowEndpointGroupCommand";
15
16
  import { GetMinuteUsageCommandInput, GetMinuteUsageCommandOutput } from "./commands/GetMinuteUsageCommand";
@@ -23,9 +24,11 @@ import { ListGroundStationsCommandInput, ListGroundStationsCommandOutput } from
23
24
  import { ListMissionProfilesCommandInput, ListMissionProfilesCommandOutput } from "./commands/ListMissionProfilesCommand";
24
25
  import { ListSatellitesCommandInput, ListSatellitesCommandOutput } from "./commands/ListSatellitesCommand";
25
26
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
27
+ import { RegisterAgentCommandInput, RegisterAgentCommandOutput } from "./commands/RegisterAgentCommand";
26
28
  import { ReserveContactCommandInput, ReserveContactCommandOutput } from "./commands/ReserveContactCommand";
27
29
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
28
30
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
+ import { UpdateAgentStatusCommandInput, UpdateAgentStatusCommandOutput } from "./commands/UpdateAgentStatusCommand";
29
32
  import { UpdateConfigCommandInput, UpdateConfigCommandOutput } from "./commands/UpdateConfigCommand";
30
33
  import { UpdateEphemerisCommandInput, UpdateEphemerisCommandOutput } from "./commands/UpdateEphemerisCommand";
31
34
  import { UpdateMissionProfileCommandInput, UpdateMissionProfileCommandOutput } from "./commands/UpdateMissionProfileCommand";
@@ -111,6 +114,12 @@ export declare class GroundStation extends GroundStationClient {
111
114
  describeEphemeris(args: DescribeEphemerisCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEphemerisCommandOutput>;
112
115
  describeEphemeris(args: DescribeEphemerisCommandInput, cb: (err: any, data?: DescribeEphemerisCommandOutput) => void): void;
113
116
  describeEphemeris(args: DescribeEphemerisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEphemerisCommandOutput) => void): void;
117
+ /**
118
+ * <p>Gets the latest configuration information for a registered agent.</p>
119
+ */
120
+ getAgentConfiguration(args: GetAgentConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentConfigurationCommandOutput>;
121
+ getAgentConfiguration(args: GetAgentConfigurationCommandInput, cb: (err: any, data?: GetAgentConfigurationCommandOutput) => void): void;
122
+ getAgentConfiguration(args: GetAgentConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentConfigurationCommandOutput) => void): void;
114
123
  /**
115
124
  * <p>Returns <code>Config</code> information.</p>
116
125
  * <p>Only one <code>Config</code> response can be returned.</p>
@@ -193,6 +202,12 @@ export declare class GroundStation extends GroundStationClient {
193
202
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
194
203
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
195
204
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
205
+ /**
206
+ * <p>Registers a new agent with AWS Groundstation.</p>
207
+ */
208
+ registerAgent(args: RegisterAgentCommandInput, options?: __HttpHandlerOptions): Promise<RegisterAgentCommandOutput>;
209
+ registerAgent(args: RegisterAgentCommandInput, cb: (err: any, data?: RegisterAgentCommandOutput) => void): void;
210
+ registerAgent(args: RegisterAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterAgentCommandOutput) => void): void;
196
211
  /**
197
212
  * <p>Reserves a contact using specified parameters.</p>
198
213
  */
@@ -211,6 +226,12 @@ export declare class GroundStation extends GroundStationClient {
211
226
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
212
227
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
213
228
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
229
+ /**
230
+ * <p>Update the status of the agent.</p>
231
+ */
232
+ updateAgentStatus(args: UpdateAgentStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentStatusCommandOutput>;
233
+ updateAgentStatus(args: UpdateAgentStatusCommandInput, cb: (err: any, data?: UpdateAgentStatusCommandOutput) => void): void;
234
+ updateAgentStatus(args: UpdateAgentStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAgentStatusCommandOutput) => void): void;
214
235
  /**
215
236
  * <p>Updates the <code>Config</code> used when scheduling contacts.</p>
216
237
  * <p>Updating a <code>Config</code> will not update the execution parameters
@@ -18,6 +18,7 @@ import { DeleteEphemerisCommandInput, DeleteEphemerisCommandOutput } from "./com
18
18
  import { DeleteMissionProfileCommandInput, DeleteMissionProfileCommandOutput } from "./commands/DeleteMissionProfileCommand";
19
19
  import { DescribeContactCommandInput, DescribeContactCommandOutput } from "./commands/DescribeContactCommand";
20
20
  import { DescribeEphemerisCommandInput, DescribeEphemerisCommandOutput } from "./commands/DescribeEphemerisCommand";
21
+ import { GetAgentConfigurationCommandInput, GetAgentConfigurationCommandOutput } from "./commands/GetAgentConfigurationCommand";
21
22
  import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
22
23
  import { GetDataflowEndpointGroupCommandInput, GetDataflowEndpointGroupCommandOutput } from "./commands/GetDataflowEndpointGroupCommand";
23
24
  import { GetMinuteUsageCommandInput, GetMinuteUsageCommandOutput } from "./commands/GetMinuteUsageCommand";
@@ -31,15 +32,17 @@ import { ListGroundStationsCommandInput, ListGroundStationsCommandOutput } from
31
32
  import { ListMissionProfilesCommandInput, ListMissionProfilesCommandOutput } from "./commands/ListMissionProfilesCommand";
32
33
  import { ListSatellitesCommandInput, ListSatellitesCommandOutput } from "./commands/ListSatellitesCommand";
33
34
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
35
+ import { RegisterAgentCommandInput, RegisterAgentCommandOutput } from "./commands/RegisterAgentCommand";
34
36
  import { ReserveContactCommandInput, ReserveContactCommandOutput } from "./commands/ReserveContactCommand";
35
37
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
36
38
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
+ import { UpdateAgentStatusCommandInput, UpdateAgentStatusCommandOutput } from "./commands/UpdateAgentStatusCommand";
37
40
  import { UpdateConfigCommandInput, UpdateConfigCommandOutput } from "./commands/UpdateConfigCommand";
38
41
  import { UpdateEphemerisCommandInput, UpdateEphemerisCommandOutput } from "./commands/UpdateEphemerisCommand";
39
42
  import { UpdateMissionProfileCommandInput, UpdateMissionProfileCommandOutput } from "./commands/UpdateMissionProfileCommand";
40
43
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
41
- export declare type ServiceInputTypes = CancelContactCommandInput | CreateConfigCommandInput | CreateDataflowEndpointGroupCommandInput | CreateEphemerisCommandInput | CreateMissionProfileCommandInput | DeleteConfigCommandInput | DeleteDataflowEndpointGroupCommandInput | DeleteEphemerisCommandInput | DeleteMissionProfileCommandInput | DescribeContactCommandInput | DescribeEphemerisCommandInput | GetConfigCommandInput | GetDataflowEndpointGroupCommandInput | GetMinuteUsageCommandInput | GetMissionProfileCommandInput | GetSatelliteCommandInput | ListConfigsCommandInput | ListContactsCommandInput | ListDataflowEndpointGroupsCommandInput | ListEphemeridesCommandInput | ListGroundStationsCommandInput | ListMissionProfilesCommandInput | ListSatellitesCommandInput | ListTagsForResourceCommandInput | ReserveContactCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConfigCommandInput | UpdateEphemerisCommandInput | UpdateMissionProfileCommandInput;
42
- export declare type ServiceOutputTypes = CancelContactCommandOutput | CreateConfigCommandOutput | CreateDataflowEndpointGroupCommandOutput | CreateEphemerisCommandOutput | CreateMissionProfileCommandOutput | DeleteConfigCommandOutput | DeleteDataflowEndpointGroupCommandOutput | DeleteEphemerisCommandOutput | DeleteMissionProfileCommandOutput | DescribeContactCommandOutput | DescribeEphemerisCommandOutput | GetConfigCommandOutput | GetDataflowEndpointGroupCommandOutput | GetMinuteUsageCommandOutput | GetMissionProfileCommandOutput | GetSatelliteCommandOutput | ListConfigsCommandOutput | ListContactsCommandOutput | ListDataflowEndpointGroupsCommandOutput | ListEphemeridesCommandOutput | ListGroundStationsCommandOutput | ListMissionProfilesCommandOutput | ListSatellitesCommandOutput | ListTagsForResourceCommandOutput | ReserveContactCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConfigCommandOutput | UpdateEphemerisCommandOutput | UpdateMissionProfileCommandOutput;
44
+ export declare type ServiceInputTypes = CancelContactCommandInput | CreateConfigCommandInput | CreateDataflowEndpointGroupCommandInput | CreateEphemerisCommandInput | CreateMissionProfileCommandInput | DeleteConfigCommandInput | DeleteDataflowEndpointGroupCommandInput | DeleteEphemerisCommandInput | DeleteMissionProfileCommandInput | DescribeContactCommandInput | DescribeEphemerisCommandInput | GetAgentConfigurationCommandInput | GetConfigCommandInput | GetDataflowEndpointGroupCommandInput | GetMinuteUsageCommandInput | GetMissionProfileCommandInput | GetSatelliteCommandInput | ListConfigsCommandInput | ListContactsCommandInput | ListDataflowEndpointGroupsCommandInput | ListEphemeridesCommandInput | ListGroundStationsCommandInput | ListMissionProfilesCommandInput | ListSatellitesCommandInput | ListTagsForResourceCommandInput | RegisterAgentCommandInput | ReserveContactCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentStatusCommandInput | UpdateConfigCommandInput | UpdateEphemerisCommandInput | UpdateMissionProfileCommandInput;
45
+ export declare type ServiceOutputTypes = CancelContactCommandOutput | CreateConfigCommandOutput | CreateDataflowEndpointGroupCommandOutput | CreateEphemerisCommandOutput | CreateMissionProfileCommandOutput | DeleteConfigCommandOutput | DeleteDataflowEndpointGroupCommandOutput | DeleteEphemerisCommandOutput | DeleteMissionProfileCommandOutput | DescribeContactCommandOutput | DescribeEphemerisCommandOutput | GetAgentConfigurationCommandOutput | GetConfigCommandOutput | GetDataflowEndpointGroupCommandOutput | GetMinuteUsageCommandOutput | GetMissionProfileCommandOutput | GetSatelliteCommandOutput | ListConfigsCommandOutput | ListContactsCommandOutput | ListDataflowEndpointGroupsCommandOutput | ListEphemeridesCommandOutput | ListGroundStationsCommandOutput | ListMissionProfilesCommandOutput | ListSatellitesCommandOutput | ListTagsForResourceCommandOutput | RegisterAgentCommandOutput | ReserveContactCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentStatusCommandOutput | UpdateConfigCommandOutput | UpdateEphemerisCommandOutput | UpdateMissionProfileCommandOutput;
43
46
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
44
47
  /**
45
48
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.