@cdk8s/awscdk-resolver 0.0.44 → 0.0.46

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 (131) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeAccountLimitsPaginator.js +2 -23
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStackEventsPaginator.js +2 -23
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStackResourceDriftsPaginator.js +2 -24
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/DescribeStacksPaginator.js +2 -23
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListChangeSetsPaginator.js +2 -23
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListExportsPaginator.js +2 -23
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListImportsPaginator.js +2 -23
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackInstancesPaginator.js +2 -24
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackResourcesPaginator.js +2 -23
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetOperationResultsPaginator.js +2 -24
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetOperationsPaginator.js +2 -24
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStackSetsPaginator.js +2 -24
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListStacksPaginator.js +2 -23
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypeRegistrationsPaginator.js +2 -24
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypeVersionsPaginator.js +2 -24
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListTypesPaginator.js +2 -24
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/protocols/Aws_query.js +2385 -2037
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeAccountLimitsPaginator.js +2 -22
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeStackEventsPaginator.js +2 -22
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeStackResourceDriftsPaginator.js +2 -23
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/DescribeStacksPaginator.js +2 -22
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListChangeSetsPaginator.js +2 -22
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListExportsPaginator.js +2 -22
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListImportsPaginator.js +2 -22
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackInstancesPaginator.js +2 -23
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackResourcesPaginator.js +2 -22
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackSetOperationResultsPaginator.js +2 -23
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackSetOperationsPaginator.js +2 -23
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStackSetsPaginator.js +2 -23
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListStacksPaginator.js +2 -22
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListTypeRegistrationsPaginator.js +2 -23
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListTypeVersionsPaginator.js +2 -23
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListTypesPaginator.js +2 -23
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +2385 -2037
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeAccountLimitsPaginator.d.ts +1 -1
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeStackEventsPaginator.d.ts +1 -1
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeStackResourceDriftsPaginator.d.ts +1 -1
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/DescribeStacksPaginator.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListChangeSetsPaginator.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackInstancesPaginator.d.ts +1 -1
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackResourcesPaginator.d.ts +1 -1
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackSetOperationResultsPaginator.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackSetOperationsPaginator.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStackSetsPaginator.d.ts +1 -1
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListStacksPaginator.d.ts +1 -1
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListTypeRegistrationsPaginator.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListTypeVersionsPaginator.d.ts +1 -1
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListTypesPaginator.d.ts +1 -1
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeAccountLimitsPaginator.d.ts +3 -3
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeStackEventsPaginator.d.ts +3 -3
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeStackResourceDriftsPaginator.d.ts +3 -3
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/DescribeStacksPaginator.d.ts +3 -3
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListChangeSetsPaginator.d.ts +3 -3
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackInstancesPaginator.d.ts +3 -3
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackResourcesPaginator.d.ts +3 -3
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackSetOperationResultsPaginator.d.ts +3 -3
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackSetOperationsPaginator.d.ts +3 -3
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStackSetsPaginator.d.ts +3 -3
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListStacksPaginator.d.ts +3 -3
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListTypeRegistrationsPaginator.d.ts +3 -3
  67. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListTypeVersionsPaginator.d.ts +3 -3
  68. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListTypesPaginator.d.ts +3 -3
  69. package/node_modules/@aws-sdk/client-cloudformation/package.json +7 -6
  70. package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +2 -24
  71. package/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +2 -24
  72. package/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +38 -59
  73. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +2 -23
  74. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +2 -23
  75. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +38 -59
  76. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +1 -1
  77. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +3 -3
  79. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +3 -3
  80. package/node_modules/@aws-sdk/client-sso/package.json +5 -4
  81. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +250 -194
  82. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +250 -194
  83. package/node_modules/@aws-sdk/client-sts/package.json +6 -6
  84. package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
  85. package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +1 -1
  86. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/index.js +1 -1
  87. package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/index.d.ts +1 -1
  88. package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/index.d.ts +1 -1
  89. package/node_modules/@aws-sdk/core/package.json +2 -2
  90. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/index.ts +1 -1
  91. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  92. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  93. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  94. package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
  95. package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
  96. package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
  97. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  98. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  99. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
  100. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
  101. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  102. package/node_modules/@smithy/core/package.json +3 -3
  103. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  104. package/node_modules/@smithy/smithy-client/dist-cjs/command.js +108 -0
  105. package/node_modules/@smithy/smithy-client/dist-es/command.js +108 -0
  106. package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +104 -1
  107. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +104 -1
  108. package/node_modules/@smithy/smithy-client/package.json +3 -1
  109. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  110. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  111. package/package.json +3 -3
  112. /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.js +0 -0
  113. /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/index.js +0 -0
  114. /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.js +0 -0
  115. /package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.js +0 -0
  116. /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.js +0 -0
  117. /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/index.js +0 -0
  118. /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.js +0 -0
  119. /package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.js +0 -0
  120. /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.d.ts +0 -0
  121. /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/index.d.ts +0 -0
  122. /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.d.ts +0 -0
  123. /package/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.d.ts +0 -0
  124. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.d.ts +0 -0
  125. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/index.d.ts +0 -0
  126. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.d.ts +0 -0
  127. /package/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.d.ts +0 -0
  128. /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/AWSSDKSigV4Signer.ts +0 -0
  129. /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/index.ts +0 -0
  130. /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/resolveAWSSDKSigV4Config.ts +0 -0
  131. /package/node_modules/@aws-sdk/core/src/httpAuthSchemes/{aws-sdk → aws_sdk}/throwAWSSDKSigningPropertyError.ts +0 -0
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { DescribeAccountLimitsCommand, } from "../commands/DescribeAccountLimitsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeAccountLimitsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeAccountLimits(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateDescribeAccountLimits = createPaginator(CloudFormationClient, DescribeAccountLimitsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { DescribeStackEventsCommand, } from "../commands/DescribeStackEventsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeStackEventsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeStackEvents(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateDescribeStackEvents = createPaginator(CloudFormationClient, DescribeStackEventsCommand, "NextToken", "NextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { DescribeStackResourceDriftsCommand, } from "../commands/DescribeStackResourceDriftsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeStackResourceDriftsCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeStackResourceDrifts(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateDescribeStackResourceDrifts = createPaginator(CloudFormationClient, DescribeStackResourceDriftsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { DescribeStacksCommand, } from "../commands/DescribeStacksCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new DescribeStacksCommand(input), ...args);
5
- };
6
- export async function* paginateDescribeStacks(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateDescribeStacks = createPaginator(CloudFormationClient, DescribeStacksCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListChangeSetsCommand, } from "../commands/ListChangeSetsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListChangeSetsCommand(input), ...args);
5
- };
6
- export async function* paginateListChangeSets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListChangeSets = createPaginator(CloudFormationClient, ListChangeSetsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListExportsCommand } from "../commands/ListExportsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListExportsCommand(input), ...args);
5
- };
6
- export async function* paginateListExports(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListExports = createPaginator(CloudFormationClient, ListExportsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListImportsCommand } from "../commands/ListImportsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImportsCommand(input), ...args);
5
- };
6
- export async function* paginateListImports(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListImports = createPaginator(CloudFormationClient, ListImportsCommand, "NextToken", "NextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListStackInstancesCommand, } from "../commands/ListStackInstancesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListStackInstancesCommand(input), ...args);
5
- };
6
- export async function* paginateListStackInstances(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListStackInstances = createPaginator(CloudFormationClient, ListStackInstancesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListStackResourcesCommand, } from "../commands/ListStackResourcesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListStackResourcesCommand(input), ...args);
5
- };
6
- export async function* paginateListStackResources(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListStackResources = createPaginator(CloudFormationClient, ListStackResourcesCommand, "NextToken", "NextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListStackSetOperationResultsCommand, } from "../commands/ListStackSetOperationResultsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListStackSetOperationResultsCommand(input), ...args);
5
- };
6
- export async function* paginateListStackSetOperationResults(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListStackSetOperationResults = createPaginator(CloudFormationClient, ListStackSetOperationResultsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListStackSetOperationsCommand, } from "../commands/ListStackSetOperationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListStackSetOperationsCommand(input), ...args);
5
- };
6
- export async function* paginateListStackSetOperations(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListStackSetOperations = createPaginator(CloudFormationClient, ListStackSetOperationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListStackSetsCommand, } from "../commands/ListStackSetsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListStackSetsCommand(input), ...args);
5
- };
6
- export async function* paginateListStackSets(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListStackSets = createPaginator(CloudFormationClient, ListStackSetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListStacksCommand } from "../commands/ListStacksCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListStacksCommand(input), ...args);
5
- };
6
- export async function* paginateListStacks(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- if (config.client instanceof CloudFormationClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.NextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListStacks = createPaginator(CloudFormationClient, ListStacksCommand, "NextToken", "NextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListTypeRegistrationsCommand, } from "../commands/ListTypeRegistrationsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTypeRegistrationsCommand(input), ...args);
5
- };
6
- export async function* paginateListTypeRegistrations(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListTypeRegistrations = createPaginator(CloudFormationClient, ListTypeRegistrationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListTypeVersionsCommand, } from "../commands/ListTypeVersionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTypeVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListTypeVersions(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListTypeVersions = createPaginator(CloudFormationClient, ListTypeVersionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CloudFormationClient } from "../CloudFormationClient";
2
3
  import { ListTypesCommand } from "../commands/ListTypesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTypesCommand(input), ...args);
5
- };
6
- export async function* paginateListTypes(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 CloudFormationClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CloudFormation | CloudFormationClient");
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 paginateListTypes = createPaginator(CloudFormationClient, ListTypesCommand, "NextToken", "NextToken", "MaxResults");