@aws-sdk/client-appflow 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/Appflow.js +0 -1
- package/dist-cjs/AppflowClient.js +0 -1
- package/dist-cjs/commands/CreateConnectorProfileCommand.js +0 -1
- package/dist-cjs/commands/CreateFlowCommand.js +0 -1
- package/dist-cjs/commands/DeleteConnectorProfileCommand.js +0 -1
- package/dist-cjs/commands/DeleteFlowCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorEntityCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorProfilesCommand.js +0 -1
- package/dist-cjs/commands/DescribeConnectorsCommand.js +0 -1
- package/dist-cjs/commands/DescribeFlowCommand.js +0 -1
- package/dist-cjs/commands/DescribeFlowExecutionRecordsCommand.js +0 -1
- package/dist-cjs/commands/ListConnectorEntitiesCommand.js +0 -1
- package/dist-cjs/commands/ListFlowsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/StartFlowCommand.js +0 -1
- package/dist-cjs/commands/StopFlowCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateConnectorProfileCommand.js +0 -1
- package/dist-cjs/commands/UpdateFlowCommand.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/DescribeConnectorProfilesPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeConnectorsPaginator.js +0 -1
- package/dist-cjs/pagination/DescribeFlowExecutionRecordsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListFlowsPaginator.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/Appflow.js +0 -1
- package/dist-es/AppflowClient.js +0 -1
- package/dist-es/commands/CreateConnectorProfileCommand.js +0 -1
- package/dist-es/commands/CreateFlowCommand.js +0 -1
- package/dist-es/commands/DeleteConnectorProfileCommand.js +0 -1
- package/dist-es/commands/DeleteFlowCommand.js +0 -1
- package/dist-es/commands/DescribeConnectorEntityCommand.js +0 -1
- package/dist-es/commands/DescribeConnectorProfilesCommand.js +0 -1
- package/dist-es/commands/DescribeConnectorsCommand.js +0 -1
- package/dist-es/commands/DescribeFlowCommand.js +0 -1
- package/dist-es/commands/DescribeFlowExecutionRecordsCommand.js +0 -1
- package/dist-es/commands/ListConnectorEntitiesCommand.js +0 -1
- package/dist-es/commands/ListFlowsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/StartFlowCommand.js +0 -1
- package/dist-es/commands/StopFlowCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateConnectorProfileCommand.js +0 -1
- package/dist-es/commands/UpdateFlowCommand.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/DescribeConnectorProfilesPaginator.js +0 -1
- package/dist-es/pagination/DescribeConnectorsPaginator.js +0 -1
- package/dist-es/pagination/DescribeFlowExecutionRecordsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListFlowsPaginator.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/Appflow.js.map +0 -1
- package/dist-cjs/AppflowClient.js.map +0 -1
- package/dist-cjs/commands/CreateConnectorProfileCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFlowCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteConnectorProfileCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFlowCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeConnectorEntityCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeConnectorProfilesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeConnectorsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFlowCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFlowExecutionRecordsCommand.js.map +0 -1
- package/dist-cjs/commands/ListConnectorEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/ListFlowsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/StartFlowCommand.js.map +0 -1
- package/dist-cjs/commands/StopFlowCommand.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/UpdateConnectorProfileCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFlowCommand.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/DescribeConnectorProfilesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeConnectorsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeFlowExecutionRecordsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListFlowsPaginator.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/Appflow.js.map +0 -1
- package/dist-es/AppflowClient.js.map +0 -1
- package/dist-es/commands/CreateConnectorProfileCommand.js.map +0 -1
- package/dist-es/commands/CreateFlowCommand.js.map +0 -1
- package/dist-es/commands/DeleteConnectorProfileCommand.js.map +0 -1
- package/dist-es/commands/DeleteFlowCommand.js.map +0 -1
- package/dist-es/commands/DescribeConnectorEntityCommand.js.map +0 -1
- package/dist-es/commands/DescribeConnectorProfilesCommand.js.map +0 -1
- package/dist-es/commands/DescribeConnectorsCommand.js.map +0 -1
- package/dist-es/commands/DescribeFlowCommand.js.map +0 -1
- package/dist-es/commands/DescribeFlowExecutionRecordsCommand.js.map +0 -1
- package/dist-es/commands/ListConnectorEntitiesCommand.js.map +0 -1
- package/dist-es/commands/ListFlowsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/StartFlowCommand.js.map +0 -1
- package/dist-es/commands/StopFlowCommand.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/UpdateConnectorProfileCommand.js.map +0 -1
- package/dist-es/commands/UpdateFlowCommand.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/DescribeConnectorProfilesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeConnectorsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeFlowExecutionRecordsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListFlowsPaginator.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/Appflow.ts +0 -664
- package/src/AppflowClient.ts +0 -354
- package/src/commands/CreateConnectorProfileCommand.ts +0 -98
- package/src/commands/CreateFlowCommand.ts +0 -98
- package/src/commands/DeleteConnectorProfileCommand.ts +0 -95
- package/src/commands/DeleteFlowCommand.ts +0 -97
- package/src/commands/DescribeConnectorEntityCommand.ts +0 -96
- package/src/commands/DescribeConnectorProfilesCommand.ts +0 -102
- package/src/commands/DescribeConnectorsCommand.ts +0 -99
- package/src/commands/DescribeFlowCommand.ts +0 -95
- package/src/commands/DescribeFlowExecutionRecordsCommand.ts +0 -100
- package/src/commands/ListConnectorEntitiesCommand.ts +0 -98
- package/src/commands/ListFlowsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/StartFlowCommand.ts +0 -96
- package/src/commands/StopFlowCommand.ts +0 -97
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateConnectorProfileCommand.ts +0 -95
- package/src/commands/UpdateFlowCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -26
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -5012
- package/src/pagination/DescribeConnectorProfilesPaginator.ts +0 -59
- package/src/pagination/DescribeConnectorsPaginator.ts +0 -58
- package/src/pagination/DescribeFlowExecutionRecordsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListFlowsPaginator.ts +0 -55
- package/src/protocols/Aws_restJson1.ts +0 -5153
- 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,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Appflow } from "../Appflow";
|
|
4
|
-
import { AppflowClient } from "../AppflowClient";
|
|
5
|
-
import {
|
|
6
|
-
DescribeConnectorProfilesCommand,
|
|
7
|
-
DescribeConnectorProfilesCommandInput,
|
|
8
|
-
DescribeConnectorProfilesCommandOutput,
|
|
9
|
-
} from "../commands/DescribeConnectorProfilesCommand";
|
|
10
|
-
import { AppflowPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: AppflowClient,
|
|
17
|
-
input: DescribeConnectorProfilesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeConnectorProfilesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeConnectorProfilesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Appflow,
|
|
28
|
-
input: DescribeConnectorProfilesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeConnectorProfilesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeConnectorProfiles(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeConnectorProfiles(
|
|
35
|
-
config: AppflowPaginationConfiguration,
|
|
36
|
-
input: DescribeConnectorProfilesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeConnectorProfilesCommandOutput> {
|
|
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: DescribeConnectorProfilesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Appflow) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof AppflowClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Appflow } from "../Appflow";
|
|
4
|
-
import { AppflowClient } from "../AppflowClient";
|
|
5
|
-
import {
|
|
6
|
-
DescribeConnectorsCommand,
|
|
7
|
-
DescribeConnectorsCommandInput,
|
|
8
|
-
DescribeConnectorsCommandOutput,
|
|
9
|
-
} from "../commands/DescribeConnectorsCommand";
|
|
10
|
-
import { AppflowPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: AppflowClient,
|
|
17
|
-
input: DescribeConnectorsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeConnectorsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeConnectorsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Appflow,
|
|
28
|
-
input: DescribeConnectorsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeConnectorsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeConnectors(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeConnectors(
|
|
35
|
-
config: AppflowPaginationConfiguration,
|
|
36
|
-
input: DescribeConnectorsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeConnectorsCommandOutput> {
|
|
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: DescribeConnectorsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
if (config.client instanceof Appflow) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof AppflowClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.nextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Appflow } from "../Appflow";
|
|
4
|
-
import { AppflowClient } from "../AppflowClient";
|
|
5
|
-
import {
|
|
6
|
-
DescribeFlowExecutionRecordsCommand,
|
|
7
|
-
DescribeFlowExecutionRecordsCommandInput,
|
|
8
|
-
DescribeFlowExecutionRecordsCommandOutput,
|
|
9
|
-
} from "../commands/DescribeFlowExecutionRecordsCommand";
|
|
10
|
-
import { AppflowPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: AppflowClient,
|
|
17
|
-
input: DescribeFlowExecutionRecordsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeFlowExecutionRecordsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeFlowExecutionRecordsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Appflow,
|
|
28
|
-
input: DescribeFlowExecutionRecordsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeFlowExecutionRecordsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeFlowExecutionRecords(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeFlowExecutionRecords(
|
|
35
|
-
config: AppflowPaginationConfiguration,
|
|
36
|
-
input: DescribeFlowExecutionRecordsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeFlowExecutionRecordsCommandOutput> {
|
|
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: DescribeFlowExecutionRecordsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Appflow) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof AppflowClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Appflow } from "../Appflow";
|
|
4
|
-
import { AppflowClient } from "../AppflowClient";
|
|
5
|
-
|
|
6
|
-
export interface AppflowPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: Appflow | AppflowClient;
|
|
8
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Appflow } from "../Appflow";
|
|
4
|
-
import { AppflowClient } from "../AppflowClient";
|
|
5
|
-
import { ListFlowsCommand, ListFlowsCommandInput, ListFlowsCommandOutput } from "../commands/ListFlowsCommand";
|
|
6
|
-
import { AppflowPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: AppflowClient,
|
|
13
|
-
input: ListFlowsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListFlowsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListFlowsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: Appflow,
|
|
24
|
-
input: ListFlowsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListFlowsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listFlows(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListFlows(
|
|
31
|
-
config: AppflowPaginationConfiguration,
|
|
32
|
-
input: ListFlowsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListFlowsCommandOutput> {
|
|
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: ListFlowsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.nextToken = token;
|
|
41
|
-
input["maxResults"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof Appflow) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof AppflowClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.nextToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|