@aws-sdk/client-iam 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 (139) hide show
  1. package/dist-cjs/pagination/GetAccountAuthorizationDetailsPaginator.js +2 -24
  2. package/dist-cjs/pagination/GetGroupPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAccessKeysPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAccountAliasesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAttachedGroupPoliciesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListAttachedRolePoliciesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListAttachedUserPoliciesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListEntitiesForPolicyPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListGroupPoliciesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListGroupsForUserPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListGroupsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListInstanceProfileTagsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListInstanceProfilesForRolePaginator.js +2 -24
  14. package/dist-cjs/pagination/ListInstanceProfilesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListMFADeviceTagsPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListMFADevicesPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListOpenIDConnectProviderTagsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListPoliciesPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListPolicyTagsPaginator.js +2 -24
  20. package/dist-cjs/pagination/ListPolicyVersionsPaginator.js +2 -24
  21. package/dist-cjs/pagination/ListRolePoliciesPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListRoleTagsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListRolesPaginator.js +2 -24
  24. package/dist-cjs/pagination/ListSAMLProviderTagsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListSSHPublicKeysPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListServerCertificateTagsPaginator.js +2 -24
  27. package/dist-cjs/pagination/ListServerCertificatesPaginator.js +2 -24
  28. package/dist-cjs/pagination/ListSigningCertificatesPaginator.js +2 -24
  29. package/dist-cjs/pagination/ListUserPoliciesPaginator.js +2 -24
  30. package/dist-cjs/pagination/ListUserTagsPaginator.js +2 -24
  31. package/dist-cjs/pagination/ListUsersPaginator.js +2 -24
  32. package/dist-cjs/pagination/ListVirtualMFADevicesPaginator.js +2 -24
  33. package/dist-cjs/pagination/SimulateCustomPolicyPaginator.js +2 -24
  34. package/dist-cjs/pagination/SimulatePrincipalPolicyPaginator.js +2 -24
  35. package/dist-cjs/protocols/Aws_query.js +2563 -2175
  36. package/dist-es/pagination/GetAccountAuthorizationDetailsPaginator.js +2 -23
  37. package/dist-es/pagination/GetGroupPaginator.js +2 -23
  38. package/dist-es/pagination/ListAccessKeysPaginator.js +2 -23
  39. package/dist-es/pagination/ListAccountAliasesPaginator.js +2 -23
  40. package/dist-es/pagination/ListAttachedGroupPoliciesPaginator.js +2 -23
  41. package/dist-es/pagination/ListAttachedRolePoliciesPaginator.js +2 -23
  42. package/dist-es/pagination/ListAttachedUserPoliciesPaginator.js +2 -23
  43. package/dist-es/pagination/ListEntitiesForPolicyPaginator.js +2 -23
  44. package/dist-es/pagination/ListGroupPoliciesPaginator.js +2 -23
  45. package/dist-es/pagination/ListGroupsForUserPaginator.js +2 -23
  46. package/dist-es/pagination/ListGroupsPaginator.js +2 -23
  47. package/dist-es/pagination/ListInstanceProfileTagsPaginator.js +2 -23
  48. package/dist-es/pagination/ListInstanceProfilesForRolePaginator.js +2 -23
  49. package/dist-es/pagination/ListInstanceProfilesPaginator.js +2 -23
  50. package/dist-es/pagination/ListMFADeviceTagsPaginator.js +2 -23
  51. package/dist-es/pagination/ListMFADevicesPaginator.js +2 -23
  52. package/dist-es/pagination/ListOpenIDConnectProviderTagsPaginator.js +2 -23
  53. package/dist-es/pagination/ListPoliciesPaginator.js +2 -23
  54. package/dist-es/pagination/ListPolicyTagsPaginator.js +2 -23
  55. package/dist-es/pagination/ListPolicyVersionsPaginator.js +2 -23
  56. package/dist-es/pagination/ListRolePoliciesPaginator.js +2 -23
  57. package/dist-es/pagination/ListRoleTagsPaginator.js +2 -23
  58. package/dist-es/pagination/ListRolesPaginator.js +2 -23
  59. package/dist-es/pagination/ListSAMLProviderTagsPaginator.js +2 -23
  60. package/dist-es/pagination/ListSSHPublicKeysPaginator.js +2 -23
  61. package/dist-es/pagination/ListServerCertificateTagsPaginator.js +2 -23
  62. package/dist-es/pagination/ListServerCertificatesPaginator.js +2 -23
  63. package/dist-es/pagination/ListSigningCertificatesPaginator.js +2 -23
  64. package/dist-es/pagination/ListUserPoliciesPaginator.js +2 -23
  65. package/dist-es/pagination/ListUserTagsPaginator.js +2 -23
  66. package/dist-es/pagination/ListUsersPaginator.js +2 -23
  67. package/dist-es/pagination/ListVirtualMFADevicesPaginator.js +2 -23
  68. package/dist-es/pagination/SimulateCustomPolicyPaginator.js +2 -23
  69. package/dist-es/pagination/SimulatePrincipalPolicyPaginator.js +2 -23
  70. package/dist-es/protocols/Aws_query.js +2563 -2175
  71. package/dist-types/pagination/GetAccountAuthorizationDetailsPaginator.d.ts +1 -1
  72. package/dist-types/pagination/GetGroupPaginator.d.ts +1 -1
  73. package/dist-types/pagination/ListAccessKeysPaginator.d.ts +1 -1
  74. package/dist-types/pagination/ListAccountAliasesPaginator.d.ts +1 -1
  75. package/dist-types/pagination/ListAttachedGroupPoliciesPaginator.d.ts +1 -1
  76. package/dist-types/pagination/ListAttachedRolePoliciesPaginator.d.ts +1 -1
  77. package/dist-types/pagination/ListAttachedUserPoliciesPaginator.d.ts +1 -1
  78. package/dist-types/pagination/ListEntitiesForPolicyPaginator.d.ts +1 -1
  79. package/dist-types/pagination/ListGroupPoliciesPaginator.d.ts +1 -1
  80. package/dist-types/pagination/ListGroupsForUserPaginator.d.ts +1 -1
  81. package/dist-types/pagination/ListGroupsPaginator.d.ts +1 -1
  82. package/dist-types/pagination/ListInstanceProfileTagsPaginator.d.ts +1 -1
  83. package/dist-types/pagination/ListInstanceProfilesForRolePaginator.d.ts +1 -1
  84. package/dist-types/pagination/ListInstanceProfilesPaginator.d.ts +1 -1
  85. package/dist-types/pagination/ListMFADeviceTagsPaginator.d.ts +1 -1
  86. package/dist-types/pagination/ListMFADevicesPaginator.d.ts +1 -1
  87. package/dist-types/pagination/ListOpenIDConnectProviderTagsPaginator.d.ts +1 -1
  88. package/dist-types/pagination/ListPoliciesPaginator.d.ts +1 -1
  89. package/dist-types/pagination/ListPolicyTagsPaginator.d.ts +1 -1
  90. package/dist-types/pagination/ListPolicyVersionsPaginator.d.ts +1 -1
  91. package/dist-types/pagination/ListRolePoliciesPaginator.d.ts +1 -1
  92. package/dist-types/pagination/ListRoleTagsPaginator.d.ts +1 -1
  93. package/dist-types/pagination/ListRolesPaginator.d.ts +1 -1
  94. package/dist-types/pagination/ListSAMLProviderTagsPaginator.d.ts +1 -1
  95. package/dist-types/pagination/ListSSHPublicKeysPaginator.d.ts +1 -1
  96. package/dist-types/pagination/ListServerCertificateTagsPaginator.d.ts +1 -1
  97. package/dist-types/pagination/ListServerCertificatesPaginator.d.ts +1 -1
  98. package/dist-types/pagination/ListSigningCertificatesPaginator.d.ts +1 -1
  99. package/dist-types/pagination/ListUserPoliciesPaginator.d.ts +1 -1
  100. package/dist-types/pagination/ListUserTagsPaginator.d.ts +1 -1
  101. package/dist-types/pagination/ListUsersPaginator.d.ts +1 -1
  102. package/dist-types/pagination/ListVirtualMFADevicesPaginator.d.ts +1 -1
  103. package/dist-types/pagination/SimulateCustomPolicyPaginator.d.ts +1 -1
  104. package/dist-types/pagination/SimulatePrincipalPolicyPaginator.d.ts +1 -1
  105. package/dist-types/ts3.4/pagination/GetAccountAuthorizationDetailsPaginator.d.ts +3 -3
  106. package/dist-types/ts3.4/pagination/GetGroupPaginator.d.ts +3 -3
  107. package/dist-types/ts3.4/pagination/ListAccessKeysPaginator.d.ts +3 -3
  108. package/dist-types/ts3.4/pagination/ListAccountAliasesPaginator.d.ts +3 -3
  109. package/dist-types/ts3.4/pagination/ListAttachedGroupPoliciesPaginator.d.ts +3 -3
  110. package/dist-types/ts3.4/pagination/ListAttachedRolePoliciesPaginator.d.ts +3 -3
  111. package/dist-types/ts3.4/pagination/ListAttachedUserPoliciesPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/ListEntitiesForPolicyPaginator.d.ts +3 -3
  113. package/dist-types/ts3.4/pagination/ListGroupPoliciesPaginator.d.ts +3 -3
  114. package/dist-types/ts3.4/pagination/ListGroupsForUserPaginator.d.ts +3 -3
  115. package/dist-types/ts3.4/pagination/ListGroupsPaginator.d.ts +3 -3
  116. package/dist-types/ts3.4/pagination/ListInstanceProfileTagsPaginator.d.ts +3 -3
  117. package/dist-types/ts3.4/pagination/ListInstanceProfilesForRolePaginator.d.ts +3 -3
  118. package/dist-types/ts3.4/pagination/ListInstanceProfilesPaginator.d.ts +3 -3
  119. package/dist-types/ts3.4/pagination/ListMFADeviceTagsPaginator.d.ts +3 -3
  120. package/dist-types/ts3.4/pagination/ListMFADevicesPaginator.d.ts +3 -3
  121. package/dist-types/ts3.4/pagination/ListOpenIDConnectProviderTagsPaginator.d.ts +3 -3
  122. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +3 -3
  123. package/dist-types/ts3.4/pagination/ListPolicyTagsPaginator.d.ts +3 -3
  124. package/dist-types/ts3.4/pagination/ListPolicyVersionsPaginator.d.ts +3 -3
  125. package/dist-types/ts3.4/pagination/ListRolePoliciesPaginator.d.ts +3 -3
  126. package/dist-types/ts3.4/pagination/ListRoleTagsPaginator.d.ts +3 -3
  127. package/dist-types/ts3.4/pagination/ListRolesPaginator.d.ts +3 -3
  128. package/dist-types/ts3.4/pagination/ListSAMLProviderTagsPaginator.d.ts +3 -3
  129. package/dist-types/ts3.4/pagination/ListSSHPublicKeysPaginator.d.ts +3 -3
  130. package/dist-types/ts3.4/pagination/ListServerCertificateTagsPaginator.d.ts +3 -3
  131. package/dist-types/ts3.4/pagination/ListServerCertificatesPaginator.d.ts +3 -3
  132. package/dist-types/ts3.4/pagination/ListSigningCertificatesPaginator.d.ts +3 -3
  133. package/dist-types/ts3.4/pagination/ListUserPoliciesPaginator.d.ts +3 -3
  134. package/dist-types/ts3.4/pagination/ListUserTagsPaginator.d.ts +3 -3
  135. package/dist-types/ts3.4/pagination/ListUsersPaginator.d.ts +3 -3
  136. package/dist-types/ts3.4/pagination/ListVirtualMFADevicesPaginator.d.ts +3 -3
  137. package/dist-types/ts3.4/pagination/SimulateCustomPolicyPaginator.d.ts +3 -3
  138. package/dist-types/ts3.4/pagination/SimulatePrincipalPolicyPaginator.d.ts +3 -3
  139. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetAccountAuthorizationDetails = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetAccountAuthorizationDetailsCommand_1 = require("../commands/GetAccountAuthorizationDetailsCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetAccountAuthorizationDetailsCommand_1.GetAccountAuthorizationDetailsCommand(input), ...args);
8
- };
9
- async function* paginateGetAccountAuthorizationDetails(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetAccountAuthorizationDetails = paginateGetAccountAuthorizationDetails;
7
+ exports.paginateGetAccountAuthorizationDetails = (0, core_1.createPaginator)(IAMClient_1.IAMClient, GetAccountAuthorizationDetailsCommand_1.GetAccountAuthorizationDetailsCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetGroup = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetGroupCommand_1 = require("../commands/GetGroupCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetGroupCommand_1.GetGroupCommand(input), ...args);
8
- };
9
- async function* paginateGetGroup(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetGroup = paginateGetGroup;
7
+ exports.paginateGetGroup = (0, core_1.createPaginator)(IAMClient_1.IAMClient, GetGroupCommand_1.GetGroupCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessKeys = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccessKeysCommand_1 = require("../commands/ListAccessKeysCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccessKeysCommand_1.ListAccessKeysCommand(input), ...args);
8
- };
9
- async function* paginateListAccessKeys(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAccessKeys = paginateListAccessKeys;
7
+ exports.paginateListAccessKeys = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListAccessKeysCommand_1.ListAccessKeysCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccountAliases = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAccountAliasesCommand_1 = require("../commands/ListAccountAliasesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccountAliasesCommand_1.ListAccountAliasesCommand(input), ...args);
8
- };
9
- async function* paginateListAccountAliases(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAccountAliases = paginateListAccountAliases;
7
+ exports.paginateListAccountAliases = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListAccountAliasesCommand_1.ListAccountAliasesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttachedGroupPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAttachedGroupPoliciesCommand_1 = require("../commands/ListAttachedGroupPoliciesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttachedGroupPoliciesCommand_1.ListAttachedGroupPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListAttachedGroupPolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAttachedGroupPolicies = paginateListAttachedGroupPolicies;
7
+ exports.paginateListAttachedGroupPolicies = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListAttachedGroupPoliciesCommand_1.ListAttachedGroupPoliciesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttachedRolePolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAttachedRolePoliciesCommand_1 = require("../commands/ListAttachedRolePoliciesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttachedRolePoliciesCommand_1.ListAttachedRolePoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListAttachedRolePolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAttachedRolePolicies = paginateListAttachedRolePolicies;
7
+ exports.paginateListAttachedRolePolicies = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListAttachedRolePoliciesCommand_1.ListAttachedRolePoliciesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttachedUserPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAttachedUserPoliciesCommand_1 = require("../commands/ListAttachedUserPoliciesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttachedUserPoliciesCommand_1.ListAttachedUserPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListAttachedUserPolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAttachedUserPolicies = paginateListAttachedUserPolicies;
7
+ exports.paginateListAttachedUserPolicies = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListAttachedUserPoliciesCommand_1.ListAttachedUserPoliciesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEntitiesForPolicy = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEntitiesForPolicyCommand_1 = require("../commands/ListEntitiesForPolicyCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEntitiesForPolicyCommand_1.ListEntitiesForPolicyCommand(input), ...args);
8
- };
9
- async function* paginateListEntitiesForPolicy(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEntitiesForPolicy = paginateListEntitiesForPolicy;
7
+ exports.paginateListEntitiesForPolicy = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListEntitiesForPolicyCommand_1.ListEntitiesForPolicyCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGroupPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListGroupPoliciesCommand_1 = require("../commands/ListGroupPoliciesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListGroupPoliciesCommand_1.ListGroupPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListGroupPolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListGroupPolicies = paginateListGroupPolicies;
7
+ exports.paginateListGroupPolicies = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListGroupPoliciesCommand_1.ListGroupPoliciesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGroupsForUser = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListGroupsForUserCommand_1 = require("../commands/ListGroupsForUserCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListGroupsForUserCommand_1.ListGroupsForUserCommand(input), ...args);
8
- };
9
- async function* paginateListGroupsForUser(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListGroupsForUser = paginateListGroupsForUser;
7
+ exports.paginateListGroupsForUser = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListGroupsForUserCommand_1.ListGroupsForUserCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListGroupsCommand_1 = require("../commands/ListGroupsCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListGroupsCommand_1.ListGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListGroups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListGroups = paginateListGroups;
7
+ exports.paginateListGroups = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListGroupsCommand_1.ListGroupsCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInstanceProfileTags = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInstanceProfileTagsCommand_1 = require("../commands/ListInstanceProfileTagsCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInstanceProfileTagsCommand_1.ListInstanceProfileTagsCommand(input), ...args);
8
- };
9
- async function* paginateListInstanceProfileTags(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListInstanceProfileTags = paginateListInstanceProfileTags;
7
+ exports.paginateListInstanceProfileTags = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListInstanceProfileTagsCommand_1.ListInstanceProfileTagsCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInstanceProfilesForRole = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInstanceProfilesForRoleCommand_1 = require("../commands/ListInstanceProfilesForRoleCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInstanceProfilesForRoleCommand_1.ListInstanceProfilesForRoleCommand(input), ...args);
8
- };
9
- async function* paginateListInstanceProfilesForRole(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListInstanceProfilesForRole = paginateListInstanceProfilesForRole;
7
+ exports.paginateListInstanceProfilesForRole = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListInstanceProfilesForRoleCommand_1.ListInstanceProfilesForRoleCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInstanceProfiles = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInstanceProfilesCommand_1 = require("../commands/ListInstanceProfilesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInstanceProfilesCommand_1.ListInstanceProfilesCommand(input), ...args);
8
- };
9
- async function* paginateListInstanceProfiles(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListInstanceProfiles = paginateListInstanceProfiles;
7
+ exports.paginateListInstanceProfiles = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListInstanceProfilesCommand_1.ListInstanceProfilesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMFADeviceTags = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMFADeviceTagsCommand_1 = require("../commands/ListMFADeviceTagsCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMFADeviceTagsCommand_1.ListMFADeviceTagsCommand(input), ...args);
8
- };
9
- async function* paginateListMFADeviceTags(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListMFADeviceTags = paginateListMFADeviceTags;
7
+ exports.paginateListMFADeviceTags = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListMFADeviceTagsCommand_1.ListMFADeviceTagsCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMFADevices = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMFADevicesCommand_1 = require("../commands/ListMFADevicesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMFADevicesCommand_1.ListMFADevicesCommand(input), ...args);
8
- };
9
- async function* paginateListMFADevices(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListMFADevices = paginateListMFADevices;
7
+ exports.paginateListMFADevices = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListMFADevicesCommand_1.ListMFADevicesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOpenIDConnectProviderTags = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListOpenIDConnectProviderTagsCommand_1 = require("../commands/ListOpenIDConnectProviderTagsCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListOpenIDConnectProviderTagsCommand_1.ListOpenIDConnectProviderTagsCommand(input), ...args);
8
- };
9
- async function* paginateListOpenIDConnectProviderTags(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListOpenIDConnectProviderTags = paginateListOpenIDConnectProviderTags;
7
+ exports.paginateListOpenIDConnectProviderTags = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListOpenIDConnectProviderTagsCommand_1.ListOpenIDConnectProviderTagsCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPolicies = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPoliciesCommand_1 = require("../commands/ListPoliciesCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPoliciesCommand_1.ListPoliciesCommand(input), ...args);
8
- };
9
- async function* paginateListPolicies(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPolicies = paginateListPolicies;
7
+ exports.paginateListPolicies = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListPoliciesCommand_1.ListPoliciesCommand, "Marker", "Marker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPolicyTags = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPolicyTagsCommand_1 = require("../commands/ListPolicyTagsCommand");
5
6
  const IAMClient_1 = require("../IAMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPolicyTagsCommand_1.ListPolicyTagsCommand(input), ...args);
8
- };
9
- async function* paginateListPolicyTags(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof IAMClient_1.IAMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IAM | IAMClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListPolicyTags = paginateListPolicyTags;
7
+ exports.paginateListPolicyTags = (0, core_1.createPaginator)(IAMClient_1.IAMClient, ListPolicyTagsCommand_1.ListPolicyTagsCommand, "Marker", "Marker", "MaxItems");