@aws-sdk/client-route53resolver 3.477.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 (65) hide show
  1. package/dist-cjs/pagination/ListFirewallConfigsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListFirewallDomainListsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListFirewallDomainsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListFirewallRuleGroupAssociationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListFirewallRuleGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListFirewallRulesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListOutpostResolversPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListResolverConfigsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListResolverDnssecConfigsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListResolverEndpointIpAddressesPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListResolverEndpointsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListResolverQueryLogConfigAssociationsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListResolverQueryLogConfigsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListResolverRuleAssociationsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListResolverRulesPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -24
  17. package/dist-es/pagination/ListFirewallConfigsPaginator.js +2 -23
  18. package/dist-es/pagination/ListFirewallDomainListsPaginator.js +2 -23
  19. package/dist-es/pagination/ListFirewallDomainsPaginator.js +2 -23
  20. package/dist-es/pagination/ListFirewallRuleGroupAssociationsPaginator.js +2 -23
  21. package/dist-es/pagination/ListFirewallRuleGroupsPaginator.js +2 -23
  22. package/dist-es/pagination/ListFirewallRulesPaginator.js +2 -23
  23. package/dist-es/pagination/ListOutpostResolversPaginator.js +2 -23
  24. package/dist-es/pagination/ListResolverConfigsPaginator.js +2 -23
  25. package/dist-es/pagination/ListResolverDnssecConfigsPaginator.js +2 -23
  26. package/dist-es/pagination/ListResolverEndpointIpAddressesPaginator.js +2 -23
  27. package/dist-es/pagination/ListResolverEndpointsPaginator.js +2 -23
  28. package/dist-es/pagination/ListResolverQueryLogConfigAssociationsPaginator.js +2 -23
  29. package/dist-es/pagination/ListResolverQueryLogConfigsPaginator.js +2 -23
  30. package/dist-es/pagination/ListResolverRuleAssociationsPaginator.js +2 -23
  31. package/dist-es/pagination/ListResolverRulesPaginator.js +2 -23
  32. package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -23
  33. package/dist-types/pagination/ListFirewallConfigsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListFirewallDomainListsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListFirewallDomainsPaginator.d.ts +1 -1
  36. package/dist-types/pagination/ListFirewallRuleGroupAssociationsPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListFirewallRuleGroupsPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListFirewallRulesPaginator.d.ts +1 -1
  39. package/dist-types/pagination/ListOutpostResolversPaginator.d.ts +1 -1
  40. package/dist-types/pagination/ListResolverConfigsPaginator.d.ts +1 -1
  41. package/dist-types/pagination/ListResolverDnssecConfigsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListResolverEndpointIpAddressesPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListResolverEndpointsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListResolverQueryLogConfigAssociationsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/ListResolverQueryLogConfigsPaginator.d.ts +1 -1
  46. package/dist-types/pagination/ListResolverRuleAssociationsPaginator.d.ts +1 -1
  47. package/dist-types/pagination/ListResolverRulesPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  49. package/dist-types/ts3.4/pagination/ListFirewallConfigsPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/ListFirewallDomainListsPaginator.d.ts +3 -3
  51. package/dist-types/ts3.4/pagination/ListFirewallDomainsPaginator.d.ts +3 -3
  52. package/dist-types/ts3.4/pagination/ListFirewallRuleGroupAssociationsPaginator.d.ts +3 -3
  53. package/dist-types/ts3.4/pagination/ListFirewallRuleGroupsPaginator.d.ts +3 -3
  54. package/dist-types/ts3.4/pagination/ListFirewallRulesPaginator.d.ts +3 -3
  55. package/dist-types/ts3.4/pagination/ListOutpostResolversPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/ListResolverConfigsPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/ListResolverDnssecConfigsPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/ListResolverEndpointIpAddressesPaginator.d.ts +3 -3
  59. package/dist-types/ts3.4/pagination/ListResolverEndpointsPaginator.d.ts +3 -3
  60. package/dist-types/ts3.4/pagination/ListResolverQueryLogConfigAssociationsPaginator.d.ts +3 -3
  61. package/dist-types/ts3.4/pagination/ListResolverQueryLogConfigsPaginator.d.ts +3 -3
  62. package/dist-types/ts3.4/pagination/ListResolverRuleAssociationsPaginator.d.ts +3 -3
  63. package/dist-types/ts3.4/pagination/ListResolverRulesPaginator.d.ts +3 -3
  64. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
  65. package/package.json +6 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFirewallConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFirewallConfigsCommand_1 = require("../commands/ListFirewallConfigsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFirewallConfigsCommand_1.ListFirewallConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListFirewallConfigs(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListFirewallConfigs = paginateListFirewallConfigs;
7
+ exports.paginateListFirewallConfigs = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListFirewallConfigsCommand_1.ListFirewallConfigsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFirewallDomainLists = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFirewallDomainListsCommand_1 = require("../commands/ListFirewallDomainListsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFirewallDomainListsCommand_1.ListFirewallDomainListsCommand(input), ...args);
8
- };
9
- async function* paginateListFirewallDomainLists(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListFirewallDomainLists = paginateListFirewallDomainLists;
7
+ exports.paginateListFirewallDomainLists = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListFirewallDomainListsCommand_1.ListFirewallDomainListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFirewallDomains = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFirewallDomainsCommand_1 = require("../commands/ListFirewallDomainsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFirewallDomainsCommand_1.ListFirewallDomainsCommand(input), ...args);
8
- };
9
- async function* paginateListFirewallDomains(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListFirewallDomains = paginateListFirewallDomains;
7
+ exports.paginateListFirewallDomains = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListFirewallDomainsCommand_1.ListFirewallDomainsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFirewallRuleGroupAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFirewallRuleGroupAssociationsCommand_1 = require("../commands/ListFirewallRuleGroupAssociationsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFirewallRuleGroupAssociationsCommand_1.ListFirewallRuleGroupAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListFirewallRuleGroupAssociations(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListFirewallRuleGroupAssociations = paginateListFirewallRuleGroupAssociations;
7
+ exports.paginateListFirewallRuleGroupAssociations = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListFirewallRuleGroupAssociationsCommand_1.ListFirewallRuleGroupAssociationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFirewallRuleGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFirewallRuleGroupsCommand_1 = require("../commands/ListFirewallRuleGroupsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFirewallRuleGroupsCommand_1.ListFirewallRuleGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListFirewallRuleGroups(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListFirewallRuleGroups = paginateListFirewallRuleGroups;
7
+ exports.paginateListFirewallRuleGroups = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListFirewallRuleGroupsCommand_1.ListFirewallRuleGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFirewallRules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFirewallRulesCommand_1 = require("../commands/ListFirewallRulesCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFirewallRulesCommand_1.ListFirewallRulesCommand(input), ...args);
8
- };
9
- async function* paginateListFirewallRules(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListFirewallRules = paginateListFirewallRules;
7
+ exports.paginateListFirewallRules = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListFirewallRulesCommand_1.ListFirewallRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOutpostResolvers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListOutpostResolversCommand_1 = require("../commands/ListOutpostResolversCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListOutpostResolversCommand_1.ListOutpostResolversCommand(input), ...args);
8
- };
9
- async function* paginateListOutpostResolvers(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListOutpostResolvers = paginateListOutpostResolvers;
7
+ exports.paginateListOutpostResolvers = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListOutpostResolversCommand_1.ListOutpostResolversCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverConfigsCommand_1 = require("../commands/ListResolverConfigsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverConfigsCommand_1.ListResolverConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListResolverConfigs(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverConfigs = paginateListResolverConfigs;
7
+ exports.paginateListResolverConfigs = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverConfigsCommand_1.ListResolverConfigsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverDnssecConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverDnssecConfigsCommand_1 = require("../commands/ListResolverDnssecConfigsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverDnssecConfigsCommand_1.ListResolverDnssecConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListResolverDnssecConfigs(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverDnssecConfigs = paginateListResolverDnssecConfigs;
7
+ exports.paginateListResolverDnssecConfigs = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverDnssecConfigsCommand_1.ListResolverDnssecConfigsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverEndpointIpAddresses = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverEndpointIpAddressesCommand_1 = require("../commands/ListResolverEndpointIpAddressesCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverEndpointIpAddressesCommand_1.ListResolverEndpointIpAddressesCommand(input), ...args);
8
- };
9
- async function* paginateListResolverEndpointIpAddresses(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverEndpointIpAddresses = paginateListResolverEndpointIpAddresses;
7
+ exports.paginateListResolverEndpointIpAddresses = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverEndpointIpAddressesCommand_1.ListResolverEndpointIpAddressesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverEndpoints = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverEndpointsCommand_1 = require("../commands/ListResolverEndpointsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverEndpointsCommand_1.ListResolverEndpointsCommand(input), ...args);
8
- };
9
- async function* paginateListResolverEndpoints(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverEndpoints = paginateListResolverEndpoints;
7
+ exports.paginateListResolverEndpoints = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverEndpointsCommand_1.ListResolverEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverQueryLogConfigAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverQueryLogConfigAssociationsCommand_1 = require("../commands/ListResolverQueryLogConfigAssociationsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverQueryLogConfigAssociationsCommand_1.ListResolverQueryLogConfigAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListResolverQueryLogConfigAssociations(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverQueryLogConfigAssociations = paginateListResolverQueryLogConfigAssociations;
7
+ exports.paginateListResolverQueryLogConfigAssociations = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverQueryLogConfigAssociationsCommand_1.ListResolverQueryLogConfigAssociationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverQueryLogConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverQueryLogConfigsCommand_1 = require("../commands/ListResolverQueryLogConfigsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverQueryLogConfigsCommand_1.ListResolverQueryLogConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListResolverQueryLogConfigs(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverQueryLogConfigs = paginateListResolverQueryLogConfigs;
7
+ exports.paginateListResolverQueryLogConfigs = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverQueryLogConfigsCommand_1.ListResolverQueryLogConfigsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverRuleAssociations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverRuleAssociationsCommand_1 = require("../commands/ListResolverRuleAssociationsCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverRuleAssociationsCommand_1.ListResolverRuleAssociationsCommand(input), ...args);
8
- };
9
- async function* paginateListResolverRuleAssociations(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverRuleAssociations = paginateListResolverRuleAssociations;
7
+ exports.paginateListResolverRuleAssociations = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverRuleAssociationsCommand_1.ListResolverRuleAssociationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListResolverRules = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListResolverRulesCommand_1 = require("../commands/ListResolverRulesCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListResolverRulesCommand_1.ListResolverRulesCommand(input), ...args);
8
- };
9
- async function* paginateListResolverRules(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListResolverRules = paginateListResolverRules;
7
+ exports.paginateListResolverRules = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListResolverRulesCommand_1.ListResolverRulesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTagsForResource = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
5
6
  const Route53ResolverClient_1 = require("../Route53ResolverClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
8
- };
9
- async function* paginateListTagsForResource(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 Route53ResolverClient_1.Route53ResolverClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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.paginateListTagsForResource = paginateListTagsForResource;
7
+ exports.paginateListTagsForResource = (0, core_1.createPaginator)(Route53ResolverClient_1.Route53ResolverClient, ListTagsForResourceCommand_1.ListTagsForResourceCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFirewallConfigsCommand, } from "../commands/ListFirewallConfigsCommand";
2
3
  import { Route53ResolverClient } from "../Route53ResolverClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFirewallConfigsCommand(input), ...args);
5
- };
6
- export async function* paginateListFirewallConfigs(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 Route53ResolverClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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 paginateListFirewallConfigs = createPaginator(Route53ResolverClient, ListFirewallConfigsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFirewallDomainListsCommand, } from "../commands/ListFirewallDomainListsCommand";
2
3
  import { Route53ResolverClient } from "../Route53ResolverClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFirewallDomainListsCommand(input), ...args);
5
- };
6
- export async function* paginateListFirewallDomainLists(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 Route53ResolverClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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 paginateListFirewallDomainLists = createPaginator(Route53ResolverClient, ListFirewallDomainListsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFirewallDomainsCommand, } from "../commands/ListFirewallDomainsCommand";
2
3
  import { Route53ResolverClient } from "../Route53ResolverClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFirewallDomainsCommand(input), ...args);
5
- };
6
- export async function* paginateListFirewallDomains(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 Route53ResolverClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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 paginateListFirewallDomains = createPaginator(Route53ResolverClient, ListFirewallDomainsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFirewallRuleGroupAssociationsCommand, } from "../commands/ListFirewallRuleGroupAssociationsCommand";
2
3
  import { Route53ResolverClient } from "../Route53ResolverClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFirewallRuleGroupAssociationsCommand(input), ...args);
5
- };
6
- export async function* paginateListFirewallRuleGroupAssociations(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 Route53ResolverClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Route53Resolver | Route53ResolverClient");
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 paginateListFirewallRuleGroupAssociations = createPaginator(Route53ResolverClient, ListFirewallRuleGroupAssociationsCommand, "NextToken", "NextToken", "MaxResults");