@aws-sdk/client-groundstation 3.922.0 → 3.926.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 (27) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +161 -1
  3. package/dist-es/GroundStation.js +4 -0
  4. package/dist-es/commands/CreateDataflowEndpointGroupV2Command.js +22 -0
  5. package/dist-es/commands/GetAgentTaskResponseUrlCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_0.js +40 -0
  8. package/dist-es/protocols/Aws_restJson1.js +83 -2
  9. package/dist-types/GroundStation.d.ts +14 -0
  10. package/dist-types/GroundStationClient.d.ts +4 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
  12. package/dist-types/commands/CreateDataflowEndpointGroupCommand.d.ts +46 -0
  13. package/dist-types/commands/CreateDataflowEndpointGroupV2Command.d.ts +142 -0
  14. package/dist-types/commands/DescribeContactCommand.d.ts +82 -8
  15. package/dist-types/commands/GetAgentTaskResponseUrlCommand.d.ts +86 -0
  16. package/dist-types/commands/GetDataflowEndpointGroupCommand.d.ts +46 -0
  17. package/dist-types/commands/index.d.ts +2 -0
  18. package/dist-types/models/models_0.d.ts +315 -0
  19. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  20. package/dist-types/ts3.4/GroundStation.d.ts +34 -0
  21. package/dist-types/ts3.4/GroundStationClient.d.ts +12 -0
  22. package/dist-types/ts3.4/commands/CreateDataflowEndpointGroupV2Command.d.ts +51 -0
  23. package/dist-types/ts3.4/commands/GetAgentTaskResponseUrlCommand.d.ts +51 -0
  24. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +127 -0
  26. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  27. package/package.json +8 -8
package/README.md CHANGED
@@ -226,6 +226,14 @@ CreateDataflowEndpointGroup
226
226
 
227
227
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/groundstation/command/CreateDataflowEndpointGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/CreateDataflowEndpointGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/CreateDataflowEndpointGroupCommandOutput/)
228
228
 
229
+ </details>
230
+ <details>
231
+ <summary>
232
+ CreateDataflowEndpointGroupV2
233
+ </summary>
234
+
235
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/groundstation/command/CreateDataflowEndpointGroupV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/CreateDataflowEndpointGroupV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/CreateDataflowEndpointGroupV2CommandOutput/)
236
+
229
237
  </details>
230
238
  <details>
231
239
  <summary>
@@ -298,6 +306,14 @@ GetAgentConfiguration
298
306
 
299
307
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/groundstation/command/GetAgentConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/GetAgentConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/GetAgentConfigurationCommandOutput/)
300
308
 
309
+ </details>
310
+ <details>
311
+ <summary>
312
+ GetAgentTaskResponseUrl
313
+ </summary>
314
+
315
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/groundstation/command/GetAgentTaskResponseUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/GetAgentTaskResponseUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-groundstation/Interface/GetAgentTaskResponseUrlCommandOutput/)
316
+
301
317
  </details>
302
318
  <details>
303
319
  <summary>
package/dist-cjs/index.js CHANGED
@@ -261,6 +261,14 @@ class ResourceLimitExceededException extends GroundStationServiceException {
261
261
  this.parameterName = opts.parameterName;
262
262
  }
263
263
  }
