@aws-sdk/client-groundstation 3.1031.0 → 3.1033.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 (68) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/endpoint/bdd.js +49 -0
  3. package/dist-cjs/endpoint/endpointResolver.js +2 -2
  4. package/dist-cjs/index.js +158 -2
  5. package/dist-cjs/schemas/schemas_0.js +174 -13
  6. package/dist-es/GroundStation.js +18 -0
  7. package/dist-es/commands/DescribeContactVersionCommand.js +16 -0
  8. package/dist-es/commands/ListAntennasCommand.js +16 -0
  9. package/dist-es/commands/ListContactVersionsCommand.js +16 -0
  10. package/dist-es/commands/ListGroundStationReservationsCommand.js +16 -0
  11. package/dist-es/commands/UpdateContactCommand.js +16 -0
  12. package/dist-es/commands/index.js +5 -0
  13. package/dist-es/endpoint/bdd.js +46 -0
  14. package/dist-es/endpoint/endpointResolver.js +3 -3
  15. package/dist-es/models/enums.js +28 -0
  16. package/dist-es/pagination/ListAntennasPaginator.js +4 -0
  17. package/dist-es/pagination/ListContactVersionsPaginator.js +4 -0
  18. package/dist-es/pagination/ListGroundStationReservationsPaginator.js +4 -0
  19. package/dist-es/pagination/index.js +3 -0
  20. package/dist-es/schemas/schemas_0.js +169 -9
  21. package/dist-es/waiters/index.js +1 -0
  22. package/dist-es/waiters/waitForContactUpdated.js +40 -0
  23. package/dist-types/GroundStation.d.ts +62 -0
  24. package/dist-types/GroundStationClient.d.ts +7 -2
  25. package/dist-types/commands/CancelContactCommand.d.ts +1 -0
  26. package/dist-types/commands/DescribeContactCommand.d.ts +18 -0
  27. package/dist-types/commands/DescribeContactVersionCommand.d.ts +331 -0
  28. package/dist-types/commands/ListAntennasCommand.d.ts +89 -0
  29. package/dist-types/commands/ListContactVersionsCommand.d.ts +99 -0
  30. package/dist-types/commands/ListContactsCommand.d.ts +12 -0
  31. package/dist-types/commands/ListGroundStationReservationsCommand.d.ts +104 -0
  32. package/dist-types/commands/ReserveContactCommand.d.ts +7 -0
  33. package/dist-types/commands/UpdateContactCommand.d.ts +102 -0
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/endpoint/bdd.d.ts +2 -0
  36. package/dist-types/models/enums.d.ts +77 -5
  37. package/dist-types/models/errors.d.ts +3 -3
  38. package/dist-types/models/models_0.d.ts +572 -64
  39. package/dist-types/pagination/ListAntennasPaginator.d.ts +7 -0
  40. package/dist-types/pagination/ListContactVersionsPaginator.d.ts +7 -0
  41. package/dist-types/pagination/ListGroundStationReservationsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/index.d.ts +3 -0
  43. package/dist-types/schemas/schemas_0.d.ts +23 -0
  44. package/dist-types/ts3.4/GroundStation.d.ts +115 -0
  45. package/dist-types/ts3.4/GroundStationClient.d.ts +30 -0
  46. package/dist-types/ts3.4/commands/DescribeContactVersionCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/ListAntennasCommand.d.ts +47 -0
  48. package/dist-types/ts3.4/commands/ListContactVersionsCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/ListGroundStationReservationsCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +50 -0
  51. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  52. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  53. package/dist-types/ts3.4/models/enums.d.ts +35 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +154 -1
  55. package/dist-types/ts3.4/pagination/ListAntennasPaginator.d.ts +11 -0
  56. package/dist-types/ts3.4/pagination/ListContactVersionsPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/ListGroundStationReservationsPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  59. package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
  60. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  61. package/dist-types/ts3.4/waiters/waitForContactUpdated.d.ts +11 -0
  62. package/dist-types/waiters/index.d.ts +1 -0
  63. package/dist-types/waiters/waitForContactUpdated.d.ts +14 -0
  64. package/package.json +5 -5
  65. package/dist-cjs/endpoint/ruleset.js +0 -7
  66. package/dist-es/endpoint/ruleset.js +0 -4
  67. package/dist-types/endpoint/ruleset.d.ts +0 -2
  68. package/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListGroundStationReservations$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListGroundStationReservationsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("GroundStation", "ListGroundStationReservations", {})
