@cdk8s/awscdk-resolver 0.0.53 → 0.0.55
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/dist-cjs/index.js +91 -90
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
- package/node_modules/@aws-sdk/client-sso/package.json +10 -10
- 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/SSOOIDC.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -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/extensionConfiguration.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -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 +24 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -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 +38 -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 +27 -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/credentialDefaultProvider.js +3 -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 +8 -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 +6 -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 +553 -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 +20 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -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 +210 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -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/credentialDefaultProvider.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 +8 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -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 +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -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 +142 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -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/credentialDefaultProvider.d.ts +1 -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 +7 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -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 +97 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -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 +103 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
- package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1423 -85
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
- package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
- package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
- package/node_modules/@aws-sdk/client-sts/package.json +14 -12
- package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
- package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +69 -38
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +8 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +70 -19
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +35 -7
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +33 -18
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +6 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +11 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +28 -7
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +7 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +28 -25
- package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
- package/node_modules/@aws-sdk/token-providers/package.json +6 -43
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -1,1084 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0;
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
6
|
-
const fast_xml_parser_1 = require("fast-xml-parser");
|
7
|
-
const models_0_1 = require("../models/models_0");
|
8
|
-
const STSServiceException_1 = require("../models/STSServiceException");
|
9
|
-
const se_AssumeRoleCommand = async (input, context) => {
|
10
|
-
const headers = SHARED_HEADERS;
|
11
|
-
let body;
|
12
|
-
body = buildFormUrlencodedString({
|
13
|
-
...se_AssumeRoleRequest(input, context),
|
14
|
-
[_A]: _AR,
|
15
|
-
[_V]: _,
|
16
|
-
});
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
18
|
-
};
|
19
|
-
exports.se_AssumeRoleCommand = se_AssumeRoleCommand;
|
20
|
-
const se_AssumeRoleWithSAMLCommand = async (input, context) => {
|
21
|
-
const headers = SHARED_HEADERS;
|
22
|
-
let body;
|
23
|
-
body = buildFormUrlencodedString({
|
24
|
-
...se_AssumeRoleWithSAMLRequest(input, context),
|
25
|
-
[_A]: _ARWSAML,
|
26
|
-
[_V]: _,
|
27
|
-
});
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
29
|
-
};
|
30
|
-
exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand;
|
31
|
-
const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
|
32
|
-
const headers = SHARED_HEADERS;
|
33
|
-
let body;
|
34
|
-
body = buildFormUrlencodedString({
|
35
|
-
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
36
|
-
[_A]: _ARWWI,
|
37
|
-
[_V]: _,
|
38
|
-
});
|
39
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
40
|
-
};
|
41
|
-
exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand;
|
42
|
-
const se_DecodeAuthorizationMessageCommand = async (input, context) => {
|
43
|
-
const headers = SHARED_HEADERS;
|
44
|
-
let body;
|
45
|
-
body = buildFormUrlencodedString({
|
46
|
-
...se_DecodeAuthorizationMessageRequest(input, context),
|
47
|
-
[_A]: _DAM,
|
48
|
-
[_V]: _,
|
49
|
-
});
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
51
|
-
};
|
52
|
-
exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand;
|
53
|
-
const se_GetAccessKeyInfoCommand = async (input, context) => {
|
54
|
-
const headers = SHARED_HEADERS;
|
55
|
-
let body;
|
56
|
-
body = buildFormUrlencodedString({
|
57
|
-
...se_GetAccessKeyInfoRequest(input, context),
|
58
|
-
[_A]: _GAKI,
|
59
|
-
[_V]: _,
|
60
|
-
});
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
62
|
-
};
|
63
|
-
exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand;
|
64
|
-
const se_GetCallerIdentityCommand = async (input, context) => {
|
65
|
-
const headers = SHARED_HEADERS;
|
66
|
-
let body;
|
67
|
-
body = buildFormUrlencodedString({
|
68
|
-
...se_GetCallerIdentityRequest(input, context),
|
69
|
-
[_A]: _GCI,
|
70
|
-
[_V]: _,
|
71
|
-
});
|
72
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
73
|
-
};
|
74
|
-
exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand;
|
75
|
-
const se_GetFederationTokenCommand = async (input, context) => {
|
76
|
-
const headers = SHARED_HEADERS;
|
77
|
-
let body;
|
78
|
-
body = buildFormUrlencodedString({
|
79
|
-
...se_GetFederationTokenRequest(input, context),
|
80
|
-
[_A]: _GFT,
|
81
|
-
[_V]: _,
|
82
|
-
});
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
84
|
-
};
|
85
|
-
exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand;
|
86
|
-
const se_GetSessionTokenCommand = async (input, context) => {
|
87
|
-
const headers = SHARED_HEADERS;
|
88
|
-
let body;
|
89
|
-
body = buildFormUrlencodedString({
|
90
|
-
...se_GetSessionTokenRequest(input, context),
|
91
|
-
[_A]: _GST,
|
92
|
-
[_V]: _,
|
93
|
-
});
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
95
|
-
};
|
96
|
-
exports.se_GetSessionTokenCommand = se_GetSessionTokenCommand;
|
97
|
-
const de_AssumeRoleCommand = async (output, context) => {
|
98
|
-
if (output.statusCode >= 300) {
|
99
|
-
return de_AssumeRoleCommandError(output, context);
|
100
|
-
}
|
101
|
-
const data = await parseBody(output.body, context);
|
102
|
-
let contents = {};
|
103
|
-
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
104
|
-
const response = {
|
105
|
-
$metadata: deserializeMetadata(output),
|
106
|
-
...contents,
|
107
|
-
};
|
108
|
-
return response;
|
109
|
-
};
|
110
|
-
exports.de_AssumeRoleCommand = de_AssumeRoleCommand;
|
111
|
-
const de_AssumeRoleCommandError = async (output, context) => {
|
112
|
-
const parsedOutput = {
|
113
|
-
...output,
|
114
|
-
body: await parseErrorBody(output.body, context),
|
115
|
-
};
|
116
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
117
|
-
switch (errorCode) {
|
118
|
-
case "ExpiredTokenException":
|
119
|
-
case "com.amazonaws.sts#ExpiredTokenException":
|
120
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
121
|
-
case "MalformedPolicyDocument":
|
122
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
123
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
124
|
-
case "PackedPolicyTooLarge":
|
125
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
126
|
-
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
127
|
-
case "RegionDisabledException":
|
128
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
129
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
130
|
-
default:
|
131
|
-
const parsedBody = parsedOutput.body;
|
132
|
-
return throwDefaultError({
|
133
|
-
output,
|
134
|
-
parsedBody: parsedBody.Error,
|
135
|
-
errorCode,
|
136
|
-
});
|
137
|
-
}
|
138
|
-
};
|
139
|
-
const de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
140
|
-
if (output.statusCode >= 300) {
|
141
|
-
return de_AssumeRoleWithSAMLCommandError(output, context);
|
142
|
-
}
|
143
|
-
const data = await parseBody(output.body, context);
|
144
|
-
let contents = {};
|
145
|
-
contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
146
|
-
const response = {
|
147
|
-
$metadata: deserializeMetadata(output),
|
148
|
-
...contents,
|
149
|
-
};
|
150
|
-
return response;
|
151
|
-
};
|
152
|
-
exports.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand;
|
153
|
-
const de_AssumeRoleWithSAMLCommandError = async (output, context) => {
|
154
|
-
const parsedOutput = {
|
155
|
-
...output,
|
156
|
-
body: await parseErrorBody(output.body, context),
|
157
|
-
};
|
158
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
159
|
-
switch (errorCode) {
|
160
|
-
case "ExpiredTokenException":
|
161
|
-
case "com.amazonaws.sts#ExpiredTokenException":
|
162
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
163
|
-
case "IDPRejectedClaim":
|
164
|
-
case "com.amazonaws.sts#IDPRejectedClaimException":
|
165
|
-
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
166
|
-
case "InvalidIdentityToken":
|
167
|
-
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
168
|
-
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
169
|
-
case "MalformedPolicyDocument":
|
170
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
171
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
172
|
-
case "PackedPolicyTooLarge":
|
173
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
174
|
-
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
175
|
-
case "RegionDisabledException":
|
176
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
177
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
178
|
-
default:
|
179
|
-
const parsedBody = parsedOutput.body;
|
180
|
-
return throwDefaultError({
|
181
|
-
output,
|
182
|
-
parsedBody: parsedBody.Error,
|
183
|
-
errorCode,
|
184
|
-
});
|
185
|
-
}
|
186
|
-
};
|
187
|
-
const de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
188
|
-
if (output.statusCode >= 300) {
|
189
|
-
return de_AssumeRoleWithWebIdentityCommandError(output, context);
|
190
|
-
}
|
191
|
-
const data = await parseBody(output.body, context);
|
192
|
-
let contents = {};
|
193
|
-
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
194
|
-
const response = {
|
195
|
-
$metadata: deserializeMetadata(output),
|
196
|
-
...contents,
|
197
|
-
};
|
198
|
-
return response;
|
199
|
-
};
|
200
|
-
exports.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand;
|
201
|
-
const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => {
|
202
|
-
const parsedOutput = {
|
203
|
-
...output,
|
204
|
-
body: await parseErrorBody(output.body, context),
|
205
|
-
};
|
206
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
207
|
-
switch (errorCode) {
|
208
|
-
case "ExpiredTokenException":
|
209
|
-
case "com.amazonaws.sts#ExpiredTokenException":
|
210
|
-
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
211
|
-
case "IDPCommunicationError":
|
212
|
-
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
213
|
-
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
214
|
-
case "IDPRejectedClaim":
|
215
|
-
case "com.amazonaws.sts#IDPRejectedClaimException":
|
216
|
-
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
217
|
-
case "InvalidIdentityToken":
|
218
|
-
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
219
|
-
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
220
|
-
case "MalformedPolicyDocument":
|
221
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
222
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
223
|
-
case "PackedPolicyTooLarge":
|
224
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
225
|
-
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
226
|
-
case "RegionDisabledException":
|
227
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
228
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
229
|
-
default:
|
230
|
-
const parsedBody = parsedOutput.body;
|
231
|
-
return throwDefaultError({
|
232
|
-
output,
|
233
|
-
parsedBody: parsedBody.Error,
|
234
|
-
errorCode,
|
235
|
-
});
|
236
|
-
}
|
237
|
-
};
|
238
|
-
const de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
239
|
-
if (output.statusCode >= 300) {
|
240
|
-
return de_DecodeAuthorizationMessageCommandError(output, context);
|
241
|
-
}
|
242
|
-
const data = await parseBody(output.body, context);
|
243
|
-
let contents = {};
|
244
|
-
contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
245
|
-
const response = {
|
246
|
-
$metadata: deserializeMetadata(output),
|
247
|
-
...contents,
|
248
|
-
};
|
249
|
-
return response;
|
250
|
-
};
|
251
|
-
exports.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand;
|
252
|
-
const de_DecodeAuthorizationMessageCommandError = async (output, context) => {
|
253
|
-
const parsedOutput = {
|
254
|
-
...output,
|
255
|
-
body: await parseErrorBody(output.body, context),
|
256
|
-
};
|
257
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
258
|
-
switch (errorCode) {
|
259
|
-
case "InvalidAuthorizationMessageException":
|
260
|
-
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
261
|
-
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
262
|
-
default:
|
263
|
-
const parsedBody = parsedOutput.body;
|
264
|
-
return throwDefaultError({
|
265
|
-
output,
|
266
|
-
parsedBody: parsedBody.Error,
|
267
|
-
errorCode,
|
268
|
-
});
|
269
|
-
}
|
270
|
-
};
|
271
|
-
const de_GetAccessKeyInfoCommand = async (output, context) => {
|
272
|
-
if (output.statusCode >= 300) {
|
273
|
-
return de_GetAccessKeyInfoCommandError(output, context);
|
274
|
-
}
|
275
|
-
const data = await parseBody(output.body, context);
|
276
|
-
let contents = {};
|
277
|
-
contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
278
|
-
const response = {
|
279
|
-
$metadata: deserializeMetadata(output),
|
280
|
-
...contents,
|
281
|
-
};
|
282
|
-
return response;
|
283
|
-
};
|
284
|
-
exports.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand;
|
285
|
-
const de_GetAccessKeyInfoCommandError = async (output, context) => {
|
286
|
-
const parsedOutput = {
|
287
|
-
...output,
|
288
|
-
body: await parseErrorBody(output.body, context),
|
289
|
-
};
|
290
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
291
|
-
const parsedBody = parsedOutput.body;
|
292
|
-
return throwDefaultError({
|
293
|
-
output,
|
294
|
-
parsedBody: parsedBody.Error,
|
295
|
-
errorCode,
|
296
|
-
});
|
297
|
-
};
|
298
|
-
const de_GetCallerIdentityCommand = async (output, context) => {
|
299
|
-
if (output.statusCode >= 300) {
|
300
|
-
return de_GetCallerIdentityCommandError(output, context);
|
301
|
-
}
|
302
|
-
const data = await parseBody(output.body, context);
|
303
|
-
let contents = {};
|
304
|
-
contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
305
|
-
const response = {
|
306
|
-
$metadata: deserializeMetadata(output),
|
307
|
-
...contents,
|
308
|
-
};
|
309
|
-
return response;
|
310
|
-
};
|
311
|
-
exports.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand;
|
312
|
-
const de_GetCallerIdentityCommandError = async (output, context) => {
|
313
|
-
const parsedOutput = {
|
314
|
-
...output,
|
315
|
-
body: await parseErrorBody(output.body, context),
|
316
|
-
};
|
317
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
318
|
-
const parsedBody = parsedOutput.body;
|
319
|
-
return throwDefaultError({
|
320
|
-
output,
|
321
|
-
parsedBody: parsedBody.Error,
|
322
|
-
errorCode,
|
323
|
-
});
|
324
|
-
};
|
325
|
-
const de_GetFederationTokenCommand = async (output, context) => {
|
326
|
-
if (output.statusCode >= 300) {
|
327
|
-
return de_GetFederationTokenCommandError(output, context);
|
328
|
-
}
|
329
|
-
const data = await parseBody(output.body, context);
|
330
|
-
let contents = {};
|
331
|
-
contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context);
|
332
|
-
const response = {
|
333
|
-
$metadata: deserializeMetadata(output),
|
334
|
-
...contents,
|
335
|
-
};
|
336
|
-
return response;
|
337
|
-
};
|
338
|
-
exports.de_GetFederationTokenCommand = de_GetFederationTokenCommand;
|
339
|
-
const de_GetFederationTokenCommandError = async (output, context) => {
|
340
|
-
const parsedOutput = {
|
341
|
-
...output,
|
342
|
-
body: await parseErrorBody(output.body, context),
|
343
|
-
};
|
344
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
345
|
-
switch (errorCode) {
|
346
|
-
case "MalformedPolicyDocument":
|
347
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
348
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
349
|
-
case "PackedPolicyTooLarge":
|
350
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
351
|
-
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
352
|
-
case "RegionDisabledException":
|
353
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
354
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
355
|
-
default:
|
356
|
-
const parsedBody = parsedOutput.body;
|
357
|
-
return throwDefaultError({
|
358
|
-
output,
|
359
|
-
parsedBody: parsedBody.Error,
|
360
|
-
errorCode,
|
361
|
-
});
|
362
|
-
}
|
363
|
-
};
|
364
|
-
const de_GetSessionTokenCommand = async (output, context) => {
|
365
|
-
if (output.statusCode >= 300) {
|
366
|
-
return de_GetSessionTokenCommandError(output, context);
|
367
|
-
}
|
368
|
-
const data = await parseBody(output.body, context);
|
369
|
-
let contents = {};
|
370
|
-
contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context);
|
371
|
-
const response = {
|
372
|
-
$metadata: deserializeMetadata(output),
|
373
|
-
...contents,
|
374
|
-
};
|
375
|
-
return response;
|
376
|
-
};
|
377
|
-
exports.de_GetSessionTokenCommand = de_GetSessionTokenCommand;
|
378
|
-
const de_GetSessionTokenCommandError = async (output, context) => {
|
379
|
-
const parsedOutput = {
|
380
|
-
...output,
|
381
|
-
body: await parseErrorBody(output.body, context),
|
382
|
-
};
|
383
|
-
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
384
|
-
switch (errorCode) {
|
385
|
-
case "RegionDisabledException":
|
386
|
-
case "com.amazonaws.sts#RegionDisabledException":
|
387
|
-
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
388
|
-
default:
|
389
|
-
const parsedBody = parsedOutput.body;
|
390
|
-
return throwDefaultError({
|
391
|
-
output,
|
392
|
-
parsedBody: parsedBody.Error,
|
393
|
-
errorCode,
|
394
|
-
});
|
395
|
-
}
|
396
|
-
};
|
397
|
-
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
398
|
-
const body = parsedOutput.body;
|
399
|
-
const deserialized = de_ExpiredTokenException(body.Error, context);
|
400
|
-
const exception = new models_0_1.ExpiredTokenException({
|
401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
402
|
-
...deserialized,
|
403
|
-
});
|
404
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
405
|
-
};
|
406
|
-
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
407
|
-
const body = parsedOutput.body;
|
408
|
-
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
409
|
-
const exception = new models_0_1.IDPCommunicationErrorException({
|
410
|
-
$metadata: deserializeMetadata(parsedOutput),
|
411
|
-
...deserialized,
|
412
|
-
});
|
413
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
414
|
-
};
|
415
|
-
const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
|
416
|
-
const body = parsedOutput.body;
|
417
|
-
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
418
|
-
const exception = new models_0_1.IDPRejectedClaimException({
|
419
|
-
$metadata: deserializeMetadata(parsedOutput),
|
420
|
-
...deserialized,
|
421
|
-
});
|
422
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
423
|
-
};
|
424
|
-
const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => {
|
425
|
-
const body = parsedOutput.body;
|
426
|
-
const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
|
427
|
-
const exception = new models_0_1.InvalidAuthorizationMessageException({
|
428
|
-
$metadata: deserializeMetadata(parsedOutput),
|
429
|
-
...deserialized,
|
430
|
-
});
|
431
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
432
|
-
};
|
433
|
-
const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
|
434
|
-
const body = parsedOutput.body;
|
435
|
-
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
436
|
-
const exception = new models_0_1.InvalidIdentityTokenException({
|
437
|
-
$metadata: deserializeMetadata(parsedOutput),
|
438
|
-
...deserialized,
|
439
|
-
});
|
440
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
441
|
-
};
|
442
|
-
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
443
|
-
const body = parsedOutput.body;
|
444
|
-
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
445
|
-
const exception = new models_0_1.MalformedPolicyDocumentException({
|
446
|
-
$metadata: deserializeMetadata(parsedOutput),
|
447
|
-
...deserialized,
|
448
|
-
});
|
449
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
450
|
-
};
|
451
|
-
const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
|
452
|
-
const body = parsedOutput.body;
|
453
|
-
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
454
|
-
const exception = new models_0_1.PackedPolicyTooLargeException({
|
455
|
-
$metadata: deserializeMetadata(parsedOutput),
|
456
|
-
...deserialized,
|
457
|
-
});
|
458
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
459
|
-
};
|
460
|
-
const de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
|
461
|
-
const body = parsedOutput.body;
|
462
|
-
const deserialized = de_RegionDisabledException(body.Error, context);
|
463
|
-
const exception = new models_0_1.RegionDisabledException({
|
464
|
-
$metadata: deserializeMetadata(parsedOutput),
|
465
|
-
...deserialized,
|
466
|
-
});
|
467
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
468
|
-
};
|
469
|
-
const se_AssumeRoleRequest = (input, context) => {
|
470
|
-
const entries = {};
|
471
|
-
if (input[_RA] != null) {
|
472
|
-
entries[_RA] = input[_RA];
|
473
|
-
}
|
474
|
-
if (input[_RSN] != null) {
|
475
|
-
entries[_RSN] = input[_RSN];
|
476
|
-
}
|
477
|
-
if (input[_PA] != null) {
|
478
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
479
|
-
if (input[_PA]?.length === 0) {
|
480
|
-
entries.PolicyArns = [];
|
481
|
-
}
|
482
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
483
|
-
const loc = `PolicyArns.${key}`;
|
484
|
-
entries[loc] = value;
|
485
|
-
});
|
486
|
-
}
|
487
|
-
if (input[_P] != null) {
|
488
|
-
entries[_P] = input[_P];
|
489
|
-
}
|
490
|
-
if (input[_DS] != null) {
|
491
|
-
entries[_DS] = input[_DS];
|
492
|
-
}
|
493
|
-
if (input[_T] != null) {
|
494
|
-
const memberEntries = se_tagListType(input[_T], context);
|
495
|
-
if (input[_T]?.length === 0) {
|
496
|
-
entries.Tags = [];
|
497
|
-
}
|
498
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
499
|
-
const loc = `Tags.${key}`;
|
500
|
-
entries[loc] = value;
|
501
|
-
});
|
502
|
-
}
|
503
|
-
if (input[_TTK] != null) {
|
504
|
-
const memberEntries = se_tagKeyListType(input[_TTK], context);
|
505
|
-
if (input[_TTK]?.length === 0) {
|
506
|
-
entries.TransitiveTagKeys = [];
|
507
|
-
}
|
508
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
509
|
-
const loc = `TransitiveTagKeys.${key}`;
|
510
|
-
entries[loc] = value;
|
511
|
-
});
|
512
|
-
}
|
513
|
-
if (input[_EI] != null) {
|
514
|
-
entries[_EI] = input[_EI];
|
515
|
-
}
|
516
|
-
if (input[_SN] != null) {
|
517
|
-
entries[_SN] = input[_SN];
|
518
|
-
}
|
519
|
-
if (input[_TC] != null) {
|
520
|
-
entries[_TC] = input[_TC];
|
521
|
-
}
|
522
|
-
if (input[_SI] != null) {
|
523
|
-
entries[_SI] = input[_SI];
|
524
|
-
}
|
525
|
-
if (input[_PC] != null) {
|
526
|
-
const memberEntries = se_ProvidedContextsListType(input[_PC], context);
|
527
|
-
if (input[_PC]?.length === 0) {
|
528
|
-
entries.ProvidedContexts = [];
|
529
|
-
}
|
530
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
531
|
-
const loc = `ProvidedContexts.${key}`;
|
532
|
-
entries[loc] = value;
|
533
|
-
});
|
534
|
-
}
|
535
|
-
return entries;
|
536
|
-
};
|
537
|
-
const se_AssumeRoleWithSAMLRequest = (input, context) => {
|
538
|
-
const entries = {};
|
539
|
-
if (input[_RA] != null) {
|
540
|
-
entries[_RA] = input[_RA];
|
541
|
-
}
|
542
|
-
if (input[_PAr] != null) {
|
543
|
-
entries[_PAr] = input[_PAr];
|
544
|
-
}
|
545
|
-
if (input[_SAMLA] != null) {
|
546
|
-
entries[_SAMLA] = input[_SAMLA];
|
547
|
-
}
|
548
|
-
if (input[_PA] != null) {
|
549
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
550
|
-
if (input[_PA]?.length === 0) {
|
551
|
-
entries.PolicyArns = [];
|
552
|
-
}
|
553
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
554
|
-
const loc = `PolicyArns.${key}`;
|
555
|
-
entries[loc] = value;
|
556
|
-
});
|
557
|
-
}
|
558
|
-
if (input[_P] != null) {
|
559
|
-
entries[_P] = input[_P];
|
560
|
-
}
|
561
|
-
if (input[_DS] != null) {
|
562
|
-
entries[_DS] = input[_DS];
|
563
|
-
}
|
564
|
-
return entries;
|
565
|
-
};
|
566
|
-
const se_AssumeRoleWithWebIdentityRequest = (input, context) => {
|
567
|
-
const entries = {};
|
568
|
-
if (input[_RA] != null) {
|
569
|
-
entries[_RA] = input[_RA];
|
570
|
-
}
|
571
|
-
if (input[_RSN] != null) {
|
572
|
-
entries[_RSN] = input[_RSN];
|
573
|
-
}
|
574
|
-
if (input[_WIT] != null) {
|
575
|
-
entries[_WIT] = input[_WIT];
|
576
|
-
}
|
577
|
-
if (input[_PI] != null) {
|
578
|
-
entries[_PI] = input[_PI];
|
579
|
-
}
|
580
|
-
if (input[_PA] != null) {
|
581
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
582
|
-
if (input[_PA]?.length === 0) {
|
583
|
-
entries.PolicyArns = [];
|
584
|
-
}
|
585
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
586
|
-
const loc = `PolicyArns.${key}`;
|
587
|
-
entries[loc] = value;
|
588
|
-
});
|
589
|
-
}
|
590
|
-
if (input[_P] != null) {
|
591
|
-
entries[_P] = input[_P];
|
592
|
-
}
|
593
|
-
if (input[_DS] != null) {
|
594
|
-
entries[_DS] = input[_DS];
|
595
|
-
}
|
596
|
-
return entries;
|
597
|
-
};
|
598
|
-
const se_DecodeAuthorizationMessageRequest = (input, context) => {
|
599
|
-
const entries = {};
|
600
|
-
if (input[_EM] != null) {
|
601
|
-
entries[_EM] = input[_EM];
|
602
|
-
}
|
603
|
-
return entries;
|
604
|
-
};
|
605
|
-
const se_GetAccessKeyInfoRequest = (input, context) => {
|
606
|
-
const entries = {};
|
607
|
-
if (input[_AKI] != null) {
|
608
|
-
entries[_AKI] = input[_AKI];
|
609
|
-
}
|
610
|
-
return entries;
|
611
|
-
};
|
612
|
-
const se_GetCallerIdentityRequest = (input, context) => {
|
613
|
-
const entries = {};
|
614
|
-
return entries;
|
615
|
-
};
|
616
|
-
const se_GetFederationTokenRequest = (input, context) => {
|
617
|
-
const entries = {};
|
618
|
-
if (input[_N] != null) {
|
619
|
-
entries[_N] = input[_N];
|
620
|
-
}
|
621
|
-
if (input[_P] != null) {
|
622
|
-
entries[_P] = input[_P];
|
623
|
-
}
|
624
|
-
if (input[_PA] != null) {
|
625
|
-
const memberEntries = se_policyDescriptorListType(input[_PA], context);
|
626
|
-
if (input[_PA]?.length === 0) {
|
627
|
-
entries.PolicyArns = [];
|
628
|
-
}
|
629
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
630
|
-
const loc = `PolicyArns.${key}`;
|
631
|
-
entries[loc] = value;
|
632
|
-
});
|
633
|
-
}
|
634
|
-
if (input[_DS] != null) {
|
635
|
-
entries[_DS] = input[_DS];
|
636
|
-
}
|
637
|
-
if (input[_T] != null) {
|
638
|
-
const memberEntries = se_tagListType(input[_T], context);
|
639
|
-
if (input[_T]?.length === 0) {
|
640
|
-
entries.Tags = [];
|
641
|
-
}
|
642
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
643
|
-
const loc = `Tags.${key}`;
|
644
|
-
entries[loc] = value;
|
645
|
-
});
|
646
|
-
}
|
647
|
-
return entries;
|
648
|
-
};
|
649
|
-
const se_GetSessionTokenRequest = (input, context) => {
|
650
|
-
const entries = {};
|
651
|
-
if (input[_DS] != null) {
|
652
|
-
entries[_DS] = input[_DS];
|
653
|
-
}
|
654
|
-
if (input[_SN] != null) {
|
655
|
-
entries[_SN] = input[_SN];
|
656
|
-
}
|
657
|
-
if (input[_TC] != null) {
|
658
|
-
entries[_TC] = input[_TC];
|
659
|
-
}
|
660
|
-
return entries;
|
661
|
-
};
|
662
|
-
const se_policyDescriptorListType = (input, context) => {
|
663
|
-
const entries = {};
|
664
|
-
let counter = 1;
|
665
|
-
for (const entry of input) {
|
666
|
-
if (entry === null) {
|
667
|
-
continue;
|
668
|
-
}
|
669
|
-
const memberEntries = se_PolicyDescriptorType(entry, context);
|
670
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
671
|
-
entries[`member.${counter}.${key}`] = value;
|
672
|
-
});
|
673
|
-
counter++;
|
674
|
-
}
|
675
|
-
return entries;
|
676
|
-
};
|
677
|
-
const se_PolicyDescriptorType = (input, context) => {
|
678
|
-
const entries = {};
|
679
|
-
if (input[_a] != null) {
|
680
|
-
entries[_a] = input[_a];
|
681
|
-
}
|
682
|
-
return entries;
|
683
|
-
};
|
684
|
-
const se_ProvidedContext = (input, context) => {
|
685
|
-
const entries = {};
|
686
|
-
if (input[_PAro] != null) {
|
687
|
-
entries[_PAro] = input[_PAro];
|
688
|
-
}
|
689
|
-
if (input[_CA] != null) {
|
690
|
-
entries[_CA] = input[_CA];
|
691
|
-
}
|
692
|
-
return entries;
|
693
|
-
};
|
694
|
-
const se_ProvidedContextsListType = (input, context) => {
|
695
|
-
const entries = {};
|
696
|
-
let counter = 1;
|
697
|
-
for (const entry of input) {
|
698
|
-
if (entry === null) {
|
699
|
-
continue;
|
700
|
-
}
|
701
|
-
const memberEntries = se_ProvidedContext(entry, context);
|
702
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
703
|
-
entries[`member.${counter}.${key}`] = value;
|
704
|
-
});
|
705
|
-
counter++;
|
706
|
-
}
|
707
|
-
return entries;
|
708
|
-
};
|
709
|
-
const se_Tag = (input, context) => {
|
710
|
-
const entries = {};
|
711
|
-
if (input[_K] != null) {
|
712
|
-
entries[_K] = input[_K];
|
713
|
-
}
|
714
|
-
if (input[_Va] != null) {
|
715
|
-
entries[_Va] = input[_Va];
|
716
|
-
}
|
717
|
-
return entries;
|
718
|
-
};
|
719
|
-
const se_tagKeyListType = (input, context) => {
|
720
|
-
const entries = {};
|
721
|
-
let counter = 1;
|
722
|
-
for (const entry of input) {
|
723
|
-
if (entry === null) {
|
724
|
-
continue;
|
725
|
-
}
|
726
|
-
entries[`member.${counter}`] = entry;
|
727
|
-
counter++;
|
728
|
-
}
|
729
|
-
return entries;
|
730
|
-
};
|
731
|
-
const se_tagListType = (input, context) => {
|
732
|
-
const entries = {};
|
733
|
-
let counter = 1;
|
734
|
-
for (const entry of input) {
|
735
|
-
if (entry === null) {
|
736
|
-
continue;
|
737
|
-
}
|
738
|
-
const memberEntries = se_Tag(entry, context);
|
739
|
-
Object.entries(memberEntries).forEach(([key, value]) => {
|
740
|
-
entries[`member.${counter}.${key}`] = value;
|
741
|
-
});
|
742
|
-
counter++;
|
743
|
-
}
|
744
|
-
return entries;
|
745
|
-
};
|
746
|
-
const de_AssumedRoleUser = (output, context) => {
|
747
|
-
const contents = {};
|
748
|
-
if (output[_ARI] != null) {
|
749
|
-
contents[_ARI] = (0, smithy_client_1.expectString)(output[_ARI]);
|
750
|
-
}
|
751
|
-
if (output[_Ar] != null) {
|
752
|
-
contents[_Ar] = (0, smithy_client_1.expectString)(output[_Ar]);
|
753
|
-
}
|
754
|
-
return contents;
|
755
|
-
};
|
756
|
-
const de_AssumeRoleResponse = (output, context) => {
|
757
|
-
const contents = {};
|
758
|
-
if (output[_C] != null) {
|
759
|
-
contents[_C] = de_Credentials(output[_C], context);
|
760
|
-
}
|
761
|
-
if (output[_ARU] != null) {
|
762
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
763
|
-
}
|
764
|
-
if (output[_PPS] != null) {
|
765
|
-
contents[_PPS] = (0, smithy_client_1.strictParseInt32)(output[_PPS]);
|
766
|
-
}
|
767
|
-
if (output[_SI] != null) {
|
768
|
-
contents[_SI] = (0, smithy_client_1.expectString)(output[_SI]);
|
769
|
-
}
|
770
|
-
return contents;
|
771
|
-
};
|
772
|
-
const de_AssumeRoleWithSAMLResponse = (output, context) => {
|
773
|
-
const contents = {};
|
774
|
-
if (output[_C] != null) {
|
775
|
-
contents[_C] = de_Credentials(output[_C], context);
|
776
|
-
}
|
777
|
-
if (output[_ARU] != null) {
|
778
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
779
|
-
}
|
780
|
-
if (output[_PPS] != null) {
|
781
|
-
contents[_PPS] = (0, smithy_client_1.strictParseInt32)(output[_PPS]);
|
782
|
-
}
|
783
|
-
if (output[_S] != null) {
|
784
|
-
contents[_S] = (0, smithy_client_1.expectString)(output[_S]);
|
785
|
-
}
|
786
|
-
if (output[_ST] != null) {
|
787
|
-
contents[_ST] = (0, smithy_client_1.expectString)(output[_ST]);
|
788
|
-
}
|
789
|
-
if (output[_I] != null) {
|
790
|
-
contents[_I] = (0, smithy_client_1.expectString)(output[_I]);
|
791
|
-
}
|
792
|
-
if (output[_Au] != null) {
|
793
|
-
contents[_Au] = (0, smithy_client_1.expectString)(output[_Au]);
|
794
|
-
}
|
795
|
-
if (output[_NQ] != null) {
|
796
|
-
contents[_NQ] = (0, smithy_client_1.expectString)(output[_NQ]);
|
797
|
-
}
|
798
|
-
if (output[_SI] != null) {
|
799
|
-
contents[_SI] = (0, smithy_client_1.expectString)(output[_SI]);
|
800
|
-
}
|
801
|
-
return contents;
|
802
|
-
};
|
803
|
-
const de_AssumeRoleWithWebIdentityResponse = (output, context) => {
|
804
|
-
const contents = {};
|
805
|
-
if (output[_C] != null) {
|
806
|
-
contents[_C] = de_Credentials(output[_C], context);
|
807
|
-
}
|
808
|
-
if (output[_SFWIT] != null) {
|
809
|
-
contents[_SFWIT] = (0, smithy_client_1.expectString)(output[_SFWIT]);
|
810
|
-
}
|
811
|
-
if (output[_ARU] != null) {
|
812
|
-
contents[_ARU] = de_AssumedRoleUser(output[_ARU], context);
|
813
|
-
}
|
814
|
-
if (output[_PPS] != null) {
|
815
|
-
contents[_PPS] = (0, smithy_client_1.strictParseInt32)(output[_PPS]);
|
816
|
-
}
|
817
|
-
if (output[_Pr] != null) {
|
818
|
-
contents[_Pr] = (0, smithy_client_1.expectString)(output[_Pr]);
|
819
|
-
}
|
820
|
-
if (output[_Au] != null) {
|
821
|
-
contents[_Au] = (0, smithy_client_1.expectString)(output[_Au]);
|
822
|
-
}
|
823
|
-
if (output[_SI] != null) {
|
824
|
-
contents[_SI] = (0, smithy_client_1.expectString)(output[_SI]);
|
825
|
-
}
|
826
|
-
return contents;
|
827
|
-
};
|
828
|
-
const de_Credentials = (output, context) => {
|
829
|
-
const contents = {};
|
830
|
-
if (output[_AKI] != null) {
|
831
|
-
contents[_AKI] = (0, smithy_client_1.expectString)(output[_AKI]);
|
832
|
-
}
|
833
|
-
if (output[_SAK] != null) {
|
834
|
-
contents[_SAK] = (0, smithy_client_1.expectString)(output[_SAK]);
|
835
|
-
}
|
836
|
-
if (output[_STe] != null) {
|
837
|
-
contents[_STe] = (0, smithy_client_1.expectString)(output[_STe]);
|
838
|
-
}
|
839
|
-
if (output[_E] != null) {
|
840
|
-
contents[_E] = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output[_E]));
|
841
|
-
}
|
842
|
-
return contents;
|
843
|
-
};
|
844
|
-
const de_DecodeAuthorizationMessageResponse = (output, context) => {
|
845
|
-
const contents = {};
|
846
|
-
if (output[_DM] != null) {
|
847
|
-
contents[_DM] = (0, smithy_client_1.expectString)(output[_DM]);
|
848
|
-
}
|
849
|
-
return contents;
|
850
|
-
};
|
851
|
-
const de_ExpiredTokenException = (output, context) => {
|
852
|
-
const contents = {};
|
853
|
-
if (output[_m] != null) {
|
854
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
855
|
-
}
|
856
|
-
return contents;
|
857
|
-
};
|
858
|
-
const de_FederatedUser = (output, context) => {
|
859
|
-
const contents = {};
|
860
|
-
if (output[_FUI] != null) {
|
861
|
-
contents[_FUI] = (0, smithy_client_1.expectString)(output[_FUI]);
|
862
|
-
}
|
863
|
-
if (output[_Ar] != null) {
|
864
|
-
contents[_Ar] = (0, smithy_client_1.expectString)(output[_Ar]);
|
865
|
-
}
|
866
|
-
return contents;
|
867
|
-
};
|
868
|
-
const de_GetAccessKeyInfoResponse = (output, context) => {
|
869
|
-
const contents = {};
|
870
|
-
if (output[_Ac] != null) {
|
871
|
-
contents[_Ac] = (0, smithy_client_1.expectString)(output[_Ac]);
|
872
|
-
}
|
873
|
-
return contents;
|
874
|
-
};
|
875
|
-
const de_GetCallerIdentityResponse = (output, context) => {
|
876
|
-
const contents = {};
|
877
|
-
if (output[_UI] != null) {
|
878
|
-
contents[_UI] = (0, smithy_client_1.expectString)(output[_UI]);
|
879
|
-
}
|
880
|
-
if (output[_Ac] != null) {
|
881
|
-
contents[_Ac] = (0, smithy_client_1.expectString)(output[_Ac]);
|
882
|
-
}
|
883
|
-
if (output[_Ar] != null) {
|
884
|
-
contents[_Ar] = (0, smithy_client_1.expectString)(output[_Ar]);
|
885
|
-
}
|
886
|
-
return contents;
|
887
|
-
};
|
888
|
-
const de_GetFederationTokenResponse = (output, context) => {
|
889
|
-
const contents = {};
|
890
|
-
if (output[_C] != null) {
|
891
|
-
contents[_C] = de_Credentials(output[_C], context);
|
892
|
-
}
|
893
|
-
if (output[_FU] != null) {
|
894
|
-
contents[_FU] = de_FederatedUser(output[_FU], context);
|
895
|
-
}
|
896
|
-
if (output[_PPS] != null) {
|
897
|
-
contents[_PPS] = (0, smithy_client_1.strictParseInt32)(output[_PPS]);
|
898
|
-
}
|
899
|
-
return contents;
|
900
|
-
};
|
901
|
-
const de_GetSessionTokenResponse = (output, context) => {
|
902
|
-
const contents = {};
|
903
|
-
if (output[_C] != null) {
|
904
|
-
contents[_C] = de_Credentials(output[_C], context);
|
905
|
-
}
|
906
|
-
return contents;
|
907
|
-
};
|
908
|
-
const de_IDPCommunicationErrorException = (output, context) => {
|
909
|
-
const contents = {};
|
910
|
-
if (output[_m] != null) {
|
911
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
912
|
-
}
|
913
|
-
return contents;
|
914
|
-
};
|
915
|
-
const de_IDPRejectedClaimException = (output, context) => {
|
916
|
-
const contents = {};
|
917
|
-
if (output[_m] != null) {
|
918
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
919
|
-
}
|
920
|
-
return contents;
|
921
|
-
};
|
922
|
-
const de_InvalidAuthorizationMessageException = (output, context) => {
|
923
|
-
const contents = {};
|
924
|
-
if (output[_m] != null) {
|
925
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
926
|
-
}
|
927
|
-
return contents;
|
928
|
-
};
|
929
|
-
const de_InvalidIdentityTokenException = (output, context) => {
|
930
|
-
const contents = {};
|
931
|
-
if (output[_m] != null) {
|
932
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
933
|
-
}
|
934
|
-
return contents;
|
935
|
-
};
|
936
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
937
|
-
const contents = {};
|
938
|
-
if (output[_m] != null) {
|
939
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
940
|
-
}
|
941
|
-
return contents;
|
942
|
-
};
|
943
|
-
const de_PackedPolicyTooLargeException = (output, context) => {
|
944
|
-
const contents = {};
|
945
|
-
if (output[_m] != null) {
|
946
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
947
|
-
}
|
948
|
-
return contents;
|
949
|
-
};
|
950
|
-
const de_RegionDisabledException = (output, context) => {
|
951
|
-
const contents = {};
|
952
|
-
if (output[_m] != null) {
|
953
|
-
contents[_m] = (0, smithy_client_1.expectString)(output[_m]);
|
954
|
-
}
|
955
|
-
return contents;
|
956
|
-
};
|
957
|
-
const deserializeMetadata = (output) => ({
|
958
|
-
httpStatusCode: output.statusCode,
|
959
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
960
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
961
|
-
cfId: output.headers["x-amz-cf-id"],
|
962
|
-
});
|
963
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
964
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(STSServiceException_1.STSServiceException);
|
965
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
966
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
967
|
-
const contents = {
|
968
|
-
protocol,
|
969
|
-
hostname,
|
970
|
-
port,
|
971
|
-
method: "POST",
|
972
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
973
|
-
headers,
|
974
|
-
};
|
975
|
-
if (resolvedHostname !== undefined) {
|
976
|
-
contents.hostname = resolvedHostname;
|
977
|
-
}
|
978
|
-
if (body !== undefined) {
|
979
|
-
contents.body = body;
|
980
|
-
}
|
981
|
-
return new protocol_http_1.HttpRequest(contents);
|
982
|
-
};
|
983
|
-
const SHARED_HEADERS = {
|
984
|
-
"content-type": "application/x-www-form-urlencoded",
|
985
|
-
};
|
986
|
-
const _ = "2011-06-15";
|
987
|
-
const _A = "Action";
|
988
|
-
const _AKI = "AccessKeyId";
|
989
|
-
const _AR = "AssumeRole";
|
990
|
-
const _ARI = "AssumedRoleId";
|
991
|
-
const _ARU = "AssumedRoleUser";
|
992
|
-
const _ARWSAML = "AssumeRoleWithSAML";
|
993
|
-
const _ARWWI = "AssumeRoleWithWebIdentity";
|
994
|
-
const _Ac = "Account";
|
995
|
-
const _Ar = "Arn";
|
996
|
-
const _Au = "Audience";
|
997
|
-
const _C = "Credentials";
|
998
|
-
const _CA = "ContextAssertion";
|
999
|
-
const _DAM = "DecodeAuthorizationMessage";
|
1000
|
-
const _DM = "DecodedMessage";
|
1001
|
-
const _DS = "DurationSeconds";
|
1002
|
-
const _E = "Expiration";
|
1003
|
-
const _EI = "ExternalId";
|
1004
|
-
const _EM = "EncodedMessage";
|
1005
|
-
const _FU = "FederatedUser";
|
1006
|
-
const _FUI = "FederatedUserId";
|
1007
|
-
const _GAKI = "GetAccessKeyInfo";
|
1008
|
-
const _GCI = "GetCallerIdentity";
|
1009
|
-
const _GFT = "GetFederationToken";
|
1010
|
-
const _GST = "GetSessionToken";
|
1011
|
-
const _I = "Issuer";
|
1012
|
-
const _K = "Key";
|
1013
|
-
const _N = "Name";
|
1014
|
-
const _NQ = "NameQualifier";
|
1015
|
-
const _P = "Policy";
|
1016
|
-
const _PA = "PolicyArns";
|
1017
|
-
const _PAr = "PrincipalArn";
|
1018
|
-
const _PAro = "ProviderArn";
|
1019
|
-
const _PC = "ProvidedContexts";
|
1020
|
-
const _PI = "ProviderId";
|
1021
|
-
const _PPS = "PackedPolicySize";
|
1022
|
-
const _Pr = "Provider";
|
1023
|
-
const _RA = "RoleArn";
|
1024
|
-
const _RSN = "RoleSessionName";
|
1025
|
-
const _S = "Subject";
|
1026
|
-
const _SAK = "SecretAccessKey";
|
1027
|
-
const _SAMLA = "SAMLAssertion";
|
1028
|
-
const _SFWIT = "SubjectFromWebIdentityToken";
|
1029
|
-
const _SI = "SourceIdentity";
|
1030
|
-
const _SN = "SerialNumber";
|
1031
|
-
const _ST = "SubjectType";
|
1032
|
-
const _STe = "SessionToken";
|
1033
|
-
const _T = "Tags";
|
1034
|
-
const _TC = "TokenCode";
|
1035
|
-
const _TTK = "TransitiveTagKeys";
|
1036
|
-
const _UI = "UserId";
|
1037
|
-
const _V = "Version";
|
1038
|
-
const _Va = "Value";
|
1039
|
-
const _WIT = "WebIdentityToken";
|
1040
|
-
const _a = "arn";
|
1041
|
-
const _m = "message";
|
1042
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
1043
|
-
if (encoded.length) {
|
1044
|
-
const parser = new fast_xml_parser_1.XMLParser({
|
1045
|
-
attributeNamePrefix: "",
|
1046
|
-
htmlEntities: true,
|
1047
|
-
ignoreAttributes: false,
|
1048
|
-
ignoreDeclaration: true,
|
1049
|
-
parseTagValue: false,
|
1050
|
-
trimValues: false,
|
1051
|
-
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
1052
|
-
});
|
1053
|
-
parser.addEntity("#xD", "\r");
|
1054
|
-
parser.addEntity("#10", "\n");
|
1055
|
-
const parsedObj = parser.parse(encoded);
|
1056
|
-
const textNodeName = "#text";
|
1057
|
-
const key = Object.keys(parsedObj)[0];
|
1058
|
-
const parsedObjToReturn = parsedObj[key];
|
1059
|
-
if (parsedObjToReturn[textNodeName]) {
|
1060
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
1061
|
-
delete parsedObjToReturn[textNodeName];
|
1062
|
-
}
|
1063
|
-
return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn);
|
1064
|
-
}
|
1065
|
-
return {};
|
1066
|
-
});
|
1067
|
-
const parseErrorBody = async (errorBody, context) => {
|
1068
|
-
const value = await parseBody(errorBody, context);
|
1069
|
-
if (value.Error) {
|
1070
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
1071
|
-
}
|
1072
|
-
return value;
|
1073
|
-
};
|
1074
|
-
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
1075
|
-
.map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
|
1076
|
-
.join("&");
|
1077
|
-
const loadQueryErrorCode = (output, data) => {
|
1078
|
-
if (data.Error?.Code !== undefined) {
|
1079
|
-
return data.Error.Code;
|
1080
|
-
}
|
1081
|
-
if (output.statusCode == 404) {
|
1082
|
-
return "NotFound";
|
1083
|
-
}
|
1084
|
-
};
|
1
|
+
module.exports = require("../index.js");
|