@aws-sdk/client-account-access-runtime 0.0.0-stage → 3.1163.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 (82) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +194 -2
  3. package/dist-cjs/index.js +517 -0
  4. package/dist-es/AccountAccessRuntime.js +15 -0
  5. package/dist-es/AccountAccessRuntimeClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +36 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/GetRoleCredentialsCommand.js +4 -0
  10. package/dist-es/commands/ListRolesCommand.js +4 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/endpoint/EndpointParameters.js +11 -0
  13. package/dist-es/endpoint/bdd.js +29 -0
  14. package/dist-es/endpoint/endpointResolver.js +14 -0
  15. package/dist-es/extensionConfiguration.js +1 -0
  16. package/dist-es/index.js +10 -0
  17. package/dist-es/models/AccountAccessRuntimeServiceException.js +9 -0
  18. package/dist-es/models/enums.js +3 -0
  19. package/dist-es/models/errors.js +66 -0
  20. package/dist-es/models/models_0.js +1 -0
  21. package/dist-es/pagination/Interfaces.js +1 -0
  22. package/dist-es/pagination/ListRolesPaginator.js +4 -0
  23. package/dist-es/pagination/index.js +2 -0
  24. package/dist-es/runtimeConfig.browser.js +28 -0
  25. package/dist-es/runtimeConfig.js +53 -0
  26. package/dist-es/runtimeConfig.native.js +9 -0
  27. package/dist-es/runtimeConfig.shared.js +40 -0
  28. package/dist-es/runtimeExtensions.js +9 -0
  29. package/dist-es/schemas/schemas_0.js +125 -0
  30. package/dist-types/AccountAccessRuntime.d.ts +37 -0
  31. package/dist-types/AccountAccessRuntimeClient.d.ts +183 -0
  32. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  33. package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
  34. package/dist-types/commandBuilder.d.ts +18 -0
  35. package/dist-types/commands/GetRoleCredentialsCommand.d.ts +97 -0
  36. package/dist-types/commands/ListRolesCommand.d.ts +92 -0
  37. package/dist-types/commands/index.d.ts +2 -0
  38. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  39. package/dist-types/endpoint/bdd.d.ts +2 -0
  40. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  41. package/dist-types/extensionConfiguration.d.ts +9 -0
  42. package/dist-types/index.d.ts +18 -0
  43. package/dist-types/models/AccountAccessRuntimeServiceException.d.ts +15 -0
  44. package/dist-types/models/enums.d.ts +11 -0
  45. package/dist-types/models/errors.d.ts +67 -0
  46. package/dist-types/models/models_0.d.ts +156 -0
  47. package/dist-types/pagination/Interfaces.d.ts +8 -0
  48. package/dist-types/pagination/ListRolesPaginator.d.ts +7 -0
  49. package/dist-types/pagination/index.d.ts +2 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +54 -0
  51. package/dist-types/runtimeConfig.d.ts +57 -0
  52. package/dist-types/runtimeConfig.native.d.ts +53 -0
  53. package/dist-types/runtimeConfig.shared.d.ts +34 -0
  54. package/dist-types/runtimeExtensions.d.ts +17 -0
  55. package/dist-types/schemas/schemas_0.d.ts +23 -0
  56. package/dist-types/ts3.4/AccountAccessRuntime.d.ts +53 -0
  57. package/dist-types/ts3.4/AccountAccessRuntimeClient.d.ts +106 -0
  58. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +23 -0
  59. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +40 -0
  60. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  61. package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +39 -0
  62. package/dist-types/ts3.4/commands/ListRolesCommand.d.ts +38 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  64. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  65. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  66. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  67. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  68. package/dist-types/ts3.4/index.d.ts +13 -0
  69. package/dist-types/ts3.4/models/AccountAccessRuntimeServiceException.d.ts +10 -0
  70. package/dist-types/ts3.4/models/enums.d.ts +4 -0
  71. package/dist-types/ts3.4/models/errors.d.ts +32 -0
  72. package/dist-types/ts3.4/models/models_0.d.ts +48 -0
  73. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  74. package/dist-types/ts3.4/pagination/ListRolesPaginator.d.ts +8 -0
  75. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +81 -0
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +86 -0
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +85 -0
  79. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +39 -0
  80. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  81. package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
  82. package/package.json +67 -4
