@aws-sdk/client-auto-scaling 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 (55) hide show
  1. package/dist-cjs/pagination/DescribeAutoScalingGroupsPaginator.js +2 -24
  2. package/dist-cjs/pagination/DescribeAutoScalingInstancesPaginator.js +2 -24
  3. package/dist-cjs/pagination/DescribeInstanceRefreshesPaginator.js +2 -24
  4. package/dist-cjs/pagination/DescribeLaunchConfigurationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/DescribeLoadBalancerTargetGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/DescribeLoadBalancersPaginator.js +2 -24
  7. package/dist-cjs/pagination/DescribeNotificationConfigurationsPaginator.js +2 -24
  8. package/dist-cjs/pagination/DescribePoliciesPaginator.js +2 -24
  9. package/dist-cjs/pagination/DescribeScalingActivitiesPaginator.js +2 -24
  10. package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +2 -24
  11. package/dist-cjs/pagination/DescribeTagsPaginator.js +2 -24
  12. package/dist-cjs/pagination/DescribeTrafficSourcesPaginator.js +2 -24
  13. package/dist-cjs/pagination/DescribeWarmPoolPaginator.js +2 -24
  14. package/dist-cjs/protocols/Aws_query.js +2230 -1882
  15. package/dist-es/pagination/DescribeAutoScalingGroupsPaginator.js +2 -23
  16. package/dist-es/pagination/DescribeAutoScalingInstancesPaginator.js +2 -23
  17. package/dist-es/pagination/DescribeInstanceRefreshesPaginator.js +2 -23
  18. package/dist-es/pagination/DescribeLaunchConfigurationsPaginator.js +2 -23
  19. package/dist-es/pagination/DescribeLoadBalancerTargetGroupsPaginator.js +2 -23
  20. package/dist-es/pagination/DescribeLoadBalancersPaginator.js +2 -23
  21. package/dist-es/pagination/DescribeNotificationConfigurationsPaginator.js +2 -23
  22. package/dist-es/pagination/DescribePoliciesPaginator.js +2 -23
  23. package/dist-es/pagination/DescribeScalingActivitiesPaginator.js +2 -23
  24. package/dist-es/pagination/DescribeScheduledActionsPaginator.js +2 -23
  25. package/dist-es/pagination/DescribeTagsPaginator.js +2 -23
  26. package/dist-es/pagination/DescribeTrafficSourcesPaginator.js +2 -23
  27. package/dist-es/pagination/DescribeWarmPoolPaginator.js +2 -23
  28. package/dist-es/protocols/Aws_query.js +2230 -1882
  29. package/dist-types/pagination/DescribeAutoScalingGroupsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/DescribeAutoScalingInstancesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/DescribeInstanceRefreshesPaginator.d.ts +1 -1
  32. package/dist-types/pagination/DescribeLaunchConfigurationsPaginator.d.ts +1 -1
  33. package/dist-types/pagination/DescribeLoadBalancerTargetGroupsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/DescribeLoadBalancersPaginator.d.ts +1 -1
  35. package/dist-types/pagination/DescribeNotificationConfigurationsPaginator.d.ts +1 -1
  36. package/dist-types/pagination/DescribePoliciesPaginator.d.ts +1 -1
  37. package/dist-types/pagination/DescribeScalingActivitiesPaginator.d.ts +1 -1
  38. package/dist-types/pagination/DescribeScheduledActionsPaginator.d.ts +1 -1
  39. package/dist-types/pagination/DescribeTagsPaginator.d.ts +1 -1
  40. package/dist-types/pagination/DescribeTrafficSourcesPaginator.d.ts +1 -1
  41. package/dist-types/pagination/DescribeWarmPoolPaginator.d.ts +1 -1
  42. package/dist-types/ts3.4/pagination/DescribeAutoScalingGroupsPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/DescribeAutoScalingInstancesPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/DescribeInstanceRefreshesPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationsPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/DescribeLoadBalancerTargetGroupsPaginator.d.ts +3 -3
  47. package/dist-types/ts3.4/pagination/DescribeLoadBalancersPaginator.d.ts +3 -3
  48. package/dist-types/ts3.4/pagination/DescribeNotificationConfigurationsPaginator.d.ts +3 -3
  49. package/dist-types/ts3.4/pagination/DescribePoliciesPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/DescribeScalingActivitiesPaginator.d.ts +3 -3
  51. package/dist-types/ts3.4/pagination/DescribeScheduledActionsPaginator.d.ts +3 -3
  52. package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +3 -3
  53. package/dist-types/ts3.4/pagination/DescribeTrafficSourcesPaginator.d.ts +3 -3
  54. package/dist-types/ts3.4/pagination/DescribeWarmPoolPaginator.d.ts +3 -3
  55. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeAutoScalingGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeAutoScalingGroupsCommand_1 = require("../commands/DescribeAutoScalingGroupsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeAutoScalingGroupsCommand_1.DescribeAutoScalingGroupsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeAutoScalingGroups(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeAutoScalingGroups = paginateDescribeAutoScalingGroups;
7
+ exports.paginateDescribeAutoScalingGroups = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeAutoScalingGroupsCommand_1.DescribeAutoScalingGroupsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeAutoScalingInstances = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeAutoScalingInstancesCommand_1 = require("../commands/DescribeAutoScalingInstancesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeAutoScalingInstancesCommand_1.DescribeAutoScalingInstancesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeAutoScalingInstances(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeAutoScalingInstances = paginateDescribeAutoScalingInstances;
7
+ exports.paginateDescribeAutoScalingInstances = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeAutoScalingInstancesCommand_1.DescribeAutoScalingInstancesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeInstanceRefreshes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeInstanceRefreshesCommand_1 = require("../commands/DescribeInstanceRefreshesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeInstanceRefreshesCommand_1.DescribeInstanceRefreshesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeInstanceRefreshes(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeInstanceRefreshes = paginateDescribeInstanceRefreshes;
7
+ exports.paginateDescribeInstanceRefreshes = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeInstanceRefreshesCommand_1.DescribeInstanceRefreshesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeLaunchConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeLaunchConfigurationsCommand_1 = require("../commands/DescribeLaunchConfigurationsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeLaunchConfigurationsCommand_1.DescribeLaunchConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeLaunchConfigurations(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeLaunchConfigurations = paginateDescribeLaunchConfigurations;
7
+ exports.paginateDescribeLaunchConfigurations = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeLaunchConfigurationsCommand_1.DescribeLaunchConfigurationsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeLoadBalancerTargetGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeLoadBalancerTargetGroupsCommand_1 = require("../commands/DescribeLoadBalancerTargetGroupsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeLoadBalancerTargetGroupsCommand_1.DescribeLoadBalancerTargetGroupsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeLoadBalancerTargetGroups(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeLoadBalancerTargetGroups = paginateDescribeLoadBalancerTargetGroups;
7
+ exports.paginateDescribeLoadBalancerTargetGroups = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeLoadBalancerTargetGroupsCommand_1.DescribeLoadBalancerTargetGroupsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeLoadBalancers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeLoadBalancersCommand_1 = require("../commands/DescribeLoadBalancersCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand(input), ...args);
8
- };
9
- async function* paginateDescribeLoadBalancers(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeLoadBalancers = paginateDescribeLoadBalancers;
7
+ exports.paginateDescribeLoadBalancers = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeLoadBalancersCommand_1.DescribeLoadBalancersCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeNotificationConfigurations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeNotificationConfigurationsCommand_1 = require("../commands/DescribeNotificationConfigurationsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeNotificationConfigurationsCommand_1.DescribeNotificationConfigurationsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeNotificationConfigurations(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeNotificationConfigurations = paginateDescribeNotificationConfigurations;
7
+ exports.paginateDescribeNotificationConfigurations = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeNotificationConfigurationsCommand_1.DescribeNotificationConfigurationsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribePolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribePoliciesCommand_1 = require("../commands/DescribePoliciesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribePoliciesCommand_1.DescribePoliciesCommand(input), ...args);
8
- };
9
- async function* paginateDescribePolicies(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribePolicies = paginateDescribePolicies;
7
+ exports.paginateDescribePolicies = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribePoliciesCommand_1.DescribePoliciesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeScalingActivities = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeScalingActivitiesCommand_1 = require("../commands/DescribeScalingActivitiesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeScalingActivitiesCommand_1.DescribeScalingActivitiesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeScalingActivities(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeScalingActivities = paginateDescribeScalingActivities;
7
+ exports.paginateDescribeScalingActivities = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeScalingActivitiesCommand_1.DescribeScalingActivitiesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeScheduledActions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeScheduledActionsCommand_1 = require("../commands/DescribeScheduledActionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeScheduledActionsCommand_1.DescribeScheduledActionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeScheduledActions(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeScheduledActions = paginateDescribeScheduledActions;
7
+ exports.paginateDescribeScheduledActions = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeScheduledActionsCommand_1.DescribeScheduledActionsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeTags = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeTagsCommand_1 = require("../commands/DescribeTagsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeTagsCommand_1.DescribeTagsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeTags(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeTags = paginateDescribeTags;
7
+ exports.paginateDescribeTags = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeTagsCommand_1.DescribeTagsCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeTrafficSources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeTrafficSourcesCommand_1 = require("../commands/DescribeTrafficSourcesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeTrafficSourcesCommand_1.DescribeTrafficSourcesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeTrafficSources(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeTrafficSources = paginateDescribeTrafficSources;
7
+ exports.paginateDescribeTrafficSources = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeTrafficSourcesCommand_1.DescribeTrafficSourcesCommand, "NextToken", "NextToken", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeWarmPool = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AutoScalingClient_1 = require("../AutoScalingClient");
5
6
  const DescribeWarmPoolCommand_1 = require("../commands/DescribeWarmPoolCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeWarmPoolCommand_1.DescribeWarmPoolCommand(input), ...args);
8
- };
9
- async function* paginateDescribeWarmPool(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["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof AutoScalingClient_1.AutoScalingClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected AutoScaling | AutoScalingClient");
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.paginateDescribeWarmPool = paginateDescribeWarmPool;
7
+ exports.paginateDescribeWarmPool = (0, core_1.createPaginator)(AutoScalingClient_1.AutoScalingClient, DescribeWarmPoolCommand_1.DescribeWarmPoolCommand, "NextToken", "NextToken", "MaxRecords");