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