@depup/aws-sdk__nested-clients 3.996.10-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/changes.json +42 -0
- package/cognito-identity.d.ts +7 -0
- package/cognito-identity.js +5 -0
- package/dist-cjs/index.js +2 -0
- package/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
- package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
- package/dist-cjs/submodules/cognito-identity/index.js +174 -0
- package/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
- package/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +38 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.js +53 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
- package/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
- package/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/signin/endpoint/ruleset.js +133 -0
- package/dist-cjs/submodules/signin/index.js +170 -0
- package/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
- package/dist-cjs/submodules/signin/runtimeConfig.js +53 -0
- package/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/signin/runtimeConfig.shared.js +49 -0
- package/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
- package/dist-cjs/submodules/sso/index.js +160 -0
- package/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
- package/dist-cjs/submodules/sso/models/errors.js +56 -0
- package/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
- package/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
- package/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/sso/runtimeConfig.shared.js +49 -0
- package/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
- package/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +56 -0
- package/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
- package/dist-cjs/submodules/sso-oidc/index.js +172 -0
- package/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.browser.js +38 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.js +53 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +49 -0
- package/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/dist-cjs/submodules/sts/STSClient.js +54 -0
- package/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +62 -0
- package/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +19 -0
- package/dist-cjs/submodules/sts/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
- package/dist-cjs/submodules/sts/index.js +202 -0
- package/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/dist-cjs/submodules/sts/runtimeConfig.browser.js +39 -0
- package/dist-cjs/submodules/sts/runtimeConfig.js +67 -0
- package/dist-cjs/submodules/sts/runtimeConfig.native.js +15 -0
- package/dist-cjs/submodules/sts/runtimeConfig.shared.js +50 -0
- package/dist-cjs/submodules/sts/runtimeExtensions.js +13 -0
- package/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/dist-es/index.js +1 -0
- package/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
- package/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
- package/dist-es/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
- package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +16 -0
- package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +16 -0
- package/dist-es/submodules/cognito-identity/commands/index.js +2 -0
- package/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
- package/dist-es/submodules/cognito-identity/extensionConfiguration.js +1 -0
- package/dist-es/submodules/cognito-identity/index.js +7 -0
- package/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
- package/dist-es/submodules/cognito-identity/models/errors.js +109 -0
- package/dist-es/submodules/cognito-identity/models/models_0.js +1 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +33 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.js +48 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
- package/dist-es/submodules/cognito-identity/runtimeExtensions.js +9 -0
- package/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
- package/dist-es/submodules/signin/Signin.js +9 -0
- package/dist-es/submodules/signin/SigninClient.js +50 -0
- package/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
- package/dist-es/submodules/signin/commands/index.js +1 -0
- package/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/signin/endpoint/ruleset.js +130 -0
- package/dist-es/submodules/signin/extensionConfiguration.js +1 -0
- package/dist-es/submodules/signin/index.js +8 -0
- package/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
- package/dist-es/submodules/signin/models/enums.js +8 -0
- package/dist-es/submodules/signin/models/errors.js +57 -0
- package/dist-es/submodules/signin/models/models_0.js +1 -0
- package/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
- package/dist-es/submodules/signin/runtimeConfig.js +48 -0
- package/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/signin/runtimeConfig.shared.js +45 -0
- package/dist-es/submodules/signin/runtimeExtensions.js +9 -0
- package/dist-es/submodules/signin/schemas/schemas_0.js +122 -0
- package/dist-es/submodules/sso/SSO.js +9 -0
- package/dist-es/submodules/sso/SSOClient.js +50 -0
- package/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +16 -0
- package/dist-es/submodules/sso/commands/index.js +1 -0
- package/dist-es/submodules/sso/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
- package/dist-es/submodules/sso/extensionConfiguration.js +1 -0
- package/dist-es/submodules/sso/index.js +7 -0
- package/dist-es/submodules/sso/models/SSOServiceException.js +8 -0
- package/dist-es/submodules/sso/models/errors.js +49 -0
- package/dist-es/submodules/sso/models/models_0.js +1 -0
- package/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
- package/dist-es/submodules/sso/runtimeConfig.js +48 -0
- package/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/sso/runtimeConfig.shared.js +45 -0
- package/dist-es/submodules/sso/runtimeExtensions.js +9 -0
- package/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
- package/dist-es/submodules/sso-oidc/SSOOIDC.js +9 -0
- package/dist-es/submodules/sso-oidc/SSOOIDCClient.js +50 -0
- package/dist-es/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +50 -0
- package/dist-es/submodules/sso-oidc/commands/CreateTokenCommand.js +16 -0
- package/dist-es/submodules/sso-oidc/commands/index.js +1 -0
- package/dist-es/submodules/sso-oidc/endpoint/EndpointParameters.js +13 -0
- package/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/sso-oidc/endpoint/ruleset.js +103 -0
- package/dist-es/submodules/sso-oidc/extensionConfiguration.js +1 -0
- package/dist-es/submodules/sso-oidc/index.js +8 -0
- package/dist-es/submodules/sso-oidc/models/SSOOIDCServiceException.js +8 -0
- package/dist-es/submodules/sso-oidc/models/enums.js +9 -0
- package/dist-es/submodules/sso-oidc/models/errors.js +181 -0
- package/dist-es/submodules/sso-oidc/models/models_0.js +1 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +33 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.js +48 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +45 -0
- package/dist-es/submodules/sso-oidc/runtimeExtensions.js +9 -0
- package/dist-es/submodules/sso-oidc/schemas/schemas_0.js +137 -0
- package/dist-es/submodules/sts/STS.js +11 -0
- package/dist-es/submodules/sts/STSClient.js +50 -0
- package/dist-es/submodules/sts/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +55 -0
- package/dist-es/submodules/sts/commands/AssumeRoleCommand.js +16 -0
- package/dist-es/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.js +16 -0
- package/dist-es/submodules/sts/commands/index.js +2 -0
- package/dist-es/submodules/sts/defaultRoleAssumers.js +22 -0
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +107 -0
- package/dist-es/submodules/sts/endpoint/EndpointParameters.js +15 -0
- package/dist-es/submodules/sts/endpoint/endpointResolver.js +14 -0
- package/dist-es/submodules/sts/endpoint/ruleset.js +142 -0
- package/dist-es/submodules/sts/extensionConfiguration.js +1 -0
- package/dist-es/submodules/sts/index.js +8 -0
- package/dist-es/submodules/sts/models/STSServiceException.js +8 -0
- package/dist-es/submodules/sts/models/errors.js +85 -0
- package/dist-es/submodules/sts/models/models_0.js +1 -0
- package/dist-es/submodules/sts/runtimeConfig.browser.js +34 -0
- package/dist-es/submodules/sts/runtimeConfig.js +62 -0
- package/dist-es/submodules/sts/runtimeConfig.native.js +11 -0
- package/dist-es/submodules/sts/runtimeConfig.shared.js +46 -0
- package/dist-es/submodules/sts/runtimeExtensions.js +9 -0
- package/dist-es/submodules/sts/schemas/schemas_0.js +192 -0
- package/dist-types/index.d.ts +7 -0
- package/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
- package/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
- package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
- package/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/dist-types/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/submodules/cognito-identity/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/cognito-identity/index.d.ts +29 -0
- package/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
- package/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
- package/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
- package/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
- package/dist-types/submodules/signin/Signin.d.ts +18 -0
- package/dist-types/submodules/signin/SigninClient.d.ts +190 -0
- package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
- package/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/signin/index.d.ts +17 -0
- package/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
- package/dist-types/submodules/signin/models/enums.d.ts +34 -0
- package/dist-types/submodules/signin/models/errors.d.ts +102 -0
- package/dist-types/submodules/signin/models/models_0.d.ts +142 -0
- package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +63 -0
- package/dist-types/submodules/signin/runtimeConfig.d.ts +63 -0
- package/dist-types/submodules/signin/runtimeConfig.native.d.ts +62 -0
- package/dist-types/submodules/signin/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/signin/schemas/schemas_0.d.ts +19 -0
- package/dist-types/submodules/sso/SSO.d.ts +32 -0
- package/dist-types/submodules/sso/SSOClient.d.ts +198 -0
- package/dist-types/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +97 -0
- package/dist-types/submodules/sso/commands/index.d.ts +1 -0
- package/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/sso/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/sso/index.d.ts +30 -0
- package/dist-types/submodules/sso/models/SSOServiceException.d.ts +14 -0
- package/dist-types/submodules/sso/models/errors.d.ts +53 -0
- package/dist-types/submodules/sso/models/models_0.d.ts +61 -0
- package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +62 -0
- package/dist-types/submodules/sso/runtimeConfig.d.ts +62 -0
- package/dist-types/submodules/sso/runtimeConfig.native.d.ts +61 -0
- package/dist-types/submodules/sso/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/sso/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/sso/schemas/schemas_0.d.ts +17 -0
- package/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +55 -0
- package/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +221 -0
- package/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +176 -0
- package/dist-types/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/submodules/sso-oidc/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/sso-oidc/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/sso-oidc/index.d.ts +54 -0
- package/dist-types/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +14 -0
- package/dist-types/submodules/sso-oidc/models/enums.d.ts +25 -0
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +279 -0
- package/dist-types/submodules/sso-oidc/models/models_0.d.ts +109 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +62 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +62 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +61 -0
- package/dist-types/submodules/sso-oidc/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/sso-oidc/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +23 -0
- package/dist-types/submodules/sts/STS.d.ts +27 -0
- package/dist-types/submodules/sts/STSClient.d.ts +193 -0
- package/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +86 -0
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +270 -0
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +290 -0
- package/dist-types/submodules/sts/commands/index.d.ts +2 -0
- package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +23 -0
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +43 -0
- package/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +56 -0
- package/dist-types/submodules/sts/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/submodules/sts/endpoint/ruleset.d.ts +2 -0
- package/dist-types/submodules/sts/extensionConfiguration.d.ts +9 -0
- package/dist-types/submodules/sts/index.d.ts +19 -0
- package/dist-types/submodules/sts/models/STSServiceException.d.ts +14 -0
- package/dist-types/submodules/sts/models/errors.d.ts +107 -0
- package/dist-types/submodules/sts/models/models_0.d.ts +588 -0
- package/dist-types/submodules/sts/runtimeConfig.browser.d.ts +64 -0
- package/dist-types/submodules/sts/runtimeConfig.d.ts +62 -0
- package/dist-types/submodules/sts/runtimeConfig.native.d.ts +63 -0
- package/dist-types/submodules/sts/runtimeConfig.shared.d.ts +38 -0
- package/dist-types/submodules/sts/runtimeExtensions.d.ts +17 -0
- package/dist-types/submodules/sts/schemas/schemas_0.d.ts +27 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
- package/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
- package/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
- package/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
- package/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
- package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +125 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/index.d.ts +11 -0
- package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
- package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
- package/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +125 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +118 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +129 -0
- package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +58 -0
- package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +18 -0
- package/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
- package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +117 -0
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +46 -0
- package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso/index.d.ts +10 -0
- package/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +30 -0
- package/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +120 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +115 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +124 -0
- package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +58 -0
- package/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +16 -0
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +22 -0
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +120 -0
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/submodules/sso-oidc/commands/CreateTokenCommand.d.ts +43 -0
- package/dist-types/ts3.4/submodules/sso-oidc/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sso-oidc/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso-oidc/index.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/SSOOIDCServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/enums.d.ts +13 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/errors.d.ts +105 -0
- package/dist-types/ts3.4/submodules/sso-oidc/models/models_0.d.ts +18 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +120 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +115 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +124 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.shared.d.ts +58 -0
- package/dist-types/ts3.4/submodules/sso-oidc/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +22 -0
- package/dist-types/ts3.4/submodules/sts/STS.d.ts +39 -0
- package/dist-types/ts3.4/submodules/sts/STSClient.d.ts +130 -0
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +57 -0
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleCommand.d.ts +47 -0
- package/dist-types/ts3.4/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +51 -0
- package/dist-types/ts3.4/submodules/sts/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sts/defaultRoleAssumers.d.ts +19 -0
- package/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +33 -0
- package/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +57 -0
- package/dist-types/ts3.4/submodules/sts/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/submodules/sts/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sts/index.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sts/models/STSServiceException.d.ts +9 -0
- package/dist-types/ts3.4/submodules/sts/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +59 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +129 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +111 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +133 -0
- package/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +58 -0
- package/dist-types/ts3.4/submodules/sts/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +26 -0
- package/package.json +200 -0
- package/signin.d.ts +7 -0
- package/signin.js +5 -0
- package/sso-oidc.d.ts +7 -0
- package/sso-oidc.js +5 -0
- package/sso.d.ts +7 -0
- package/sso.js +5 -0
- package/sts.d.ts +7 -0
- package/sts.js +5 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateTokenRequest, CreateTokenResponse } from "../models/models_0";
|
|
4
|
+
import type { SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateTokenCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateTokenCommandInput extends CreateTokenRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateTokenCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateTokenCommandOutput extends CreateTokenResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateTokenCommand_base: {
|
|
25
|
+
new (input: CreateTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTokenCommandInput, CreateTokenCommandOutput, SSOOIDCClientResolvedConfig, CreateTokenCommandInput, CreateTokenCommandOutput>;
|
|
26
|
+
new (input: CreateTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTokenCommandInput, CreateTokenCommandOutput, SSOOIDCClientResolvedConfig, CreateTokenCommandInput, CreateTokenCommandOutput>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates and returns access and refresh tokens for clients that are authenticated using
|
|
31
|
+
* client secrets. The access token can be used to fetch short-lived credentials for the assigned
|
|
32
|
+
* AWS accounts or to access application APIs using <code>bearer</code> authentication.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { SSOOIDCClient, CreateTokenCommand } from "@aws-sdk/client-sso-oidc"; // ES Modules import
|
|
37
|
+
* // const { SSOOIDCClient, CreateTokenCommand } = require("@aws-sdk/client-sso-oidc"); // CommonJS import
|
|
38
|
+
* // import type { SSOOIDCClientConfig } from "@aws-sdk/client-sso-oidc";
|
|
39
|
+
* const config = {}; // type is SSOOIDCClientConfig
|
|
40
|
+
* const client = new SSOOIDCClient(config);
|
|
41
|
+
* const input = { // CreateTokenRequest
|
|
42
|
+
* clientId: "STRING_VALUE", // required
|
|
43
|
+
* clientSecret: "STRING_VALUE", // required
|
|
44
|
+
* grantType: "STRING_VALUE", // required
|
|
45
|
+
* deviceCode: "STRING_VALUE",
|
|
46
|
+
* code: "STRING_VALUE",
|
|
47
|
+
* refreshToken: "STRING_VALUE",
|
|
48
|
+
* scope: [ // Scopes
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* redirectUri: "STRING_VALUE",
|
|
52
|
+
* codeVerifier: "STRING_VALUE",
|
|
53
|
+
* };
|
|
54
|
+
* const command = new CreateTokenCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // CreateTokenResponse
|
|
57
|
+
* // accessToken: "STRING_VALUE",
|
|
58
|
+
* // tokenType: "STRING_VALUE",
|
|
59
|
+
* // expiresIn: Number("int"),
|
|
60
|
+
* // refreshToken: "STRING_VALUE",
|
|
61
|
+
* // idToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param CreateTokenCommandInput - {@link CreateTokenCommandInput}
|
|
67
|
+
* @returns {@link CreateTokenCommandOutput}
|
|
68
|
+
* @see {@link CreateTokenCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link CreateTokenCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link SSOOIDCClientResolvedConfig | config} for SSOOIDCClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AuthorizationPendingException} (client fault)
|
|
76
|
+
* <p>Indicates that a request to authorize a client with an access user session token is
|
|
77
|
+
* pending.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ExpiredTokenException} (client fault)
|
|
80
|
+
* <p>Indicates that the token issued by the service is expired and is no longer valid.</p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link InternalServerException} (server fault)
|
|
83
|
+
* <p>Indicates that an error from the service occurred while trying to process a
|
|
84
|
+
* request.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link InvalidClientException} (client fault)
|
|
87
|
+
* <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
|
|
88
|
+
* invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
|
|
89
|
+
* an expired <code>clientSecret</code>.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InvalidGrantException} (client fault)
|
|
92
|
+
* <p>Indicates that a request contains an invalid grant. This can occur if a client makes a
|
|
93
|
+
* <a>CreateToken</a> request with an invalid grant type.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
96
|
+
* <p>Indicates that something is wrong with the input to the request. For example, a required
|
|
97
|
+
* parameter might be missing or out of range.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link InvalidScopeException} (client fault)
|
|
100
|
+
* <p>Indicates that the scope provided in the request is invalid.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link SlowDownException} (client fault)
|
|
103
|
+
* <p>Indicates that the client is making the request too frequently and is more than the
|
|
104
|
+
* service can handle. </p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link UnauthorizedClientException} (client fault)
|
|
107
|
+
* <p>Indicates that the client is not currently authorized to make the request. This can happen
|
|
108
|
+
* when a <code>clientId</code> is not issued for a public client.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link UnsupportedGrantTypeException} (client fault)
|
|
111
|
+
* <p>Indicates that the grant type in the request is not supported by the service.</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link SSOOIDCServiceException}
|
|
114
|
+
* <p>Base exception class for all service exceptions from SSOOIDC service.</p>
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @example Call OAuth/OIDC /token endpoint for Device Code grant with Secret authentication
|
|
118
|
+
* ```javascript
|
|
119
|
+
* //
|
|
120
|
+
* const input = {
|
|
121
|
+
* clientId: "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
|
|
122
|
+
* clientSecret: "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
|
|
123
|
+
* deviceCode: "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE",
|
|
124
|
+
* grantType: "urn:ietf:params:oauth:grant-type:device-code"
|
|
125
|
+
* };
|
|
126
|
+
* const command = new CreateTokenCommand(input);
|
|
127
|
+
* const response = await client.send(command);
|
|
128
|
+
* /* response is
|
|
129
|
+
* {
|
|
130
|
+
* accessToken: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
|
131
|
+
* expiresIn: 1579729529,
|
|
132
|
+
* refreshToken: "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
|
|
133
|
+
* tokenType: "Bearer"
|
|
134
|
+
* }
|
|
135
|
+
* *\/
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* @example Call OAuth/OIDC /token endpoint for Refresh Token grant with Secret authentication
|
|
139
|
+
* ```javascript
|
|
140
|
+
* //
|
|
141
|
+
* const input = {
|
|
142
|
+
* clientId: "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
|
|
143
|
+
* clientSecret: "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
|
|
144
|
+
* grantType: "refresh_token",
|
|
145
|
+
* refreshToken: "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
|
|
146
|
+
* scope: [
|
|
147
|
+
* "codewhisperer:completions"
|
|
148
|
+
* ]
|
|
149
|
+
* };
|
|
150
|
+
* const command = new CreateTokenCommand(input);
|
|
151
|
+
* const response = await client.send(command);
|
|
152
|
+
* /* response is
|
|
153
|
+
* {
|
|
154
|
+
* accessToken: "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
|
|
155
|
+
* expiresIn: 1579729529,
|
|
156
|
+
* refreshToken: "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
|
|
157
|
+
* tokenType: "Bearer"
|
|
158
|
+
* }
|
|
159
|
+
* *\/
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
export declare class CreateTokenCommand extends CreateTokenCommand_base {
|
|
165
|
+
/** @internal type navigation helper, not in runtime. */
|
|
166
|
+
protected static __types: {
|
|
167
|
+
api: {
|
|
168
|
+
input: CreateTokenRequest;
|
|
169
|
+
output: CreateTokenResponse;
|
|
170
|
+
};
|
|
171
|
+
sdk: {
|
|
172
|
+
input: CreateTokenCommandInput;
|
|
173
|
+
output: CreateTokenCommandOutput;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CreateTokenCommand";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const commonParams: {
|
|
25
|
+
readonly UseFIPS: {
|
|
26
|
+
readonly type: "builtInParams";
|
|
27
|
+
readonly name: "useFipsEndpoint";
|
|
28
|
+
};
|
|
29
|
+
readonly Endpoint: {
|
|
30
|
+
readonly type: "builtInParams";
|
|
31
|
+
readonly name: "endpoint";
|
|
32
|
+
};
|
|
33
|
+
readonly Region: {
|
|
34
|
+
readonly type: "builtInParams";
|
|
35
|
+
readonly name: "region";
|
|
36
|
+
};
|
|
37
|
+
readonly UseDualStack: {
|
|
38
|
+
readonly type: "builtInParams";
|
|
39
|
+
readonly name: "useDualstackEndpoint";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
46
|
+
Region?: string | undefined;
|
|
47
|
+
UseDualStack?: boolean | undefined;
|
|
48
|
+
UseFIPS?: boolean | undefined;
|
|
49
|
+
Endpoint?: string | undefined;
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EndpointV2, Logger } from "@smithy/types";
|
|
2
|
+
import type { EndpointParameters } from "./EndpointParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
|
|
7
|
+
logger?: Logger;
|
|
8
|
+
}) => EndpointV2;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import type { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface SSOOIDCExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a
|
|
3
|
+
* native application) to register with IAM Identity Center. The service also enables the client to fetch the
|
|
4
|
+
* user’s access token upon successful authentication and authorization with IAM Identity Center.</p>
|
|
5
|
+
* <p>
|
|
6
|
+
* <b>API namespaces</b>
|
|
7
|
+
* </p>
|
|
8
|
+
* <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces. IAM Identity Center
|
|
9
|
+
* OpenID Connect uses the <code>sso-oauth</code> namespace.</p>
|
|
10
|
+
* <p>
|
|
11
|
+
* <b>Considerations for using this guide</b>
|
|
12
|
+
* </p>
|
|
13
|
+
* <p>Before you begin using this guide, we recommend that you first review the following
|
|
14
|
+
* important information about how the IAM Identity Center OIDC service works.</p>
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li>
|
|
17
|
+
* <p>The IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0 Device
|
|
18
|
+
* Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
|
|
19
|
+
* sign-on authentication with the CLI. </p>
|
|
20
|
+
* </li>
|
|
21
|
+
* <li>
|
|
22
|
+
* <p>With older versions of the CLI, the service only emits OIDC access tokens, so to
|
|
23
|
+
* obtain a new token, users must explicitly re-authenticate. To access the OIDC flow that
|
|
24
|
+
* supports token refresh and doesn’t require re-authentication, update to the latest CLI
|
|
25
|
+
* version (1.27.10 for CLI V1 and 2.9.0 for CLI V2) with support for OIDC token refresh
|
|
26
|
+
* and configurable IAM Identity Center session durations. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/configure-user-session.html">Configure Amazon Web Services access portal session duration </a>. </p>
|
|
27
|
+
* </li>
|
|
28
|
+
* <li>
|
|
29
|
+
* <p>The access tokens provided by this service grant access to all Amazon Web Services account
|
|
30
|
+
* entitlements assigned to an IAM Identity Center user, not just a particular application.</p>
|
|
31
|
+
* </li>
|
|
32
|
+
* <li>
|
|
33
|
+
* <p>The documentation in this guide does not describe the mechanism to convert the access
|
|
34
|
+
* token into Amazon Web Services Auth (“sigv4”) credentials for use with IAM-protected Amazon Web Services service
|
|
35
|
+
* endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>IAM Identity Center Portal API Reference
|
|
36
|
+
* Guide</i>.</p>
|
|
37
|
+
* </li>
|
|
38
|
+
* </ul>
|
|
39
|
+
* <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
|
|
40
|
+
* IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
|
|
41
|
+
*
|
|
42
|
+
* @packageDocumentation
|
|
43
|
+
*/
|
|
44
|
+
export * from "./SSOOIDCClient";
|
|
45
|
+
export * from "./SSOOIDC";
|
|
46
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
47
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
48
|
+
export type { SSOOIDCExtensionConfiguration } from "./extensionConfiguration";
|
|
49
|
+
export * from "./commands";
|
|
50
|
+
export * from "./schemas/schemas_0";
|
|
51
|
+
export * from "./models/enums";
|
|
52
|
+
export * from "./models/errors";
|
|
53
|
+
export * from "./models/models_0";
|
|
54
|
+
export { SSOOIDCServiceException } from "./models/SSOOIDCServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from SSOOIDC service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SSOOIDCServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const AccessDeniedExceptionReason: {
|
|
6
|
+
readonly KMS_ACCESS_DENIED: "KMS_AccessDeniedException";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export type AccessDeniedExceptionReason = (typeof AccessDeniedExceptionReason)[keyof typeof AccessDeniedExceptionReason];
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
* @enum
|
|
15
|
+
*/
|
|
16
|
+
export declare const InvalidRequestExceptionReason: {
|
|
17
|
+
readonly KMS_DISABLED_KEY: "KMS_DisabledException";
|
|
18
|
+
readonly KMS_INVALID_KEY_USAGE: "KMS_InvalidKeyUsageException";
|
|
19
|
+
readonly KMS_INVALID_STATE: "KMS_InvalidStateException";
|
|
20
|
+
readonly KMS_KEY_NOT_FOUND: "KMS_NotFoundException";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type InvalidRequestExceptionReason = (typeof InvalidRequestExceptionReason)[keyof typeof InvalidRequestExceptionReason];
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import type { AccessDeniedExceptionReason, InvalidRequestExceptionReason } from "./enums";
|
|
3
|
+
import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
|
|
4
|
+
/**
|
|
5
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
9
|
+
readonly name: "AccessDeniedException";
|
|
10
|
+
readonly $fault: "client";
|
|
11
|
+
/**
|
|
12
|
+
* <p>Single error code. For this exception the value will be <code>access_denied</code>.</p>
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
error?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* <p>A string that uniquely identifies a reason for the error.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
reason?: AccessDeniedExceptionReason | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
23
|
+
* in understanding the error that occurred.</p>
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
error_description?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* <p>Indicates that a request to authorize a client with an access user session token is
|
|
34
|
+
* pending.</p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare class AuthorizationPendingException extends __BaseException {
|
|
38
|
+
readonly name: "AuthorizationPendingException";
|
|
39
|
+
readonly $fault: "client";
|
|
40
|
+
/**
|
|
41
|
+
* <p>Single error code. For this exception the value will be
|
|
42
|
+
* <code>authorization_pending</code>.</p>
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
error?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
48
|
+
* in understanding the error that occurred.</p>
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
error_description?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
constructor(opts: __ExceptionOptionType<AuthorizationPendingException, __BaseException>);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* <p>Indicates that the token issued by the service is expired and is no longer valid.</p>
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare class ExpiredTokenException extends __BaseException {
|
|
62
|
+
readonly name: "ExpiredTokenException";
|
|
63
|
+
readonly $fault: "client";
|
|
64
|
+
/**
|
|
65
|
+
* <p>Single error code. For this exception the value will be <code>expired_token</code>.</p>
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
error?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
71
|
+
* in understanding the error that occurred.</p>
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
error_description?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* <p>Indicates that an error from the service occurred while trying to process a
|
|
82
|
+
* request.</p>
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class InternalServerException extends __BaseException {
|
|
86
|
+
readonly name: "InternalServerException";
|
|
87
|
+
readonly $fault: "server";
|
|
88
|
+
/**
|
|
89
|
+
* <p>Single error code. For this exception the value will be <code>server_error</code>.</p>
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
error?: string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
95
|
+
* in understanding the error that occurred.</p>
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
error_description?: string | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
|
|
106
|
+
* invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
|
|
107
|
+
* an expired <code>clientSecret</code>.</p>
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare class InvalidClientException extends __BaseException {
|
|
111
|
+
readonly name: "InvalidClientException";
|
|
112
|
+
readonly $fault: "client";
|
|
113
|
+
/**
|
|
114
|
+
* <p>Single error code. For this exception the value will be
|
|
115
|
+
* <code>invalid_client</code>.</p>
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
error?: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
121
|
+
* in understanding the error that occurred.</p>
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
error_description?: string | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
constructor(opts: __ExceptionOptionType<InvalidClientException, __BaseException>);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* <p>Indicates that a request contains an invalid grant. This can occur if a client makes a
|
|
132
|
+
* <a>CreateToken</a> request with an invalid grant type.</p>
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export declare class InvalidGrantException extends __BaseException {
|
|
136
|
+
readonly name: "InvalidGrantException";
|
|
137
|
+
readonly $fault: "client";
|
|
138
|
+
/**
|
|
139
|
+
* <p>Single error code. For this exception the value will be <code>invalid_grant</code>.</p>
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
error?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
145
|
+
* in understanding the error that occurred.</p>
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
error_description?: string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
constructor(opts: __ExceptionOptionType<InvalidGrantException, __BaseException>);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* <p>Indicates that something is wrong with the input to the request. For example, a required
|
|
156
|
+
* parameter might be missing or out of range.</p>
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
160
|
+
readonly name: "InvalidRequestException";
|
|
161
|
+
readonly $fault: "client";
|
|
162
|
+
/**
|
|
163
|
+
* <p>Single error code. For this exception the value will be
|
|
164
|
+
* <code>invalid_request</code>.</p>
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
error?: string | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* <p>A string that uniquely identifies a reason for the error.</p>
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
reason?: InvalidRequestExceptionReason | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
175
|
+
* in understanding the error that occurred.</p>
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
error_description?: string | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* <p>Indicates that the scope provided in the request is invalid.</p>
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export declare class InvalidScopeException extends __BaseException {
|
|
189
|
+
readonly name: "InvalidScopeException";
|
|
190
|
+
readonly $fault: "client";
|
|
191
|
+
/**
|
|
192
|
+
* <p>Single error code. For this exception the value will be <code>invalid_scope</code>.</p>
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
error?: string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
198
|
+
* in understanding the error that occurred.</p>
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
error_description?: string | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
constructor(opts: __ExceptionOptionType<InvalidScopeException, __BaseException>);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* <p>Indicates that the client is making the request too frequently and is more than the
|
|
209
|
+
* service can handle. </p>
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
export declare class SlowDownException extends __BaseException {
|
|
213
|
+
readonly name: "SlowDownException";
|
|
214
|
+
readonly $fault: "client";
|
|
215
|
+
/**
|
|
216
|
+
* <p>Single error code. For this exception the value will be <code>slow_down</code>.</p>
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
error?: string | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
222
|
+
* in understanding the error that occurred.</p>
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
error_description?: string | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
229
|
+
constructor(opts: __ExceptionOptionType<SlowDownException, __BaseException>);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* <p>Indicates that the client is not currently authorized to make the request. This can happen
|
|
233
|
+
* when a <code>clientId</code> is not issued for a public client.</p>
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
export declare class UnauthorizedClientException extends __BaseException {
|
|
237
|
+
readonly name: "UnauthorizedClientException";
|
|
238
|
+
readonly $fault: "client";
|
|
239
|
+
/**
|
|
240
|
+
* <p>Single error code. For this exception the value will be
|
|
241
|
+
* <code>unauthorized_client</code>.</p>
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
error?: string | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
247
|
+
* in understanding the error that occurred.</p>
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
error_description?: string | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
254
|
+
constructor(opts: __ExceptionOptionType<UnauthorizedClientException, __BaseException>);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* <p>Indicates that the grant type in the request is not supported by the service.</p>
|
|
258
|
+
* @public
|
|
259
|
+
*/
|
|
260
|
+
export declare class UnsupportedGrantTypeException extends __BaseException {
|
|
261
|
+
readonly name: "UnsupportedGrantTypeException";
|
|
262
|
+
readonly $fault: "client";
|
|
263
|
+
/**
|
|
264
|
+
* <p>Single error code. For this exception the value will be
|
|
265
|
+
* <code>unsupported_grant_type</code>.</p>
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
268
|
+
error?: string | undefined;
|
|
269
|
+
/**
|
|
270
|
+
* <p>Human-readable text providing additional information, used to assist the client developer
|
|
271
|
+
* in understanding the error that occurred.</p>
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
error_description?: string | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
constructor(opts: __ExceptionOptionType<UnsupportedGrantTypeException, __BaseException>);
|
|
279
|
+
}
|