@aws-sdk/client-rolesanywhere 3.123.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 (184) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +208 -0
  4. package/dist-cjs/RolesAnywhere.js +397 -0
  5. package/dist-cjs/RolesAnywhereClient.js +37 -0
  6. package/dist-cjs/commands/CreateProfileCommand.js +36 -0
  7. package/dist-cjs/commands/CreateTrustAnchorCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteCrlCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteProfileCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteTrustAnchorCommand.js +36 -0
  11. package/dist-cjs/commands/DisableCrlCommand.js +36 -0
  12. package/dist-cjs/commands/DisableProfileCommand.js +36 -0
  13. package/dist-cjs/commands/DisableTrustAnchorCommand.js +36 -0
  14. package/dist-cjs/commands/EnableCrlCommand.js +36 -0
  15. package/dist-cjs/commands/EnableProfileCommand.js +36 -0
  16. package/dist-cjs/commands/EnableTrustAnchorCommand.js +36 -0
  17. package/dist-cjs/commands/GetCrlCommand.js +36 -0
  18. package/dist-cjs/commands/GetProfileCommand.js +36 -0
  19. package/dist-cjs/commands/GetSubjectCommand.js +36 -0
  20. package/dist-cjs/commands/GetTrustAnchorCommand.js +36 -0
  21. package/dist-cjs/commands/ImportCrlCommand.js +36 -0
  22. package/dist-cjs/commands/ListCrlsCommand.js +36 -0
  23. package/dist-cjs/commands/ListProfilesCommand.js +36 -0
  24. package/dist-cjs/commands/ListSubjectsCommand.js +36 -0
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  26. package/dist-cjs/commands/ListTrustAnchorsCommand.js +36 -0
  27. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  28. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  29. package/dist-cjs/commands/UpdateCrlCommand.js +36 -0
  30. package/dist-cjs/commands/UpdateProfileCommand.js +36 -0
  31. package/dist-cjs/commands/UpdateTrustAnchorCommand.js +36 -0
  32. package/dist-cjs/commands/index.js +29 -0
  33. package/dist-cjs/endpoints.js +131 -0
  34. package/dist-cjs/index.js +11 -0
  35. package/dist-cjs/models/RolesAnywhereServiceException.js +11 -0
  36. package/dist-cjs/models/index.js +4 -0
  37. package/dist-cjs/models/models_0.js +301 -0
  38. package/dist-cjs/pagination/Interfaces.js +2 -0
  39. package/dist-cjs/pagination/ListCrlsPaginator.js +35 -0
  40. package/dist-cjs/pagination/ListProfilesPaginator.js +35 -0
  41. package/dist-cjs/pagination/ListSubjectsPaginator.js +35 -0
  42. package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +35 -0
  43. package/dist-cjs/pagination/index.js +8 -0
  44. package/dist-cjs/protocols/Aws_restJson1.js +2195 -0
  45. package/dist-cjs/runtimeConfig.browser.js +45 -0
  46. package/dist-cjs/runtimeConfig.js +52 -0
  47. package/dist-cjs/runtimeConfig.native.js +16 -0
  48. package/dist-cjs/runtimeConfig.shared.js +17 -0
  49. package/dist-es/RolesAnywhere.js +400 -0
  50. package/dist-es/RolesAnywhereClient.js +39 -0
  51. package/dist-es/commands/CreateProfileCommand.js +39 -0
  52. package/dist-es/commands/CreateTrustAnchorCommand.js +39 -0
  53. package/dist-es/commands/DeleteCrlCommand.js +39 -0
  54. package/dist-es/commands/DeleteProfileCommand.js +39 -0
  55. package/dist-es/commands/DeleteTrustAnchorCommand.js +39 -0
  56. package/dist-es/commands/DisableCrlCommand.js +39 -0
  57. package/dist-es/commands/DisableProfileCommand.js +39 -0
  58. package/dist-es/commands/DisableTrustAnchorCommand.js +39 -0
  59. package/dist-es/commands/EnableCrlCommand.js +39 -0
  60. package/dist-es/commands/EnableProfileCommand.js +39 -0
  61. package/dist-es/commands/EnableTrustAnchorCommand.js +39 -0
  62. package/dist-es/commands/GetCrlCommand.js +39 -0
  63. package/dist-es/commands/GetProfileCommand.js +39 -0
  64. package/dist-es/commands/GetSubjectCommand.js +39 -0
  65. package/dist-es/commands/GetTrustAnchorCommand.js +39 -0
  66. package/dist-es/commands/ImportCrlCommand.js +39 -0
  67. package/dist-es/commands/ListCrlsCommand.js +39 -0
  68. package/dist-es/commands/ListProfilesCommand.js +39 -0
  69. package/dist-es/commands/ListSubjectsCommand.js +39 -0
  70. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  71. package/dist-es/commands/ListTrustAnchorsCommand.js +39 -0
  72. package/dist-es/commands/TagResourceCommand.js +39 -0
  73. package/dist-es/commands/UntagResourceCommand.js +39 -0
  74. package/dist-es/commands/UpdateCrlCommand.js +39 -0
  75. package/dist-es/commands/UpdateProfileCommand.js +39 -0
  76. package/dist-es/commands/UpdateTrustAnchorCommand.js +39 -0
  77. package/dist-es/commands/index.js +26 -0
  78. package/dist-es/endpoints.js +127 -0
  79. package/dist-es/index.js +6 -0
  80. package/dist-es/models/RolesAnywhereServiceException.js +12 -0
  81. package/dist-es/models/index.js +1 -0
  82. package/dist-es/models/models_0.js +214 -0
  83. package/dist-es/pagination/Interfaces.js +1 -0
  84. package/dist-es/pagination/ListCrlsPaginator.js +74 -0
  85. package/dist-es/pagination/ListProfilesPaginator.js +74 -0
  86. package/dist-es/pagination/ListSubjectsPaginator.js +74 -0
  87. package/dist-es/pagination/ListTrustAnchorsPaginator.js +74 -0
  88. package/dist-es/pagination/index.js +5 -0
  89. package/dist-es/protocols/Aws_restJson1.js +2793 -0
  90. package/dist-es/runtimeConfig.browser.js +26 -0
  91. package/dist-es/runtimeConfig.js +30 -0
  92. package/dist-es/runtimeConfig.native.js +8 -0
  93. package/dist-es/runtimeConfig.shared.js +13 -0
  94. package/dist-types/RolesAnywhere.d.ts +296 -0
  95. package/dist-types/RolesAnywhereClient.d.ts +173 -0
  96. package/dist-types/commands/CreateProfileCommand.d.ts +39 -0
  97. package/dist-types/commands/CreateTrustAnchorCommand.d.ts +39 -0
  98. package/dist-types/commands/DeleteCrlCommand.d.ts +39 -0
  99. package/dist-types/commands/DeleteProfileCommand.d.ts +39 -0
  100. package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +39 -0
  101. package/dist-types/commands/DisableCrlCommand.d.ts +39 -0
  102. package/dist-types/commands/DisableProfileCommand.d.ts +39 -0
  103. package/dist-types/commands/DisableTrustAnchorCommand.d.ts +39 -0
  104. package/dist-types/commands/EnableCrlCommand.d.ts +39 -0
  105. package/dist-types/commands/EnableProfileCommand.d.ts +39 -0
  106. package/dist-types/commands/EnableTrustAnchorCommand.d.ts +39 -0
  107. package/dist-types/commands/GetCrlCommand.d.ts +39 -0
  108. package/dist-types/commands/GetProfileCommand.d.ts +39 -0
  109. package/dist-types/commands/GetSubjectCommand.d.ts +39 -0
  110. package/dist-types/commands/GetTrustAnchorCommand.d.ts +39 -0
  111. package/dist-types/commands/ImportCrlCommand.d.ts +39 -0
  112. package/dist-types/commands/ListCrlsCommand.d.ts +39 -0
  113. package/dist-types/commands/ListProfilesCommand.d.ts +39 -0
  114. package/dist-types/commands/ListSubjectsCommand.d.ts +39 -0
  115. package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
  116. package/dist-types/commands/ListTrustAnchorsCommand.d.ts +39 -0
  117. package/dist-types/commands/TagResourceCommand.d.ts +39 -0
  118. package/dist-types/commands/UntagResourceCommand.d.ts +39 -0
  119. package/dist-types/commands/UpdateCrlCommand.d.ts +39 -0
  120. package/dist-types/commands/UpdateProfileCommand.d.ts +39 -0
  121. package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +39 -0
  122. package/dist-types/commands/index.d.ts +26 -0
  123. package/dist-types/endpoints.d.ts +2 -0
  124. package/dist-types/index.d.ts +6 -0
  125. package/dist-types/models/RolesAnywhereServiceException.d.ts +10 -0
  126. package/dist-types/models/index.d.ts +1 -0
  127. package/dist-types/models/models_0.d.ts +823 -0
  128. package/dist-types/pagination/Interfaces.d.ts +6 -0
  129. package/dist-types/pagination/ListCrlsPaginator.d.ts +4 -0
  130. package/dist-types/pagination/ListProfilesPaginator.d.ts +4 -0
  131. package/dist-types/pagination/ListSubjectsPaginator.d.ts +4 -0
  132. package/dist-types/pagination/ListTrustAnchorsPaginator.d.ts +4 -0
  133. package/dist-types/pagination/index.d.ts +5 -0
  134. package/dist-types/protocols/Aws_restJson1.d.ts +80 -0
  135. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  136. package/dist-types/runtimeConfig.d.ts +40 -0
  137. package/dist-types/runtimeConfig.native.d.ts +39 -0
  138. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  139. package/dist-types/ts3.4/RolesAnywhere.d.ts +135 -0
  140. package/dist-types/ts3.4/RolesAnywhereClient.d.ts +99 -0
  141. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/CreateTrustAnchorCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/DeleteCrlCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/DeleteTrustAnchorCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/DisableCrlCommand.d.ts +17 -0
  147. package/dist-types/ts3.4/commands/DisableProfileCommand.d.ts +17 -0
  148. package/dist-types/ts3.4/commands/DisableTrustAnchorCommand.d.ts +17 -0
  149. package/dist-types/ts3.4/commands/EnableCrlCommand.d.ts +17 -0
  150. package/dist-types/ts3.4/commands/EnableProfileCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/EnableTrustAnchorCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/GetCrlCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/GetSubjectCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/GetTrustAnchorCommand.d.ts +17 -0
  156. package/dist-types/ts3.4/commands/ImportCrlCommand.d.ts +17 -0
  157. package/dist-types/ts3.4/commands/ListCrlsCommand.d.ts +17 -0
  158. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +17 -0
  159. package/dist-types/ts3.4/commands/ListSubjectsCommand.d.ts +17 -0
  160. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  161. package/dist-types/ts3.4/commands/ListTrustAnchorsCommand.d.ts +17 -0
  162. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  163. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  164. package/dist-types/ts3.4/commands/UpdateCrlCommand.d.ts +17 -0
  165. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +17 -0
  166. package/dist-types/ts3.4/commands/UpdateTrustAnchorCommand.d.ts +17 -0
  167. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  168. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  169. package/dist-types/ts3.4/index.d.ts +6 -0
  170. package/dist-types/ts3.4/models/RolesAnywhereServiceException.d.ts +6 -0
  171. package/dist-types/ts3.4/models/index.d.ts +1 -0
  172. package/dist-types/ts3.4/models/models_0.d.ts +498 -0
  173. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  174. package/dist-types/ts3.4/pagination/ListCrlsPaginator.d.ts +4 -0
  175. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +4 -0
  176. package/dist-types/ts3.4/pagination/ListSubjectsPaginator.d.ts +4 -0
  177. package/dist-types/ts3.4/pagination/ListTrustAnchorsPaginator.d.ts +4 -0
  178. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  179. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +80 -0
  180. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  181. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  182. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  183. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  184. package/package.json +94 -0
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListProfiles = void 0;
4
+ const ListProfilesCommand_1 = require("../commands/ListProfilesCommand");
5
+ const RolesAnywhere_1 = require("../RolesAnywhere");
6
+ const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListProfilesCommand_1.ListProfilesCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listProfiles(input, ...args);
12
+ };
13
+ async function* paginateListProfiles(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ if (config.client instanceof RolesAnywhere_1.RolesAnywhere) {
20
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
21
+ }
22
+ else if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
23
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
+ }
25
+ else {
26
+ throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
27
+ }
28
+ yield page;
29
+ const prevToken = token;
30
+ token = page.nextToken;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateListProfiles = paginateListProfiles;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListSubjects = void 0;
4
+ const ListSubjectsCommand_1 = require("../commands/ListSubjectsCommand");
5
+ const RolesAnywhere_1 = require("../RolesAnywhere");
6
+ const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListSubjectsCommand_1.ListSubjectsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listSubjects(input, ...args);
12
+ };
13
+ async function* paginateListSubjects(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ if (config.client instanceof RolesAnywhere_1.RolesAnywhere) {
20
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
21
+ }
22
+ else if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
23
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
+ }
25
+ else {
26
+ throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
27
+ }
28
+ yield page;
29
+ const prevToken = token;
30
+ token = page.nextToken;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateListSubjects = paginateListSubjects;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListTrustAnchors = void 0;
4
+ const ListTrustAnchorsCommand_1 = require("../commands/ListTrustAnchorsCommand");
5
+ const RolesAnywhere_1 = require("../RolesAnywhere");
6
+ const RolesAnywhereClient_1 = require("../RolesAnywhereClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListTrustAnchorsCommand_1.ListTrustAnchorsCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listTrustAnchors(input, ...args);
12
+ };
13
+ async function* paginateListTrustAnchors(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.nextToken = token;
19
+ if (config.client instanceof RolesAnywhere_1.RolesAnywhere) {
20
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
21
+ }
22
+ else if (config.client instanceof RolesAnywhereClient_1.RolesAnywhereClient) {
23
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
+ }
25
+ else {
26
+ throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
27
+ }
28
+ yield page;
29
+ const prevToken = token;
30
+ token = page.nextToken;
31
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
32
+ }
33
+ return undefined;
34
+ }
35
+ exports.paginateListTrustAnchors = paginateListTrustAnchors;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Interfaces"), exports);
5
+ tslib_1.__exportStar(require("./ListCrlsPaginator"), exports);
6
+ tslib_1.__exportStar(require("./ListProfilesPaginator"), exports);
7
+ tslib_1.__exportStar(require("./ListSubjectsPaginator"), exports);
8
+ tslib_1.__exportStar(require("./ListTrustAnchorsPaginator"), exports);