@aws-sdk/client-groundstation 3.35.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/GroundStation.js +0 -1
- package/dist-cjs/GroundStationClient.js +0 -1
- package/dist-cjs/commands/CancelContactCommand.js +0 -1
- package/dist-cjs/commands/CreateConfigCommand.js +0 -1
- package/dist-cjs/commands/CreateDataflowEndpointGroupCommand.js +0 -1
- package/dist-cjs/commands/CreateMissionProfileCommand.js +0 -1
- package/dist-cjs/commands/DeleteConfigCommand.js +0 -1
- package/dist-cjs/commands/DeleteDataflowEndpointGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteMissionProfileCommand.js +0 -1
- package/dist-cjs/commands/DescribeContactCommand.js +0 -1
- package/dist-cjs/commands/GetConfigCommand.js +0 -1
- package/dist-cjs/commands/GetDataflowEndpointGroupCommand.js +0 -1
- package/dist-cjs/commands/GetMinuteUsageCommand.js +0 -1
- package/dist-cjs/commands/GetMissionProfileCommand.js +0 -1
- package/dist-cjs/commands/GetSatelliteCommand.js +0 -1
- package/dist-cjs/commands/ListConfigsCommand.js +0 -1
- package/dist-cjs/commands/ListContactsCommand.js +0 -1
- package/dist-cjs/commands/ListDataflowEndpointGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListGroundStationsCommand.js +0 -1
- package/dist-cjs/commands/ListMissionProfilesCommand.js +0 -1
- package/dist-cjs/commands/ListSatellitesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ReserveContactCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateConfigCommand.js +0 -1
- package/dist-cjs/commands/UpdateMissionProfileCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListConfigsPaginator.js +0 -1
- package/dist-cjs/pagination/ListContactsPaginator.js +0 -1
- package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/ListGroundStationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListMissionProfilesPaginator.js +0 -1
- package/dist-cjs/pagination/ListSatellitesPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/GroundStation.js +0 -1
- package/dist-es/GroundStationClient.js +0 -1
- package/dist-es/commands/CancelContactCommand.js +0 -1
- package/dist-es/commands/CreateConfigCommand.js +0 -1
- package/dist-es/commands/CreateDataflowEndpointGroupCommand.js +0 -1
- package/dist-es/commands/CreateMissionProfileCommand.js +0 -1
- package/dist-es/commands/DeleteConfigCommand.js +0 -1
- package/dist-es/commands/DeleteDataflowEndpointGroupCommand.js +0 -1
- package/dist-es/commands/DeleteMissionProfileCommand.js +0 -1
- package/dist-es/commands/DescribeContactCommand.js +0 -1
- package/dist-es/commands/GetConfigCommand.js +0 -1
- package/dist-es/commands/GetDataflowEndpointGroupCommand.js +0 -1
- package/dist-es/commands/GetMinuteUsageCommand.js +0 -1
- package/dist-es/commands/GetMissionProfileCommand.js +0 -1
- package/dist-es/commands/GetSatelliteCommand.js +0 -1
- package/dist-es/commands/ListConfigsCommand.js +0 -1
- package/dist-es/commands/ListContactsCommand.js +0 -1
- package/dist-es/commands/ListDataflowEndpointGroupsCommand.js +0 -1
- package/dist-es/commands/ListGroundStationsCommand.js +0 -1
- package/dist-es/commands/ListMissionProfilesCommand.js +0 -1
- package/dist-es/commands/ListSatellitesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ReserveContactCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateConfigCommand.js +0 -1
- package/dist-es/commands/UpdateMissionProfileCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListConfigsPaginator.js +0 -1
- package/dist-es/pagination/ListContactsPaginator.js +0 -1
- package/dist-es/pagination/ListDataflowEndpointGroupsPaginator.js +0 -1
- package/dist-es/pagination/ListGroundStationsPaginator.js +0 -1
- package/dist-es/pagination/ListMissionProfilesPaginator.js +0 -1
- package/dist-es/pagination/ListSatellitesPaginator.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/GroundStation.js.map +0 -1
- package/dist-cjs/GroundStationClient.js.map +0 -1
- package/dist-cjs/commands/CancelContactCommand.js.map +0 -1
- package/dist-cjs/commands/CreateConfigCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDataflowEndpointGroupCommand.js.map +0 -1
- package/dist-cjs/commands/CreateMissionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteConfigCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDataflowEndpointGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteMissionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeContactCommand.js.map +0 -1
- package/dist-cjs/commands/GetConfigCommand.js.map +0 -1
- package/dist-cjs/commands/GetDataflowEndpointGroupCommand.js.map +0 -1
- package/dist-cjs/commands/GetMinuteUsageCommand.js.map +0 -1
- package/dist-cjs/commands/GetMissionProfileCommand.js.map +0 -1
- package/dist-cjs/commands/GetSatelliteCommand.js.map +0 -1
- package/dist-cjs/commands/ListConfigsCommand.js.map +0 -1
- package/dist-cjs/commands/ListContactsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDataflowEndpointGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/ListGroundStationsCommand.js.map +0 -1
- package/dist-cjs/commands/ListMissionProfilesCommand.js.map +0 -1
- package/dist-cjs/commands/ListSatellitesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ReserveContactCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateConfigCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateMissionProfileCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListConfigsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListContactsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDataflowEndpointGroupsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListGroundStationsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListMissionProfilesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSatellitesPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/GroundStation.js.map +0 -1
- package/dist-es/GroundStationClient.js.map +0 -1
- package/dist-es/commands/CancelContactCommand.js.map +0 -1
- package/dist-es/commands/CreateConfigCommand.js.map +0 -1
- package/dist-es/commands/CreateDataflowEndpointGroupCommand.js.map +0 -1
- package/dist-es/commands/CreateMissionProfileCommand.js.map +0 -1
- package/dist-es/commands/DeleteConfigCommand.js.map +0 -1
- package/dist-es/commands/DeleteDataflowEndpointGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteMissionProfileCommand.js.map +0 -1
- package/dist-es/commands/DescribeContactCommand.js.map +0 -1
- package/dist-es/commands/GetConfigCommand.js.map +0 -1
- package/dist-es/commands/GetDataflowEndpointGroupCommand.js.map +0 -1
- package/dist-es/commands/GetMinuteUsageCommand.js.map +0 -1
- package/dist-es/commands/GetMissionProfileCommand.js.map +0 -1
- package/dist-es/commands/GetSatelliteCommand.js.map +0 -1
- package/dist-es/commands/ListConfigsCommand.js.map +0 -1
- package/dist-es/commands/ListContactsCommand.js.map +0 -1
- package/dist-es/commands/ListDataflowEndpointGroupsCommand.js.map +0 -1
- package/dist-es/commands/ListGroundStationsCommand.js.map +0 -1
- package/dist-es/commands/ListMissionProfilesCommand.js.map +0 -1
- package/dist-es/commands/ListSatellitesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ReserveContactCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateConfigCommand.js.map +0 -1
- package/dist-es/commands/UpdateMissionProfileCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListConfigsPaginator.js.map +0 -1
- package/dist-es/pagination/ListContactsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDataflowEndpointGroupsPaginator.js.map +0 -1
- package/dist-es/pagination/ListGroundStationsPaginator.js.map +0 -1
- package/dist-es/pagination/ListMissionProfilesPaginator.js.map +0 -1
- package/dist-es/pagination/ListSatellitesPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/GroundStation.ts +0 -907
- package/src/GroundStationClient.ts +0 -341
- package/src/commands/CancelContactCommand.ts +0 -95
- package/src/commands/CreateConfigCommand.ts +0 -96
- package/src/commands/CreateDataflowEndpointGroupCommand.ts +0 -102
- package/src/commands/CreateMissionProfileCommand.ts +0 -98
- package/src/commands/DeleteConfigCommand.ts +0 -95
- package/src/commands/DeleteDataflowEndpointGroupCommand.ts +0 -98
- package/src/commands/DeleteMissionProfileCommand.ts +0 -95
- package/src/commands/DescribeContactCommand.ts +0 -95
- package/src/commands/GetConfigCommand.ts +0 -96
- package/src/commands/GetDataflowEndpointGroupCommand.ts +0 -95
- package/src/commands/GetMinuteUsageCommand.ts +0 -95
- package/src/commands/GetMissionProfileCommand.ts +0 -95
- package/src/commands/GetSatelliteCommand.ts +0 -95
- package/src/commands/ListConfigsCommand.ts +0 -95
- package/src/commands/ListContactsCommand.ts +0 -98
- package/src/commands/ListDataflowEndpointGroupsCommand.ts +0 -98
- package/src/commands/ListGroundStationsCommand.ts +0 -95
- package/src/commands/ListMissionProfilesCommand.ts +0 -95
- package/src/commands/ListSatellitesCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ReserveContactCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateConfigCommand.ts +0 -97
- package/src/commands/UpdateMissionProfileCommand.ts +0 -97
- package/src/endpoints.ts +0 -73
- package/src/index.ts +0 -35
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2545
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListConfigsPaginator.ts +0 -55
- package/src/pagination/ListContactsPaginator.ts +0 -59
- package/src/pagination/ListDataflowEndpointGroupsPaginator.ts +0 -59
- package/src/pagination/ListGroundStationsPaginator.ts +0 -59
- package/src/pagination/ListMissionProfilesPaginator.ts +0 -59
- package/src/pagination/ListSatellitesPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -3832
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { GroundStation } from "../GroundStation";
|
|
4
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
5
|
-
|
|
6
|
-
export interface GroundStationPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: GroundStation | GroundStationClient;
|
|
8
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListConfigsCommand, ListConfigsCommandInput, ListConfigsCommandOutput } from "../commands/ListConfigsCommand";
|
|
4
|
-
import { GroundStation } from "../GroundStation";
|
|
5
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
6
|
-
import { GroundStationPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: GroundStationClient,
|
|
13
|
-
input: ListConfigsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListConfigsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListConfigsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: GroundStation,
|
|
24
|
-
input: ListConfigsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListConfigsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listConfigs(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListConfigs(
|
|
31
|
-
config: GroundStationPaginationConfiguration,
|
|
32
|
-
input: ListConfigsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListConfigsCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
36
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListConfigsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.nextToken = token;
|
|
41
|
-
input["maxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof GroundStation) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof GroundStationClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected GroundStation | GroundStationClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.nextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListContactsCommand,
|
|
5
|
-
ListContactsCommandInput,
|
|
6
|
-
ListContactsCommandOutput,
|
|
7
|
-
} from "../commands/ListContactsCommand";
|
|
8
|
-
import { GroundStation } from "../GroundStation";
|
|
9
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
10
|
-
import { GroundStationPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GroundStationClient,
|
|
17
|
-
input: ListContactsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListContactsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListContactsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GroundStation,
|
|
28
|
-
input: ListContactsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListContactsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listContacts(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListContacts(
|
|
35
|
-
config: GroundStationPaginationConfiguration,
|
|
36
|
-
input: ListContactsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListContactsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListContactsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GroundStation) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GroundStationClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GroundStation | GroundStationClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListDataflowEndpointGroupsCommand,
|
|
5
|
-
ListDataflowEndpointGroupsCommandInput,
|
|
6
|
-
ListDataflowEndpointGroupsCommandOutput,
|
|
7
|
-
} from "../commands/ListDataflowEndpointGroupsCommand";
|
|
8
|
-
import { GroundStation } from "../GroundStation";
|
|
9
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
10
|
-
import { GroundStationPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GroundStationClient,
|
|
17
|
-
input: ListDataflowEndpointGroupsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListDataflowEndpointGroupsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListDataflowEndpointGroupsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GroundStation,
|
|
28
|
-
input: ListDataflowEndpointGroupsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListDataflowEndpointGroupsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listDataflowEndpointGroups(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListDataflowEndpointGroups(
|
|
35
|
-
config: GroundStationPaginationConfiguration,
|
|
36
|
-
input: ListDataflowEndpointGroupsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListDataflowEndpointGroupsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListDataflowEndpointGroupsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GroundStation) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GroundStationClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GroundStation | GroundStationClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListGroundStationsCommand,
|
|
5
|
-
ListGroundStationsCommandInput,
|
|
6
|
-
ListGroundStationsCommandOutput,
|
|
7
|
-
} from "../commands/ListGroundStationsCommand";
|
|
8
|
-
import { GroundStation } from "../GroundStation";
|
|
9
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
10
|
-
import { GroundStationPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GroundStationClient,
|
|
17
|
-
input: ListGroundStationsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListGroundStationsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListGroundStationsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GroundStation,
|
|
28
|
-
input: ListGroundStationsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListGroundStationsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listGroundStations(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListGroundStations(
|
|
35
|
-
config: GroundStationPaginationConfiguration,
|
|
36
|
-
input: ListGroundStationsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListGroundStationsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListGroundStationsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GroundStation) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GroundStationClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GroundStation | GroundStationClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListMissionProfilesCommand,
|
|
5
|
-
ListMissionProfilesCommandInput,
|
|
6
|
-
ListMissionProfilesCommandOutput,
|
|
7
|
-
} from "../commands/ListMissionProfilesCommand";
|
|
8
|
-
import { GroundStation } from "../GroundStation";
|
|
9
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
10
|
-
import { GroundStationPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GroundStationClient,
|
|
17
|
-
input: ListMissionProfilesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListMissionProfilesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListMissionProfilesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GroundStation,
|
|
28
|
-
input: ListMissionProfilesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListMissionProfilesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listMissionProfiles(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListMissionProfiles(
|
|
35
|
-
config: GroundStationPaginationConfiguration,
|
|
36
|
-
input: ListMissionProfilesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListMissionProfilesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListMissionProfilesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GroundStation) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GroundStationClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GroundStation | GroundStationClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListSatellitesCommand,
|
|
5
|
-
ListSatellitesCommandInput,
|
|
6
|
-
ListSatellitesCommandOutput,
|
|
7
|
-
} from "../commands/ListSatellitesCommand";
|
|
8
|
-
import { GroundStation } from "../GroundStation";
|
|
9
|
-
import { GroundStationClient } from "../GroundStationClient";
|
|
10
|
-
import { GroundStationPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: GroundStationClient,
|
|
17
|
-
input: ListSatellitesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListSatellitesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListSatellitesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: GroundStation,
|
|
28
|
-
input: ListSatellitesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListSatellitesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listSatellites(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListSatellites(
|
|
35
|
-
config: GroundStationPaginationConfiguration,
|
|
36
|
-
input: ListSatellitesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListSatellitesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListSatellitesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof GroundStation) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof GroundStationClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected GroundStation | GroundStationClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|