@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,26 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
+ import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
9
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
+ export var getRuntimeConfig = function (config) {
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
+ var clientSharedValues = getSharedRuntimeConfig(config);
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
26
+ };
@@ -0,0 +1,30 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
+ import { Hash } from "@aws-sdk/hash-node";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
+ export var getRuntimeConfig = function (config) {
19
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ emitWarningIfUnsupportedVersion(process.version);
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
+ var clientSharedValues = getSharedRuntimeConfig(config);
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
+ switch (_a.label) {
26
+ case 0: return [4, defaultConfigProvider()];
27
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
+ }
29
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
30
+ };
@@ -0,0 +1,8 @@
1
+ import { __assign } from "tslib";
2
+ import { Sha256 } from "@aws-crypto/sha256-js";
3
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
+ export var getRuntimeConfig = function (config) {
5
+ var _a;
6
+ var browserDefaults = getBrowserRuntimeConfig(config);
7
+ return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
+ };
@@ -0,0 +1,13 @@
1
+ import { parseUrl } from "@aws-sdk/url-parser";
2
+ import { defaultRegionInfoProvider } from "./endpoints";
3
+ export var getRuntimeConfig = function (config) {
4
+ var _a, _b, _c, _d, _e;
5
+ return ({
6
+ apiVersion: "2018-05-10",
7
+ disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
+ logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
+ regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
+ serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "RolesAnywhere",
11
+ urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
+ });
13
+ };
@@ -0,0 +1,296 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
3
+ import { CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput } from "./commands/CreateTrustAnchorCommand";
4
+ import { DeleteCrlCommandInput, DeleteCrlCommandOutput } from "./commands/DeleteCrlCommand";
5
+ import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
6
+ import { DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput } from "./commands/DeleteTrustAnchorCommand";
7
+ import { DisableCrlCommandInput, DisableCrlCommandOutput } from "./commands/DisableCrlCommand";
8
+ import { DisableProfileCommandInput, DisableProfileCommandOutput } from "./commands/DisableProfileCommand";
9
+ import { DisableTrustAnchorCommandInput, DisableTrustAnchorCommandOutput } from "./commands/DisableTrustAnchorCommand";
10
+ import { EnableCrlCommandInput, EnableCrlCommandOutput } from "./commands/EnableCrlCommand";
11
+ import { EnableProfileCommandInput, EnableProfileCommandOutput } from "./commands/EnableProfileCommand";
12
+ import { EnableTrustAnchorCommandInput, EnableTrustAnchorCommandOutput } from "./commands/EnableTrustAnchorCommand";
13
+ import { GetCrlCommandInput, GetCrlCommandOutput } from "./commands/GetCrlCommand";
14
+ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
15
+ import { GetSubjectCommandInput, GetSubjectCommandOutput } from "./commands/GetSubjectCommand";
16
+ import { GetTrustAnchorCommandInput, GetTrustAnchorCommandOutput } from "./commands/GetTrustAnchorCommand";
17
+ import { ImportCrlCommandInput, ImportCrlCommandOutput } from "./commands/ImportCrlCommand";
18
+ import { ListCrlsCommandInput, ListCrlsCommandOutput } from "./commands/ListCrlsCommand";
19
+ import { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
20
+ import { ListSubjectsCommandInput, ListSubjectsCommandOutput } from "./commands/ListSubjectsCommand";
21
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
+ import { ListTrustAnchorsCommandInput, ListTrustAnchorsCommandOutput } from "./commands/ListTrustAnchorsCommand";
23
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
24
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
25
+ import { UpdateCrlCommandInput, UpdateCrlCommandOutput } from "./commands/UpdateCrlCommand";
26
+ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
27
+ import { UpdateTrustAnchorCommandInput, UpdateTrustAnchorCommandOutput } from "./commands/UpdateTrustAnchorCommand";
28
+ import { RolesAnywhereClient } from "./RolesAnywhereClient";
29
+ /**
30
+ * <p>AWS Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications running outside of AWS to obtain Temporary AWS credentials. Your workloads can use the same IAM policies and roles that you have configured with native AWS applications to access AWS resources. Using IAM Roles Anywhere will eliminate the need to manage long term credentials for workloads running outside of AWS.</p>
31
+ * <p>To use IAM Roles Anywhere customer workloads will need to use X.509 certificates issued by their Certificate Authority (CA) . The Certificate Authority (CA) needs to be registered with IAM Roles Anywhere as a trust anchor to establish trust between customer PKI and IAM Roles Anywhere. Customers who do not manage their own PKI system can use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a Certificate Authority and use that to establish trust with IAM Roles Anywhere</p>
32
+ * <p>This guide describes the IAM rolesanywhere operations that you can call programmatically. For general information about IAM Roles Anywhere see <a href="https://docs.aws.amazon.com/">https://docs.aws.amazon.com/</a>
33
+ * </p>
34
+ */
35
+ export declare class RolesAnywhere extends RolesAnywhereClient {
36
+ /**
37
+ * <p>Creates a profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can intersect permissions with IAM managed policies.</p>
38
+ * <p>
39
+ * <b>Required permissions: </b>
40
+ * <code>rolesanywhere:CreateProfile</code>.
41
+ * </p>
42
+ */
43
+ createProfile(args: CreateProfileCommandInput, options?: __HttpHandlerOptions): Promise<CreateProfileCommandOutput>;
44
+ createProfile(args: CreateProfileCommandInput, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
45
+ createProfile(args: CreateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProfileCommandOutput) => void): void;
46
+ /**
47
+ * <p>Creates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.</p>
48
+ * <p>
49
+ * <b>Required permissions: </b>
50
+ * <code>rolesanywhere:CreateTrustAnchor</code>.
51
+ * </p>
52
+ */
53
+ createTrustAnchor(args: CreateTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrustAnchorCommandOutput>;
54
+ createTrustAnchor(args: CreateTrustAnchorCommandInput, cb: (err: any, data?: CreateTrustAnchorCommandOutput) => void): void;
55
+ createTrustAnchor(args: CreateTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrustAnchorCommandOutput) => void): void;
56
+ /**
57
+ * <p>Deletes a certificate revocation list (CRL).</p>
58
+ * <p>
59
+ * <b>Required permissions: </b>
60
+ * <code>rolesanywhere:DeleteCrl</code>.
61
+ * </p>
62
+ */
63
+ deleteCrl(args: DeleteCrlCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCrlCommandOutput>;
64
+ deleteCrl(args: DeleteCrlCommandInput, cb: (err: any, data?: DeleteCrlCommandOutput) => void): void;
65
+ deleteCrl(args: DeleteCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCrlCommandOutput) => void): void;
66
+ /**
67
+ * <p>Deletes a profile.</p>
68
+ * <p>
69
+ * <b>Required permissions: </b>
70
+ * <code>rolesanywhere:DeleteProfile</code>.
71
+ * </p>
72
+ */
73
+ deleteProfile(args: DeleteProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileCommandOutput>;
74
+ deleteProfile(args: DeleteProfileCommandInput, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
75
+ deleteProfile(args: DeleteProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
76
+ /**
77
+ * <p>Deletes a trust anchor.</p>
78
+ * <p>
79
+ * <b>Required permissions: </b>
80
+ * <code>rolesanywhere:DeleteTrustAnchor</code>.
81
+ * </p>
82
+ */
83
+ deleteTrustAnchor(args: DeleteTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrustAnchorCommandOutput>;
84
+ deleteTrustAnchor(args: DeleteTrustAnchorCommandInput, cb: (err: any, data?: DeleteTrustAnchorCommandOutput) => void): void;
85
+ deleteTrustAnchor(args: DeleteTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTrustAnchorCommandOutput) => void): void;
86
+ /**
87
+ * <p>Disables a certificate revocation list (CRL).</p>
88
+ * <p>
89
+ * <b>Required permissions: </b>
90
+ * <code>rolesanywhere:DisableCrl</code>.
91
+ * </p>
92
+ */
93
+ disableCrl(args: DisableCrlCommandInput, options?: __HttpHandlerOptions): Promise<DisableCrlCommandOutput>;
94
+ disableCrl(args: DisableCrlCommandInput, cb: (err: any, data?: DisableCrlCommandOutput) => void): void;
95
+ disableCrl(args: DisableCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableCrlCommandOutput) => void): void;
96
+ /**
97
+ * <p>Disables a profile. When disabled, <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> requests with this profile fail.</p>
98
+ * <p>
99
+ * <b>Required permissions: </b>
100
+ * <code>rolesanywhere:DisableProfile</code>.
101
+ * </p>
102
+ */
103
+ disableProfile(args: DisableProfileCommandInput, options?: __HttpHandlerOptions): Promise<DisableProfileCommandOutput>;
104
+ disableProfile(args: DisableProfileCommandInput, cb: (err: any, data?: DisableProfileCommandOutput) => void): void;
105
+ disableProfile(args: DisableProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableProfileCommandOutput) => void): void;
106
+ /**
107
+ * <p>Disables a trust anchor. When disabled, <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a> requests specifying this trust anchor are unauthorized.</p>
108
+ * <p>
109
+ * <b>Required permissions: </b>
110
+ * <code>rolesanywhere:DisableTrustAnchor</code>.
111
+ * </p>
112
+ */
113
+ disableTrustAnchor(args: DisableTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<DisableTrustAnchorCommandOutput>;
114
+ disableTrustAnchor(args: DisableTrustAnchorCommandInput, cb: (err: any, data?: DisableTrustAnchorCommandOutput) => void): void;
115
+ disableTrustAnchor(args: DisableTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisableTrustAnchorCommandOutput) => void): void;
116
+ /**
117
+ * <p>Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials.</p>
118
+ * <p>
119
+ * <b>Required permissions: </b>
120
+ * <code>rolesanywhere:EnableCrl</code>.
121
+ * </p>
122
+ */
123
+ enableCrl(args: EnableCrlCommandInput, options?: __HttpHandlerOptions): Promise<EnableCrlCommandOutput>;
124
+ enableCrl(args: EnableCrlCommandInput, cb: (err: any, data?: EnableCrlCommandOutput) => void): void;
125
+ enableCrl(args: EnableCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableCrlCommandOutput) => void): void;
126
+ /**
127
+ * <p>Enables the roles in a profile to receive session credentials in <a href="https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html">CreateSession</a>. </p>
128
+ * <p>
129
+ * <b>Required permissions: </b>
130
+ * <code>rolesanywhere:EnableProfile</code>.
131
+ * </p>
132
+ */
133
+ enableProfile(args: EnableProfileCommandInput, options?: __HttpHandlerOptions): Promise<EnableProfileCommandOutput>;
134
+ enableProfile(args: EnableProfileCommandInput, cb: (err: any, data?: EnableProfileCommandOutput) => void): void;
135
+ enableProfile(args: EnableProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableProfileCommandOutput) => void): void;
136
+ /**
137
+ * <p>Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation. </p>
138
+ * <p>
139
+ * <b>Required permissions: </b>
140
+ * <code>rolesanywhere:EnableTrustAnchor</code>.
141
+ * </p>
142
+ */
143
+ enableTrustAnchor(args: EnableTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<EnableTrustAnchorCommandOutput>;
144
+ enableTrustAnchor(args: EnableTrustAnchorCommandInput, cb: (err: any, data?: EnableTrustAnchorCommandOutput) => void): void;
145
+ enableTrustAnchor(args: EnableTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EnableTrustAnchorCommandOutput) => void): void;
146
+ /**
147
+ * <p>Gets a certificate revocation list (CRL).</p>
148
+ * <p>
149
+ * <b>Required permissions: </b>
150
+ * <code>rolesanywhere:GetCrl</code>.
151
+ * </p>
152
+ */
153
+ getCrl(args: GetCrlCommandInput, options?: __HttpHandlerOptions): Promise<GetCrlCommandOutput>;
154
+ getCrl(args: GetCrlCommandInput, cb: (err: any, data?: GetCrlCommandOutput) => void): void;
155
+ getCrl(args: GetCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCrlCommandOutput) => void): void;
156
+ /**
157
+ * <p>Gets a profile.</p>
158
+ * <p>
159
+ * <b>Required permissions: </b>
160
+ * <code>rolesanywhere:GetProfile</code>.
161
+ * </p>
162
+ */
163
+ getProfile(args: GetProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetProfileCommandOutput>;
164
+ getProfile(args: GetProfileCommandInput, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
165
+ getProfile(args: GetProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
166
+ /**
167
+ * <p>Gets a Subject. A Subject associates a certificate identity with authentication attempts by CreateSession. The Subject resources stores audit information such as status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication. </p>
168
+ * <p>
169
+ * <b>Required permissions: </b>
170
+ * <code>rolesanywhere:GetSubject</code>.
171
+ * </p>
172
+ */
173
+ getSubject(args: GetSubjectCommandInput, options?: __HttpHandlerOptions): Promise<GetSubjectCommandOutput>;
174
+ getSubject(args: GetSubjectCommandInput, cb: (err: any, data?: GetSubjectCommandOutput) => void): void;
175
+ getSubject(args: GetSubjectCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSubjectCommandOutput) => void): void;
176
+ /**
177
+ * <p>Gets a trust anchor.</p>
178
+ * <p>
179
+ * <b>Required permissions: </b>
180
+ * <code>rolesanywhere:GetTrustAnchor</code>.
181
+ * </p>
182
+ */
183
+ getTrustAnchor(args: GetTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<GetTrustAnchorCommandOutput>;
184
+ getTrustAnchor(args: GetTrustAnchorCommandInput, cb: (err: any, data?: GetTrustAnchorCommandOutput) => void): void;
185
+ getTrustAnchor(args: GetTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrustAnchorCommandOutput) => void): void;
186
+ /**
187
+ * <p>Imports the certificate revocation list (CRL). CRl is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the crl list before issuing credentials. </p>
188
+ * <p>
189
+ * <b>Required permissions: </b>
190
+ * <code>rolesanywhere:ImportCrl</code>.
191
+ * </p>
192
+ */
193
+ importCrl(args: ImportCrlCommandInput, options?: __HttpHandlerOptions): Promise<ImportCrlCommandOutput>;
194
+ importCrl(args: ImportCrlCommandInput, cb: (err: any, data?: ImportCrlCommandOutput) => void): void;
195
+ importCrl(args: ImportCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ImportCrlCommandOutput) => void): void;
196
+ /**
197
+ * <p>Lists all Crls in the authenticated account and Amazon Web Services Region.</p>
198
+ * <p>
199
+ * <b>Required permissions: </b>
200
+ * <code>rolesanywhere:ListCrls</code>.
201
+ * </p>
202
+ */
203
+ listCrls(args: ListCrlsCommandInput, options?: __HttpHandlerOptions): Promise<ListCrlsCommandOutput>;
204
+ listCrls(args: ListCrlsCommandInput, cb: (err: any, data?: ListCrlsCommandOutput) => void): void;
205
+ listCrls(args: ListCrlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCrlsCommandOutput) => void): void;
206
+ /**
207
+ * <p>Lists all profiles in the authenticated account and Amazon Web Services Region.</p>
208
+ * <p>
209
+ * <b>Required permissions: </b>
210
+ * <code>rolesanywhere:ListProfiles</code>.
211
+ * </p>
212
+ */
213
+ listProfiles(args: ListProfilesCommandInput, options?: __HttpHandlerOptions): Promise<ListProfilesCommandOutput>;
214
+ listProfiles(args: ListProfilesCommandInput, cb: (err: any, data?: ListProfilesCommandOutput) => void): void;
215
+ listProfiles(args: ListProfilesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProfilesCommandOutput) => void): void;
216
+ /**
217
+ * <p>Lists the subjects in the authenticated account and Amazon Web Services Region.</p>
218
+ * <p>
219
+ * <b>Required permissions: </b>
220
+ * <code>rolesanywhere:ListSubjects</code>.
221
+ * </p>
222
+ */
223
+ listSubjects(args: ListSubjectsCommandInput, options?: __HttpHandlerOptions): Promise<ListSubjectsCommandOutput>;
224
+ listSubjects(args: ListSubjectsCommandInput, cb: (err: any, data?: ListSubjectsCommandOutput) => void): void;
225
+ listSubjects(args: ListSubjectsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSubjectsCommandOutput) => void): void;
226
+ /**
227
+ * <p>Lists the tags attached to the resource.</p>
228
+ * <p>
229
+ * <b>Required permissions: </b>
230
+ * <code>rolesanywhere:ListTagsForResource</code>.
231
+ * </p>
232
+ */
233
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
234
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
235
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
236
+ /**
237
+ * <p>Lists the trust anchors in the authenticated account and Amazon Web Services Region.</p>
238
+ * <p>
239
+ * <b>Required permissions: </b>
240
+ * <code>rolesanywhere:ListTrustAnchors</code>.
241
+ * </p>
242
+ */
243
+ listTrustAnchors(args: ListTrustAnchorsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrustAnchorsCommandOutput>;
244
+ listTrustAnchors(args: ListTrustAnchorsCommandInput, cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void): void;
245
+ listTrustAnchors(args: ListTrustAnchorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void): void;
246
+ /**
247
+ * <p>Attaches tags to a resource.</p>
248
+ * <p>
249
+ * <b>Required permissions: </b>
250
+ * <code>rolesanywhere:TagResource</code>.
251
+ * </p>
252
+ */
253
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
254
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
255
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
256
+ /**
257
+ * <p>Removes tags from the resource.</p>
258
+ * <p>
259
+ * <b>Required permissions: </b>
260
+ * <code>rolesanywhere:UntagResource</code>.
261
+ * </p>
262
+ */
263
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
264
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
265
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
266
+ /**
267
+ * <p>Updates the certificate revocation list (CRL). CRl is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the crl list before issuing credentials.</p>
268
+ * <p>
269
+ * <b>Required permissions: </b>
270
+ * <code>rolesanywhere:UpdateCrl</code>.
271
+ * </p>
272
+ */
273
+ updateCrl(args: UpdateCrlCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCrlCommandOutput>;
274
+ updateCrl(args: UpdateCrlCommandInput, cb: (err: any, data?: UpdateCrlCommandOutput) => void): void;
275
+ updateCrl(args: UpdateCrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCrlCommandOutput) => void): void;
276
+ /**
277
+ * <p>Updates the profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can scope-down permissions with IAM managed policies.</p>
278
+ * <p>
279
+ * <b>Required permissions: </b>
280
+ * <code>rolesanywhere:UpdateProfile</code>.
281
+ * </p>
282
+ */
283
+ updateProfile(args: UpdateProfileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProfileCommandOutput>;
284
+ updateProfile(args: UpdateProfileCommandInput, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
285
+ updateProfile(args: UpdateProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProfileCommandOutput) => void): void;
286
+ /**
287
+ * <p>Updates the trust anchor.You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.</p>
288
+ * <p>
289
+ * <b>Required permissions: </b>
290
+ * <code>rolesanywhere:UpdateTrustAnchor</code>.
291
+ * </p>
292
+ */
293
+ updateTrustAnchor(args: UpdateTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTrustAnchorCommandOutput>;
294
+ updateTrustAnchor(args: UpdateTrustAnchorCommandInput, cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void): void;
295
+ updateTrustAnchor(args: UpdateTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void): void;
296
+ }
@@ -0,0 +1,173 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
10
+ import { CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput } from "./commands/CreateTrustAnchorCommand";
11
+ import { DeleteCrlCommandInput, DeleteCrlCommandOutput } from "./commands/DeleteCrlCommand";
12
+ import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
13
+ import { DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput } from "./commands/DeleteTrustAnchorCommand";
14
+ import { DisableCrlCommandInput, DisableCrlCommandOutput } from "./commands/DisableCrlCommand";
15
+ import { DisableProfileCommandInput, DisableProfileCommandOutput } from "./commands/DisableProfileCommand";
16
+ import { DisableTrustAnchorCommandInput, DisableTrustAnchorCommandOutput } from "./commands/DisableTrustAnchorCommand";
17
+ import { EnableCrlCommandInput, EnableCrlCommandOutput } from "./commands/EnableCrlCommand";
18
+ import { EnableProfileCommandInput, EnableProfileCommandOutput } from "./commands/EnableProfileCommand";
19
+ import { EnableTrustAnchorCommandInput, EnableTrustAnchorCommandOutput } from "./commands/EnableTrustAnchorCommand";
20
+ import { GetCrlCommandInput, GetCrlCommandOutput } from "./commands/GetCrlCommand";
21
+ import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
22
+ import { GetSubjectCommandInput, GetSubjectCommandOutput } from "./commands/GetSubjectCommand";
23
+ import { GetTrustAnchorCommandInput, GetTrustAnchorCommandOutput } from "./commands/GetTrustAnchorCommand";
24
+ import { ImportCrlCommandInput, ImportCrlCommandOutput } from "./commands/ImportCrlCommand";
25
+ import { ListCrlsCommandInput, ListCrlsCommandOutput } from "./commands/ListCrlsCommand";
26
+ import { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
27
+ import { ListSubjectsCommandInput, ListSubjectsCommandOutput } from "./commands/ListSubjectsCommand";
28
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
29
+ import { ListTrustAnchorsCommandInput, ListTrustAnchorsCommandOutput } from "./commands/ListTrustAnchorsCommand";
30
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
32
+ import { UpdateCrlCommandInput, UpdateCrlCommandOutput } from "./commands/UpdateCrlCommand";
33
+ import { UpdateProfileCommandInput, UpdateProfileCommandOutput } from "./commands/UpdateProfileCommand";
34
+ import { UpdateTrustAnchorCommandInput, UpdateTrustAnchorCommandOutput } from "./commands/UpdateTrustAnchorCommand";
35
+ export declare type ServiceInputTypes = CreateProfileCommandInput | CreateTrustAnchorCommandInput | DeleteCrlCommandInput | DeleteProfileCommandInput | DeleteTrustAnchorCommandInput | DisableCrlCommandInput | DisableProfileCommandInput | DisableTrustAnchorCommandInput | EnableCrlCommandInput | EnableProfileCommandInput | EnableTrustAnchorCommandInput | GetCrlCommandInput | GetProfileCommandInput | GetSubjectCommandInput | GetTrustAnchorCommandInput | ImportCrlCommandInput | ListCrlsCommandInput | ListProfilesCommandInput | ListSubjectsCommandInput | ListTagsForResourceCommandInput | ListTrustAnchorsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCrlCommandInput | UpdateProfileCommandInput | UpdateTrustAnchorCommandInput;
36
+ export declare type ServiceOutputTypes = CreateProfileCommandOutput | CreateTrustAnchorCommandOutput | DeleteCrlCommandOutput | DeleteProfileCommandOutput | DeleteTrustAnchorCommandOutput | DisableCrlCommandOutput | DisableProfileCommandOutput | DisableTrustAnchorCommandOutput | EnableCrlCommandOutput | EnableProfileCommandOutput | EnableTrustAnchorCommandOutput | GetCrlCommandOutput | GetProfileCommandOutput | GetSubjectCommandOutput | GetTrustAnchorCommandOutput | ImportCrlCommandOutput | ListCrlsCommandOutput | ListProfilesCommandOutput | ListSubjectsCommandOutput | ListTagsForResourceCommandOutput | ListTrustAnchorsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCrlCommandOutput | UpdateProfileCommandOutput | UpdateTrustAnchorCommandOutput;
37
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
38
+ /**
39
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
40
+ */
41
+ requestHandler?: __HttpHandler;
42
+ /**
43
+ * A constructor for a class implementing the {@link __Hash} interface
44
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
45
+ * @internal
46
+ */
47
+ sha256?: __HashConstructor;
48
+ /**
49
+ * The function that will be used to convert strings into HTTP endpoints.
50
+ * @internal
51
+ */
52
+ urlParser?: __UrlParser;
53
+ /**
54
+ * A function that can calculate the length of a request body.
55
+ * @internal
56
+ */
57
+ bodyLengthChecker?: __BodyLengthCalculator;
58
+ /**
59
+ * A function that converts a stream into an array of bytes.
60
+ * @internal
61
+ */
62
+ streamCollector?: __StreamCollector;
63
+ /**
64
+ * The function that will be used to convert a base64-encoded string to a byte array.
65
+ * @internal
66
+ */
67
+ base64Decoder?: __Decoder;
68
+ /**
69
+ * The function that will be used to convert binary data to a base64-encoded string.
70
+ * @internal
71
+ */
72
+ base64Encoder?: __Encoder;
73
+ /**
74
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
75
+ * @internal
76
+ */
77
+ utf8Decoder?: __Decoder;
78
+ /**
79
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
80
+ * @internal
81
+ */
82
+ utf8Encoder?: __Encoder;
83
+ /**
84
+ * The runtime environment.
85
+ * @internal
86
+ */
87
+ runtime?: string;
88
+ /**
89
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
90
+ * trait of an operation.
91
+ */
92
+ disableHostPrefix?: boolean;
93
+ /**
94
+ * Value for how many times a request will be made at most in case of retry.
95
+ */
96
+ maxAttempts?: number | __Provider<number>;
97
+ /**
98
+ * Specifies which retry algorithm to use.
99
+ */
100
+ retryMode?: string | __Provider<string>;
101
+ /**
102
+ * Optional logger for logging debug/info/warn/error.
103
+ */
104
+ logger?: __Logger;
105
+ /**
106
+ * Enables IPv6/IPv4 dualstack endpoint.
107
+ */
108
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
109
+ /**
110
+ * Enables FIPS compatible endpoints.
111
+ */
112
+ useFipsEndpoint?: boolean | __Provider<boolean>;
113
+ /**
114
+ * Unique service identifier.
115
+ * @internal
116
+ */
117
+ serviceId?: string;
118
+ /**
119
+ * The AWS region to which this client will send requests
120
+ */
121
+ region?: string | __Provider<string>;
122
+ /**
123
+ * Default credentials provider; Not available in browser runtime.
124
+ * @internal
125
+ */
126
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
127
+ /**
128
+ * Fetch related hostname, signing name or signing region with given region.
129
+ * @internal
130
+ */
131
+ regionInfoProvider?: RegionInfoProvider;
132
+ /**
133
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
134
+ * @internal
135
+ */
136
+ defaultUserAgentProvider?: Provider<__UserAgent>;
137
+ /**
138
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
139
+ */
140
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
141
+ }
142
+ declare type RolesAnywhereClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
143
+ /**
144
+ * The configuration interface of RolesAnywhereClient class constructor that set the region, credentials and other options.
145
+ */
146
+ export interface RolesAnywhereClientConfig extends RolesAnywhereClientConfigType {
147
+ }
148
+ declare type RolesAnywhereClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
149
+ /**
150
+ * The resolved configuration interface of RolesAnywhereClient class. This is resolved and normalized from the {@link RolesAnywhereClientConfig | constructor configuration interface}.
151
+ */
152
+ export interface RolesAnywhereClientResolvedConfig extends RolesAnywhereClientResolvedConfigType {
153
+ }
154
+ /**
155
+ * <p>AWS Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications running outside of AWS to obtain Temporary AWS credentials. Your workloads can use the same IAM policies and roles that you have configured with native AWS applications to access AWS resources. Using IAM Roles Anywhere will eliminate the need to manage long term credentials for workloads running outside of AWS.</p>
156
+ * <p>To use IAM Roles Anywhere customer workloads will need to use X.509 certificates issued by their Certificate Authority (CA) . The Certificate Authority (CA) needs to be registered with IAM Roles Anywhere as a trust anchor to establish trust between customer PKI and IAM Roles Anywhere. Customers who do not manage their own PKI system can use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a Certificate Authority and use that to establish trust with IAM Roles Anywhere</p>
157
+ * <p>This guide describes the IAM rolesanywhere operations that you can call programmatically. For general information about IAM Roles Anywhere see <a href="https://docs.aws.amazon.com/">https://docs.aws.amazon.com/</a>
158
+ * </p>
159
+ */
160
+ export declare class RolesAnywhereClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RolesAnywhereClientResolvedConfig> {
161
+ /**
162
+ * The resolved configuration of RolesAnywhereClient class. This is resolved and normalized from the {@link RolesAnywhereClientConfig | constructor configuration interface}.
163
+ */
164
+ readonly config: RolesAnywhereClientResolvedConfig;
165
+ constructor(configuration: RolesAnywhereClientConfig);
166
+ /**
167
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
168
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
169
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
170
+ */
171
+ destroy(): void;
172
+ }
173
+ export {};
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CreateProfileRequest, ProfileDetailResponse } from "../models/models_0";
4
+ import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
5
+ export interface CreateProfileCommandInput extends CreateProfileRequest {
6
+ }
7
+ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Creates a profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can intersect permissions with IAM managed policies.</p>
11
+ * <p>
12
+ * <b>Required permissions: </b>
13
+ * <code>rolesanywhere:CreateProfile</code>.
14
+ * </p>
15
+ * @example
16
+ * Use a bare-bones client and the command you need to make an API call.
17
+ * ```javascript
18
+ * import { RolesAnywhereClient, CreateProfileCommand } from "@aws-sdk/client-rolesanywhere"; // ES Modules import
19
+ * // const { RolesAnywhereClient, CreateProfileCommand } = require("@aws-sdk/client-rolesanywhere"); // CommonJS import
20
+ * const client = new RolesAnywhereClient(config);
21
+ * const command = new CreateProfileCommand(input);
22
+ * const response = await client.send(command);
23
+ * ```
24
+ *
25
+ * @see {@link CreateProfileCommandInput} for command's `input` shape.
26
+ * @see {@link CreateProfileCommandOutput} for command's `response` shape.
27
+ * @see {@link RolesAnywhereClientResolvedConfig | config} for RolesAnywhereClient's `config` shape.
28
+ *
29
+ */
30
+ export declare class CreateProfileCommand extends $Command<CreateProfileCommandInput, CreateProfileCommandOutput, RolesAnywhereClientResolvedConfig> {
31
+ readonly input: CreateProfileCommandInput;
32
+ constructor(input: CreateProfileCommandInput);
33
+ /**
34
+ * @internal
35
+ */
36
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RolesAnywhereClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProfileCommandInput, CreateProfileCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }