@cdk8s/awscdk-resolver 0.0.95 → 0.0.96
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +4 -2
- package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +64 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1024 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +52 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +58 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +10 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +409 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +36 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +21 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +212 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +162 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +244 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +108 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +111 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +50 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +52 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +144 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +114 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +49 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +100 -0
- package/node_modules/@aws-sdk/client-sts/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sts/README.md +273 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +56 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +67 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +20 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +7 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1457 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +63 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +40 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +23 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +52 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +60 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +24 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +24 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +24 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +25 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js +22 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +67 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js +16 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +10 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +130 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +885 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +34 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +58 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +36 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +21 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +71 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +182 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +71 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +257 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +282 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +291 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +115 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +75 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +230 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +154 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +23 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +43 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +13 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +1213 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +74 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +54 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +52 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +53 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +143 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +165 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +54 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +19 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +33 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +57 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +8 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +206 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +101 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +116 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +109 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +110 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +51 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/node_modules/@aws-sdk/client-sts/package.json +102 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +1 -1
- package/package.json +3 -3
@@ -0,0 +1,885 @@
|
|
1
|
+
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
2
|
+
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
3
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
|
4
|
+
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
|
5
|
+
import { STSServiceException as __BaseException } from "../models/STSServiceException";
|
6
|
+
export const se_AssumeRoleCommand = async (input, context) => {
|
7
|
+
const headers = SHARED_HEADERS;
|
8
|
+
let body;
|
9
|
+
body = buildFormUrlencodedString({
|
10
|
+
...se_AssumeRoleRequest(input, context),
|
11
|
+
[_A]: _AR,
|
12
|
+
[_V]: _,
|
13
|
+
});
|
14
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
15
|
+
};
|
16
|
+
export const se_AssumeRoleWithSAMLCommand = async (input, context) => {
|
17
|
+
const headers = SHARED_HEADERS;
|
18
|
+
let body;
|
19
|
+
body = buildFormUrlencodedString({
|
20
|
+
...se_AssumeRoleWithSAMLRequest(input, context),
|
21
|
+
[_A]: _ARWSAML,
|
22
|
+
[_V]: _,
|
23
|
+
});
|
24
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
25
|
+
};
|
26
|
+
export const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
|
27
|
+
const headers = SHARED_HEADERS;
|
28
|
+
let body;
|
29
|
+
body = buildFormUrlencodedString({
|
30
|
+
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
31
|
+
[_A]: _ARWWI,
|
32
|
+
[_V]: _,
|
33
|
+
});
|
34
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
35
|
+
};
|
36
|
+
export const se_DecodeAuthorizationMessageCommand = async (input, context) => {
|
37
|
+
const headers = SHARED_HEADERS;
|
38
|
+
let body;
|
39
|
+
body = buildFormUrlencodedString({
|
40
|
+
...se_DecodeAuthorizationMessageRequest(input, context),
|
41
|
+
[_A]: _DAM,
|
42
|
+
[_V]: _,
|
43
|
+
});
|
44
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
45
|
+
};
|
46
|
+
export const se_GetAccessKeyInfoCommand = async (input, context) => {
|
47
|
+
const headers = SHARED_HEADERS;
|
48
|
+
let body;
|
49
|
+
body = buildFormUrlencodedString({
|
50
|
+
...se_GetAccessKeyInfoRequest(input, context),
|
51
|
+
[_A]: _GAKI,
|
52
|
+
[_V]: _,
|
53
|
+
});
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
55
|
+
};
|
56
|
+
export const se_GetCallerIdentityCommand = async (input, context) => {
|
57
|
+
const headers = SHARED_HEADERS;
|
58
|
+
let body;
|
59
|
+
body = buildFormUrlencodedString({
|
60
|
+
...se_GetCallerIdentityRequest(input, context),
|
61
|
+
[_A]: _GCI,
|
62
|
+
[_V]: _,
|
63
|
+
});
|
64
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
65
|
+
};
|
66
|
+
export const se_GetFederationTokenCommand = async (input, context) => {
|
67
|
+
const headers = SHARED_HEADERS;
|
68
|
+
let body;
|
69
|
+
body = buildFormUrlencodedString({
|
70
|
+
...se_GetFederationTokenRequest(input, context),
|
71
|
+
[_A]: _GFT,
|
72
|
+
[_V]: _,
|
73
|
+
});
|
74
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
75
|
+
};
|
76
|
+
export const se_GetSessionTokenCommand = async (input, context) => {
|
77
|
+
const headers = SHARED_HEADERS;
|
78
|
+
let body;
|
79
|
+
body = buildFormUrlencodedString({
|
80
|
+
...se_GetSessionTokenRequest(input, context),
|
81
|
+
[_A]: _GST,
|
82
|
+
[_V]: _,
|
83
|
+
});
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
85
|
+
};
|
86
|
+
export const de_AssumeRoleCommand = async (output, context) => {
|
87
|
+
if (output.statusCode >= 300) {
|
88
|
+
return de_CommandError(output, context);
|
89
|
+
}
|
90
|
+
const data = await parseBody(output.body, context);
|
91
|
+
let contents = {};
|
92
|
+
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
93
|
+
const response = {
|
94
|
+
$metadata: deserializeMetadata(output),
|
95
|
+
...contents,
|
96
|
+
};
|
97
|
+
return response;
|
98
|
+
};
|
99
|
+
export const de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
100
|
+
if (output.statusCode >= 300) {
|
101
|
+
return de_CommandError(output, context);
|
102
|
+
}
|
103
|
+
const data = await parseBody(output.body, context);
|
104
|
+
let contents = {};
|
105
|
+
contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
106
|
+
const response = {
|
107
|
+
$metadata: deserializeMetadata(output),
|
108
|
+
...contents,
|
109
|
+
};
|
110
|
+
return response;
|
111
|
+
};
|
112
|
+
export const de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
113
|
+
if (output.statusCode >= 300) {
|
114
|
+
return de_CommandError(output, context);
|
115
|
+
}
|
116
|
+
const data = await parseBody(output.body, context);
|
117
|
+
let contents = {};
|
118
|
+
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
119
|
+
const response = {
|
120
|
+
$metadata: deserializeMetadata(output),
|
121
|
+
...contents,
|
122
|
+
};
|
123
|
+
return response;
|
124
|
+
};
|
125
|
+
export const de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
126
|
+
if (output.statusCode >= 300) {
|
127
|
+
return de_CommandError(output, context);
|
128
|
+
}
|
129
|
+
const data = await parseBody(output.body, context);
|
130
|
+
let contents = {};
|
131
|
+
contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
132
|
+
const response = {
|
133
|
+
$metadata: deserializeMetadata(output),
|
134
|
+
...contents,
|
135
|
+
};
|
136
|
+
return response;
|
137
|
+
};
|
138
|
+
export const de_GetAccessKeyInfoCommand = async (output, context) => {
|
139
|
+
if (output.statusCode >= 300) {
|
140
|
+
return de_CommandError(output, context);
|
141
|
+
}
|
142
|
+
const data = await parseBody(output.body, context);
|
143
|
+
let contents = {};
|
144
|
+
contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
145
|
+
const response = {
|
146
|
+
$metadata: deserializeMetadata(output),
|
147
|
+
...contents,
|
148
|
+
};
|
149
|
+
return response;
|
150
|
+
};
|
151
|
+
export const de_GetCallerIdentityCommand = async (output, context) => {
|
152
|
+
if (output.statusCode >= 300) {
|
153
|
+
return de_CommandError(output, context);
|
154
|
+
}
|
155
|
+
const data = await parseBody(output.body, context);
|
156
|
+
let contents = {};
|
157
|
+
contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
158
|
+
const response = {
|
159
|
+
$metadata: deserializeMetadata(output),
|
160
|
+
...contents,
|
161
|
+
};
|
162
|
+
return response;
|
163
|
+
};
|
164
|
+
export const de_GetFederationTokenCommand = async (output, context) => {
|
165
|
+
if (output.statusCode >= 300) {
|
166
|
+
return de_CommandError(output, context);
|
167
|
+
}
|
168
|
+
const data = await parseBody(output.body, context);
|
169
|
+
let contents = {};
|
170
|
+
contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context);
|
171
|
+
const response = {
|
172
|
+
$metadata: deserializeMetadata(output),
|
173
|
+
...contents,
|
174
|
+
};
|
175
|
+
return response;
|
176
|
+
};
|
177
|
+
export const de_GetSessionTokenCommand = async (output, context) => {
|
178
|
+
if (output.statusCode >= 300) {
|
179
|
+
return de_CommandError(output, context);
|
180
|
+
}
|
181
|
+
const data = await parseBody(output.body, context);
|
182
|
+
let contents = {};
|
183
|
+
contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context);
|
184
|
+
const response = {
|
185
|
+
$metadata: deserializeMetadata(output),
|
186
|
+
...contents,
|
187
|
+
};
|
188
|
+
return response;
|
189
|
+
};
|
190
|
+
const de_CommandError = async (output, context) => {
|
191
|
+
const parsedOutput = {
|
192
|
+
...output,
|
193
|
+
body: await parseErrorBody(output.body, context),
|
194
|
+
};
|
195
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
196
|
+
switch (errorCode) {
|
197
|
+
case "ExpiredTokenException":
|
198
|
+
case "com.amazonaws.sts#ExpiredTokenException":
|
199
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
200
|
+
case "MalformedPolicyDocument":
|
201
|
+
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
202
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
203
|
+
case "PackedPolicyTooLarge":
|
204
|
+
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
205
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
206
|
+
case "RegionDisabledException":
|
207
|
+
case "com.amazonaws.sts#RegionDisabledException":
|
208
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
209
|
+
case "IDPRejectedClaim":
|
210
|
+
case "com.amazonaws.sts#IDPRejectedClaimException":
|
211
|
+
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
212
|
+
case "InvalidIdentityToken":
|
213
|
+
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
214
|
+
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
215
|
+
case "IDPCommunicationError":
|
216
|
+
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
217
|
+
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
218
|
+
case "InvalidAuthorizationMessageException":
|
219
|
+
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
220
|
+
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
221
|
+
default:
|
222
|
+
const parsedBody = parsedOutput.body;
|
223
|
+
return throwDefaultError({
|
224
|
+
output,
|
225
|
+
parsedBody: parsedBody.Error,
|
226
|
+
errorCode,
|
227
|
+
});
|
228
|
+
}
|
229
|
+
};
|
230
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
231
|
+
const body = parsedOutput.body;
|
232
|
+
const deserialized = de_ExpiredTokenException(body.Error, context);
|
233
|
+
const exception = new ExpiredTokenException({
|
234
|
+
$metadata: deserializeMetadata(parsedOutput),
|
235
|
+
...deserialized,
|
236
|
+
});
|
237
|
+
return __decorateServiceException(exception, body);
|
238
|
+
};
|
239
|
+
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
240
|
+
const body = parsedOutput.body;
|
241
|
+
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
242
|
+
const exception = new IDPCommunicationErrorException({
|
243
|
+
$metadata: deserializeMetadata(parsedOutput),
|
244
|
+
...deserialized,
|
245
|
+
});
|
246
|
+
return __decorateServiceException(exception, body);
|
247
|
+
};
|
248
|
+
const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
|
249
|
+
const body = parsedOutput.body;
|
250
|
+
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
251
|
+
const exception = new IDPRejectedClaimException({
|
252
|
+
$metadata: deserializeMetadata(parsedOutput),
|
253
|
+
...deserialized,
|
254
|
+
});
|
255
|
+
return __decorateServiceException(exception, body);
|
256
|
+
};
|
257
|
+
const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => {
|
258
|
+
const body = parsedOutput.body;
|
259
|
+
const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
|
260
|
+
const exception = new InvalidAuthorizationMessageException({
|
261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
262
|
+
...deserialized,
|
263
|
+
});
|
264
|
+
return __decorateServiceException(exception, body);
|
265
|
+
};
|
266
|
+
const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
|
267
|
+
const body = parsedOutput.body;
|
268
|
+
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
269
|
+
const exception = new InvalidIdentityTokenException({
|
270
|
+
$metadata: deserializeMetadata(parsedOutput),
|
271
|
+
...deserialized,
|
272
|
+
});
|
273
|
+
return __decorateServiceException(exception, body);
|
274
|
+
};
|
275
|
+
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
276
|
+
const body = parsedOutput.body;
|
277
|
+
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
278
|
+
const exception = new MalformedPolicyDocumentException({
|
279
|
+
$metadata: deserializeMetadata(parsedOutput),
|
280
|
+
...deserialized,
|
281
|
+
});
|
282
|
+
return __decorateServiceException(exception, body);
|
283
|
+
};
|
284
|
+
const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
|
285
|
+
const body = parsedOutput.body;
|
286
|
+
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
287
|
+
const exception = new PackedPolicyTooLargeException({
|
288
|
+
$metadata: deserializeMetadata(parsedOutput),
|
289
|
+
...deserialized,
|
290
|
+
});
|
291
|
+
return __decorateServiceException(exception, body);
|
292
|
+
};
|
293
|
+
const de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
|
294
|
+
const body = parsedOutput.body;
|
295
|
+
const deserialized = de_RegionDisabledException(body.Error, context);
|
296
|
+
const exception = new RegionDisabledException({
|
297
|
+
$metadata: deserializeMetadata(parsedOutput),
|
298
|
+
...deserialized,
|
299
|
+
});
|
300
|
+
return __decorateServiceException(exception, body);
|
301
|
+
};
|
302
|
+
const se_AssumeRoleRequest = (input, context) => {
|
303
|
+
const entries = {};
|
304
|
+
if (input[_RA] != null) {
|
305
|
+
entries[_RA] = input[_RA];
|
306
|
+
}
|
307
|
+
if (input[_RSN] != null) {
|
308
|
+
entries[_RSN] = input[_RSN];
|
309
|
+
}
|
310
|
+
if (input[_PA] != null) {
|
311
|
+
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
312
|
+
if (input[_PA]?.length === 0) {
|
313
|
+
entries.PolicyArns = [];
|
314
|
+
}
|
315
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
316
|
+
const loc = `PolicyArns.${key}`;
|
317
|
+
entries[loc] = value;
|
318
|
+
});
|
319
|
+
}
|
320
|
+
if (input[_P] != null) {
|
321
|
+
entries[_P] = input[_P];
|
322
|
+
}
|
323
|
+
if (input[_DS] != null) {
|
324
|
+
entries[_DS] = input[_DS];
|
325
|
+
}
|
326
|
+
if (input[_T] != null) {
|
327
|
+
const memberEntries = se_tagListType(input[_T], context);
|
328
|
+
if (input[_T]?.length === 0) {
|
329
|
+
entries.Tags = [];
|
330
|
+
}
|
331
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
332
|
+
const loc = `Tags.${key}`;
|
333
|
+
entries[loc] = value;
|
334
|
+
});
|
335
|
+
}
|
336
|
+
if (input[_TTK] != null) {
|
337
|
+
const memberEntries = se_tagKeyListType(input[_TTK], context);
|
338
|
+
if (input[_TTK]?.length === 0) {
|
339
|
+
entries.TransitiveTagKeys = [];
|
340
|
+
}
|
341
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
342
|
+
const loc = `TransitiveTagKeys.${key}`;
|
343
|
+
entries[loc] = value;
|
344
|
+
});
|
345
|
+
}
|
346
|
+
if (input[_EI] != null) {
|
347
|
+
entries[_EI] = input[_EI];
|
348
|
+
}
|
349
|
+
if (input[_SN] != null) {
|
350
|
+
entries[_SN] = input[_SN];
|
351
|
+
}
|
352
|
+
if (input[_TC] != null) {
|
353
|
+
entries[_TC] = input[_TC];
|
354
|
+
}
|
355
|
+
if (input[_SI] != null) {
|
356
|
+
entries[_SI] = input[_SI];
|
357
|
+
}
|
358
|
+
if (input[_PC] != null) {
|
359
|
+
const memberEntries = se_ProvidedContextsListType(input[_PC], context);
|
360
|
+
if (input[_PC]?.length === 0) {
|
361
|
+
entries.ProvidedContexts = [];
|
362
|
+
}
|
363
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
364
|
+
const loc = `ProvidedContexts.${key}`;
|
365
|
+
entries[loc] = value;
|
366
|
+
});
|
367
|
+
}
|
368
|
+
return entries;
|
369
|
+
};
|
370
|
+
const se_AssumeRoleWithSAMLRequest = (input, context) => {
|
371
|
+
const entries = {};
|
372
|
+
if (input[_RA] != null) {
|
373
|
+
entries[_RA] = input[_RA];
|
374
|
+
}
|
375
|
+
if (input[_PAr] != null) {
|
376
|
+
entries[_PAr] = input[_PAr];
|
377
|
+
}
|
378
|
+
if (input[_SAMLA] != null) {
|
379
|
+
entries[_SAMLA] = input[_SAMLA];
|
380
|
+
}
|
381
|
+
if (input[_PA] != null) {
|
382
|
+
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
383
|
+
if (input[_PA]?.length === 0) {
|
384
|
+
entries.PolicyArns = [];
|
385
|
+
}
|
386
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
387
|
+
const loc = `PolicyArns.${key}`;
|
388
|
+
entries[loc] = value;
|
389
|
+
});
|
390
|
+
}
|
391
|
+
if (input[_P] != null) {
|
392
|
+
entries[_P] = input[_P];
|
393
|
+
}
|
394
|
+
if (input[_DS] != null) {
|
395
|
+
entries[_DS] = input[_DS];
|
396
|
+
}
|
397
|
+
return entries;
|
398
|
+
};
|
399
|
+
const se_AssumeRoleWithWebIdentityRequest = (input, context) => {
|
400
|
+
const entries = {};
|
401
|
+
if (input[_RA] != null) {
|
402
|
+
entries[_RA] = input[_RA];
|
403
|
+
}
|
404
|
+
if (input[_RSN] != null) {
|
405
|
+
entries[_RSN] = input[_RSN];
|
406
|
+
}
|
407
|
+
if (input[_WIT] != null) {
|
408
|
+
entries[_WIT] = input[_WIT];
|
409
|
+
}
|
410
|
+
if (input[_PI] != null) {
|
411
|
+
entries[_PI] = input[_PI];
|
412
|
+
}
|
413
|
+
if (input[_PA] != null) {
|
414
|
+
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
415
|
+
if (input[_PA]?.length === 0) {
|
416
|
+
entries.PolicyArns = [];
|
417
|
+
}
|
418
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
419
|
+
const loc = `PolicyArns.${key}`;
|
420
|
+
entries[loc] = value;
|
421
|
+
});
|
422
|
+
}
|
423
|
+
if (input[_P] != null) {
|
424
|
+
entries[_P] = input[_P];
|
425
|
+
}
|
426
|
+
if (input[_DS] != null) {
|
427
|
+
entries[_DS] = input[_DS];
|
428
|
+
}
|
429
|
+
return entries;
|
430
|
+
};
|
431
|
+
const se_DecodeAuthorizationMessageRequest = (input, context) => {
|
432
|
+
const entries = {};
|
433
|
+
if (input[_EM] != null) {
|
434
|
+
entries[_EM] = input[_EM];
|
435
|
+
}
|
436
|
+
return entries;
|
437
|
+
};
|
438
|
+
const se_GetAccessKeyInfoRequest = (input, context) => {
|
439
|
+
const entries = {};
|
440
|
+
if (input[_AKI] != null) {
|
441
|
+
entries[_AKI] = input[_AKI];
|
442
|
+
}
|
443
|
+
return entries;
|
444
|
+
};
|
445
|
+
const se_GetCallerIdentityRequest = (input, context) => {
|
446
|
+
const entries = {};
|
447
|
+
return entries;
|
448
|
+
};
|
449
|
+
const se_GetFederationTokenRequest = (input, context) => {
|
450
|
+
const entries = {};
|
451
|
+
if (input[_N] != null) {
|
452
|
+
entries[_N] = input[_N];
|
453
|
+
}
|
454
|
+
if (input[_P] != null) {
|
455
|
+
entries[_P] = input[_P];
|
456
|
+
}
|
457
|
+
if (input[_PA] != null) {
|
458
|
+
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
459
|
+
if (input[_PA]?.length === 0) {
|
460
|
+
entries.PolicyArns = [];
|
461
|
+
}
|
462
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
463
|
+
const loc = `PolicyArns.${key}`;
|
464
|
+
entries[loc] = value;
|
465
|
+
});
|
466
|
+
}
|
467
|
+
if (input[_DS] != null) {
|
468
|
+
entries[_DS] = input[_DS];
|
469
|
+
}
|
470
|
+
if (input[_T] != null) {
|
471
|
+
const memberEntries = se_tagListType(input[_T], context);
|
472
|
+
if (input[_T]?.length === 0) {
|
473
|
+
entries.Tags = [];
|
474
|
+
}
|
475
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
476
|
+
const loc = `Tags.${key}`;
|
477
|
+
entries[loc] = value;
|
478
|
+
});
|
479
|
+
}
|
480
|
+
return entries;
|
481
|
+
};
|
482
|
+
const se_GetSessionTokenRequest = (input, context) => {
|
483
|
+
const entries = {};
|
484
|
+
if (input[_DS] != null) {
|
485
|
+
entries[_DS] = input[_DS];
|
486
|
+
}
|
487
|
+
if (input[_SN] != null) {
|
488
|
+
entries[_SN] = input[_SN];
|
489
|
+
}
|
490
|
+
if (input[_TC] != null) {
|
491
|
+
entries[_TC] = input[_TC];
|
492
|
+
}
|
493
|
+
return entries;
|
494
|
+
};
|
495
|
+
const se_policyDescriptorListType = (input, context) => {
|
496
|
+
const entries = {};
|
497
|
+
let counter = 1;
|
498
|
+
for (const entry of input) {
|
499
|
+
if (entry === null) {
|
500
|
+
continue;
|
501
|
+
}
|
502
|
+
const memberEntries = se_PolicyDescriptorType(entry, context);
|
503
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
504
|
+
entries[`member.${counter}.${key}`] = value;
|
505
|
+
});
|
506
|
+
counter++;
|
507
|
+
}
|
508
|
+
return entries;
|
509
|
+
};
|
510
|
+
const se_PolicyDescriptorType = (input, context) => {
|
511
|
+
const entries = {};
|
512
|
+
if (input[_a] != null) {
|
513
|
+
entries[_a] = input[_a];
|
514
|
+
}
|
515
|
+
return entries;
|
516
|
+
};
|
517
|
+
const se_ProvidedContext = (input, context) => {
|
518
|
+
const entries = {};
|
519
|
+
if (input[_PAro] != null) {
|
520
|
+
entries[_PAro] = input[_PAro];
|
521
|
+
}
|
522
|
+
if (input[_CA] != null) {
|
523
|
+
entries[_CA] = input[_CA];
|
524
|
+
}
|
525
|
+
return entries;
|
526
|
+
};
|
527
|
+
const se_ProvidedContextsListType = (input, context) => {
|
528
|
+
const entries = {};
|
529
|
+
let counter = 1;
|
530
|
+
for (const entry of input) {
|
531
|
+
if (entry === null) {
|
532
|
+
continue;
|
533
|
+
}
|
534
|
+
const memberEntries = se_ProvidedContext(entry, context);
|
535
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
536
|
+
entries[`member.${counter}.${key}`] = value;
|
537
|
+
});
|
538
|
+
counter++;
|
539
|
+
}
|
540
|
+
return entries;
|
541
|
+
};
|
542
|
+
const se_Tag = (input, context) => {
|
543
|
+
const entries = {};
|
544
|
+
if (input[_K] != null) {
|
545
|
+
entries[_K] = input[_K];
|
546
|
+
}
|
547
|
+
if (input[_Va] != null) {
|
548
|
+
entries[_Va] = input[_Va];
|
549
|
+
}
|
550
|
+
return entries;
|
551
|
+
};
|
552
|
+
const se_tagKeyListType = (input, context) => {
|
553
|
+
const entries = {};
|
554
|
+
let counter = 1;
|
555
|
+
for (const entry of input) {
|
556
|
+
if (entry === null) {
|
557
|
+
continue;
|
558
|
+
}
|
559
|
+
entries[`member.${counter}`] = entry;
|
560
|
+
counter++;
|
561
|
+
}
|
562
|
+
return entries;
|
563
|
+
};
|
564
|
+
const se_tagListType = (input, context) => {
|
565
|
+
const entries = {};
|
566
|
+
let counter = 1;
|
567
|
+
for (const entry of input) {
|
568
|
+
if (entry === null) {
|
569
|
+
continue;
|
570
|
+
}
|
571
|
+
const memberEntries = se_Tag(entry, context);
|
572
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
573
|
+
entries[`member.${counter}.${key}`] = value;
|
574
|
+
});
|
575
|
+
counter++;
|
576
|
+
}
|
577
|
+
return entries;
|
578
|
+
};
|
579
|
+
const de_AssumedRoleUser = (output, context) => {
|
580
|
+
const contents = {};
|
581
|
+
if (output[_ARI] != null) {
|
582
|
+
contents[_ARI] = __expectString(output[_ARI]);
|
583
|
+
}
|
584
|
+
if (output[_Ar] != null) {
|
585
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
586
|
+
}
|
587
|
+
return contents;
|
588
|
+
};
|
589
|
+
const de_AssumeRoleResponse = (output, context) => {
|
590
|
+
const contents = {};
|
591
|
+
if (output[_C] != null) {
|
592
|
+
contents[_C] = de_Credentials(output[_C], context);
|
593
|
+
}
|
594
|
+
if (output[_ARU] != null) {
|
595
|
+
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
596
|
+
}
|
597
|
+
if (output[_PPS] != null) {
|
598
|
+
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
599
|
+
}
|
600
|
+
if (output[_SI] != null) {
|
601
|
+
contents[_SI] = __expectString(output[_SI]);
|
602
|
+
}
|
603
|
+
return contents;
|
604
|
+
};
|
605
|
+
const de_AssumeRoleWithSAMLResponse = (output, context) => {
|
606
|
+
const contents = {};
|
607
|
+
if (output[_C] != null) {
|
608
|
+
contents[_C] = de_Credentials(output[_C], context);
|
609
|
+
}
|
610
|
+
if (output[_ARU] != null) {
|
611
|
+
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
612
|
+
}
|
613
|
+
if (output[_PPS] != null) {
|
614
|
+
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
615
|
+
}
|
616
|
+
if (output[_S] != null) {
|
617
|
+
contents[_S] = __expectString(output[_S]);
|
618
|
+
}
|
619
|
+
if (output[_ST] != null) {
|
620
|
+
contents[_ST] = __expectString(output[_ST]);
|
621
|
+
}
|
622
|
+
if (output[_I] != null) {
|
623
|
+
contents[_I] = __expectString(output[_I]);
|
624
|
+
}
|
625
|
+
if (output[_Au] != null) {
|
626
|
+
contents[_Au] = __expectString(output[_Au]);
|
627
|
+
}
|
628
|
+
if (output[_NQ] != null) {
|
629
|
+
contents[_NQ] = __expectString(output[_NQ]);
|
630
|
+
}
|
631
|
+
if (output[_SI] != null) {
|
632
|
+
contents[_SI] = __expectString(output[_SI]);
|
633
|
+
}
|
634
|
+
return contents;
|
635
|
+
};
|
636
|
+
const de_AssumeRoleWithWebIdentityResponse = (output, context) => {
|
637
|
+
const contents = {};
|
638
|
+
if (output[_C] != null) {
|
639
|
+
contents[_C] = de_Credentials(output[_C], context);
|
640
|
+
}
|
641
|
+
if (output[_SFWIT] != null) {
|
642
|
+
contents[_SFWIT] = __expectString(output[_SFWIT]);
|
643
|
+
}
|
644
|
+
if (output[_ARU] != null) {
|
645
|
+
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
646
|
+
}
|
647
|
+
if (output[_PPS] != null) {
|
648
|
+
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
649
|
+
}
|
650
|
+
if (output[_Pr] != null) {
|
651
|
+
contents[_Pr] = __expectString(output[_Pr]);
|
652
|
+
}
|
653
|
+
if (output[_Au] != null) {
|
654
|
+
contents[_Au] = __expectString(output[_Au]);
|
655
|
+
}
|
656
|
+
if (output[_SI] != null) {
|
657
|
+
contents[_SI] = __expectString(output[_SI]);
|
658
|
+
}
|
659
|
+
return contents;
|
660
|
+
};
|
661
|
+
const de_Credentials = (output, context) => {
|
662
|
+
const contents = {};
|
663
|
+
if (output[_AKI] != null) {
|
664
|
+
contents[_AKI] = __expectString(output[_AKI]);
|
665
|
+
}
|
666
|
+
if (output[_SAK] != null) {
|
667
|
+
contents[_SAK] = __expectString(output[_SAK]);
|
668
|
+
}
|
669
|
+
if (output[_STe] != null) {
|
670
|
+
contents[_STe] = __expectString(output[_STe]);
|
671
|
+
}
|
672
|
+
if (output[_E] != null) {
|
673
|
+
contents[_E] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_E]));
|
674
|
+
}
|
675
|
+
return contents;
|
676
|
+
};
|
677
|
+
const de_DecodeAuthorizationMessageResponse = (output, context) => {
|
678
|
+
const contents = {};
|
679
|
+
if (output[_DM] != null) {
|
680
|
+
contents[_DM] = __expectString(output[_DM]);
|
681
|
+
}
|
682
|
+
return contents;
|
683
|
+
};
|
684
|
+
const de_ExpiredTokenException = (output, context) => {
|
685
|
+
const contents = {};
|
686
|
+
if (output[_m] != null) {
|
687
|
+
contents[_m] = __expectString(output[_m]);
|
688
|
+
}
|
689
|
+
return contents;
|
690
|
+
};
|
691
|
+
const de_FederatedUser = (output, context) => {
|
692
|
+
const contents = {};
|
693
|
+
if (output[_FUI] != null) {
|
694
|
+
contents[_FUI] = __expectString(output[_FUI]);
|
695
|
+
}
|
696
|
+
if (output[_Ar] != null) {
|
697
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
698
|
+
}
|
699
|
+
return contents;
|
700
|
+
};
|
701
|
+
const de_GetAccessKeyInfoResponse = (output, context) => {
|
702
|
+
const contents = {};
|
703
|
+
if (output[_Ac] != null) {
|
704
|
+
contents[_Ac] = __expectString(output[_Ac]);
|
705
|
+
}
|
706
|
+
return contents;
|
707
|
+
};
|
708
|
+
const de_GetCallerIdentityResponse = (output, context) => {
|
709
|
+
const contents = {};
|
710
|
+
if (output[_UI] != null) {
|
711
|
+
contents[_UI] = __expectString(output[_UI]);
|
712
|
+
}
|
713
|
+
if (output[_Ac] != null) {
|
714
|
+
contents[_Ac] = __expectString(output[_Ac]);
|
715
|
+
}
|
716
|
+
if (output[_Ar] != null) {
|
717
|
+
contents[_Ar] = __expectString(output[_Ar]);
|
718
|
+
}
|
719
|
+
return contents;
|
720
|
+
};
|
721
|
+
const de_GetFederationTokenResponse = (output, context) => {
|
722
|
+
const contents = {};
|
723
|
+
if (output[_C] != null) {
|
724
|
+
contents[_C] = de_Credentials(output[_C], context);
|
725
|
+
}
|
726
|
+
if (output[_FU] != null) {
|
727
|
+
contents[_FU] = de_FederatedUser(output[_FU], context);
|
728
|
+
}
|
729
|
+
if (output[_PPS] != null) {
|
730
|
+
contents[_PPS] = __strictParseInt32(output[_PPS]);
|
731
|
+
}
|
732
|
+
return contents;
|
733
|
+
};
|
734
|
+
const de_GetSessionTokenResponse = (output, context) => {
|
735
|
+
const contents = {};
|
736
|
+
if (output[_C] != null) {
|
737
|
+
contents[_C] = de_Credentials(output[_C], context);
|
738
|
+
}
|
739
|
+
return contents;
|
740
|
+
};
|
741
|
+
const de_IDPCommunicationErrorException = (output, context) => {
|
742
|
+
const contents = {};
|
743
|
+
if (output[_m] != null) {
|
744
|
+
contents[_m] = __expectString(output[_m]);
|
745
|
+
}
|
746
|
+
return contents;
|
747
|
+
};
|
748
|
+
const de_IDPRejectedClaimException = (output, context) => {
|
749
|
+
const contents = {};
|
750
|
+
if (output[_m] != null) {
|
751
|
+
contents[_m] = __expectString(output[_m]);
|
752
|
+
}
|
753
|
+
return contents;
|
754
|
+
};
|
755
|
+
const de_InvalidAuthorizationMessageException = (output, context) => {
|
756
|
+
const contents = {};
|
757
|
+
if (output[_m] != null) {
|
758
|
+
contents[_m] = __expectString(output[_m]);
|
759
|
+
}
|
760
|
+
return contents;
|
761
|
+
};
|
762
|
+
const de_InvalidIdentityTokenException = (output, context) => {
|
763
|
+
const contents = {};
|
764
|
+
if (output[_m] != null) {
|
765
|
+
contents[_m] = __expectString(output[_m]);
|
766
|
+
}
|
767
|
+
return contents;
|
768
|
+
};
|
769
|
+
const de_MalformedPolicyDocumentException = (output, context) => {
|
770
|
+
const contents = {};
|
771
|
+
if (output[_m] != null) {
|
772
|
+
contents[_m] = __expectString(output[_m]);
|
773
|
+
}
|
774
|
+
return contents;
|
775
|
+
};
|
776
|
+
const de_PackedPolicyTooLargeException = (output, context) => {
|
777
|
+
const contents = {};
|
778
|
+
if (output[_m] != null) {
|
779
|
+
contents[_m] = __expectString(output[_m]);
|
780
|
+
}
|
781
|
+
return contents;
|
782
|
+
};
|
783
|
+
const de_RegionDisabledException = (output, context) => {
|
784
|
+
const contents = {};
|
785
|
+
if (output[_m] != null) {
|
786
|
+
contents[_m] = __expectString(output[_m]);
|
787
|
+
}
|
788
|
+
return contents;
|
789
|
+
};
|
790
|
+
const deserializeMetadata = (output) => ({
|
791
|
+
httpStatusCode: output.statusCode,
|
792
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
793
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
794
|
+
cfId: output.headers["x-amz-cf-id"],
|
795
|
+
});
|
796
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
797
|
+
const throwDefaultError = withBaseException(__BaseException);
|
798
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
799
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
800
|
+
const contents = {
|
801
|
+
protocol,
|
802
|
+
hostname,
|
803
|
+
port,
|
804
|
+
method: "POST",
|
805
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
806
|
+
headers,
|
807
|
+
};
|
808
|
+
if (resolvedHostname !== undefined) {
|
809
|
+
contents.hostname = resolvedHostname;
|
810
|
+
}
|
811
|
+
if (body !== undefined) {
|
812
|
+
contents.body = body;
|
813
|
+
}
|
814
|
+
return new __HttpRequest(contents);
|
815
|
+
};
|
816
|
+
const SHARED_HEADERS = {
|
817
|
+
"content-type": "application/x-www-form-urlencoded",
|
818
|
+
};
|
819
|
+
const _ = "2011-06-15";
|
820
|
+
const _A = "Action";
|
821
|
+
const _AKI = "AccessKeyId";
|
822
|
+
const _AR = "AssumeRole";
|
823
|
+
const _ARI = "AssumedRoleId";
|
824
|
+
const _ARU = "AssumedRoleUser";
|
825
|
+
const _ARWSAML = "AssumeRoleWithSAML";
|
826
|
+
const _ARWWI = "AssumeRoleWithWebIdentity";
|
827
|
+
const _Ac = "Account";
|
828
|
+
const _Ar = "Arn";
|
829
|
+
const _Au = "Audience";
|
830
|
+
const _C = "Credentials";
|
831
|
+
const _CA = "ContextAssertion";
|
832
|
+
const _DAM = "DecodeAuthorizationMessage";
|
833
|
+
const _DM = "DecodedMessage";
|
834
|
+
const _DS = "DurationSeconds";
|
835
|
+
const _E = "Expiration";
|
836
|
+
const _EI = "ExternalId";
|
837
|
+
const _EM = "EncodedMessage";
|
838
|
+
const _FU = "FederatedUser";
|
839
|
+
const _FUI = "FederatedUserId";
|
840
|
+
const _GAKI = "GetAccessKeyInfo";
|
841
|
+
const _GCI = "GetCallerIdentity";
|
842
|
+
const _GFT = "GetFederationToken";
|
843
|
+
const _GST = "GetSessionToken";
|
844
|
+
const _I = "Issuer";
|
845
|
+
const _K = "Key";
|
846
|
+
const _N = "Name";
|
847
|
+
const _NQ = "NameQualifier";
|
848
|
+
const _P = "Policy";
|
849
|
+
const _PA = "PolicyArns";
|
850
|
+
const _PAr = "PrincipalArn";
|
851
|
+
const _PAro = "ProviderArn";
|
852
|
+
const _PC = "ProvidedContexts";
|
853
|
+
const _PI = "ProviderId";
|
854
|
+
const _PPS = "PackedPolicySize";
|
855
|
+
const _Pr = "Provider";
|
856
|
+
const _RA = "RoleArn";
|
857
|
+
const _RSN = "RoleSessionName";
|
858
|
+
const _S = "Subject";
|
859
|
+
const _SAK = "SecretAccessKey";
|
860
|
+
const _SAMLA = "SAMLAssertion";
|
861
|
+
const _SFWIT = "SubjectFromWebIdentityToken";
|
862
|
+
const _SI = "SourceIdentity";
|
863
|
+
const _SN = "SerialNumber";
|
864
|
+
const _ST = "SubjectType";
|
865
|
+
const _STe = "SessionToken";
|
866
|
+
const _T = "Tags";
|
867
|
+
const _TC = "TokenCode";
|
868
|
+
const _TTK = "TransitiveTagKeys";
|
869
|
+
const _UI = "UserId";
|
870
|
+
const _V = "Version";
|
871
|
+
const _Va = "Value";
|
872
|
+
const _WIT = "WebIdentityToken";
|
873
|
+
const _a = "arn";
|
874
|
+
const _m = "message";
|
875
|
+
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
876
|
+
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
877
|
+
.join("&");
|
878
|
+
const loadQueryErrorCode = (output, data) => {
|
879
|
+
if (data.Error?.Code !== undefined) {
|
880
|
+
return data.Error.Code;
|
881
|
+
}
|
882
|
+
if (output.statusCode == 404) {
|
883
|
+
return "NotFound";
|
884
|
+
}
|
885
|
+
};
|