@aws-sdk/nested-clients 3.997.5 → 3.997.7
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/dist-cjs/submodules/cognito-identity/index.js +520 -52
- package/dist-cjs/submodules/signin/index.js +454 -49
- package/dist-cjs/submodules/sso/index.js +399 -49
- package/dist-cjs/submodules/sso-oidc/index.js +593 -49
- package/dist-cjs/submodules/sts/index.js +835 -55
- package/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
- package/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +5 -5
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +2 -2
- package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +2 -2
- package/dist-es/submodules/cognito-identity/endpoint/bdd.js +1 -1
- package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +1 -1
- package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/cognito-identity/runtimeConfig.js +4 -8
- package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/cognito-identity/runtimeExtensions.js +2 -2
- package/dist-es/submodules/signin/Signin.js +1 -1
- package/dist-es/submodules/signin/SigninClient.js +5 -5
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +2 -2
- package/dist-es/submodules/signin/endpoint/bdd.js +1 -1
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/signin/models/SigninServiceException.js +1 -1
- package/dist-es/submodules/signin/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/signin/runtimeConfig.js +4 -8
- package/dist-es/submodules/signin/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/signin/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sso/SSO.js +1 -1
- package/dist-es/submodules/sso/SSOClient.js +5 -5
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +2 -2
- package/dist-es/submodules/sso/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sso/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sso/models/SSOServiceException.js +1 -1
- package/dist-es/submodules/sso/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sso/runtimeConfig.js +4 -8
- package/dist-es/submodules/sso/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sso/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sso-oidc/SSOOIDC.js +1 -1
- package/dist-es/submodules/sso-oidc/SSOOIDCClient.js +5 -5
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +2 -2
- package/dist-es/submodules/sso-oidc/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +1 -1
- package/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sso-oidc/runtimeConfig.js +4 -8
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sso-oidc/runtimeExtensions.js +2 -2
- package/dist-es/submodules/sts/STS.js +1 -1
- package/dist-es/submodules/sts/STSClient.js +5 -5
- package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +5 -10
- package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +2 -2
- package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +0 -5
- package/dist-es/submodules/sts/endpoint/bdd.js +1 -1
- package/dist-es/submodules/sts/endpoint/endpointResolver.js +1 -1
- package/dist-es/submodules/sts/models/STSServiceException.js +1 -1
- package/dist-es/submodules/sts/runtimeConfig.browser.js +4 -6
- package/dist-es/submodules/sts/runtimeConfig.js +4 -8
- package/dist-es/submodules/sts/runtimeConfig.shared.js +3 -4
- package/dist-es/submodules/sts/runtimeExtensions.js +2 -2
- package/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +5 -5
- package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +6 -4
- package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -4
- package/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/models/errors.d.ts +1 -1
- package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/signin/SigninClient.d.ts +5 -5
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +6 -4
- package/dist-types/submodules/signin/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/signin/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/signin/models/SigninServiceException.d.ts +1 -1
- package/dist-types/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/signin/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sso/SSOClient.d.ts +5 -5
- package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +6 -4
- package/dist-types/submodules/sso/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sso/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sso/models/SSOServiceException.d.ts +1 -1
- package/dist-types/submodules/sso/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sso/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sso/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +5 -5
- package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +6 -4
- package/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -4
- package/dist-types/submodules/sts/STSClient.d.ts +5 -5
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -13
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +0 -9
- package/dist-types/submodules/sts/endpoint/bdd.d.ts +1 -1
- package/dist-types/submodules/sts/extensionConfiguration.d.ts +1 -1
- package/dist-types/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/dist-types/submodules/sts/models/errors.d.ts +1 -1
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/submodules/sts/runtimeConfig.d.ts +3 -3
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +4 -4
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +5 -5
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +8 -14
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +2 -12
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +6 -4
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +0 -3
- package/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +4 -4
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +3 -3
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +5 -5
- package/package.json +13 -34
- package/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +0 -60
- package/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +0 -100
- package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +0 -12
- package/dist-cjs/submodules/cognito-identity/models/errors.js +0 -121
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +0 -50
- package/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +0 -110
- package/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/signin/endpoint/bdd.js +0 -90
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/signin/models/SigninServiceException.js +0 -12
- package/dist-cjs/submodules/signin/models/errors.js +0 -64
- package/dist-cjs/submodules/signin/runtimeConfig.browser.js +0 -39
- package/dist-cjs/submodules/signin/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/signin/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/signin/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/signin/schemas/schemas_0.js +0 -125
- package/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/sso/endpoint/bdd.js +0 -80
- package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sso/models/SSOServiceException.js +0 -12
- package/dist-cjs/submodules/sso/models/errors.js +0 -56
- package/dist-cjs/submodules/sso/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/sso/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/sso/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sso/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/sso/schemas/schemas_0.js +0 -90
- package/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +0 -56
- package/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +0 -80
- package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +0 -12
- package/dist-cjs/submodules/sso-oidc/models/errors.js +0 -195
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +0 -38
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.js +0 -54
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +0 -49
- package/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +0 -140
- package/dist-cjs/submodules/sts/STSClient.js +0 -55
- package/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +0 -144
- package/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +0 -19
- package/dist-cjs/submodules/sts/endpoint/bdd.js +0 -150
- package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +0 -18
- package/dist-cjs/submodules/sts/models/STSServiceException.js +0 -12
- package/dist-cjs/submodules/sts/models/errors.js +0 -96
- package/dist-cjs/submodules/sts/runtimeConfig.browser.js +0 -39
- package/dist-cjs/submodules/sts/runtimeConfig.js +0 -74
- package/dist-cjs/submodules/sts/runtimeConfig.native.js +0 -15
- package/dist-cjs/submodules/sts/runtimeConfig.shared.js +0 -57
- package/dist-cjs/submodules/sts/runtimeExtensions.js +0 -13
- package/dist-cjs/submodules/sts/schemas/schemas_0.js +0 -195
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateToken$ = exports.CreateTokenResponse$ = exports.CreateTokenRequest$ = exports.errorTypeRegistries = exports.UnsupportedGrantTypeException$ = exports.UnauthorizedClientException$ = exports.SlowDownException$ = exports.InvalidScopeException$ = exports.InvalidRequestException$ = exports.InvalidGrantException$ = exports.InvalidClientException$ = exports.InternalServerException$ = exports.ExpiredTokenException$ = exports.AuthorizationPendingException$ = exports.AccessDeniedException$ = exports.SSOOIDCServiceException$ = void 0;
|
|
4
|
-
const _ADE = "AccessDeniedException";
|
|
5
|
-
const _APE = "AuthorizationPendingException";
|
|
6
|
-
const _AT = "AccessToken";
|
|
7
|
-
const _CS = "ClientSecret";
|
|
8
|
-
const _CT = "CreateToken";
|
|
9
|
-
const _CTR = "CreateTokenRequest";
|
|
10
|
-
const _CTRr = "CreateTokenResponse";
|
|
11
|
-
const _CV = "CodeVerifier";
|
|
12
|
-
const _ETE = "ExpiredTokenException";
|
|
13
|
-
const _ICE = "InvalidClientException";
|
|
14
|
-
const _IGE = "InvalidGrantException";
|
|
15
|
-
const _IRE = "InvalidRequestException";
|
|
16
|
-
const _ISE = "InternalServerException";
|
|
17
|
-
const _ISEn = "InvalidScopeException";
|
|
18
|
-
const _IT = "IdToken";
|
|
19
|
-
const _RT = "RefreshToken";
|
|
20
|
-
const _SDE = "SlowDownException";
|
|
21
|
-
const _UCE = "UnauthorizedClientException";
|
|
22
|
-
const _UGTE = "UnsupportedGrantTypeException";
|
|
23
|
-
const _aT = "accessToken";
|
|
24
|
-
const _c = "client";
|
|
25
|
-
const _cI = "clientId";
|
|
26
|
-
const _cS = "clientSecret";
|
|
27
|
-
const _cV = "codeVerifier";
|
|
28
|
-
const _co = "code";
|
|
29
|
-
const _dC = "deviceCode";
|
|
30
|
-
const _e = "error";
|
|
31
|
-
const _eI = "expiresIn";
|
|
32
|
-
const _ed = "error_description";
|
|
33
|
-
const _gT = "grantType";
|
|
34
|
-
const _h = "http";
|
|
35
|
-
const _hE = "httpError";
|
|
36
|
-
const _iT = "idToken";
|
|
37
|
-
const _r = "reason";
|
|
38
|
-
const _rT = "refreshToken";
|
|
39
|
-
const _rU = "redirectUri";
|
|
40
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ssooidc";
|
|
41
|
-
const _sc = "scope";
|
|
42
|
-
const _se = "server";
|
|
43
|
-
const _tT = "tokenType";
|
|
44
|
-
const n0 = "com.amazonaws.ssooidc";
|
|
45
|
-
const schema_1 = require("@smithy/core/schema");
|
|
46
|
-
const errors_1 = require("../models/errors");
|
|
47
|
-
const SSOOIDCServiceException_1 = require("../models/SSOOIDCServiceException");
|
|
48
|
-
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
49
|
-
exports.SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
50
|
-
_s_registry.registerError(exports.SSOOIDCServiceException$, SSOOIDCServiceException_1.SSOOIDCServiceException);
|
|
51
|
-
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
52
|
-
exports.AccessDeniedException$ = [
|
|
53
|
-
-3,
|
|
54
|
-
n0,
|
|
55
|
-
_ADE,
|
|
56
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
57
|
-
[_e, _r, _ed],
|
|
58
|
-
[0, 0, 0],
|
|
59
|
-
];
|
|
60
|
-
n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
|
|
61
|
-
exports.AuthorizationPendingException$ = [
|
|
62
|
-
-3,
|
|
63
|
-
n0,
|
|
64
|
-
_APE,
|
|
65
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
66
|
-
[_e, _ed],
|
|
67
|
-
[0, 0],
|
|
68
|
-
];
|
|
69
|
-
n0_registry.registerError(exports.AuthorizationPendingException$, errors_1.AuthorizationPendingException);
|
|
70
|
-
exports.ExpiredTokenException$ = [-3, n0, _ETE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
71
|
-
n0_registry.registerError(exports.ExpiredTokenException$, errors_1.ExpiredTokenException);
|
|
72
|
-
exports.InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_e, _ed], [0, 0]];
|
|
73
|
-
n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
|
|
74
|
-
exports.InvalidClientException$ = [-3, n0, _ICE, { [_e]: _c, [_hE]: 401 }, [_e, _ed], [0, 0]];
|
|
75
|
-
n0_registry.registerError(exports.InvalidClientException$, errors_1.InvalidClientException);
|
|
76
|
-
exports.InvalidGrantException$ = [-3, n0, _IGE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
77
|
-
n0_registry.registerError(exports.InvalidGrantException$, errors_1.InvalidGrantException);
|
|
78
|
-
exports.InvalidRequestException$ = [
|
|
79
|
-
-3,
|
|
80
|
-
n0,
|
|
81
|
-
_IRE,
|
|
82
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
83
|
-
[_e, _r, _ed],
|
|
84
|
-
[0, 0, 0],
|
|
85
|
-
];
|
|
86
|
-
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
87
|
-
exports.InvalidScopeException$ = [-3, n0, _ISEn, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
88
|
-
n0_registry.registerError(exports.InvalidScopeException$, errors_1.InvalidScopeException);
|
|
89
|
-
exports.SlowDownException$ = [-3, n0, _SDE, { [_e]: _c, [_hE]: 400 }, [_e, _ed], [0, 0]];
|
|
90
|
-
n0_registry.registerError(exports.SlowDownException$, errors_1.SlowDownException);
|
|
91
|
-
exports.UnauthorizedClientException$ = [
|
|
92
|
-
-3,
|
|
93
|
-
n0,
|
|
94
|
-
_UCE,
|
|
95
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
96
|
-
[_e, _ed],
|
|
97
|
-
[0, 0],
|
|
98
|
-
];
|
|
99
|
-
n0_registry.registerError(exports.UnauthorizedClientException$, errors_1.UnauthorizedClientException);
|
|
100
|
-
exports.UnsupportedGrantTypeException$ = [
|
|
101
|
-
-3,
|
|
102
|
-
n0,
|
|
103
|
-
_UGTE,
|
|
104
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
105
|
-
[_e, _ed],
|
|
106
|
-
[0, 0],
|
|
107
|
-
];
|
|
108
|
-
n0_registry.registerError(exports.UnsupportedGrantTypeException$, errors_1.UnsupportedGrantTypeException);
|
|
109
|
-
exports.errorTypeRegistries = [_s_registry, n0_registry];
|
|
110
|
-
var AccessToken = [0, n0, _AT, 8, 0];
|
|
111
|
-
var ClientSecret = [0, n0, _CS, 8, 0];
|
|
112
|
-
var CodeVerifier = [0, n0, _CV, 8, 0];
|
|
113
|
-
var IdToken = [0, n0, _IT, 8, 0];
|
|
114
|
-
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
115
|
-
exports.CreateTokenRequest$ = [
|
|
116
|
-
3,
|
|
117
|
-
n0,
|
|
118
|
-
_CTR,
|
|
119
|
-
0,
|
|
120
|
-
[_cI, _cS, _gT, _dC, _co, _rT, _sc, _rU, _cV],
|
|
121
|
-
[0, [() => ClientSecret, 0], 0, 0, 0, [() => RefreshToken, 0], 64 | 0, 0, [() => CodeVerifier, 0]],
|
|
122
|
-
3,
|
|
123
|
-
];
|
|
124
|
-
exports.CreateTokenResponse$ = [
|
|
125
|
-
3,
|
|
126
|
-
n0,
|
|
127
|
-
_CTRr,
|
|
128
|
-
0,
|
|
129
|
-
[_aT, _tT, _eI, _rT, _iT],
|
|
130
|
-
[[() => AccessToken, 0], 0, 1, [() => RefreshToken, 0], [() => IdToken, 0]],
|
|
131
|
-
];
|
|
132
|
-
var Scopes = 64 | 0;
|
|
133
|
-
exports.CreateToken$ = [
|
|
134
|
-
9,
|
|
135
|
-
n0,
|
|
136
|
-
_CT,
|
|
137
|
-
{ [_h]: ["POST", "/token", 200] },
|
|
138
|
-
() => exports.CreateTokenRequest$,
|
|
139
|
-
() => exports.CreateTokenResponse$,
|
|
140
|
-
];
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STSClient = exports.__Client = void 0;
|
|
4
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
5
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
6
|
-
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
7
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
8
|
-
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
-
const core_1 = require("@smithy/core");
|
|
10
|
-
const schema_1 = require("@smithy/core/schema");
|
|
11
|
-
const middleware_content_length_1 = require("@smithy/middleware-content-length");
|
|
12
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
13
|
-
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
16
|
-
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
17
|
-
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
18
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
19
|
-
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
20
|
-
class STSClient extends smithy_client_1.Client {
|
|
21
|
-
config;
|
|
22
|
-
constructor(...[configuration]) {
|
|
23
|
-
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
24
|
-
super(_config_0);
|
|
25
|
-
this.initConfig = _config_0;
|
|
26
|
-
const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
|
|
27
|
-
const _config_2 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_1);
|
|
28
|
-
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
29
|
-
const _config_4 = (0, config_resolver_1.resolveRegionConfig)(_config_3);
|
|
30
|
-
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
31
|
-
const _config_6 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_5);
|
|
32
|
-
const _config_7 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_6);
|
|
33
|
-
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
34
|
-
this.config = _config_8;
|
|
35
|
-
this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
|
|
36
|
-
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
37
|
-
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
38
|
-
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
39
|
-
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
40
|
-
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
41
|
-
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
42
|
-
this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
43
|
-
httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultSTSHttpAuthSchemeParametersProvider,
|
|
44
|
-
identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
|
|
45
|
-
"aws.auth#sigv4": config.credentials,
|
|
46
|
-
"aws.auth#sigv4a": config.credentials,
|
|
47
|
-
}),
|
|
48
|
-
}));
|
|
49
|
-
this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
|
|
50
|
-
}
|
|
51
|
-
destroy() {
|
|
52
|
-
super.destroy();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.STSClient = STSClient;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
|
|
4
|
-
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
5
|
-
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
6
|
-
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
7
|
-
let _credentials = runtimeConfig.credentials;
|
|
8
|
-
return {
|
|
9
|
-
setHttpAuthScheme(httpAuthScheme) {
|
|
10
|
-
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
11
|
-
if (index === -1) {
|
|
12
|
-
_httpAuthSchemes.push(httpAuthScheme);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
httpAuthSchemes() {
|
|
19
|
-
return _httpAuthSchemes;
|
|
20
|
-
},
|
|
21
|
-
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
22
|
-
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
23
|
-
},
|
|
24
|
-
httpAuthSchemeProvider() {
|
|
25
|
-
return _httpAuthSchemeProvider;
|
|
26
|
-
},
|
|
27
|
-
setCredentials(credentials) {
|
|
28
|
-
_credentials = credentials;
|
|
29
|
-
},
|
|
30
|
-
credentials() {
|
|
31
|
-
return _credentials;
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
|
|
36
|
-
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
37
|
-
return {
|
|
38
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
39
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
40
|
-
credentials: config.credentials(),
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveHttpAuthSchemeConfig = exports.resolveStsAuthConfig = exports.defaultSTSHttpAuthSchemeProvider = exports.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const signature_v4_multi_region_1 = require("@aws-sdk/signature-v4-multi-region");
|
|
6
|
-
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
7
|
-
const util_middleware_1 = require("@smithy/util-middleware");
|
|
8
|
-
const endpointResolver_1 = require("../endpoint/endpointResolver");
|
|
9
|
-
const STSClient_1 = require("../STSClient");
|
|
10
|
-
const createEndpointRuleSetHttpAuthSchemeParametersProvider = (defaultHttpAuthSchemeParametersProvider) => async (config, context, input) => {
|
|
11
|
-
if (!input) {
|
|
12
|
-
throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");
|
|
13
|
-
}
|
|
14
|
-
const defaultParameters = await defaultHttpAuthSchemeParametersProvider(config, context, input);
|
|
15
|
-
const instructionsFn = (0, util_middleware_1.getSmithyContext)(context)?.commandInstance?.constructor
|
|
16
|
-
?.getEndpointParameterInstructions;
|
|
17
|
-
if (!instructionsFn) {
|
|
18
|
-
throw new Error(`getEndpointParameterInstructions() is not defined on '${context.commandName}'`);
|
|
19
|
-
}
|
|
20
|
-
const endpointParameters = await (0, middleware_endpoint_1.resolveParams)(input, { getEndpointParameterInstructions: instructionsFn }, config);
|
|
21
|
-
return Object.assign(defaultParameters, endpointParameters);
|
|
22
|
-
};
|
|
23
|
-
const _defaultSTSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
24
|
-
return {
|
|
25
|
-
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
26
|
-
region: (await (0, util_middleware_1.normalizeProvider)(config.region)()) ||
|
|
27
|
-
(() => {
|
|
28
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
29
|
-
})(),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.defaultSTSHttpAuthSchemeParametersProvider = createEndpointRuleSetHttpAuthSchemeParametersProvider(_defaultSTSHttpAuthSchemeParametersProvider);
|
|
33
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
34
|
-
return {
|
|
35
|
-
schemeId: "aws.auth#sigv4",
|
|
36
|
-
signingProperties: {
|
|
37
|
-
name: "sts",
|
|
38
|
-
region: authParameters.region,
|
|
39
|
-
},
|
|
40
|
-
propertiesExtractor: (config, context) => ({
|
|
41
|
-
signingProperties: {
|
|
42
|
-
config,
|
|
43
|
-
context,
|
|
44
|
-
},
|
|
45
|
-
}),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function createAwsAuthSigv4aHttpAuthOption(authParameters) {
|
|
49
|
-
return {
|
|
50
|
-
schemeId: "aws.auth#sigv4a",
|
|
51
|
-
signingProperties: {
|
|
52
|
-
name: "sts",
|
|
53
|
-
region: authParameters.region,
|
|
54
|
-
},
|
|
55
|
-
propertiesExtractor: (config, context) => ({
|
|
56
|
-
signingProperties: {
|
|
57
|
-
config,
|
|
58
|
-
context,
|
|
59
|
-
},
|
|
60
|
-
}),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
64
|
-
return {
|
|
65
|
-
schemeId: "smithy.api#noAuth",
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
const createEndpointRuleSetHttpAuthSchemeProvider = (defaultEndpointResolver, defaultHttpAuthSchemeResolver, createHttpAuthOptionFunctions) => {
|
|
69
|
-
const endpointRuleSetHttpAuthSchemeProvider = (authParameters) => {
|
|
70
|
-
const endpoint = defaultEndpointResolver(authParameters);
|
|
71
|
-
const authSchemes = endpoint.properties?.authSchemes;
|
|
72
|
-
if (!authSchemes) {
|
|
73
|
-
return defaultHttpAuthSchemeResolver(authParameters);
|
|
74
|
-
}
|
|
75
|
-
const options = [];
|
|
76
|
-
for (const scheme of authSchemes) {
|
|
77
|
-
const { name: resolvedName, properties = {}, ...rest } = scheme;
|
|
78
|
-
const name = resolvedName.toLowerCase();
|
|
79
|
-
if (resolvedName !== name) {
|
|
80
|
-
console.warn(`HttpAuthScheme has been normalized with lowercasing: '${resolvedName}' to '${name}'`);
|
|
81
|
-
}
|
|
82
|
-
let schemeId;
|
|
83
|
-
if (name === "sigv4a") {
|
|
84
|
-
schemeId = "aws.auth#sigv4a";
|
|
85
|
-
const sigv4Present = authSchemes.find((s) => {
|
|
86
|
-
const name = s.name.toLowerCase();
|
|
87
|
-
return name !== "sigv4a" && name.startsWith("sigv4");
|
|
88
|
-
});
|
|
89
|
-
if (signature_v4_multi_region_1.SignatureV4MultiRegion.sigv4aDependency() === "none" && sigv4Present) {
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
else if (name.startsWith("sigv4")) {
|
|
94
|
-
schemeId = "aws.auth#sigv4";
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${name}'`);
|
|
98
|
-
}
|
|
99
|
-
const createOption = createHttpAuthOptionFunctions[schemeId];
|
|
100
|
-
if (!createOption) {
|
|
101
|
-
throw new Error(`Could not find HttpAuthOption create function for '${schemeId}'`);
|
|
102
|
-
}
|
|
103
|
-
const option = createOption(authParameters);
|
|
104
|
-
option.schemeId = schemeId;
|
|
105
|
-
option.signingProperties = { ...(option.signingProperties || {}), ...rest, ...properties };
|
|
106
|
-
options.push(option);
|
|
107
|
-
}
|
|
108
|
-
return options;
|
|
109
|
-
};
|
|
110
|
-
return endpointRuleSetHttpAuthSchemeProvider;
|
|
111
|
-
};
|
|
112
|
-
const _defaultSTSHttpAuthSchemeProvider = (authParameters) => {
|
|
113
|
-
const options = [];
|
|
114
|
-
switch (authParameters.operation) {
|
|
115
|
-
case "AssumeRoleWithWebIdentity": {
|
|
116
|
-
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
117
|
-
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
default: {
|
|
121
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
122
|
-
options.push(createAwsAuthSigv4aHttpAuthOption(authParameters));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return options;
|
|
126
|
-
};
|
|
127
|
-
exports.defaultSTSHttpAuthSchemeProvider = createEndpointRuleSetHttpAuthSchemeProvider(endpointResolver_1.defaultEndpointResolver, _defaultSTSHttpAuthSchemeProvider, {
|
|
128
|
-
"aws.auth#sigv4": createAwsAuthSigv4HttpAuthOption,
|
|
129
|
-
"aws.auth#sigv4a": createAwsAuthSigv4aHttpAuthOption,
|
|
130
|
-
"smithy.api#noAuth": createSmithyApiNoAuthHttpAuthOption,
|
|
131
|
-
});
|
|
132
|
-
const resolveStsAuthConfig = (input) => Object.assign(input, {
|
|
133
|
-
stsClientCtor: STSClient_1.STSClient,
|
|
134
|
-
});
|
|
135
|
-
exports.resolveStsAuthConfig = resolveStsAuthConfig;
|
|
136
|
-
const resolveHttpAuthSchemeConfig = (config) => {
|
|
137
|
-
const config_0 = (0, exports.resolveStsAuthConfig)(config);
|
|
138
|
-
const config_1 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config_0);
|
|
139
|
-
const config_2 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4AConfig)(config_1);
|
|
140
|
-
return Object.assign(config_2, {
|
|
141
|
-
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
|
-
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
return Object.assign(options, {
|
|
6
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
7
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
8
|
-
useGlobalEndpoint: options.useGlobalEndpoint ?? false,
|
|
9
|
-
defaultSigningName: "sts",
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
-
exports.commonParams = {
|
|
14
|
-
UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" },
|
|
15
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
16
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
17
|
-
Region: { type: "builtInParams", name: "region" },
|
|
18
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
19
|
-
};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@smithy/util-endpoints");
|
|
5
|
-
const q = "ref";
|
|
6
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = "us-east-1", i = "sigv4", j = "sts", k = "https://sts.{Region}.{PartitionResult#dnsSuffix}", l = { [q]: "Endpoint" }, m = { [q]: "Region" }, n = { [q]: d }, o = {}, p = [m];
|
|
7
|
-
const _data = {
|
|
8
|
-
conditions: [
|
|
9
|
-
[c, [l]],
|
|
10
|
-
[c, p],
|
|
11
|
-
["aws.partition", p, d],
|
|
12
|
-
[e, [{ [q]: "UseFIPS" }, b]],
|
|
13
|
-
[e, [{ [q]: "UseDualStack" }, b]],
|
|
14
|
-
[f, [m, "aws-global"]],
|
|
15
|
-
[e, [{ [q]: "UseGlobalEndpoint" }, b]],
|
|
16
|
-
[f, [m, "eu-central-1"]],
|
|
17
|
-
[e, [{ fn: g, argv: [n, "supportsDualStack"] }, b]],
|
|
18
|
-
[e, [{ fn: g, argv: [n, "supportsFIPS"] }, b]],
|
|
19
|
-
[f, [m, "ap-south-1"]],
|
|
20
|
-
[f, [m, "eu-north-1"]],
|
|
21
|
-
[f, [m, "eu-west-1"]],
|
|
22
|
-
[f, [m, "eu-west-2"]],
|
|
23
|
-
[f, [m, "eu-west-3"]],
|
|
24
|
-
[f, [m, "sa-east-1"]],
|
|
25
|
-
[f, [m, h]],
|
|
26
|
-
[f, [m, "us-east-2"]],
|
|
27
|
-
[f, [m, "us-west-2"]],
|
|
28
|
-
[f, [m, "us-west-1"]],
|
|
29
|
-
[f, [m, "ca-central-1"]],
|
|
30
|
-
[f, [m, "ap-southeast-1"]],
|
|
31
|
-
[f, [m, "ap-northeast-1"]],
|
|
32
|
-
[f, [m, "ap-southeast-2"]],
|
|
33
|
-
[f, [{ fn: g, argv: [n, "name"] }, "aws-us-gov"]],
|
|
34
|
-
],
|
|
35
|
-
results: [
|
|
36
|
-
[a],
|
|
37
|
-
["https://sts.amazonaws.com", { authSchemes: [{ name: i, signingName: j, signingRegion: h }] }],
|
|
38
|
-
[k, { authSchemes: [{ name: i, signingName: j, signingRegion: "{Region}" }] }],
|
|
39
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
40
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
41
|
-
[l, o],
|
|
42
|
-
["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
43
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
44
|
-
["https://sts.{Region}.amazonaws.com", o],
|
|
45
|
-
["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", o],
|
|
46
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
47
|
-
["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", o],
|
|
48
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
49
|
-
[k, o],
|
|
50
|
-
[a, "Invalid Configuration: Missing Region"],
|
|
51
|
-
],
|
|
52
|
-
};
|
|
53
|
-
const root = 2;
|
|
54
|
-
const r = 100_000_000;
|
|
55
|
-
const nodes = new Int32Array([
|
|
56
|
-
-1,
|
|
57
|
-
1,
|
|
58
|
-
-1,
|
|
59
|
-
0,
|
|
60
|
-
30,
|
|
61
|
-
3,
|
|
62
|
-
1,
|
|
63
|
-
4,
|
|
64
|
-
r + 14,
|
|
65
|
-
2,
|
|
66
|
-
5,
|
|
67
|
-
r + 14,
|
|
68
|
-
3,
|
|
69
|
-
25,
|
|
70
|
-
6,
|
|
71
|
-
4,
|
|
72
|
-
24,
|
|
73
|
-
7,
|
|
74
|
-
5,
|
|
75
|
-
r + 1,
|
|
76
|
-
8,
|
|
77
|
-
6,
|
|
78
|
-
9,
|
|
79
|
-
r + 13,
|
|
80
|
-
7,
|
|
81
|
-
r + 1,
|
|
82
|
-
10,
|
|
83
|
-
10,
|
|
84
|
-
r + 1,
|
|
85
|
-
11,
|
|
86
|
-
11,
|
|
87
|
-
r + 1,
|
|
88
|
-
12,
|
|
89
|
-
12,
|
|
90
|
-
r + 1,
|
|
91
|
-
13,
|
|
92
|
-
13,
|
|
93
|
-
r + 1,
|
|
94
|
-
14,
|
|
95
|
-
14,
|
|
96
|
-
r + 1,
|
|
97
|
-
15,
|
|
98
|
-
15,
|
|
99
|
-
r + 1,
|
|
100
|
-
16,
|
|
101
|
-
16,
|
|
102
|
-
r + 1,
|
|
103
|
-
17,
|
|
104
|
-
17,
|
|
105
|
-
r + 1,
|
|
106
|
-
18,
|
|
107
|
-
18,
|
|
108
|
-
r + 1,
|
|
109
|
-
19,
|
|
110
|
-
19,
|
|
111
|
-
r + 1,
|
|
112
|
-
20,
|
|
113
|
-
20,
|
|
114
|
-
r + 1,
|
|
115
|
-
21,
|
|
116
|
-
21,
|
|
117
|
-
r + 1,
|
|
118
|
-
22,
|
|
119
|
-
22,
|
|
120
|
-
r + 1,
|
|
121
|
-
23,
|
|
122
|
-
23,
|
|
123
|
-
r + 1,
|
|
124
|
-
r + 2,
|
|
125
|
-
8,
|
|
126
|
-
r + 11,
|
|
127
|
-
r + 12,
|
|
128
|
-
4,
|
|
129
|
-
28,
|
|
130
|
-
26,
|
|
131
|
-
9,
|
|
132
|
-
27,
|
|
133
|
-
r + 10,
|
|
134
|
-
24,
|
|
135
|
-
r + 8,
|
|
136
|
-
r + 9,
|
|
137
|
-
8,
|
|
138
|
-
29,
|
|
139
|
-
r + 7,
|
|
140
|
-
9,
|
|
141
|
-
r + 6,
|
|
142
|
-
r + 7,
|
|
143
|
-
3,
|
|
144
|
-
r + 3,
|
|
145
|
-
31,
|
|
146
|
-
4,
|
|
147
|
-
r + 4,
|
|
148
|
-
r + 5,
|
|
149
|
-
]);
|
|
150
|
-
exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultEndpointResolver = void 0;
|
|
4
|
-
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
-
size: 50,
|
|
9
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"],
|
|
10
|
-
});
|
|
11
|
-
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
|
|
13
|
-
endpointParams: endpointParams,
|
|
14
|
-
logger: context.logger,
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STSServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class STSServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, STSServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.STSServiceException = STSServiceException;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0;
|
|
4
|
-
const STSServiceException_1 = require("./STSServiceException");
|
|
5
|
-
class ExpiredTokenException extends STSServiceException_1.STSServiceException {
|
|
6
|
-
name = "ExpiredTokenException";
|
|
7
|
-
$fault = "client";
|
|
8
|
-
constructor(opts) {
|
|
9
|
-
super({
|
|
10
|
-
name: "ExpiredTokenException",
|
|
11
|
-
$fault: "client",
|
|
12
|
-
...opts,
|
|
13
|
-
});
|
|
14
|
-
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ExpiredTokenException = ExpiredTokenException;
|
|
18
|
-
class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException {
|
|
19
|
-
name = "MalformedPolicyDocumentException";
|
|
20
|
-
$fault = "client";
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "MalformedPolicyDocumentException",
|
|
24
|
-
$fault: "client",
|
|
25
|
-
...opts,
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
31
|
-
class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException {
|
|
32
|
-
name = "PackedPolicyTooLargeException";
|
|
33
|
-
$fault = "client";
|
|
34
|
-
constructor(opts) {
|
|
35
|
-
super({
|
|
36
|
-
name: "PackedPolicyTooLargeException",
|
|
37
|
-
$fault: "client",
|
|
38
|
-
...opts,
|
|
39
|
-
});
|
|
40
|
-
Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
|
|
44
|
-
class RegionDisabledException extends STSServiceException_1.STSServiceException {
|
|
45
|
-
name = "RegionDisabledException";
|
|
46
|
-
$fault = "client";
|
|
47
|
-
constructor(opts) {
|
|
48
|
-
super({
|
|
49
|
-
name: "RegionDisabledException",
|
|
50
|
-
$fault: "client",
|
|
51
|
-
...opts,
|
|
52
|
-
});
|
|
53
|
-
Object.setPrototypeOf(this, RegionDisabledException.prototype);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.RegionDisabledException = RegionDisabledException;
|
|
57
|
-
class IDPRejectedClaimException extends STSServiceException_1.STSServiceException {
|
|
58
|
-
name = "IDPRejectedClaimException";
|
|
59
|
-
$fault = "client";
|
|
60
|
-
constructor(opts) {
|
|
61
|
-
super({
|
|
62
|
-
name: "IDPRejectedClaimException",
|
|
63
|
-
$fault: "client",
|
|
64
|
-
...opts,
|
|
65
|
-
});
|
|
66
|
-
Object.setPrototypeOf(this, IDPRejectedClaimException.prototype);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.IDPRejectedClaimException = IDPRejectedClaimException;
|
|
70
|
-
class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException {
|
|
71
|
-
name = "InvalidIdentityTokenException";
|
|
72
|
-
$fault = "client";
|
|
73
|
-
constructor(opts) {
|
|
74
|
-
super({
|
|
75
|
-
name: "InvalidIdentityTokenException",
|
|
76
|
-
$fault: "client",
|
|
77
|
-
...opts,
|
|
78
|
-
});
|
|
79
|
-
Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
|
|
83
|
-
class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException {
|
|
84
|
-
name = "IDPCommunicationErrorException";
|
|
85
|
-
$fault = "client";
|
|
86
|
-
$retryable = {};
|
|
87
|
-
constructor(opts) {
|
|
88
|
-
super({
|
|
89
|
-
name: "IDPCommunicationErrorException",
|
|
90
|
-
$fault: "client",
|
|
91
|
-
...opts,
|
|
92
|
-
});
|
|
93
|
-
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
|