13
+ .n("GroundStationClient", "ListGroundStationReservationsCommand")
14
+ .sc(ListGroundStationReservations$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateContact$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateContactCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("GroundStation", "UpdateContact", {})
13
+ .n("GroundStationClient", "UpdateContactCommand")
14
+ .sc(UpdateContact$)
15
+ .build() {
16
+ }
@@ -9,6 +9,7 @@ export * from "./DeleteDataflowEndpointGroupCommand";
9
9
  export * from "./DeleteEphemerisCommand";
10
10
  export * from "./DeleteMissionProfileCommand";
11
11
  export * from "./DescribeContactCommand";
12
+ export * from "./DescribeContactVersionCommand";
12
13
  export * from "./DescribeEphemerisCommand";
13
14
  export * from "./GetAgentConfigurationCommand";
14
15
  export * from "./GetAgentTaskResponseUrlCommand";
@@ -17,10 +18,13 @@ export * from "./GetDataflowEndpointGroupCommand";
17
18
  export * from "./GetMinuteUsageCommand";
18
19
  export * from "./GetMissionProfileCommand";
19
20
  export * from "./GetSatelliteCommand";
21
+ export * from "./ListAntennasCommand";
20
22
  export * from "./ListConfigsCommand";
23
+ export * from "./ListContactVersionsCommand";
21
24
  export * from "./ListContactsCommand";
22
25
  export * from "./ListDataflowEndpointGroupsCommand";
23
26
  export * from "./ListEphemeridesCommand";
27
+ export * from "./ListGroundStationReservationsCommand";
24
28
  export * from "./ListGroundStationsCommand";
25
29
  export * from "./ListMissionProfilesCommand";
26
30
  export * from "./ListSatellitesCommand";
@@ -31,5 +35,6 @@ export * from "./TagResourceCommand";
31
35
  export * from "./UntagResourceCommand";
32
36
  export * from "./UpdateAgentStatusCommand";
33
37
  export * from "./UpdateConfigCommand";
38
+ export * from "./UpdateContactCommand";
34
39
  export * from "./UpdateEphemerisCommand";
35
40
  export * from "./UpdateMissionProfileCommand";
@@ -0,0 +1,46 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
2
+ const k = "ref";
3
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
+ const _data = {
5
+ conditions: [
6
+ [c, [g]],
7
+ [c, j],
8
+ ["aws.partition", j, d],
9
+ [e, [{ [k]: "UseFIPS" }, b]],
10
+ [e, [{ [k]: "UseDualStack" }, b]],
11
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
13
+ ],
14
+ results: [
15
+ [a],
16
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
17
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
18
+ [g, i],
19
+ ["https://groundstation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
20
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
21
+ ["https://groundstation-fips.{Region}.{PartitionResult#dnsSuffix}", i],
22
+ [a, "FIPS is enabled but this partition does not support FIPS"],
23
+ ["https://groundstation.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
24
+ [a, "DualStack is enabled but this partition does not support DualStack"],
25
+ ["https://groundstation.{Region}.{PartitionResult#dnsSuffix}", i],
26
+ [a, "Invalid Configuration: Missing Region"]
27
+ ]
28
+ };
29
+ const root = 2;
30
+ const r = 100_000_000;
31
+ const nodes = new Int32Array([
32
+ -1, 1, -1,
33
+ 0, 12, 3,
34
+ 1, 4, r + 11,
35
+ 2, 5, r + 11,
36
+ 3, 8, 6,
37
+ 4, 7, r + 10,
38
+ 5, r + 8, r + 9,
39
+ 4, 10, 9,
40
+ 6, r + 6, r + 7,
41
+ 5, 11, r + 5,
42
+ 6, r + 4, r + 5,
43
+ 3, r + 1, 13,
44
+ 4, r + 2, r + 3,
45
+ ]);
46
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,12 +1,12 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
- import { ruleSet } from "./ruleset";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
3
+ import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
6
  params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
10
  endpointParams: endpointParams,
11
11
  logger: context.logger,
12
12
  }));