@@ -0,0 +1,11 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
4
+ defaultSigningName: "account-access",
5
+ });
6
+ };
7
+ export const commonParams = {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ };
@@ -0,0 +1,29 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
3
+ const _data = {
4
+ conditions: [
5
+ [a, [b]],
6
+ [a, c],
7
+ ["aws.partition", c, "PartitionResult"],
8
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
9
+ ],
10
+ results: [
11
+ [-1],
12
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
13
+ [b, {}],
14
+ ["https://account-access-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
15
+ ["https://account-access-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
16
+ [-1, "Invalid Configuration: Missing Region"]
17
+ ]
18
+ };
19
+ const root = 2;
20
+ const r = 100_000_000;
21
+ const nodes = new Int32Array([
22
+ -1, 1, -1,
23
+ 0, 6, 3,
24
+ 1, 4, r + 5,
25
+ 2, 5, r + 5,
26
+ 3, r + 3, r + 4,
27
+ 3, r + 1, r + 2,
28
+ ]);
29
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/core/client";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
+ import { bdd } from "./bdd";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export * from "./AccountAccessRuntimeClient";
2
+ export * from "./AccountAccessRuntime";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./pagination";
6
+ export * from "./schemas/schemas_0";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export { AccountAccessRuntimeServiceException } from "./models/AccountAccessRuntimeServiceException";
@@ -0,0 +1,9 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class AccountAccessRuntimeServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.accountaccessruntime#AccountAccessRuntimeServiceException";
5
+ constructor(options) {
6
+ super(options);
7
+ Object.setPrototypeOf(this, AccountAccessRuntimeServiceException.prototype);
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ export const AccessType = {
2
+ PROGRAMMATIC_ACCESS: "PROGRAMMATIC_ACCESS",
3
+ };
@@ -0,0 +1,66 @@
1
+ import { AccountAccessRuntimeServiceException as __BaseException } from "./AccountAccessRuntimeServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ static shapeId = "com.amazonaws.accountaccessruntime#AccessDeniedException";
4
+ name = "AccessDeniedException";
5
+ $fault = "client";
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ }
14
+ }
15
+ export class InternalServerException extends __BaseException {
16
+ static shapeId = "com.amazonaws.accountaccessruntime#InternalServerException";
17
+ name = "InternalServerException";
18
+ $fault = "server";
19
+ constructor(opts) {
20
+ super({
21
+ name: "InternalServerException",
22
+ $fault: "server",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, InternalServerException.prototype);
26
+ }
27
+ }
28
+ export class ThrottlingException extends __BaseException {
29
+ static shapeId = "com.amazonaws.accountaccessruntime#ThrottlingException";
30
+ name = "ThrottlingException";
31
+ $fault = "client";
32
+ constructor(opts) {
33
+ super({
34
+ name: "ThrottlingException",
35
+ $fault: "client",
36
+ ...opts,
37
+ });
38
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
39
+ }
40
+ }
41
+ export class UnauthorizedException extends __BaseException {
42
+ static shapeId = "com.amazonaws.accountaccessruntime#UnauthorizedException";
43
+ name = "UnauthorizedException";
44
+ $fault = "client";
45
+ constructor(opts) {
46
+ super({
47
+ name: "UnauthorizedException",
48
+ $fault: "client",
49
+ ...opts,
50
+ });
51
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
52
+ }
53
+ }
54
+ export class ValidationException extends __BaseException {
55
+ static shapeId = "com.amazonaws.accountaccessruntime#ValidationException";
56
+ name = "ValidationException";
57
+ $fault = "client";
58
+ constructor(opts) {
59
+ super({
60
+ name: "ValidationException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ Object.setPrototypeOf(this, ValidationException.prototype);
65
+ }
66
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { AccountAccessRuntimeClient } from "../AccountAccessRuntimeClient";
3
+ import { ListRolesCommand } from "../commands/ListRolesCommand";
4
+ export const paginateListRoles = createPaginator(AccountAccessRuntimeClient, ListRolesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,2 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListRolesPaginator";
@@ -0,0 +1,28 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
3
+ import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
5
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
6
+ import { calculateBodyLength } from "@smithy/core/serde";
7
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
8
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
9
+ export const getRuntimeConfig = (config) => {
10
+ const defaultsMode = resolveDefaultsModeConfig(config);
11
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
12
+ const clientSharedValues = getSharedRuntimeConfig(config);
13
+ return {
14
+ ...clientSharedValues,
15
+ ...config,
16
+ runtime: "browser",
17
+ defaultsMode,
18
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
19
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
20
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
21
+ region: config?.region ?? invalidProvider("Region is missing"),
22
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
23
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
24
+ streamCollector: config?.streamCollector ?? streamCollector,
25
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
26
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
27
+ };
28
+ };
@@ -0,0 +1,53 @@
1
+ import packageInfo from "../package.json";
2
+ import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
3
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
+ import { nodeProvider } from "@aws-sdk/token-providers";
5
+ import { HttpBearerAuthSigner } from "@smithy/core";
6
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
+ import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
+ import { calculateBodyLength } from "@smithy/core/serde";
10
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
+ export const getRuntimeConfig = (config) => {
13
+ emitWarningIfUnsupportedVersion(process.version);
14
+ const defaultsMode = resolveDefaultsModeConfig(config);
15
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
16
+ const clientSharedValues = getSharedRuntimeConfig(config);
17
+ awsCheckVersion(process.version);
18
+ const loaderConfig = {
19
+ profile: config?.profile,
20
+ logger: clientSharedValues.logger,
21
+ };
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
28
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
+ defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
30
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
32
+ {
33
+ schemeId: "smithy.api#httpBearerAuth",
34
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth") || (async (idProps) => {
35
+ return await nodeProvider(idProps)(idProps);
36
+ }),
37
+ signer: new HttpBearerAuthSigner(),
38
+ },
39
+ ],
40
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
41
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
+ retryMode: config?.retryMode ??
44
+ loadNodeConfig({
45
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
46
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
47
+ }, config),
48
+ streamCollector: config?.streamCollector ?? streamCollector,
49
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
50
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
51
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
52
+ };
53
+ };
@@ -0,0 +1,9 @@
1
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
2
+ export const getRuntimeConfig = (config) => {
3
+ const browserDefaults = getBrowserRuntimeConfig(config);
4
+ return {
5
+ ...browserDefaults,
6
+ ...config,
7
+ runtime: "react-native",
8
+ };
9
+ };
@@ -0,0 +1,40 @@
1
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
+ import { HttpBearerAuthSigner } from "@smithy/core";
3
+ import { Sha256 } from "@smithy/core/checksum";
4
+ import { NoOpLogger } from "@smithy/core/client";
5
+ import { parseUrl } from "@smithy/core/protocols";
6
+ import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
7
+ import { defaultAccountAccessRuntimeHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
10
+ export const getRuntimeConfig = (config) => {
11
+ return {
12
+ apiVersion: "2018-05-10",
13
+ base64Decoder: config?.base64Decoder ?? fromBase64,
14
+ base64Encoder: config?.base64Encoder ?? toBase64,
15
+ disableHostPrefix: config?.disableHostPrefix ?? false,
16
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
17
+ extensions: config?.extensions ?? [],
18
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAccountAccessRuntimeHttpAuthSchemeProvider,
19
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
20
+ {
21
+ schemeId: "smithy.api#httpBearerAuth",
22
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"),
23
+ signer: new HttpBearerAuthSigner(),
24
+ },
25
+ ],
26
+ logger: config?.logger ?? new NoOpLogger(),
27
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
28
+ protocolSettings: config?.protocolSettings ?? {
29
+ defaultNamespace: "com.amazonaws.accountaccessruntime",
30
+ errorTypeRegistries,
31
+ version: "2018-05-10",
32
+ serviceTarget: "AWSAccountAccessRuntime",
33
+ },
34
+ serviceId: config?.serviceId ?? "Account Access Runtime",
35
+ sha256: config?.sha256 ?? Sha256,
36
+ urlParser: config?.urlParser ?? parseUrl,
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
40
+ };
@@ -0,0 +1,9 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration } from "@aws-sdk/core/client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
7
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
9
+ };
@@ -0,0 +1,125 @@
1
+ const _AD = "AccessDetails";
2
+ const _ADE = "AccessDeniedException";
3
+ const _ADL = "AccessDetailsList";
4
+ const _CD = "CredentialsDetails";
5
+ const _GRC = "GetRoleCredentials";
6
+ const _GRCR = "GetRoleCredentialsRequest";
7
+ const _GRCRe = "GetRoleCredentialsResponse";
8
+ const _ISE = "InternalServerException";
9
+ const _LR = "ListRoles";
10
+ const _LRR = "ListRolesRequest";
11
+ const _LRRi = "ListRolesResponse";
12
+ const _PAD = "ProgrammaticAccessDetails";
13
+ const _TE = "ThrottlingException";
14
+ const _UE = "UnauthorizedException";
15
+ const _VE = "ValidationException";
16
+ const _aI = "accountId";
17
+ const _aKI = "accessKeyId";
18
+ const _aN = "accountName";
19
+ const _aT = "accessType";
20
+ const _c = "client";
21
+ const _cD = "credentialsDetails";
22
+ const _e = "error";
23
+ const _eA = "expiresAt";
24
+ const _h = "http";
25
+ const _hE = "httpError";
26
+ const _hQ = "httpQuery";
27
+ const _m = "message";
28
+ const _mR = "maxResults";
29
+ const _nT = "nextToken";
30
+ const _pA = "programmaticAccess";
31
+ const _r = "roles";
32
+ const _rA = "roleArn";
33
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.accountaccessruntime";
34
+ const _sAK = "secretAccessKey";
35
+ const _sD = "sessionDuration";
36
+ const _sN = "sessionName";
37
+ const _sT = "sessionToken";
38
+ const _se = "server";
39
+ const _tI = "tenantId";
40
+ const n0 = "com.amazonaws.accountaccessruntime";
41
+ import { TypeRegistry } from "@smithy/core/schema";
42
+ import { AccountAccessRuntimeServiceException } from "../models/AccountAccessRuntimeServiceException";
43
+ import { AccessDeniedException, InternalServerException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/errors";
44
+ const _s_registry = new TypeRegistry(_s);
45
+ export var AccountAccessRuntimeServiceException$ = [-3, _s, "AccountAccessRuntimeServiceException", 0, [], []];
46
+ _s_registry.registerError(AccountAccessRuntimeServiceException$, AccountAccessRuntimeServiceException);
47
+ const n0_registry = new TypeRegistry(n0);
48
+ export var AccessDeniedException$ = [-3, n0, _ADE,
49
+ { [_e]: _c, [_hE]: 403 },
50
+ [_m],
51
+ [0], 1
52
+ ];
53
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
54
+ export var InternalServerException$ = [-3, n0, _ISE,
55
+ { [_e]: _se },
56
+ [_m],
57
+ [0], 1
58
+ ];
59
+ n0_registry.registerError(InternalServerException$, InternalServerException);
60
+ export var ThrottlingException$ = [-3, n0, _TE,
61
+ { [_e]: _c, [_hE]: 429 },
62
+ [_m],
63
+ [0], 1
64
+ ];
65
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
66
+ export var UnauthorizedException$ = [-3, n0, _UE,
67
+ { [_e]: _c, [_hE]: 401 },
68
+ [_m],
69
+ [0], 1
70
+ ];
71
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
72
+ export var ValidationException$ = [-3, n0, _VE,
73
+ { [_e]: _c, [_hE]: 400 },
74
+ [_m],
75
+ [0], 1
76
+ ];
77
+ n0_registry.registerError(ValidationException$, ValidationException);
78
+ export const errorTypeRegistries = [
79
+ _s_registry,
80
+ n0_registry,
81
+ ];
82
+ export var AccessDetails$ = [3, n0, _AD,
83
+ 0,
84
+ [_aI, _rA, _aN],
85
+ [0, 0, 0], 2
86
+ ];
87
+ export var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
88
+ 0,
89
+ [_tI, _rA, _aT, _sN, _sD],
90
+ [[0, { [_hQ]: _tI }], [0, { [_hQ]: _rA }], [0, { [_hQ]: _aT }], [0, { [_hQ]: _sN }], [1, { [_hQ]: _sD }]], 3
91
+ ];
92
+ export var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
93
+ 0,
94
+ [_cD],
95
+ [[() => CredentialsDetails$, 0]]
96
+ ];
97
+ export var ListRolesRequest$ = [3, n0, _LRR,
98
+ 0,
99
+ [_tI, _mR, _nT],
100
+ [[0, { [_hQ]: _tI }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
101
+ ];
102
+ export var ListRolesResponse$ = [3, n0, _LRRi,
103
+ 0,
104
+ [_r, _nT],
105
+ [() => AccessDetailsList, 0], 1
106
+ ];
107
+ export var ProgrammaticAccessDetails$ = [3, n0, _PAD,
108
+ 8,
109
+ [_aKI, _sAK, _sT, _eA],
110
+ [0, 0, 0, 4], 4
111
+ ];
112
+ var AccessDetailsList = [1, n0, _ADL,
113
+ 0, () => AccessDetails$
114
+ ];
115
+ export var CredentialsDetails$ = [4, n0, _CD,
116
+ 8,
117
+ [_pA],
118
+ [[() => ProgrammaticAccessDetails$, 0]]
119
+ ];
120
+ export var GetRoleCredentials$ = [9, n0, _GRC,
121
+ { [_h]: ["GET", "/access/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
122
+ ];
123
+ export var ListRoles$ = [9, n0, _LR,
124
+ { [_h]: ["GET", "/access", 200] }, () => ListRolesRequest$, () => ListRolesResponse$
125
+ ];
@@ -0,0 +1,37 @@
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
+ import { AccountAccessRuntimeClient } from "./AccountAccessRuntimeClient";
3
+ import { type GetRoleCredentialsCommandInput, type GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
4
+ import { type ListRolesCommandInput, type ListRolesCommandOutput } from "./commands/ListRolesCommand";
5
+ /**
6
+ * @public
7
+ */
8
+ export interface AccountAccessRuntimeRequestOptions extends __HttpHandlerOptions {
9
+ metricsRecorder?: __MetricsRecorder<unknown>;
10
+ }
11
+ export interface AccountAccessRuntime {
12
+ /**
13
+ * @see {@link GetRoleCredentialsCommand}
14
+ */
15
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: AccountAccessRuntimeRequestOptions): Promise<GetRoleCredentialsCommandOutput>;
16
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
17
+ getRoleCredentials(args: GetRoleCredentialsCommandInput, options: AccountAccessRuntimeRequestOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
18
+ /**
19
+ * @see {@link ListRolesCommand}
20
+ */
21
+ listRoles(args: ListRolesCommandInput, options?: AccountAccessRuntimeRequestOptions): Promise<ListRolesCommandOutput>;
22
+ listRoles(args: ListRolesCommandInput, cb: (err: any, data?: ListRolesCommandOutput) => void): void;
23
+ listRoles(args: ListRolesCommandInput, options: AccountAccessRuntimeRequestOptions, cb: (err: any, data?: ListRolesCommandOutput) => void): void;
24
+ /**
25
+ * @see {@link ListRolesCommand}
26
+ * @param args - command input.
27
+ * @param paginationConfig - optional pagination config.
28
+ * @returns AsyncIterable of {@link ListRolesCommandOutput}.
29
+ */
30
+ paginateListRoles(args: ListRolesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListRolesCommandOutput>;
31
+ }
32
+ /**
33
+ * <p>Use the Account Access Runtime API to list the roles that you can access and retrieve temporary Amazon Web Services credentials for those roles. You authenticate with a bearer token from IAM Identity Center. Each request is scoped to a tenant.</p>
34
+ * @public
35
+ */
36
+ export declare class AccountAccessRuntime extends AccountAccessRuntimeClient implements AccountAccessRuntime {
37
+ }