264
+ exports.DownlinkDataflowDetails = void 0;
265
+ (function (DownlinkDataflowDetails) {
266
+ DownlinkDataflowDetails.visit = (value, visitor) => {
267
+ if (value.agentConnectionDetails !== undefined)
268
+ return visitor.agentConnectionDetails(value.agentConnectionDetails);
269
+ return visitor._(value.$unknown[0], value.$unknown[1]);
270
+ };
271
+ })(exports.DownlinkDataflowDetails || (exports.DownlinkDataflowDetails = {}));
264
272
  const EndpointStatus = {
265
273
  created: "created",
266
274
  creating: "creating",
@@ -268,6 +276,14 @@ const EndpointStatus = {
268
276
  deleting: "deleting",
269
277
  failed: "failed",
270
278
  };
279
+ exports.UplinkDataflowDetails = void 0;
280
+ (function (UplinkDataflowDetails) {
281
+ UplinkDataflowDetails.visit = (value, visitor) => {
282
+ if (value.agentConnectionDetails !== undefined)
283
+ return visitor.agentConnectionDetails(value.agentConnectionDetails);
284
+ return visitor._(value.$unknown[0], value.$unknown[1]);
285
+ };
286
+ })(exports.UplinkDataflowDetails || (exports.UplinkDataflowDetails = {}));
271
287
  exports.ConfigDetails = void 0;
272
288
  (function (ConfigDetails) {
273
289
  ConfigDetails.visit = (value, visitor) => {
@@ -317,6 +333,30 @@ exports.EphemerisFilter = void 0;
317
333
  return visitor._(value.$unknown[0], value.$unknown[1]);
318
334
  };
319
335
  })(exports.EphemerisFilter || (exports.EphemerisFilter = {}));
336
+ exports.CreateEndpointDetails = void 0;
337
+ (function (CreateEndpointDetails) {
338
+ CreateEndpointDetails.visit = (value, visitor) => {
339
+ if (value.uplinkAwsGroundStationAgentEndpoint !== undefined)
340
+ return visitor.uplinkAwsGroundStationAgentEndpoint(value.uplinkAwsGroundStationAgentEndpoint);
341
+ if (value.downlinkAwsGroundStationAgentEndpoint !== undefined)
342
+ return visitor.downlinkAwsGroundStationAgentEndpoint(value.downlinkAwsGroundStationAgentEndpoint);
343
+ return visitor._(value.$unknown[0], value.$unknown[1]);
344
+ };
345
+ })(exports.CreateEndpointDetails || (exports.CreateEndpointDetails = {}));
346
+ class ServiceQuotaExceededException extends GroundStationServiceException {
347
+ name = "ServiceQuotaExceededException";
348
+ $fault = "client";
349
+ parameterName;
350
+ constructor(opts) {
351
+ super({
352
+ name: "ServiceQuotaExceededException",
353
+ $fault: "client",
354
+ ...opts,
355
+ });
356
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
357
+ this.parameterName = opts.parameterName;
358
+ }
359
+ }
320
360
  exports.EphemerisData = void 0;
321
361
  (function (EphemerisData) {
322
362
  EphemerisData.visit = (value, visitor) => {
@@ -465,6 +505,22 @@ const se_CreateDataflowEndpointGroupCommand = async (input, context) => {
465
505
  b.m("POST").h(headers).b(body);
466
506
  return b.build();
467
507
  };
508
+ const se_CreateDataflowEndpointGroupV2Command = async (input, context) => {
509
+ const b = core.requestBuilder(input, context);
510
+ const headers = {
511
+ "content-type": "application/json",
512
+ };
513
+ b.bp("/dataflowEndpointGroupV2");
514
+ let body;
515
+ body = JSON.stringify(smithyClient.take(input, {
516
+ contactPostPassDurationSeconds: [],
517
+ contactPrePassDurationSeconds: [],
518
+ endpoints: (_) => smithyClient._json(_),
519
+ tags: (_) => smithyClient._json(_),
520
+ }));
521
+ b.m("POST").h(headers).b(body);
522
+ return b.build();
523
+ };
468
524
  const se_CreateEphemerisCommand = async (input, context) => {
469
525
  const b = core.requestBuilder(input, context);
470
526
  const headers = {
@@ -570,6 +626,16 @@ const se_GetAgentConfigurationCommand = async (input, context) => {
570
626
  b.m("GET").h(headers).b(body);
571
627
  return b.build();
572
628
  };
629
+ const se_GetAgentTaskResponseUrlCommand = async (input, context) => {
630
+ const b = core.requestBuilder(input, context);
631
+ const headers = {};
632
+ b.bp("/agentResponseUrl/{agentId}/{taskId}");
633
+ b.p("agentId", () => input.agentId, "{agentId}", false);
634
+ b.p("taskId", () => input.taskId, "{taskId}", false);
635
+ let body;
636
+ b.m("GET").h(headers).b(body);
637
+ return b.build();
638
+ };
573
639
  const se_GetConfigCommand = async (input, context) => {
574
640
  const b = core.requestBuilder(input, context);
575
641
  const headers = {};
@@ -906,6 +972,20 @@ const de_CreateDataflowEndpointGroupCommand = async (output, context) => {
906
972
  Object.assign(contents, doc);
907
973
  return contents;
908
974
  };
975
+ const de_CreateDataflowEndpointGroupV2Command = async (output, context) => {
976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
977
+ return de_CommandError(output, context);
978
+ }
979
+ const contents = smithyClient.map({
980
+ $metadata: deserializeMetadata(output),
981
+ });
982
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
983
+ const doc = smithyClient.take(data, {
984
+ dataflowEndpointGroupId: smithyClient.expectString,
985
+ });
986
+ Object.assign(contents, doc);
987
+ return contents;
988
+ };
909
989
  const de_CreateEphemerisCommand = async (output, context) => {
910
990
  if (output.statusCode !== 200 && output.statusCode >= 300) {
911
991
  return de_CommandError(output, context);
@@ -1003,7 +1083,7 @@ const de_DescribeContactCommand = async (output, context) => {
1003
1083
  const doc = smithyClient.take(data, {
1004
1084
  contactId: smithyClient.expectString,
1005
1085
  contactStatus: smithyClient.expectString,
1006
- dataflowList: smithyClient._json,
1086
+ dataflowList: (_) => de_DataflowList(_),
1007
1087
  endTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1008
1088
  ephemeris: smithyClient._json,
1009
1089
  errorMessage: smithyClient.expectString,
@@ -1062,6 +1142,22 @@ const de_GetAgentConfigurationCommand = async (output, context) => {
1062
1142
  Object.assign(contents, doc);
1063
1143
  return contents;
1064
1144
  };
1145
+ const de_GetAgentTaskResponseUrlCommand = async (output, context) => {
1146
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
+ return de_CommandError(output, context);
1148
+ }
1149
+ const contents = smithyClient.map({
1150
+ $metadata: deserializeMetadata(output),
1151
+ });
1152
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1153
+ const doc = smithyClient.take(data, {
1154
+ agentId: smithyClient.expectString,
1155
+ presignedLogUrl: smithyClient.expectString,
1156
+ taskId: smithyClient.expectString,
1157
+ });
1158
+ Object.assign(contents, doc);
1159
+ return contents;
1160
+ };
1065
1161
  const de_GetConfigCommand = async (output, context) => {
1066
1162
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1067
1163
  return de_CommandError(output, context);
@@ -1405,6 +1501,9 @@ const de_CommandError = async (output, context) => {
1405
1501
  case "ResourceLimitExceededException":
1406
1502
  case "com.amazonaws.groundstation#ResourceLimitExceededException":
1407
1503
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput);
1504
+ case "ServiceQuotaExceededException":
1505
+ case "com.amazonaws.groundstation#ServiceQuotaExceededException":
1506
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1408
1507
  case "ResourceInUseException":
1409
1508
  case "com.amazonaws.groundstation#ResourceInUseException":
1410
1509
  throw await de_ResourceInUseExceptionRes(parsedOutput);
@@ -1486,6 +1585,20 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1486
1585
  });
1487
1586
  return smithyClient.decorateServiceException(exception, parsedOutput.body);
1488
1587
  };
1588
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1589
+ const contents = smithyClient.map({});
1590
+ const data = parsedOutput.body;
1591
+ const doc = smithyClient.take(data, {
1592
+ message: smithyClient.expectString,
1593
+ parameterName: smithyClient.expectString,
1594
+ });
1595
+ Object.assign(contents, doc);
1596
+ const exception = new ServiceQuotaExceededException({
1597
+ $metadata: deserializeMetadata(parsedOutput),
1598
+ ...contents,
1599
+ });
1600
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1601
+ };
1489
1602
  const se_AntennaDownlinkConfig = (input, context) => {
1490
1603
  return smithyClient.take(input, {
1491
1604
  spectrumConfig: (_) => se_SpectrumConfig(_),
@@ -1722,6 +1835,14 @@ const de_ContactList = (output, context) => {
1722
1835
  });
1723
1836
  return retVal;
1724
1837
  };
1838
+ const de_DataflowList = (output, context) => {
1839
+ const retVal = (output || [])
1840
+ .filter((e) => e != null)
1841
+ .map((entry) => {
1842
+ return smithyClient._json(entry);
1843
+ });
1844
+ return retVal;
1845
+ };
1725
1846
  const de_Eirp = (output, context) => {
1726
1847
  return smithyClient.take(output, {
1727
1848
  units: smithyClient.expectString,
@@ -1866,6 +1987,23 @@ class CreateDataflowEndpointGroupCommand extends smithyClient.Command
1866
1987
  .build() {
1867
1988
  }
1868
1989
 
1990
+ class CreateDataflowEndpointGroupV2Command extends smithyClient.Command
1991
+ .classBuilder()
1992
+ .ep(commonParams)
1993
+ .m(function (Command, cs, config, o) {
1994
+ return [
1995
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1996
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1997
+ ];
1998
+ })
1999
+ .s("GroundStation", "CreateDataflowEndpointGroupV2", {})
2000
+ .n("GroundStationClient", "CreateDataflowEndpointGroupV2Command")
2001
+ .f(void 0, void 0)
2002
+ .ser(se_CreateDataflowEndpointGroupV2Command)
2003
+ .de(de_CreateDataflowEndpointGroupV2Command)
2004
+ .build() {
2005
+ }
2006
+
1869
2007
  class CreateEphemerisCommand extends smithyClient.Command
1870
2008
  .classBuilder()
1871
2009
  .ep(commonParams)
@@ -2019,6 +2157,23 @@ class GetAgentConfigurationCommand extends smithyClient.Command
2019
2157
  .build() {
2020
2158
  }
2021
2159
 
2160
+ class GetAgentTaskResponseUrlCommand extends smithyClient.Command
2161
+ .classBuilder()
2162
+ .ep(commonParams)
2163
+ .m(function (Command, cs, config, o) {
2164
+ return [
2165
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2166
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2167
+ ];
2168
+ })
2169
+ .s("GroundStation", "GetAgentTaskResponseUrl", {})
2170
+ .n("GroundStationClient", "GetAgentTaskResponseUrlCommand")
2171
+ .f(void 0, void 0)
2172
+ .ser(se_GetAgentTaskResponseUrlCommand)
2173
+ .de(de_GetAgentTaskResponseUrlCommand)
2174
+ .build() {
2175
+ }
2176
+
2022
2177
  class GetConfigCommand extends smithyClient.Command
2023
2178
  .classBuilder()
2024
2179
  .ep(commonParams)
@@ -2380,6 +2535,7 @@ const commands = {
2380
2535
  CancelContactCommand,
2381
2536
  CreateConfigCommand,
2382
2537
  CreateDataflowEndpointGroupCommand,
2538
+ CreateDataflowEndpointGroupV2Command,
2383
2539
  CreateEphemerisCommand,
2384
2540
  CreateMissionProfileCommand,
2385
2541
  DeleteConfigCommand,
@@ -2389,6 +2545,7 @@ const commands = {
2389
2545
  DescribeContactCommand,
2390
2546
  DescribeEphemerisCommand,
2391
2547
  GetAgentConfigurationCommand,
2548
+ GetAgentTaskResponseUrlCommand,
2392
2549
  GetConfigCommand,
2393
2550
  GetDataflowEndpointGroupCommand,
2394
2551
  GetMinuteUsageCommand,
@@ -2487,6 +2644,7 @@ exports.ConfigCapabilityType = ConfigCapabilityType;
2487
2644
  exports.ContactStatus = ContactStatus;
2488
2645
  exports.CreateConfigCommand = CreateConfigCommand;
2489
2646
  exports.CreateDataflowEndpointGroupCommand = CreateDataflowEndpointGroupCommand;
2647
+ exports.CreateDataflowEndpointGroupV2Command = CreateDataflowEndpointGroupV2Command;
2490
2648
  exports.CreateEphemerisCommand = CreateEphemerisCommand;
2491
2649
  exports.CreateMissionProfileCommand = CreateMissionProfileCommand;
2492
2650
  exports.Criticality = Criticality;
@@ -2506,6 +2664,7 @@ exports.EphemerisStatus = EphemerisStatus;
2506
2664
  exports.EphemerisType = EphemerisType;
2507
2665
  exports.FrequencyUnits = FrequencyUnits;
2508
2666
  exports.GetAgentConfigurationCommand = GetAgentConfigurationCommand;
2667
+ exports.GetAgentTaskResponseUrlCommand = GetAgentTaskResponseUrlCommand;
2509
2668
  exports.GetConfigCommand = GetConfigCommand;
2510
2669
  exports.GetDataflowEndpointGroupCommand = GetDataflowEndpointGroupCommand;
2511
2670
  exports.GetMinuteUsageCommand = GetMinuteUsageCommand;
@@ -2529,6 +2688,7 @@ exports.ReserveContactCommand = ReserveContactCommand;
2529
2688
  exports.ResourceInUseException = ResourceInUseException;
2530
2689
  exports.ResourceLimitExceededException = ResourceLimitExceededException;
2531
2690
  exports.ResourceNotFoundException = ResourceNotFoundException;
2691
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
2532
2692
  exports.TagResourceCommand = TagResourceCommand;
2533
2693
  exports.UntagResourceCommand = UntagResourceCommand;
2534
2694
  exports.UpdateAgentStatusCommand = UpdateAgentStatusCommand;
@@ -2,6 +2,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { CancelContactCommand, } from "./commands/CancelContactCommand";
3
3
  import { CreateConfigCommand, } from "./commands/CreateConfigCommand";
4
4
  import { CreateDataflowEndpointGroupCommand, } from "./commands/CreateDataflowEndpointGroupCommand";
5
+ import { CreateDataflowEndpointGroupV2Command, } from "./commands/CreateDataflowEndpointGroupV2Command";
5
6
  import { CreateEphemerisCommand, } from "./commands/CreateEphemerisCommand";
6
7
  import { CreateMissionProfileCommand, } from "./commands/CreateMissionProfileCommand";
7
8
  import { DeleteConfigCommand, } from "./commands/DeleteConfigCommand";
@@ -11,6 +12,7 @@ import { DeleteMissionProfileCommand, } from "./commands/DeleteMissionProfileCom
11
12
  import { DescribeContactCommand, } from "./commands/DescribeContactCommand";
12
13
  import { DescribeEphemerisCommand, } from "./commands/DescribeEphemerisCommand";
13
14
  import { GetAgentConfigurationCommand, } from "./commands/GetAgentConfigurationCommand";
15
+ import { GetAgentTaskResponseUrlCommand, } from "./commands/GetAgentTaskResponseUrlCommand";
14
16
  import { GetConfigCommand } from "./commands/GetConfigCommand";
15
17
  import { GetDataflowEndpointGroupCommand, } from "./commands/GetDataflowEndpointGroupCommand";
16
18
  import { GetMinuteUsageCommand, } from "./commands/GetMinuteUsageCommand";
@@ -37,6 +39,7 @@ const commands = {
37
39
  CancelContactCommand,
38
40
  CreateConfigCommand,
39
41
  CreateDataflowEndpointGroupCommand,
42
+ CreateDataflowEndpointGroupV2Command,
40
43
  CreateEphemerisCommand,
41
44
  CreateMissionProfileCommand,
42
45
  DeleteConfigCommand,
@@ -46,6 +49,7 @@ const commands = {
46
49
  DescribeContactCommand,
47
50
  DescribeEphemerisCommand,
48
51
  GetAgentConfigurationCommand,
52
+ GetAgentTaskResponseUrlCommand,
49
53
  GetConfigCommand,
50
54
  GetDataflowEndpointGroupCommand,
51
55
  GetMinuteUsageCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateDataflowEndpointGroupV2Command, se_CreateDataflowEndpointGroupV2Command, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateDataflowEndpointGroupV2Command extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("GroundStation", "CreateDataflowEndpointGroupV2", {})
17
+ .n("GroundStationClient", "CreateDataflowEndpointGroupV2Command")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateDataflowEndpointGroupV2Command)
20
+ .de(de_CreateDataflowEndpointGroupV2Command)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetAgentTaskResponseUrlCommand, se_GetAgentTaskResponseUrlCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetAgentTaskResponseUrlCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("GroundStation", "GetAgentTaskResponseUrl", {})
17
+ .n("GroundStationClient", "GetAgentTaskResponseUrlCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetAgentTaskResponseUrlCommand)
20
+ .de(de_GetAgentTaskResponseUrlCommand)
21
+ .build() {
22
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./CancelContactCommand";
2
2
  export * from "./CreateConfigCommand";
3
3
  export * from "./CreateDataflowEndpointGroupCommand";
4
+ export * from "./CreateDataflowEndpointGroupV2Command";
4
5
  export * from "./CreateEphemerisCommand";
5
6
  export * from "./CreateMissionProfileCommand";
6
7
  export * from "./DeleteConfigCommand";
@@ -10,6 +11,7 @@ export * from "./DeleteMissionProfileCommand";
10
11
  export * from "./DescribeContactCommand";
11
12
  export * from "./DescribeEphemerisCommand";
12
13
  export * from "./GetAgentConfigurationCommand";
14
+ export * from "./GetAgentTaskResponseUrlCommand";
13
15
  export * from "./GetConfigCommand";
14
16
  export * from "./GetDataflowEndpointGroupCommand";
15
17
  export * from "./GetMinuteUsageCommand";
@@ -142,6 +142,14 @@ export class ResourceLimitExceededException extends __BaseException {
142
142
  this.parameterName = opts.parameterName;
143
143
  }
144
144
  }
145
+ export var DownlinkDataflowDetails;
146
+ (function (DownlinkDataflowDetails) {
147
+ DownlinkDataflowDetails.visit = (value, visitor) => {
148
+ if (value.agentConnectionDetails !== undefined)
149
+ return visitor.agentConnectionDetails(value.agentConnectionDetails);
150
+ return visitor._(value.$unknown[0], value.$unknown[1]);
151
+ };
152
+ })(DownlinkDataflowDetails || (DownlinkDataflowDetails = {}));
145
153
  export const EndpointStatus = {
146
154
  created: "created",
147
155
  creating: "creating",
@@ -149,6 +157,14 @@ export const EndpointStatus = {
149
157
  deleting: "deleting",
150
158
  failed: "failed",
151
159
  };
160
+ export var UplinkDataflowDetails;
161
+ (function (UplinkDataflowDetails) {
162
+ UplinkDataflowDetails.visit = (value, visitor) => {
163
+ if (value.agentConnectionDetails !== undefined)
164
+ return visitor.agentConnectionDetails(value.agentConnectionDetails);
165
+ return visitor._(value.$unknown[0], value.$unknown[1]);
166
+ };
167
+ })(UplinkDataflowDetails || (UplinkDataflowDetails = {}));
152
168
  export var ConfigDetails;
153
169
  (function (ConfigDetails) {
154
170
  ConfigDetails.visit = (value, visitor) => {
@@ -198,6 +214,30 @@ export var EphemerisFilter;
198
214
  return visitor._(value.$unknown[0], value.$unknown[1]);
199
215
  };
200
216
  })(EphemerisFilter || (EphemerisFilter = {}));
217
+ export var CreateEndpointDetails;
218
+ (function (CreateEndpointDetails) {
219
+ CreateEndpointDetails.visit = (value, visitor) => {
220
+ if (value.uplinkAwsGroundStationAgentEndpoint !== undefined)
221
+ return visitor.uplinkAwsGroundStationAgentEndpoint(value.uplinkAwsGroundStationAgentEndpoint);
222
+ if (value.downlinkAwsGroundStationAgentEndpoint !== undefined)
223
+ return visitor.downlinkAwsGroundStationAgentEndpoint(value.downlinkAwsGroundStationAgentEndpoint);
224
+ return visitor._(value.$unknown[0], value.$unknown[1]);
225
+ };
226
+ })(CreateEndpointDetails || (CreateEndpointDetails = {}));
227
+ export class ServiceQuotaExceededException extends __BaseException {
228
+ name = "ServiceQuotaExceededException";
229
+ $fault = "client";
230
+ parameterName;
231
+ constructor(opts) {
232
+ super({
233
+ name: "ServiceQuotaExceededException",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
238
+ this.parameterName = opts.parameterName;
239
+ }
240
+ }
201
241
  export var EphemerisData;
202
242
  (function (EphemerisData) {
203
243
  EphemerisData.visit = (value, visitor) => {
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { GroundStationServiceException as __BaseException } from "../models/GroundStationServiceException";
5
- import { AzElSegmentsData, ConfigTypeData, DependencyException, EphemerisData, InvalidParameterException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, } from "../models/models_0";
5
+ import { AzElSegmentsData, ConfigTypeData, DependencyException, EphemerisData, InvalidParameterException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
6
6
  export const se_CancelContactCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {};
@@ -43,6 +43,22 @@ export const se_CreateDataflowEndpointGroupCommand = async (input, context) => {
43
43
  b.m("POST").h(headers).b(body);
44
44
  return b.build();
45
45
  };
46
+ export const se_CreateDataflowEndpointGroupV2Command = async (input, context) => {
47
+ const b = rb(input, context);
48
+ const headers = {
49
+ "content-type": "application/json",
50
+ };
51
+ b.bp("/dataflowEndpointGroupV2");
52
+ let body;
53
+ body = JSON.stringify(take(input, {
54
+ contactPostPassDurationSeconds: [],
55
+ contactPrePassDurationSeconds: [],
56
+ endpoints: (_) => _json(_),
57
+ tags: (_) => _json(_),
58
+ }));
59
+ b.m("POST").h(headers).b(body);
60
+ return b.build();
61
+ };
46
62
  export const se_CreateEphemerisCommand = async (input, context) => {
47
63
  const b = rb(input, context);
48
64
  const headers = {
@@ -148,6 +164,16 @@ export const se_GetAgentConfigurationCommand = async (input, context) => {
148
164
  b.m("GET").h(headers).b(body);
149
165
  return b.build();
150
166
  };
167
+ export const se_GetAgentTaskResponseUrlCommand = async (input, context) => {
168
+ const b = rb(input, context);
169
+ const headers = {};
170
+ b.bp("/agentResponseUrl/{agentId}/{taskId}");
171
+ b.p("agentId", () => input.agentId, "{agentId}", false);
172
+ b.p("taskId", () => input.taskId, "{taskId}", false);
173
+ let body;
174
+ b.m("GET").h(headers).b(body);
175
+ return b.build();
176
+ };
151
177
  export const se_GetConfigCommand = async (input, context) => {
152
178
  const b = rb(input, context);
153
179
  const headers = {};
@@ -484,6 +510,20 @@ export const de_CreateDataflowEndpointGroupCommand = async (output, context) =>
484
510
  Object.assign(contents, doc);
485
511
  return contents;
486
512
  };
513
+ export const de_CreateDataflowEndpointGroupV2Command = async (output, context) => {
514
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
515
+ return de_CommandError(output, context);
516
+ }
517
+ const contents = map({
518
+ $metadata: deserializeMetadata(output),
519
+ });
520
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
521
+ const doc = take(data, {
522
+ dataflowEndpointGroupId: __expectString,
523
+ });
524
+ Object.assign(contents, doc);
525
+ return contents;
526
+ };
487
527
  export const de_CreateEphemerisCommand = async (output, context) => {
488
528
  if (output.statusCode !== 200 && output.statusCode >= 300) {
489
529
  return de_CommandError(output, context);
@@ -581,7 +621,7 @@ export const de_DescribeContactCommand = async (output, context) => {
581
621
  const doc = take(data, {
582
622
  contactId: __expectString,
583
623
  contactStatus: __expectString,
584
- dataflowList: _json,
624
+ dataflowList: (_) => de_DataflowList(_, context),
585
625
  endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
586
626
  ephemeris: _json,
587
627
  errorMessage: __expectString,
@@ -640,6 +680,22 @@ export const de_GetAgentConfigurationCommand = async (output, context) => {
640
680
  Object.assign(contents, doc);
641
681
  return contents;
642
682
  };
683
+ export const de_GetAgentTaskResponseUrlCommand = async (output, context) => {
684
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
685
+ return de_CommandError(output, context);
686
+ }
687
+ const contents = map({
688
+ $metadata: deserializeMetadata(output),
689
+ });
690
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
691
+ const doc = take(data, {
692
+ agentId: __expectString,
693
+ presignedLogUrl: __expectString,
694
+ taskId: __expectString,
695
+ });
696
+ Object.assign(contents, doc);
697
+ return contents;
698
+ };
643
699
  export const de_GetConfigCommand = async (output, context) => {
644
700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
645
701
  return de_CommandError(output, context);
@@ -983,6 +1039,9 @@ const de_CommandError = async (output, context) => {
983
1039
  case "ResourceLimitExceededException":
984
1040
  case "com.amazonaws.groundstation#ResourceLimitExceededException":
985
1041
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1042
+ case "ServiceQuotaExceededException":
1043
+ case "com.amazonaws.groundstation#ServiceQuotaExceededException":
1044
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
986
1045
  case "ResourceInUseException":
987
1046
  case "com.amazonaws.groundstation#ResourceInUseException":
988
1047
  throw await de_ResourceInUseExceptionRes(parsedOutput, context);
@@ -1064,6 +1123,20 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1064
1123
  });
1065
1124
  return __decorateServiceException(exception, parsedOutput.body);
1066
1125
  };
1126
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1127
+ const contents = map({});
1128
+ const data = parsedOutput.body;
1129
+ const doc = take(data, {
1130
+ message: __expectString,
1131
+ parameterName: __expectString,
1132
+ });
1133
+ Object.assign(contents, doc);
1134
+ const exception = new ServiceQuotaExceededException({
1135
+ $metadata: deserializeMetadata(parsedOutput),
1136
+ ...contents,
1137
+ });
1138
+ return __decorateServiceException(exception, parsedOutput.body);
1139
+ };
1067
1140
  const se_AntennaDownlinkConfig = (input, context) => {
1068
1141
  return take(input, {
1069
1142
  spectrumConfig: (_) => se_SpectrumConfig(_, context),
@@ -1300,6 +1373,14 @@ const de_ContactList = (output, context) => {
1300
1373
  });
1301
1374
  return retVal;
1302
1375
  };
1376
+ const de_DataflowList = (output, context) => {
1377
+ const retVal = (output || [])
1378
+ .filter((e) => e != null)
1379
+ .map((entry) => {
1380
+ return _json(entry);
1381
+ });
1382
+ return retVal;
1383
+ };
1303
1384
  const de_Eirp = (output, context) => {
1304
1385
  return take(output, {
1305
1386
  units: __expectString,
@@ -2,6 +2,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { CancelContactCommandInput, CancelContactCommandOutput } from "./commands/CancelContactCommand";
3
3
  import { CreateConfigCommandInput, CreateConfigCommandOutput } from "./commands/CreateConfigCommand";
4
4
  import { CreateDataflowEndpointGroupCommandInput, CreateDataflowEndpointGroupCommandOutput } from "./commands/CreateDataflowEndpointGroupCommand";
5
+ import { CreateDataflowEndpointGroupV2CommandInput, CreateDataflowEndpointGroupV2CommandOutput } from "./commands/CreateDataflowEndpointGroupV2Command";
5
6
  import { CreateEphemerisCommandInput, CreateEphemerisCommandOutput } from "./commands/CreateEphemerisCommand";
6
7
  import { CreateMissionProfileCommandInput, CreateMissionProfileCommandOutput } from "./commands/CreateMissionProfileCommand";
7
8
  import { DeleteConfigCommandInput, DeleteConfigCommandOutput } from "./commands/DeleteConfigCommand";
@@ -11,6 +12,7 @@ import { DeleteMissionProfileCommandInput, DeleteMissionProfileCommandOutput } f
11
12
  import { DescribeContactCommandInput, DescribeContactCommandOutput } from "./commands/DescribeContactCommand";
12
13
  import { DescribeEphemerisCommandInput, DescribeEphemerisCommandOutput } from "./commands/DescribeEphemerisCommand";
13
14
  import { GetAgentConfigurationCommandInput, GetAgentConfigurationCommandOutput } from "./commands/GetAgentConfigurationCommand";
15
+ import { GetAgentTaskResponseUrlCommandInput, GetAgentTaskResponseUrlCommandOutput } from "./commands/GetAgentTaskResponseUrlCommand";
14
16
  import { GetConfigCommandInput, GetConfigCommandOutput } from "./commands/GetConfigCommand";
15
17
  import { GetDataflowEndpointGroupCommandInput, GetDataflowEndpointGroupCommandOutput } from "./commands/GetDataflowEndpointGroupCommand";
16
18
  import { GetMinuteUsageCommandInput, GetMinuteUsageCommandOutput } from "./commands/GetMinuteUsageCommand";
@@ -52,6 +54,12 @@ export interface GroundStation {
52
54
  createDataflowEndpointGroup(args: CreateDataflowEndpointGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateDataflowEndpointGroupCommandOutput>;
53
55
  createDataflowEndpointGroup(args: CreateDataflowEndpointGroupCommandInput, cb: (err: any, data?: CreateDataflowEndpointGroupCommandOutput) => void): void;
54
56
  createDataflowEndpointGroup(args: CreateDataflowEndpointGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataflowEndpointGroupCommandOutput) => void): void;
57
+ /**
58
+ * @see {@link CreateDataflowEndpointGroupV2Command}
59
+ */
60
+ createDataflowEndpointGroupV2(args: CreateDataflowEndpointGroupV2CommandInput, options?: __HttpHandlerOptions): Promise<CreateDataflowEndpointGroupV2CommandOutput>;
61
+ createDataflowEndpointGroupV2(args: CreateDataflowEndpointGroupV2CommandInput, cb: (err: any, data?: CreateDataflowEndpointGroupV2CommandOutput) => void): void;
62
+ createDataflowEndpointGroupV2(args: CreateDataflowEndpointGroupV2CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDataflowEndpointGroupV2CommandOutput) => void): void;
55
63
  /**
56
64
  * @see {@link CreateEphemerisCommand}
57
65
  */
@@ -106,6 +114,12 @@ export interface GroundStation {
106
114
  getAgentConfiguration(args: GetAgentConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentConfigurationCommandOutput>;
107
115
  getAgentConfiguration(args: GetAgentConfigurationCommandInput, cb: (err: any, data?: GetAgentConfigurationCommandOutput) => void): void;
108
116
  getAgentConfiguration(args: GetAgentConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentConfigurationCommandOutput) => void): void;
117
+ /**
118
+ * @see {@link GetAgentTaskResponseUrlCommand}
119
+ */
120
+ getAgentTaskResponseUrl(args: GetAgentTaskResponseUrlCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentTaskResponseUrlCommandOutput>;
121
+ getAgentTaskResponseUrl(args: GetAgentTaskResponseUrlCommandInput, cb: (err: any, data?: GetAgentTaskResponseUrlCommandOutput) => void): void;
122
+ getAgentTaskResponseUrl(args: GetAgentTaskResponseUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentTaskResponseUrlCommandOutput) => void): void;
109
123
  /**
110
124
  * @see {@link GetConfigCommand}
111
125
  */