@@ -89,6 +89,26 @@ export const EphemerisType = {
89
89
  SERVICE_MANAGED: "SERVICE_MANAGED",
90
90
  TLE: "TLE",
91
91
  };
92
+ export const VersionFailureReasonCode = {
93
+ AZEL_EPHEMERIS_INVALID_STATUS: "AZEL_EPHEMERIS_INVALID_STATUS",
94
+ AZEL_EPHEMERIS_NOT_FOUND: "AZEL_EPHEMERIS_NOT_FOUND",
95
+ AZEL_EPHEMERIS_TIME_RANGE_INVALID: "AZEL_EPHEMERIS_TIME_RANGE_INVALID",
96
+ AZEL_EPHEMERIS_WRONG_GROUND_STATION: "AZEL_EPHEMERIS_WRONG_GROUND_STATION",
97
+ EPHEMERIS_NOT_ENABLED: "EPHEMERIS_NOT_ENABLED",
98
+ EPHEMERIS_NOT_FOUND: "EPHEMERIS_NOT_FOUND",
99
+ EPHEMERIS_TIME_RANGE_INVALID: "EPHEMERIS_TIME_RANGE_INVALID",
100
+ INTERNAL_ERROR: "INTERNAL_ERROR",
101
+ INVALID_SATELLITE_ARN: "INVALID_SATELLITE_ARN",
102
+ INVALID_UPDATE_CONTACT_REQUEST: "INVALID_UPDATE_CONTACT_REQUEST",
103
+ NOT_ONBOARDED_TO_AZEL_EPHEMERIS: "NOT_ONBOARDED_TO_AZEL_EPHEMERIS",
104
+ SATELLITE_DOES_NOT_MATCH_EPHEMERIS: "SATELLITE_DOES_NOT_MATCH_EPHEMERIS",
105
+ };
106
+ export const VersionStatus = {
107
+ ACTIVE: "ACTIVE",
108
+ FAILED_TO_UPDATE: "FAILED_TO_UPDATE",
109
+ SUPERSEDED: "SUPERSEDED",
110
+ UPDATING: "UPDATING",
111
+ };
92
112
  export const EphemerisErrorCode = {
93
113
  AZ_EL_SEGMENTS_OUT_OF_ORDER: "AZ_EL_SEGMENTS_OUT_OF_ORDER",
94
114
  AZ_EL_SEGMENT_END_TIME_BEFORE_START_TIME: "AZ_EL_SEGMENT_END_TIME_BEFORE_START_TIME",
@@ -148,3 +168,11 @@ export const EphemerisSource = {
148
168
  CUSTOMER_PROVIDED: "CUSTOMER_PROVIDED",
149
169
  SPACE_TRACK: "SPACE_TRACK",
150
170
  };
171
+ export const ReservationType = {
172
+ CONTACT: "CONTACT",
173
+ MAINTENANCE: "MAINTENANCE",
174
+ };
175
+ export const MaintenanceType = {
176
+ PLANNED: "PLANNED",
177
+ UNPLANNED: "UNPLANNED",
178
+ };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAntennasCommand, } from "../commands/ListAntennasCommand";
3
+ import { GroundStationClient } from "../GroundStationClient";
4
+ export const paginateListAntennas = createPaginator(GroundStationClient, ListAntennasCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListContactVersionsCommand, } from "../commands/ListContactVersionsCommand";
3
+ import { GroundStationClient } from "../GroundStationClient";
4
+ export const paginateListContactVersions = createPaginator(GroundStationClient, ListContactVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListGroundStationReservationsCommand, } from "../commands/ListGroundStationReservationsCommand";
3
+ import { GroundStationClient } from "../GroundStationClient";
4
+ export const paginateListGroundStationReservations = createPaginator(GroundStationClient, ListGroundStationReservationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,8 +1,11 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListAntennasPaginator";
2
3
  export * from "./ListConfigsPaginator";
3
4
  export * from "./ListContactsPaginator";
5
+ export * from "./ListContactVersionsPaginator";
4
6
  export * from "./ListDataflowEndpointGroupsPaginator";
5
7
  export * from "./ListEphemeridesPaginator";
8
+ export * from "./ListGroundStationReservationsPaginator";
6
9
  export * from "./ListGroundStationsPaginator";
7
10
  export * from "./ListMissionProfilesPaginator";
8
11
  export * from "./ListSatellitesPaginator";