@aws-sdk/client-appflow 3.476.0 → 3.478.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/dist-cjs/pagination/DescribeConnectorProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeConnectorsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeFlowExecutionRecordsPaginator.js +2 -24
- package/dist-cjs/pagination/ListConnectorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFlowsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +107 -282
- package/dist-es/pagination/DescribeConnectorProfilesPaginator.js +2 -23
- package/dist-es/pagination/DescribeConnectorsPaginator.js +2 -23
- package/dist-es/pagination/DescribeFlowExecutionRecordsPaginator.js +2 -23
- package/dist-es/pagination/ListConnectorsPaginator.js +2 -23
- package/dist-es/pagination/ListFlowsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +108 -283
- package/dist-types/pagination/DescribeConnectorProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeConnectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFlowsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeConnectorProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeConnectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppflowClient } from "../AppflowClient";
|
|
2
3
|
import { DescribeConnectorProfilesCommand, } from "../commands/DescribeConnectorProfilesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeConnectorProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeConnectorProfiles(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppflowClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeConnectorProfiles = createPaginator(AppflowClient, DescribeConnectorProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppflowClient } from "../AppflowClient";
|
|
2
3
|
import { DescribeConnectorsCommand, } from "../commands/DescribeConnectorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeConnectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeConnectors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppflowClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeConnectors = createPaginator(AppflowClient, DescribeConnectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppflowClient } from "../AppflowClient";
|
|
2
3
|
import { DescribeFlowExecutionRecordsCommand, } from "../commands/DescribeFlowExecutionRecordsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeFlowExecutionRecordsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeFlowExecutionRecords(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppflowClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeFlowExecutionRecords = createPaginator(AppflowClient, DescribeFlowExecutionRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppflowClient } from "../AppflowClient";
|
|
2
3
|
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListConnectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListConnectors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppflowClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListConnectors = createPaginator(AppflowClient, ListConnectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { AppflowClient } from "../AppflowClient";
|
|
2
3
|
import { ListFlowsCommand } from "../commands/ListFlowsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFlowsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFlows(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof AppflowClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Appflow | AppflowClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListFlows = createPaginator(AppflowClient, ListFlowsCommand, "nextToken", "nextToken", "maxResults");
|