@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.
Files changed (23) hide show
  1. package/dist-cjs/pagination/DescribeConnectorProfilesPaginator.js +2 -24
  2. package/dist-cjs/pagination/DescribeConnectorsPaginator.js +2 -24
  3. package/dist-cjs/pagination/DescribeFlowExecutionRecordsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListConnectorsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListFlowsPaginator.js +2 -24
  6. package/dist-cjs/protocols/Aws_restJson1.js +107 -282
  7. package/dist-es/pagination/DescribeConnectorProfilesPaginator.js +2 -23
  8. package/dist-es/pagination/DescribeConnectorsPaginator.js +2 -23
  9. package/dist-es/pagination/DescribeFlowExecutionRecordsPaginator.js +2 -23
  10. package/dist-es/pagination/ListConnectorsPaginator.js +2 -23
  11. package/dist-es/pagination/ListFlowsPaginator.js +2 -23
  12. package/dist-es/protocols/Aws_restJson1.js +108 -283
  13. package/dist-types/pagination/DescribeConnectorProfilesPaginator.d.ts +1 -1
  14. package/dist-types/pagination/DescribeConnectorsPaginator.d.ts +1 -1
  15. package/dist-types/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListConnectorsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListFlowsPaginator.d.ts +1 -1
  18. package/dist-types/ts3.4/pagination/DescribeConnectorProfilesPaginator.d.ts +3 -3
  19. package/dist-types/ts3.4/pagination/DescribeConnectorsPaginator.d.ts +3 -3
  20. package/dist-types/ts3.4/pagination/DescribeFlowExecutionRecordsPaginator.d.ts +3 -3
  21. package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +3 -3
  23. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeConnectorProfiles = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AppflowClient_1 = require("../AppflowClient");
5
6
  const DescribeConnectorProfilesCommand_1 = require("../commands/DescribeConnectorProfilesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeConnectorProfilesCommand_1.DescribeConnectorProfilesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeConnectorProfiles(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof AppflowClient_1.AppflowClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Appflow | AppflowClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeConnectorProfiles = paginateDescribeConnectorProfiles;
7
+ exports.paginateDescribeConnectorProfiles = (0, core_1.createPaginator)(AppflowClient_1.AppflowClient, DescribeConnectorProfilesCommand_1.DescribeConnectorProfilesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeConnectors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AppflowClient_1 = require("../AppflowClient");
5
6
  const DescribeConnectorsCommand_1 = require("../commands/DescribeConnectorsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeConnectorsCommand_1.DescribeConnectorsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeConnectors(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof AppflowClient_1.AppflowClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Appflow | AppflowClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeConnectors = paginateDescribeConnectors;
7
+ exports.paginateDescribeConnectors = (0, core_1.createPaginator)(AppflowClient_1.AppflowClient, DescribeConnectorsCommand_1.DescribeConnectorsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeFlowExecutionRecords = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AppflowClient_1 = require("../AppflowClient");
5
6
  const DescribeFlowExecutionRecordsCommand_1 = require("../commands/DescribeFlowExecutionRecordsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeFlowExecutionRecordsCommand_1.DescribeFlowExecutionRecordsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeFlowExecutionRecords(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof AppflowClient_1.AppflowClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Appflow | AppflowClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeFlowExecutionRecords = paginateDescribeFlowExecutionRecords;
7
+ exports.paginateDescribeFlowExecutionRecords = (0, core_1.createPaginator)(AppflowClient_1.AppflowClient, DescribeFlowExecutionRecordsCommand_1.DescribeFlowExecutionRecordsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListConnectors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AppflowClient_1 = require("../AppflowClient");
5
6
  const ListConnectorsCommand_1 = require("../commands/ListConnectorsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListConnectorsCommand_1.ListConnectorsCommand(input), ...args);
8
- };
9
- async function* paginateListConnectors(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof AppflowClient_1.AppflowClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Appflow | AppflowClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListConnectors = paginateListConnectors;
7
+ exports.paginateListConnectors = (0, core_1.createPaginator)(AppflowClient_1.AppflowClient, ListConnectorsCommand_1.ListConnectorsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFlows = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AppflowClient_1 = require("../AppflowClient");
5
6
  const ListFlowsCommand_1 = require("../commands/ListFlowsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFlowsCommand_1.ListFlowsCommand(input), ...args);
8
- };
9
- async function* paginateListFlows(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof AppflowClient_1.AppflowClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Appflow | AppflowClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFlows = paginateListFlows;
7
+ exports.paginateListFlows = (0, core_1.createPaginator)(AppflowClient_1.AppflowClient, ListFlowsCommand_1.ListFlowsCommand, "nextToken", "nextToken", "maxResults");