@aws-sdk/client-sts 3.1075.0 → 3.1077.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/dist-cjs/index.js +945 -16
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +10 -12
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -138
- package/dist-cjs/endpoint/bdd.js +0 -85
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/STSServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -146
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -64
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -52
- package/dist-cjs/schemas/schemas_0.js +0 -425
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { NoAuthSigner } = require("@smithy/core");
|
|
6
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
7
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
8
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
9
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
10
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
11
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
12
|
-
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
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
30
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
32
|
-
{
|
|
33
|
-
schemeId: "aws.auth#sigv4",
|
|
34
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") || (async (idProps) => await credentialDefaultProvider(idProps?.__config || {})()),
|
|
35
|
-
signer: new AwsSdkSigV4Signer(),
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
schemeId: "aws.auth#sigv4a",
|
|
39
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
40
|
-
signer: new AwsSdkSigV4ASigner(),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
schemeId: "smithy.api#noAuth",
|
|
44
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
45
|
-
signer: new NoAuthSigner(),
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
49
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
50
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
51
|
-
retryMode: config?.retryMode ??
|
|
52
|
-
loadNodeConfig({
|
|
53
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
54
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
55
|
-
}, config),
|
|
56
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
57
|
-
sigv4aSigningRegionSet: config?.sigv4aSigningRegionSet ?? loadNodeConfig(NODE_SIGV4A_CONFIG_OPTIONS, loaderConfig),
|
|
58
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
59
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
60
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
61
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4ASigner, AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsQueryProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { SignatureV4MultiRegion } = require("@aws-sdk/signature-v4-multi-region");
|
|
4
|
-
const { NoAuthSigner } = require("@smithy/core");
|
|
5
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
6
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
7
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
8
|
-
const { defaultSTSHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
9
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
10
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
11
|
-
exports.getRuntimeConfig = (config) => {
|
|
12
|
-
return {
|
|
13
|
-
apiVersion: "2011-06-15",
|
|
14
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
15
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
16
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
17
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
18
|
-
extensions: config?.extensions ?? [],
|
|
19
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSTSHttpAuthSchemeProvider,
|
|
20
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
-
{
|
|
22
|
-
schemeId: "aws.auth#sigv4",
|
|
23
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
-
signer: new AwsSdkSigV4Signer(),
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
schemeId: "aws.auth#sigv4a",
|
|
28
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4a"),
|
|
29
|
-
signer: new AwsSdkSigV4ASigner(),
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
schemeId: "smithy.api#noAuth",
|
|
33
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
|
|
34
|
-
signer: new NoAuthSigner(),
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
38
|
-
protocol: config?.protocol ?? AwsQueryProtocol,
|
|
39
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
40
|
-
defaultNamespace: "com.amazonaws.sts",
|
|
41
|
-
errorTypeRegistries,
|
|
42
|
-
xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
|
|
43
|
-
version: "2011-06-15",
|
|
44
|
-
serviceTarget: "AWSSecurityTokenServiceV20110615",
|
|
45
|
-
},
|
|
46
|
-
serviceId: config?.serviceId ?? "STS",
|
|
47
|
-
signerConstructor: config?.signerConstructor ?? SignatureV4MultiRegion,
|
|
48
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
49
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
50
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
51
|
-
};
|
|
52
|
-
};
|
|
@@ -1,425 +0,0 @@
|
|
|
1
|
-
const _A = "Arn";
|
|
2
|
-
const _AKI = "AccessKeyId";
|
|
3
|
-
const _AP = "AssumedPrincipal";
|
|
4
|
-
const _AR = "AssumeRole";
|
|
5
|
-
const _ARI = "AssumedRoleId";
|
|
6
|
-
const _ARR = "AssumeRoleRequest";
|
|
7
|
-
const _ARRs = "AssumeRoleResponse";
|
|
8
|
-
const _ARRss = "AssumeRootRequest";
|
|
9
|
-
const _ARRssu = "AssumeRootResponse";
|
|
10
|
-
const _ARU = "AssumedRoleUser";
|
|
11
|
-
const _ARWSAML = "AssumeRoleWithSAML";
|
|
12
|
-
const _ARWSAMLR = "AssumeRoleWithSAMLRequest";
|
|
13
|
-
const _ARWSAMLRs = "AssumeRoleWithSAMLResponse";
|
|
14
|
-
const _ARWWI = "AssumeRoleWithWebIdentity";
|
|
15
|
-
const _ARWWIR = "AssumeRoleWithWebIdentityRequest";
|
|
16
|
-
const _ARWWIRs = "AssumeRoleWithWebIdentityResponse";
|
|
17
|
-
const _ARs = "AssumeRoot";
|
|
18
|
-
const _Ac = "Account";
|
|
19
|
-
const _Au = "Audience";
|
|
20
|
-
const _C = "Credentials";
|
|
21
|
-
const _CA = "ContextAssertion";
|
|
22
|
-
const _DAM = "DecodeAuthorizationMessage";
|
|
23
|
-
const _DAMR = "DecodeAuthorizationMessageRequest";
|
|
24
|
-
const _DAMRe = "DecodeAuthorizationMessageResponse";
|
|
25
|
-
const _DM = "DecodedMessage";
|
|
26
|
-
const _DS = "DurationSeconds";
|
|
27
|
-
const _E = "Expiration";
|
|
28
|
-
const _EI = "ExternalId";
|
|
29
|
-
const _EM = "EncodedMessage";
|
|
30
|
-
const _ETE = "ExpiredTokenException";
|
|
31
|
-
const _ETITE = "ExpiredTradeInTokenException";
|
|
32
|
-
const _FU = "FederatedUser";
|
|
33
|
-
const _FUI = "FederatedUserId";
|
|
34
|
-
const _GAKI = "GetAccessKeyInfo";
|
|
35
|
-
const _GAKIR = "GetAccessKeyInfoRequest";
|
|
36
|
-
const _GAKIRe = "GetAccessKeyInfoResponse";
|
|
37
|
-
const _GCI = "GetCallerIdentity";
|
|
38
|
-
const _GCIR = "GetCallerIdentityRequest";
|
|
39
|
-
const _GCIRe = "GetCallerIdentityResponse";
|
|
40
|
-
const _GDAT = "GetDelegatedAccessToken";
|
|
41
|
-
const _GDATR = "GetDelegatedAccessTokenRequest";
|
|
42
|
-
const _GDATRe = "GetDelegatedAccessTokenResponse";
|
|
43
|
-
const _GFT = "GetFederationToken";
|
|
44
|
-
const _GFTR = "GetFederationTokenRequest";
|
|
45
|
-
const _GFTRe = "GetFederationTokenResponse";
|
|
46
|
-
const _GST = "GetSessionToken";
|
|
47
|
-
const _GSTR = "GetSessionTokenRequest";
|
|
48
|
-
const _GSTRe = "GetSessionTokenResponse";
|
|
49
|
-
const _GWIT = "GetWebIdentityToken";
|
|
50
|
-
const _GWITR = "GetWebIdentityTokenRequest";
|
|
51
|
-
const _GWITRe = "GetWebIdentityTokenResponse";
|
|
52
|
-
const _I = "Issuer";
|
|
53
|
-
const _IAME = "InvalidAuthorizationMessageException";
|
|
54
|
-
const _IDPCEE = "IDPCommunicationErrorException";
|
|
55
|
-
const _IDPRCE = "IDPRejectedClaimException";
|
|
56
|
-
const _IITE = "InvalidIdentityTokenException";
|
|
57
|
-
const _JWTPSEE = "JWTPayloadSizeExceededException";
|
|
58
|
-
const _K = "Key";
|
|
59
|
-
const _MPDE = "MalformedPolicyDocumentException";
|
|
60
|
-
const _N = "Name";
|
|
61
|
-
const _NQ = "NameQualifier";
|
|
62
|
-
const _OWIFDE = "OutboundWebIdentityFederationDisabledException";
|
|
63
|
-
const _P = "Policy";
|
|
64
|
-
const _PA = "PolicyArns";
|
|
65
|
-
const _PAr = "PrincipalArn";
|
|
66
|
-
const _PAro = "ProviderArn";
|
|
67
|
-
const _PC = "ProvidedContexts";
|
|
68
|
-
const _PCLT = "ProvidedContextsListType";
|
|
69
|
-
const _PCr = "ProvidedContext";
|
|
70
|
-
const _PDT = "PolicyDescriptorType";
|
|
71
|
-
const _PI = "ProviderId";
|
|
72
|
-
const _PPS = "PackedPolicySize";
|
|
73
|
-
const _PPTLE = "PackedPolicyTooLargeException";
|
|
74
|
-
const _Pr = "Provider";
|
|
75
|
-
const _RA = "RoleArn";
|
|
76
|
-
const _RDE = "RegionDisabledException";
|
|
77
|
-
const _RSN = "RoleSessionName";
|
|
78
|
-
const _S = "Subject";
|
|
79
|
-
const _SA = "SigningAlgorithm";
|
|
80
|
-
const _SAK = "SecretAccessKey";
|
|
81
|
-
const _SAMLA = "SAMLAssertion";
|
|
82
|
-
const _SAMLAT = "SAMLAssertionType";
|
|
83
|
-
const _SDEE = "SessionDurationEscalationException";
|
|
84
|
-
const _SFWIT = "SubjectFromWebIdentityToken";
|
|
85
|
-
const _SI = "SourceIdentity";
|
|
86
|
-
const _SN = "SerialNumber";
|
|
87
|
-
const _ST = "SubjectType";
|
|
88
|
-
const _STe = "SessionToken";
|
|
89
|
-
const _T = "Tags";
|
|
90
|
-
const _TC = "TokenCode";
|
|
91
|
-
const _TIT = "TradeInToken";
|
|
92
|
-
const _TP = "TargetPrincipal";
|
|
93
|
-
const _TPA = "TaskPolicyArn";
|
|
94
|
-
const _TTK = "TransitiveTagKeys";
|
|
95
|
-
const _Ta = "Tag";
|
|
96
|
-
const _UI = "UserId";
|
|
97
|
-
const _V = "Value";
|
|
98
|
-
const _WIT = "WebIdentityToken";
|
|
99
|
-
const _a = "arn";
|
|
100
|
-
const _aKST = "accessKeySecretType";
|
|
101
|
-
const _aQE = "awsQueryError";
|
|
102
|
-
const _c = "client";
|
|
103
|
-
const _cTT = "clientTokenType";
|
|
104
|
-
const _e = "error";
|
|
105
|
-
const _hE = "httpError";
|
|
106
|
-
const _m = "message";
|
|
107
|
-
const _pDLT = "policyDescriptorListType";
|
|
108
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
109
|
-
const _tITT = "tradeInTokenType";
|
|
110
|
-
const _tLT = "tagListType";
|
|
111
|
-
const _wITT = "webIdentityTokenType";
|
|
112
|
-
const n0 = "com.amazonaws.sts";
|
|
113
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
114
|
-
const { ExpiredTokenException, ExpiredTradeInTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, JWTPayloadSizeExceededException, MalformedPolicyDocumentException, OutboundWebIdentityFederationDisabledException, PackedPolicyTooLargeException, RegionDisabledException, SessionDurationEscalationException } = require("../models/errors");
|
|
115
|
-
const { STSServiceException } = require("../models/STSServiceException");
|
|
116
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
117
|
-
const STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
118
|
-
exports.STSServiceException$ = STSServiceException$;
|
|
119
|
-
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
120
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
121
|
-
const ExpiredTokenException$ = [-3, n0, _ETE,
|
|
122
|
-
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
123
|
-
[_m],
|
|
124
|
-
[0]
|
|
125
|
-
];
|
|
126
|
-
exports.ExpiredTokenException$ = ExpiredTokenException$;
|
|
127
|
-
n0_registry.registerError(ExpiredTokenException$, ExpiredTokenException);
|
|
128
|
-
const ExpiredTradeInTokenException$ = [-3, n0, _ETITE,
|
|
129
|
-
{ [_aQE]: [`ExpiredTradeInTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
130
|
-
[_m],
|
|
131
|
-
[0]
|
|
132
|
-
];
|
|
133
|
-
exports.ExpiredTradeInTokenException$ = ExpiredTradeInTokenException$;
|
|
134
|
-
n0_registry.registerError(ExpiredTradeInTokenException$, ExpiredTradeInTokenException);
|
|
135
|
-
const IDPCommunicationErrorException$ = [-3, n0, _IDPCEE,
|
|
136
|
-
{ [_aQE]: [`IDPCommunicationError`, 400], [_e]: _c, [_hE]: 400 },
|
|
137
|
-
[_m],
|
|
138
|
-
[0]
|
|
139
|
-
];
|
|
140
|
-
exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
|
|
141
|
-
n0_registry.registerError(IDPCommunicationErrorException$, IDPCommunicationErrorException);
|
|
142
|
-
const IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
|
|
143
|
-
{ [_aQE]: [`IDPRejectedClaim`, 403], [_e]: _c, [_hE]: 403 },
|
|
144
|
-
[_m],
|
|
145
|
-
[0]
|
|
146
|
-
];
|
|
147
|
-
exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
|
|
148
|
-
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
149
|
-
const InvalidAuthorizationMessageException$ = [-3, n0, _IAME,
|
|
150
|
-
{ [_aQE]: [`InvalidAuthorizationMessageException`, 400], [_e]: _c, [_hE]: 400 },
|
|
151
|
-
[_m],
|
|
152
|
-
[0]
|
|
153
|
-
];
|
|
154
|
-
exports.InvalidAuthorizationMessageException$ = InvalidAuthorizationMessageException$;
|
|
155
|
-
n0_registry.registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException);
|
|
156
|
-
const InvalidIdentityTokenException$ = [-3, n0, _IITE,
|
|
157
|
-
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
|
158
|
-
[_m],
|
|
159
|
-
[0]
|
|
160
|
-
];
|
|
161
|
-
exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
|
|
162
|
-
n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
|
163
|
-
const JWTPayloadSizeExceededException$ = [-3, n0, _JWTPSEE,
|
|
164
|
-
{ [_aQE]: [`JWTPayloadSizeExceededException`, 400], [_e]: _c, [_hE]: 400 },
|
|
165
|
-
[_m],
|
|
166
|
-
[0]
|
|
167
|
-
];
|
|
168
|
-
exports.JWTPayloadSizeExceededException$ = JWTPayloadSizeExceededException$;
|
|
169
|
-
n0_registry.registerError(JWTPayloadSizeExceededException$, JWTPayloadSizeExceededException);
|
|
170
|
-
const MalformedPolicyDocumentException$ = [-3, n0, _MPDE,
|
|
171
|
-
{ [_aQE]: [`MalformedPolicyDocument`, 400], [_e]: _c, [_hE]: 400 },
|
|
172
|
-
[_m],
|
|
173
|
-
[0]
|
|
174
|
-
];
|
|
175
|
-
exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
|
|
176
|
-
n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
|
|
177
|
-
const OutboundWebIdentityFederationDisabledException$ = [-3, n0, _OWIFDE,
|
|
178
|
-
{ [_aQE]: [`OutboundWebIdentityFederationDisabledException`, 403], [_e]: _c, [_hE]: 403 },
|
|
179
|
-
[_m],
|
|
180
|
-
[0]
|
|
181
|
-
];
|
|
182
|
-
exports.OutboundWebIdentityFederationDisabledException$ = OutboundWebIdentityFederationDisabledException$;
|
|
183
|
-
n0_registry.registerError(OutboundWebIdentityFederationDisabledException$, OutboundWebIdentityFederationDisabledException);
|
|
184
|
-
const PackedPolicyTooLargeException$ = [-3, n0, _PPTLE,
|
|
185
|
-
{ [_aQE]: [`PackedPolicyTooLarge`, 400], [_e]: _c, [_hE]: 400 },
|
|
186
|
-
[_m],
|
|
187
|
-
[0]
|
|
188
|
-
];
|
|
189
|
-
exports.PackedPolicyTooLargeException$ = PackedPolicyTooLargeException$;
|
|
190
|
-
n0_registry.registerError(PackedPolicyTooLargeException$, PackedPolicyTooLargeException);
|
|
191
|
-
const RegionDisabledException$ = [-3, n0, _RDE,
|
|
192
|
-
{ [_aQE]: [`RegionDisabledException`, 403], [_e]: _c, [_hE]: 403 },
|
|
193
|
-
[_m],
|
|
194
|
-
[0]
|
|
195
|
-
];
|
|
196
|
-
exports.RegionDisabledException$ = RegionDisabledException$;
|
|
197
|
-
n0_registry.registerError(RegionDisabledException$, RegionDisabledException);
|
|
198
|
-
const SessionDurationEscalationException$ = [-3, n0, _SDEE,
|
|
199
|
-
{ [_aQE]: [`SessionDurationEscalationException`, 403], [_e]: _c, [_hE]: 403 },
|
|
200
|
-
[_m],
|
|
201
|
-
[0]
|
|
202
|
-
];
|
|
203
|
-
exports.SessionDurationEscalationException$ = SessionDurationEscalationException$;
|
|
204
|
-
n0_registry.registerError(SessionDurationEscalationException$, SessionDurationEscalationException);
|
|
205
|
-
exports.errorTypeRegistries = [
|
|
206
|
-
_s_registry,
|
|
207
|
-
n0_registry,
|
|
208
|
-
];
|
|
209
|
-
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
|
210
|
-
var clientTokenType = [0, n0, _cTT, 8, 0];
|
|
211
|
-
var SAMLAssertionType = [0, n0, _SAMLAT, 8, 0];
|
|
212
|
-
var tradeInTokenType = [0, n0, _tITT, 8, 0];
|
|
213
|
-
var webIdentityTokenType = [0, n0, _wITT, 8, 0];
|
|
214
|
-
const AssumedRoleUser$ = [3, n0, _ARU,
|
|
215
|
-
0,
|
|
216
|
-
[_ARI, _A],
|
|
217
|
-
[0, 0], 2
|
|
218
|
-
];
|
|
219
|
-
exports.AssumedRoleUser$ = AssumedRoleUser$;
|
|
220
|
-
const AssumeRoleRequest$ = [3, n0, _ARR,
|
|
221
|
-
0,
|
|
222
|
-
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
223
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
224
|
-
];
|
|
225
|
-
exports.AssumeRoleRequest$ = AssumeRoleRequest$;
|
|
226
|
-
const AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
227
|
-
0,
|
|
228
|
-
[_C, _ARU, _PPS, _SI],
|
|
229
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
230
|
-
];
|
|
231
|
-
exports.AssumeRoleResponse$ = AssumeRoleResponse$;
|
|
232
|
-
const AssumeRoleWithSAMLRequest$ = [3, n0, _ARWSAMLR,
|
|
233
|
-
0,
|
|
234
|
-
[_RA, _PAr, _SAMLA, _PA, _P, _DS],
|
|
235
|
-
[0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1], 3
|
|
236
|
-
];
|
|
237
|
-
exports.AssumeRoleWithSAMLRequest$ = AssumeRoleWithSAMLRequest$;
|
|
238
|
-
const AssumeRoleWithSAMLResponse$ = [3, n0, _ARWSAMLRs,
|
|
239
|
-
0,
|
|
240
|
-
[_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI],
|
|
241
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0]
|
|
242
|
-
];
|
|
243
|
-
exports.AssumeRoleWithSAMLResponse$ = AssumeRoleWithSAMLResponse$;
|
|
244
|
-
const AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
245
|
-
0,
|
|
246
|
-
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
247
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
248
|
-
];
|
|
249
|
-
exports.AssumeRoleWithWebIdentityRequest$ = AssumeRoleWithWebIdentityRequest$;
|
|
250
|
-
const AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
251
|
-
0,
|
|
252
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
253
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
254
|
-
];
|
|
255
|
-
exports.AssumeRoleWithWebIdentityResponse$ = AssumeRoleWithWebIdentityResponse$;
|
|
256
|
-
const AssumeRootRequest$ = [3, n0, _ARRss,
|
|
257
|
-
0,
|
|
258
|
-
[_TP, _TPA, _DS],
|
|
259
|
-
[0, () => PolicyDescriptorType$, 1], 2
|
|
260
|
-
];
|
|
261
|
-
exports.AssumeRootRequest$ = AssumeRootRequest$;
|
|
262
|
-
const AssumeRootResponse$ = [3, n0, _ARRssu,
|
|
263
|
-
0,
|
|
264
|
-
[_C, _SI],
|
|
265
|
-
[[() => Credentials$, 0], 0]
|
|
266
|
-
];
|
|
267
|
-
exports.AssumeRootResponse$ = AssumeRootResponse$;
|
|
268
|
-
const Credentials$ = [3, n0, _C,
|
|
269
|
-
0,
|
|
270
|
-
[_AKI, _SAK, _STe, _E],
|
|
271
|
-
[0, [() => accessKeySecretType, 0], 0, 4], 4
|
|
272
|
-
];
|
|
273
|
-
exports.Credentials$ = Credentials$;
|
|
274
|
-
const DecodeAuthorizationMessageRequest$ = [3, n0, _DAMR,
|
|
275
|
-
0,
|
|
276
|
-
[_EM],
|
|
277
|
-
[0], 1
|
|
278
|
-
];
|
|
279
|
-
exports.DecodeAuthorizationMessageRequest$ = DecodeAuthorizationMessageRequest$;
|
|
280
|
-
const DecodeAuthorizationMessageResponse$ = [3, n0, _DAMRe,
|
|
281
|
-
0,
|
|
282
|
-
[_DM],
|
|
283
|
-
[0]
|
|
284
|
-
];
|
|
285
|
-
exports.DecodeAuthorizationMessageResponse$ = DecodeAuthorizationMessageResponse$;
|
|
286
|
-
const FederatedUser$ = [3, n0, _FU,
|
|
287
|
-
0,
|
|
288
|
-
[_FUI, _A],
|
|
289
|
-
[0, 0], 2
|
|
290
|
-
];
|
|
291
|
-
exports.FederatedUser$ = FederatedUser$;
|
|
292
|
-
const GetAccessKeyInfoRequest$ = [3, n0, _GAKIR,
|
|
293
|
-
0,
|
|
294
|
-
[_AKI],
|
|
295
|
-
[0], 1
|
|
296
|
-
];
|
|
297
|
-
exports.GetAccessKeyInfoRequest$ = GetAccessKeyInfoRequest$;
|
|
298
|
-
const GetAccessKeyInfoResponse$ = [3, n0, _GAKIRe,
|
|
299
|
-
0,
|
|
300
|
-
[_Ac],
|
|
301
|
-
[0]
|
|
302
|
-
];
|
|
303
|
-
exports.GetAccessKeyInfoResponse$ = GetAccessKeyInfoResponse$;
|
|
304
|
-
const GetCallerIdentityRequest$ = [3, n0, _GCIR,
|
|
305
|
-
0,
|
|
306
|
-
[],
|
|
307
|
-
[]
|
|
308
|
-
];
|
|
309
|
-
exports.GetCallerIdentityRequest$ = GetCallerIdentityRequest$;
|
|
310
|
-
const GetCallerIdentityResponse$ = [3, n0, _GCIRe,
|
|
311
|
-
0,
|
|
312
|
-
[_UI, _Ac, _A],
|
|
313
|
-
[0, 0, 0]
|
|
314
|
-
];
|
|
315
|
-
exports.GetCallerIdentityResponse$ = GetCallerIdentityResponse$;
|
|
316
|
-
const GetDelegatedAccessTokenRequest$ = [3, n0, _GDATR,
|
|
317
|
-
0,
|
|
318
|
-
[_TIT],
|
|
319
|
-
[[() => tradeInTokenType, 0]], 1
|
|
320
|
-
];
|
|
321
|
-
exports.GetDelegatedAccessTokenRequest$ = GetDelegatedAccessTokenRequest$;
|
|
322
|
-
const GetDelegatedAccessTokenResponse$ = [3, n0, _GDATRe,
|
|
323
|
-
0,
|
|
324
|
-
[_C, _PPS, _AP],
|
|
325
|
-
[[() => Credentials$, 0], 1, 0]
|
|
326
|
-
];
|
|
327
|
-
exports.GetDelegatedAccessTokenResponse$ = GetDelegatedAccessTokenResponse$;
|
|
328
|
-
const GetFederationTokenRequest$ = [3, n0, _GFTR,
|
|
329
|
-
0,
|
|
330
|
-
[_N, _P, _PA, _DS, _T],
|
|
331
|
-
[0, 0, () => policyDescriptorListType, 1, () => tagListType], 1
|
|
332
|
-
];
|
|
333
|
-
exports.GetFederationTokenRequest$ = GetFederationTokenRequest$;
|
|
334
|
-
const GetFederationTokenResponse$ = [3, n0, _GFTRe,
|
|
335
|
-
0,
|
|
336
|
-
[_C, _FU, _PPS],
|
|
337
|
-
[[() => Credentials$, 0], () => FederatedUser$, 1]
|
|
338
|
-
];
|
|
339
|
-
exports.GetFederationTokenResponse$ = GetFederationTokenResponse$;
|
|
340
|
-
const GetSessionTokenRequest$ = [3, n0, _GSTR,
|
|
341
|
-
0,
|
|
342
|
-
[_DS, _SN, _TC],
|
|
343
|
-
[1, 0, 0]
|
|
344
|
-
];
|
|
345
|
-
exports.GetSessionTokenRequest$ = GetSessionTokenRequest$;
|
|
346
|
-
const GetSessionTokenResponse$ = [3, n0, _GSTRe,
|
|
347
|
-
0,
|
|
348
|
-
[_C],
|
|
349
|
-
[[() => Credentials$, 0]]
|
|
350
|
-
];
|
|
351
|
-
exports.GetSessionTokenResponse$ = GetSessionTokenResponse$;
|
|
352
|
-
const GetWebIdentityTokenRequest$ = [3, n0, _GWITR,
|
|
353
|
-
0,
|
|
354
|
-
[_Au, _SA, _DS, _T],
|
|
355
|
-
[64 | 0, 0, 1, () => tagListType], 2
|
|
356
|
-
];
|
|
357
|
-
exports.GetWebIdentityTokenRequest$ = GetWebIdentityTokenRequest$;
|
|
358
|
-
const GetWebIdentityTokenResponse$ = [3, n0, _GWITRe,
|
|
359
|
-
0,
|
|
360
|
-
[_WIT, _E],
|
|
361
|
-
[[() => webIdentityTokenType, 0], 4]
|
|
362
|
-
];
|
|
363
|
-
exports.GetWebIdentityTokenResponse$ = GetWebIdentityTokenResponse$;
|
|
364
|
-
const PolicyDescriptorType$ = [3, n0, _PDT,
|
|
365
|
-
0,
|
|
366
|
-
[_a],
|
|
367
|
-
[0]
|
|
368
|
-
];
|
|
369
|
-
exports.PolicyDescriptorType$ = PolicyDescriptorType$;
|
|
370
|
-
const ProvidedContext$ = [3, n0, _PCr,
|
|
371
|
-
0,
|
|
372
|
-
[_PAro, _CA],
|
|
373
|
-
[0, 0]
|
|
374
|
-
];
|
|
375
|
-
exports.ProvidedContext$ = ProvidedContext$;
|
|
376
|
-
const Tag$ = [3, n0, _Ta,
|
|
377
|
-
0,
|
|
378
|
-
[_K, _V],
|
|
379
|
-
[0, 0], 2
|
|
380
|
-
];
|
|
381
|
-
exports.Tag$ = Tag$;
|
|
382
|
-
var policyDescriptorListType = [1, n0, _pDLT,
|
|
383
|
-
0, () => PolicyDescriptorType$
|
|
384
|
-
];
|
|
385
|
-
var ProvidedContextsListType = [1, n0, _PCLT,
|
|
386
|
-
0, () => ProvidedContext$
|
|
387
|
-
];
|
|
388
|
-
var tagKeyListType = 64 | 0;
|
|
389
|
-
var tagListType = [1, n0, _tLT,
|
|
390
|
-
0, () => Tag$
|
|
391
|
-
];
|
|
392
|
-
var webIdentityTokenAudienceListType = 64 | 0;
|
|
393
|
-
exports.AssumeRole$ = [9, n0, _AR,
|
|
394
|
-
0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
|
|
395
|
-
];
|
|
396
|
-
exports.AssumeRoleWithSAML$ = [9, n0, _ARWSAML,
|
|
397
|
-
0, () => AssumeRoleWithSAMLRequest$, () => AssumeRoleWithSAMLResponse$
|
|
398
|
-
];
|
|
399
|
-
exports.AssumeRoleWithWebIdentity$ = [9, n0, _ARWWI,
|
|
400
|
-
0, () => AssumeRoleWithWebIdentityRequest$, () => AssumeRoleWithWebIdentityResponse$
|
|
401
|
-
];
|
|
402
|
-
exports.AssumeRoot$ = [9, n0, _ARs,
|
|
403
|
-
0, () => AssumeRootRequest$, () => AssumeRootResponse$
|
|
404
|
-
];
|
|
405
|
-
exports.DecodeAuthorizationMessage$ = [9, n0, _DAM,
|
|
406
|
-
0, () => DecodeAuthorizationMessageRequest$, () => DecodeAuthorizationMessageResponse$
|
|
407
|
-
];
|
|
408
|
-
exports.GetAccessKeyInfo$ = [9, n0, _GAKI,
|
|
409
|
-
0, () => GetAccessKeyInfoRequest$, () => GetAccessKeyInfoResponse$
|
|
410
|
-
];
|
|
411
|
-
exports.GetCallerIdentity$ = [9, n0, _GCI,
|
|
412
|
-
0, () => GetCallerIdentityRequest$, () => GetCallerIdentityResponse$
|
|
413
|
-
];
|
|
414
|
-
exports.GetDelegatedAccessToken$ = [9, n0, _GDAT,
|
|
415
|
-
0, () => GetDelegatedAccessTokenRequest$, () => GetDelegatedAccessTokenResponse$
|
|
416
|
-
];
|
|
417
|
-
exports.GetFederationToken$ = [9, n0, _GFT,
|
|
418
|
-
0, () => GetFederationTokenRequest$, () => GetFederationTokenResponse$
|
|
419
|
-
];
|
|
420
|
-
exports.GetSessionToken$ = [9, n0, _GST,
|
|
421
|
-
0, () => GetSessionTokenRequest$, () => GetSessionTokenResponse$
|
|
422
|
-
];
|
|
423
|
-
exports.GetWebIdentityToken$ = [9, n0, _GWIT,
|
|
424
|
-
0, () => GetWebIdentityTokenRequest$, () => GetWebIdentityTokenResponse$
|
|
425
|
-
];
|