@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.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +208 -0
- package/dist-cjs/RolesAnywhere.js +397 -0
- package/dist-cjs/RolesAnywhereClient.js +37 -0
- package/dist-cjs/commands/CreateProfileCommand.js +36 -0
- package/dist-cjs/commands/CreateTrustAnchorCommand.js +36 -0
- package/dist-cjs/commands/DeleteCrlCommand.js +36 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +36 -0
- package/dist-cjs/commands/DeleteTrustAnchorCommand.js +36 -0
- package/dist-cjs/commands/DisableCrlCommand.js +36 -0
- package/dist-cjs/commands/DisableProfileCommand.js +36 -0
- package/dist-cjs/commands/DisableTrustAnchorCommand.js +36 -0
- package/dist-cjs/commands/EnableCrlCommand.js +36 -0
- package/dist-cjs/commands/EnableProfileCommand.js +36 -0
- package/dist-cjs/commands/EnableTrustAnchorCommand.js +36 -0
- package/dist-cjs/commands/GetCrlCommand.js +36 -0
- package/dist-cjs/commands/GetProfileCommand.js +36 -0
- package/dist-cjs/commands/GetSubjectCommand.js +36 -0
- package/dist-cjs/commands/GetTrustAnchorCommand.js +36 -0
- package/dist-cjs/commands/ImportCrlCommand.js +36 -0
- package/dist-cjs/commands/ListCrlsCommand.js +36 -0
- package/dist-cjs/commands/ListProfilesCommand.js +36 -0
- package/dist-cjs/commands/ListSubjectsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListTrustAnchorsCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateCrlCommand.js +36 -0
- package/dist-cjs/commands/UpdateProfileCommand.js +36 -0
- package/dist-cjs/commands/UpdateTrustAnchorCommand.js +36 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/RolesAnywhereServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +301 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCrlsPaginator.js +35 -0
- package/dist-cjs/pagination/ListProfilesPaginator.js +35 -0
- package/dist-cjs/pagination/ListSubjectsPaginator.js +35 -0
- package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2195 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/RolesAnywhere.js +400 -0
- package/dist-es/RolesAnywhereClient.js +39 -0
- package/dist-es/commands/CreateProfileCommand.js +39 -0
- package/dist-es/commands/CreateTrustAnchorCommand.js +39 -0
- package/dist-es/commands/DeleteCrlCommand.js +39 -0
- package/dist-es/commands/DeleteProfileCommand.js +39 -0
- package/dist-es/commands/DeleteTrustAnchorCommand.js +39 -0
- package/dist-es/commands/DisableCrlCommand.js +39 -0
- package/dist-es/commands/DisableProfileCommand.js +39 -0
- package/dist-es/commands/DisableTrustAnchorCommand.js +39 -0
- package/dist-es/commands/EnableCrlCommand.js +39 -0
- package/dist-es/commands/EnableProfileCommand.js +39 -0
- package/dist-es/commands/EnableTrustAnchorCommand.js +39 -0
- package/dist-es/commands/GetCrlCommand.js +39 -0
- package/dist-es/commands/GetProfileCommand.js +39 -0
- package/dist-es/commands/GetSubjectCommand.js +39 -0
- package/dist-es/commands/GetTrustAnchorCommand.js +39 -0
- package/dist-es/commands/ImportCrlCommand.js +39 -0
- package/dist-es/commands/ListCrlsCommand.js +39 -0
- package/dist-es/commands/ListProfilesCommand.js +39 -0
- package/dist-es/commands/ListSubjectsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListTrustAnchorsCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateCrlCommand.js +39 -0
- package/dist-es/commands/UpdateProfileCommand.js +39 -0
- package/dist-es/commands/UpdateTrustAnchorCommand.js +39 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/RolesAnywhereServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +214 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCrlsPaginator.js +74 -0
- package/dist-es/pagination/ListProfilesPaginator.js +74 -0
- package/dist-es/pagination/ListSubjectsPaginator.js +74 -0
- package/dist-es/pagination/ListTrustAnchorsPaginator.js +74 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +2793 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/RolesAnywhere.d.ts +296 -0
- package/dist-types/RolesAnywhereClient.d.ts +173 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +39 -0
- package/dist-types/commands/CreateTrustAnchorCommand.d.ts +39 -0
- package/dist-types/commands/DeleteCrlCommand.d.ts +39 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +39 -0
- package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +39 -0
- package/dist-types/commands/DisableCrlCommand.d.ts +39 -0
- package/dist-types/commands/DisableProfileCommand.d.ts +39 -0
- package/dist-types/commands/DisableTrustAnchorCommand.d.ts +39 -0
- package/dist-types/commands/EnableCrlCommand.d.ts +39 -0
- package/dist-types/commands/EnableProfileCommand.d.ts +39 -0
- package/dist-types/commands/EnableTrustAnchorCommand.d.ts +39 -0
- package/dist-types/commands/GetCrlCommand.d.ts +39 -0
- package/dist-types/commands/GetProfileCommand.d.ts +39 -0
- package/dist-types/commands/GetSubjectCommand.d.ts +39 -0
- package/dist-types/commands/GetTrustAnchorCommand.d.ts +39 -0
- package/dist-types/commands/ImportCrlCommand.d.ts +39 -0
- package/dist-types/commands/ListCrlsCommand.d.ts +39 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +39 -0
- package/dist-types/commands/ListSubjectsCommand.d.ts +39 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/commands/ListTrustAnchorsCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +39 -0
- package/dist-types/commands/UpdateCrlCommand.d.ts +39 -0
- package/dist-types/commands/UpdateProfileCommand.d.ts +39 -0
- package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/RolesAnywhereServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +823 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListCrlsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSubjectsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTrustAnchorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +80 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/RolesAnywhere.d.ts +135 -0
- package/dist-types/ts3.4/RolesAnywhereClient.d.ts +99 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTrustAnchorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTrustAnchorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableCrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableTrustAnchorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableCrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableTrustAnchorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSubjectCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrustAnchorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportCrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCrlsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSubjectsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTrustAnchorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCrlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTrustAnchorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/RolesAnywhereServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +498 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListCrlsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListSubjectsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTrustAnchorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
|
+
const getRuntimeConfig = (config) => {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
29
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
33
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
34
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
35
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
36
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
41
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
42
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
43
|
+
}),
|
|
44
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
45
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
46
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
49
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
|
+
return ({
|
|
9
|
+
apiVersion: "2018-05-10",
|
|
10
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
12
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
|
|
13
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "RolesAnywhere",
|
|
14
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CreateProfileCommand, } from "./commands/CreateProfileCommand";
|
|
3
|
+
import { CreateTrustAnchorCommand, } from "./commands/CreateTrustAnchorCommand";
|
|
4
|
+
import { DeleteCrlCommand } from "./commands/DeleteCrlCommand";
|
|
5
|
+
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
6
|
+
import { DeleteTrustAnchorCommand, } from "./commands/DeleteTrustAnchorCommand";
|
|
7
|
+
import { DisableCrlCommand } from "./commands/DisableCrlCommand";
|
|
8
|
+
import { DisableProfileCommand, } from "./commands/DisableProfileCommand";
|
|
9
|
+
import { DisableTrustAnchorCommand, } from "./commands/DisableTrustAnchorCommand";
|
|
10
|
+
import { EnableCrlCommand } from "./commands/EnableCrlCommand";
|
|
11
|
+
import { EnableProfileCommand, } from "./commands/EnableProfileCommand";
|
|
12
|
+
import { EnableTrustAnchorCommand, } from "./commands/EnableTrustAnchorCommand";
|
|
13
|
+
import { GetCrlCommand } from "./commands/GetCrlCommand";
|
|
14
|
+
import { GetProfileCommand } from "./commands/GetProfileCommand";
|
|
15
|
+
import { GetSubjectCommand } from "./commands/GetSubjectCommand";
|
|
16
|
+
import { GetTrustAnchorCommand, } from "./commands/GetTrustAnchorCommand";
|
|
17
|
+
import { ImportCrlCommand } from "./commands/ImportCrlCommand";
|
|
18
|
+
import { ListCrlsCommand } from "./commands/ListCrlsCommand";
|
|
19
|
+
import { ListProfilesCommand, } from "./commands/ListProfilesCommand";
|
|
20
|
+
import { ListSubjectsCommand, } from "./commands/ListSubjectsCommand";
|
|
21
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
22
|
+
import { ListTrustAnchorsCommand, } from "./commands/ListTrustAnchorsCommand";
|
|
23
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
24
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
25
|
+
import { UpdateCrlCommand } from "./commands/UpdateCrlCommand";
|
|
26
|
+
import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
|
|
27
|
+
import { UpdateTrustAnchorCommand, } from "./commands/UpdateTrustAnchorCommand";
|
|
28
|
+
import { RolesAnywhereClient } from "./RolesAnywhereClient";
|
|
29
|
+
var RolesAnywhere = (function (_super) {
|
|
30
|
+
__extends(RolesAnywhere, _super);
|
|
31
|
+
function RolesAnywhere() {
|
|
32
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
33
|
+
}
|
|
34
|
+
RolesAnywhere.prototype.createProfile = function (args, optionsOrCb, cb) {
|
|
35
|
+
var command = new CreateProfileCommand(args);
|
|
36
|
+
if (typeof optionsOrCb === "function") {
|
|
37
|
+
this.send(command, optionsOrCb);
|
|
38
|
+
}
|
|
39
|
+
else if (typeof cb === "function") {
|
|
40
|
+
if (typeof optionsOrCb !== "object")
|
|
41
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
42
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return this.send(command, optionsOrCb);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
RolesAnywhere.prototype.createTrustAnchor = function (args, optionsOrCb, cb) {
|
|
49
|
+
var command = new CreateTrustAnchorCommand(args);
|
|
50
|
+
if (typeof optionsOrCb === "function") {
|
|
51
|
+
this.send(command, optionsOrCb);
|
|
52
|
+
}
|
|
53
|
+
else if (typeof cb === "function") {
|
|
54
|
+
if (typeof optionsOrCb !== "object")
|
|
55
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
56
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return this.send(command, optionsOrCb);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
RolesAnywhere.prototype.deleteCrl = function (args, optionsOrCb, cb) {
|
|
63
|
+
var command = new DeleteCrlCommand(args);
|
|
64
|
+
if (typeof optionsOrCb === "function") {
|
|
65
|
+
this.send(command, optionsOrCb);
|
|
66
|
+
}
|
|
67
|
+
else if (typeof cb === "function") {
|
|
68
|
+
if (typeof optionsOrCb !== "object")
|
|
69
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
70
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return this.send(command, optionsOrCb);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
RolesAnywhere.prototype.deleteProfile = function (args, optionsOrCb, cb) {
|
|
77
|
+
var command = new DeleteProfileCommand(args);
|
|
78
|
+
if (typeof optionsOrCb === "function") {
|
|
79
|
+
this.send(command, optionsOrCb);
|
|
80
|
+
}
|
|
81
|
+
else if (typeof cb === "function") {
|
|
82
|
+
if (typeof optionsOrCb !== "object")
|
|
83
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
84
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
return this.send(command, optionsOrCb);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
RolesAnywhere.prototype.deleteTrustAnchor = function (args, optionsOrCb, cb) {
|
|
91
|
+
var command = new DeleteTrustAnchorCommand(args);
|
|
92
|
+
if (typeof optionsOrCb === "function") {
|
|
93
|
+
this.send(command, optionsOrCb);
|
|
94
|
+
}
|
|
95
|
+
else if (typeof cb === "function") {
|
|
96
|
+
if (typeof optionsOrCb !== "object")
|
|
97
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
98
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return this.send(command, optionsOrCb);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
RolesAnywhere.prototype.disableCrl = function (args, optionsOrCb, cb) {
|
|
105
|
+
var command = new DisableCrlCommand(args);
|
|
106
|
+
if (typeof optionsOrCb === "function") {
|
|
107
|
+
this.send(command, optionsOrCb);
|
|
108
|
+
}
|
|
109
|
+
else if (typeof cb === "function") {
|
|
110
|
+
if (typeof optionsOrCb !== "object")
|
|
111
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
112
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return this.send(command, optionsOrCb);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
RolesAnywhere.prototype.disableProfile = function (args, optionsOrCb, cb) {
|
|
119
|
+
var command = new DisableProfileCommand(args);
|
|
120
|
+
if (typeof optionsOrCb === "function") {
|
|
121
|
+
this.send(command, optionsOrCb);
|
|
122
|
+
}
|
|
123
|
+
else if (typeof cb === "function") {
|
|
124
|
+
if (typeof optionsOrCb !== "object")
|
|
125
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
126
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
return this.send(command, optionsOrCb);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
RolesAnywhere.prototype.disableTrustAnchor = function (args, optionsOrCb, cb) {
|
|
133
|
+
var command = new DisableTrustAnchorCommand(args);
|
|
134
|
+
if (typeof optionsOrCb === "function") {
|
|
135
|
+
this.send(command, optionsOrCb);
|
|
136
|
+
}
|
|
137
|
+
else if (typeof cb === "function") {
|
|
138
|
+
if (typeof optionsOrCb !== "object")
|
|
139
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
140
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
return this.send(command, optionsOrCb);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
RolesAnywhere.prototype.enableCrl = function (args, optionsOrCb, cb) {
|
|
147
|
+
var command = new EnableCrlCommand(args);
|
|
148
|
+
if (typeof optionsOrCb === "function") {
|
|
149
|
+
this.send(command, optionsOrCb);
|
|
150
|
+
}
|
|
151
|
+
else if (typeof cb === "function") {
|
|
152
|
+
if (typeof optionsOrCb !== "object")
|
|
153
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
154
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
return this.send(command, optionsOrCb);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
RolesAnywhere.prototype.enableProfile = function (args, optionsOrCb, cb) {
|
|
161
|
+
var command = new EnableProfileCommand(args);
|
|
162
|
+
if (typeof optionsOrCb === "function") {
|
|
163
|
+
this.send(command, optionsOrCb);
|
|
164
|
+
}
|
|
165
|
+
else if (typeof cb === "function") {
|
|
166
|
+
if (typeof optionsOrCb !== "object")
|
|
167
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
168
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
return this.send(command, optionsOrCb);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
RolesAnywhere.prototype.enableTrustAnchor = function (args, optionsOrCb, cb) {
|
|
175
|
+
var command = new EnableTrustAnchorCommand(args);
|
|
176
|
+
if (typeof optionsOrCb === "function") {
|
|
177
|
+
this.send(command, optionsOrCb);
|
|
178
|
+
}
|
|
179
|
+
else if (typeof cb === "function") {
|
|
180
|
+
if (typeof optionsOrCb !== "object")
|
|
181
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
182
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return this.send(command, optionsOrCb);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
RolesAnywhere.prototype.getCrl = function (args, optionsOrCb, cb) {
|
|
189
|
+
var command = new GetCrlCommand(args);
|
|
190
|
+
if (typeof optionsOrCb === "function") {
|
|
191
|
+
this.send(command, optionsOrCb);
|
|
192
|
+
}
|
|
193
|
+
else if (typeof cb === "function") {
|
|
194
|
+
if (typeof optionsOrCb !== "object")
|
|
195
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
196
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
return this.send(command, optionsOrCb);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
RolesAnywhere.prototype.getProfile = function (args, optionsOrCb, cb) {
|
|
203
|
+
var command = new GetProfileCommand(args);
|
|
204
|
+
if (typeof optionsOrCb === "function") {
|
|
205
|
+
this.send(command, optionsOrCb);
|
|
206
|
+
}
|
|
207
|
+
else if (typeof cb === "function") {
|
|
208
|
+
if (typeof optionsOrCb !== "object")
|
|
209
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
210
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
return this.send(command, optionsOrCb);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
RolesAnywhere.prototype.getSubject = function (args, optionsOrCb, cb) {
|
|
217
|
+
var command = new GetSubjectCommand(args);
|
|
218
|
+
if (typeof optionsOrCb === "function") {
|
|
219
|
+
this.send(command, optionsOrCb);
|
|
220
|
+
}
|
|
221
|
+
else if (typeof cb === "function") {
|
|
222
|
+
if (typeof optionsOrCb !== "object")
|
|
223
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
224
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
return this.send(command, optionsOrCb);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
RolesAnywhere.prototype.getTrustAnchor = function (args, optionsOrCb, cb) {
|
|
231
|
+
var command = new GetTrustAnchorCommand(args);
|
|
232
|
+
if (typeof optionsOrCb === "function") {
|
|
233
|
+
this.send(command, optionsOrCb);
|
|
234
|
+
}
|
|
235
|
+
else if (typeof cb === "function") {
|
|
236
|
+
if (typeof optionsOrCb !== "object")
|
|
237
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
238
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
return this.send(command, optionsOrCb);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
RolesAnywhere.prototype.importCrl = function (args, optionsOrCb, cb) {
|
|
245
|
+
var command = new ImportCrlCommand(args);
|
|
246
|
+
if (typeof optionsOrCb === "function") {
|
|
247
|
+
this.send(command, optionsOrCb);
|
|
248
|
+
}
|
|
249
|
+
else if (typeof cb === "function") {
|
|
250
|
+
if (typeof optionsOrCb !== "object")
|
|
251
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
252
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
return this.send(command, optionsOrCb);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
RolesAnywhere.prototype.listCrls = function (args, optionsOrCb, cb) {
|
|
259
|
+
var command = new ListCrlsCommand(args);
|
|
260
|
+
if (typeof optionsOrCb === "function") {
|
|
261
|
+
this.send(command, optionsOrCb);
|
|
262
|
+
}
|
|
263
|
+
else if (typeof cb === "function") {
|
|
264
|
+
if (typeof optionsOrCb !== "object")
|
|
265
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
266
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
return this.send(command, optionsOrCb);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
RolesAnywhere.prototype.listProfiles = function (args, optionsOrCb, cb) {
|
|
273
|
+
var command = new ListProfilesCommand(args);
|
|
274
|
+
if (typeof optionsOrCb === "function") {
|
|
275
|
+
this.send(command, optionsOrCb);
|
|
276
|
+
}
|
|
277
|
+
else if (typeof cb === "function") {
|
|
278
|
+
if (typeof optionsOrCb !== "object")
|
|
279
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
280
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
return this.send(command, optionsOrCb);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
RolesAnywhere.prototype.listSubjects = function (args, optionsOrCb, cb) {
|
|
287
|
+
var command = new ListSubjectsCommand(args);
|
|
288
|
+
if (typeof optionsOrCb === "function") {
|
|
289
|
+
this.send(command, optionsOrCb);
|
|
290
|
+
}
|
|
291
|
+
else if (typeof cb === "function") {
|
|
292
|
+
if (typeof optionsOrCb !== "object")
|
|
293
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
294
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
return this.send(command, optionsOrCb);
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
RolesAnywhere.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
301
|
+
var command = new ListTagsForResourceCommand(args);
|
|
302
|
+
if (typeof optionsOrCb === "function") {
|
|
303
|
+
this.send(command, optionsOrCb);
|
|
304
|
+
}
|
|
305
|
+
else if (typeof cb === "function") {
|
|
306
|
+
if (typeof optionsOrCb !== "object")
|
|
307
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
308
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
return this.send(command, optionsOrCb);
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
RolesAnywhere.prototype.listTrustAnchors = function (args, optionsOrCb, cb) {
|
|
315
|
+
var command = new ListTrustAnchorsCommand(args);
|
|
316
|
+
if (typeof optionsOrCb === "function") {
|
|
317
|
+
this.send(command, optionsOrCb);
|
|
318
|
+
}
|
|
319
|
+
else if (typeof cb === "function") {
|
|
320
|
+
if (typeof optionsOrCb !== "object")
|
|
321
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
322
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
return this.send(command, optionsOrCb);
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
RolesAnywhere.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
329
|
+
var command = new TagResourceCommand(args);
|
|
330
|
+
if (typeof optionsOrCb === "function") {
|
|
331
|
+
this.send(command, optionsOrCb);
|
|
332
|
+
}
|
|
333
|
+
else if (typeof cb === "function") {
|
|
334
|
+
if (typeof optionsOrCb !== "object")
|
|
335
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
336
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
return this.send(command, optionsOrCb);
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
RolesAnywhere.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
343
|
+
var command = new UntagResourceCommand(args);
|
|
344
|
+
if (typeof optionsOrCb === "function") {
|
|
345
|
+
this.send(command, optionsOrCb);
|
|
346
|
+
}
|
|
347
|
+
else if (typeof cb === "function") {
|
|
348
|
+
if (typeof optionsOrCb !== "object")
|
|
349
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
350
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
return this.send(command, optionsOrCb);
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
RolesAnywhere.prototype.updateCrl = function (args, optionsOrCb, cb) {
|
|
357
|
+
var command = new UpdateCrlCommand(args);
|
|
358
|
+
if (typeof optionsOrCb === "function") {
|
|
359
|
+
this.send(command, optionsOrCb);
|
|
360
|
+
}
|
|
361
|
+
else if (typeof cb === "function") {
|
|
362
|
+
if (typeof optionsOrCb !== "object")
|
|
363
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
364
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
return this.send(command, optionsOrCb);
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
RolesAnywhere.prototype.updateProfile = function (args, optionsOrCb, cb) {
|
|
371
|
+
var command = new UpdateProfileCommand(args);
|
|
372
|
+
if (typeof optionsOrCb === "function") {
|
|
373
|
+
this.send(command, optionsOrCb);
|
|
374
|
+
}
|
|
375
|
+
else if (typeof cb === "function") {
|
|
376
|
+
if (typeof optionsOrCb !== "object")
|
|
377
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
378
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
return this.send(command, optionsOrCb);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
RolesAnywhere.prototype.updateTrustAnchor = function (args, optionsOrCb, cb) {
|
|
385
|
+
var command = new UpdateTrustAnchorCommand(args);
|
|
386
|
+
if (typeof optionsOrCb === "function") {
|
|
387
|
+
this.send(command, optionsOrCb);
|
|
388
|
+
}
|
|
389
|
+
else if (typeof cb === "function") {
|
|
390
|
+
if (typeof optionsOrCb !== "object")
|
|
391
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
392
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
return this.send(command, optionsOrCb);
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
return RolesAnywhere;
|
|
399
|
+
}(RolesAnywhereClient));
|
|
400
|
+
export { RolesAnywhere };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
var RolesAnywhereClient = (function (_super) {
|
|
13
|
+
__extends(RolesAnywhereClient, _super);
|
|
14
|
+
function RolesAnywhereClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
RolesAnywhereClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return RolesAnywhereClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { RolesAnywhereClient };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateProfileRequest, ProfileDetailResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateProfileCommand, serializeAws_restJson1CreateProfileCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateProfileCommand = (function (_super) {
|
|
7
|
+
__extends(CreateProfileCommand, _super);
|
|
8
|
+
function CreateProfileCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateProfileCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RolesAnywhereClient";
|
|
18
|
+
var commandName = "CreateProfileCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateProfileRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ProfileDetailResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateProfileCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateProfileCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateProfileCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateProfileCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateProfileCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateProfileCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateTrustAnchorRequest, TrustAnchorDetailResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateTrustAnchorCommand, serializeAws_restJson1CreateTrustAnchorCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateTrustAnchorCommand = (function (_super) {
|
|
7
|
+
__extends(CreateTrustAnchorCommand, _super);
|
|
8
|
+
function CreateTrustAnchorCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateTrustAnchorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RolesAnywhereClient";
|
|
18
|
+
var commandName = "CreateTrustAnchorCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateTrustAnchorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: TrustAnchorDetailResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateTrustAnchorCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateTrustAnchorCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateTrustAnchorCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateTrustAnchorCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateTrustAnchorCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateTrustAnchorCommand };
|