@aws-sdk/nested-clients 3.995.0 → 3.996.1
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/cognito-identity.d.ts +7 -0
- package/cognito-identity.js +5 -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/endpoint/ruleset.js +128 -2
- package/dist-cjs/submodules/signin/index.js +17 -18
- 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/endpoint/ruleset.js +101 -2
- package/dist-cjs/submodules/sso-oidc/index.js +17 -18
- package/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
- package/dist-cjs/submodules/sts/index.js +23 -17
- 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 +1 -1
- package/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
- 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/endpoint/ruleset.js +101 -2
- package/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
- 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 +1 -1
- package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
- package/dist-types/submodules/signin/models/errors.d.ts +1 -1
- 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/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
- package/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
- 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/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- 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/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/package.json +54 -36
- package/sso.d.ts +7 -0
- package/sso.js +5 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
+
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
+
cacheMiddleware?: boolean;
|
|
10
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
|
|
11
|
+
protocolSettings: {
|
|
12
|
+
defaultNamespace?: string;
|
|
13
|
+
[setting: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
apiVersion: string;
|
|
16
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
17
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
19
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
20
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
22
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
23
|
+
disableHostPrefix: boolean;
|
|
24
|
+
serviceId: string;
|
|
25
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
26
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
28
|
+
profile?: string;
|
|
29
|
+
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
30
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
31
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
32
|
+
logger: import("@smithy/types").Logger;
|
|
33
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
34
|
+
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
35
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
36
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
37
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
38
|
+
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
39
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
40
|
+
logger?: import("@smithy/types").Logger;
|
|
41
|
+
}) => import("@smithy/types").EndpointV2;
|
|
42
|
+
tls?: boolean;
|
|
43
|
+
serviceConfiguredEndpoint?: never;
|
|
44
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
46
|
+
schemeId: string;
|
|
47
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
48
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
49
|
+
} | {
|
|
50
|
+
schemeId: string;
|
|
51
|
+
identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
52
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
53
|
+
})[];
|
|
54
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
|
|
55
|
+
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
56
|
+
signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
|
|
57
|
+
signingEscapePath?: boolean;
|
|
58
|
+
systemClockOffset?: number;
|
|
59
|
+
signingRegion?: string;
|
|
60
|
+
signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
|
|
61
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
4
|
+
import type { IdentityProviderConfig } from "@smithy/types";
|
|
5
|
+
import type { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
|
|
10
|
+
apiVersion: string;
|
|
11
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
12
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
13
|
+
disableHostPrefix: boolean;
|
|
14
|
+
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
15
|
+
logger?: import("@smithy/types").Logger;
|
|
16
|
+
}) => import("@smithy/types").EndpointV2;
|
|
17
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
18
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
|
|
19
|
+
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
|
|
20
|
+
schemeId: string;
|
|
21
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
22
|
+
signer: AwsSdkSigV4Signer;
|
|
23
|
+
} | {
|
|
24
|
+
schemeId: string;
|
|
25
|
+
identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
|
|
26
|
+
signer: NoAuthSigner;
|
|
27
|
+
})[];
|
|
28
|
+
logger: import("@smithy/types").Logger;
|
|
29
|
+
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof AwsJson1_1Protocol;
|
|
30
|
+
protocolSettings: {
|
|
31
|
+
[setting: string]: unknown;
|
|
32
|
+
defaultNamespace?: string;
|
|
33
|
+
};
|
|
34
|
+
serviceId: string;
|
|
35
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
36
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
37
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configure(extensionConfiguration: CognitoIdentityExtensionConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var CognitoIdentityServiceException$: StaticErrorSchema;
|
|
4
|
+
export declare var ExternalServiceException$: StaticErrorSchema;
|
|
5
|
+
export declare var InternalErrorException$: StaticErrorSchema;
|
|
6
|
+
export declare var InvalidIdentityPoolConfigurationException$: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidParameterException$: StaticErrorSchema;
|
|
8
|
+
export declare var LimitExceededException$: StaticErrorSchema;
|
|
9
|
+
export declare var NotAuthorizedException$: StaticErrorSchema;
|
|
10
|
+
export declare var ResourceConflictException$: StaticErrorSchema;
|
|
11
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
12
|
+
export declare var TooManyRequestsException$: StaticErrorSchema;
|
|
13
|
+
/**
|
|
14
|
+
* TypeRegistry instances containing modeled errors.
|
|
15
|
+
* @internal
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
19
|
+
export declare var Credentials$: StaticStructureSchema;
|
|
20
|
+
export declare var GetCredentialsForIdentityInput$: StaticStructureSchema;
|
|
21
|
+
export declare var GetCredentialsForIdentityResponse$: StaticStructureSchema;
|
|
22
|
+
export declare var GetIdInput$: StaticStructureSchema;
|
|
23
|
+
export declare var GetIdResponse$: StaticStructureSchema;
|
|
24
|
+
export declare var GetCredentialsForIdentity$: StaticOperationSchema;
|
|
25
|
+
export declare var GetId$: StaticOperationSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
-
import { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
2
|
+
import type { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
3
3
|
import { SigninClient } from "./SigninClient";
|
|
4
4
|
export interface Signin {
|
|
5
5
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
|
+
import { type HttpAuthScheme } from "@smithy/types";
|
|
2
3
|
import type { SigninHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RuleSetObject } from "@smithy/types";
|
|
1
|
+
import type { RuleSetObject } from "@smithy/types";
|
|
2
2
|
export declare const ruleSet: RuleSetObject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { OAuth2ErrorCode } from "./enums";
|
|
2
|
+
import type { OAuth2ErrorCode } from "./enums";
|
|
3
3
|
import { SigninServiceException as __BaseException } from "./SigninServiceException";
|
|
4
4
|
/**
|
|
5
5
|
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import type { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
3
|
+
import { SSOClient } from "./SSOClient";
|
|
4
|
+
export interface SSO {
|
|
5
|
+
/**
|
|
6
|
+
* @see {@link GetRoleCredentialsCommand}
|
|
7
|
+
*/
|
|
8
|
+
getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetRoleCredentialsCommandOutput>;
|
|
9
|
+
getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
10
|
+
getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
|
|
14
|
+
* IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles
|
|
15
|
+
* assigned to them and get federated into the application.</p>
|
|
16
|
+
* <note>
|
|
17
|
+
* <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and
|
|
18
|
+
* <code>identitystore</code> API namespaces will continue to retain their original name for
|
|
19
|
+
* backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM Identity Center rename</a>.</p>
|
|
20
|
+
* </note>
|
|
21
|
+
* <p>This reference guide describes the IAM Identity Center Portal operations that you can call
|
|
22
|
+
* programatically and includes detailed information on data types and errors.</p>
|
|
23
|
+
* <note>
|
|
24
|
+
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
|
|
25
|
+
* languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
|
|
26
|
+
* convenient way to create programmatic access to IAM Identity Center and other AWS services. For more
|
|
27
|
+
* information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
|
|
28
|
+
* </note>
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare class SSO extends SSOClient implements SSO {
|
|
32
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
8
|
+
import type { Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser } from "@smithy/types";
|
|
10
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
11
|
+
import type { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
12
|
+
import type { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
13
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
14
|
+
export { __Client };
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export type ServiceInputTypes = GetRoleCredentialsCommandInput;
|
|
19
|
+
/**
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export type ServiceOutputTypes = GetRoleCredentialsCommandOutput;
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
27
|
+
/**
|
|
28
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
29
|
+
*/
|
|
30
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
31
|
+
/**
|
|
32
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
33
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
37
|
+
/**
|
|
38
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
urlParser?: __UrlParser;
|
|
42
|
+
/**
|
|
43
|
+
* A function that can calculate the length of a request body.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
47
|
+
/**
|
|
48
|
+
* A function that converts a stream into an array of bytes.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
streamCollector?: __StreamCollector;
|
|
52
|
+
/**
|
|
53
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
base64Decoder?: __Decoder;
|
|
57
|
+
/**
|
|
58
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
base64Encoder?: __Encoder;
|
|
62
|
+
/**
|
|
63
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
utf8Decoder?: __Decoder;
|
|
67
|
+
/**
|
|
68
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
utf8Encoder?: __Encoder;
|
|
72
|
+
/**
|
|
73
|
+
* The runtime environment.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
runtime?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
79
|
+
* trait of an operation.
|
|
80
|
+
*/
|
|
81
|
+
disableHostPrefix?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Unique service identifier.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
serviceId?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
89
|
+
*/
|
|
90
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Enables FIPS compatible endpoints.
|
|
93
|
+
*/
|
|
94
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* The AWS region to which this client will send requests
|
|
97
|
+
*/
|
|
98
|
+
region?: string | __Provider<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Setting a client profile is similar to setting a value for the
|
|
101
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
102
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
103
|
+
*
|
|
104
|
+
* When set, and only for environments where an AWS configuration
|
|
105
|
+
* file exists, fields configurable by this file will be retrieved
|
|
106
|
+
* from the specified profile within that file.
|
|
107
|
+
* Conflicting code configuration and environment variables will
|
|
108
|
+
* still have higher priority.
|
|
109
|
+
*
|
|
110
|
+
* For client credential resolution that involves checking the AWS
|
|
111
|
+
* configuration file, the client's profile (this value) will be
|
|
112
|
+
* used unless a different profile is set in the credential
|
|
113
|
+
* provider options.
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
profile?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
122
|
+
/**
|
|
123
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
124
|
+
*/
|
|
125
|
+
maxAttempts?: number | __Provider<number>;
|
|
126
|
+
/**
|
|
127
|
+
* Specifies which retry algorithm to use.
|
|
128
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
retryMode?: string | __Provider<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Optional logger for logging debug/info/warn/error.
|
|
134
|
+
*/
|
|
135
|
+
logger?: __Logger;
|
|
136
|
+
/**
|
|
137
|
+
* Optional extensions
|
|
138
|
+
*/
|
|
139
|
+
extensions?: RuntimeExtension[];
|
|
140
|
+
/**
|
|
141
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
142
|
+
*/
|
|
143
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
*
|
|
152
|
+
* The configuration interface of SSOClient class constructor that set the region, credentials and other options.
|
|
153
|
+
*/
|
|
154
|
+
export interface SSOClientConfig extends SSOClientConfigType {
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
160
|
+
/**
|
|
161
|
+
* @public
|
|
162
|
+
*
|
|
163
|
+
* The resolved configuration interface of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
|
|
164
|
+
*/
|
|
165
|
+
export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
|
|
169
|
+
* IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles
|
|
170
|
+
* assigned to them and get federated into the application.</p>
|
|
171
|
+
* <note>
|
|
172
|
+
* <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and
|
|
173
|
+
* <code>identitystore</code> API namespaces will continue to retain their original name for
|
|
174
|
+
* backward compatibility purposes. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM Identity Center rename</a>.</p>
|
|
175
|
+
* </note>
|
|
176
|
+
* <p>This reference guide describes the IAM Identity Center Portal operations that you can call
|
|
177
|
+
* programatically and includes detailed information on data types and errors.</p>
|
|
178
|
+
* <note>
|
|
179
|
+
* <p>AWS provides SDKs that consist of libraries and sample code for various programming
|
|
180
|
+
* languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a
|
|
181
|
+
* convenient way to create programmatic access to IAM Identity Center and other AWS services. For more
|
|
182
|
+
* information about the AWS SDKs, including how to download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
|
|
183
|
+
* </note>
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
export declare class SSOClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig> {
|
|
187
|
+
/**
|
|
188
|
+
* The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}.
|
|
189
|
+
*/
|
|
190
|
+
readonly config: SSOClientResolvedConfig;
|
|
191
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SSOClientConfig>);
|
|
192
|
+
/**
|
|
193
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
194
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
195
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
196
|
+
*/
|
|
197
|
+
destroy(): void;
|
|
198
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
|
2
|
+
import { type HttpAuthScheme } from "@smithy/types";
|
|
3
|
+
import type { SSOHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SSOHttpAuthSchemeProvider): void;
|
|
11
|
+
httpAuthSchemeProvider(): SSOHttpAuthSchemeProvider;
|
|
12
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
13
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
19
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
20
|
+
httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
|
21
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type SSOClientResolvedConfig } from "../SSOClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface SSOHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface SSOHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SSOClientResolvedConfig, HandlerExecutionContext, SSOHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultSSOHttpAuthSchemeParametersProvider: (config: SSOClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SSOHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface SSOHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SSOHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultSSOHttpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: SSOHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0";
|
|
4
|
+
import type { SSOClientResolvedConfig } from "../SSOClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetRoleCredentialsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetRoleCredentialsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetRoleCredentialsCommand_base: {
|
|
25
|
+
new (input: GetRoleCredentialsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig, GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput>;
|
|
26
|
+
new (input: GetRoleCredentialsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput, SSOClientResolvedConfig, GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns the STS short-term credentials for a given role name that is assigned to the
|
|
31
|
+
* user.</p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import
|
|
36
|
+
* // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import
|
|
37
|
+
* // import type { SSOClientConfig } from "@aws-sdk/client-sso";
|
|
38
|
+
* const config = {}; // type is SSOClientConfig
|
|
39
|
+
* const client = new SSOClient(config);
|
|
40
|
+
* const input = { // GetRoleCredentialsRequest
|
|
41
|
+
* roleName: "STRING_VALUE", // required
|
|
42
|
+
* accountId: "STRING_VALUE", // required
|
|
43
|
+
* accessToken: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new GetRoleCredentialsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // GetRoleCredentialsResponse
|
|
48
|
+
* // roleCredentials: { // RoleCredentials
|
|
49
|
+
* // accessKeyId: "STRING_VALUE",
|
|
50
|
+
* // secretAccessKey: "STRING_VALUE",
|
|
51
|
+
* // sessionToken: "STRING_VALUE",
|
|
52
|
+
* // expiration: Number("long"),
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param GetRoleCredentialsCommandInput - {@link GetRoleCredentialsCommandInput}
|
|
59
|
+
* @returns {@link GetRoleCredentialsCommandOutput}
|
|
60
|
+
* @see {@link GetRoleCredentialsCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
65
|
+
* <p>Indicates that a problem occurred with the input to the request. For example, a required
|
|
66
|
+
* parameter might be missing or out of range.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
69
|
+
* <p>The specified resource doesn't exist.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link TooManyRequestsException} (client fault)
|
|
72
|
+
* <p>Indicates that the request is being made too frequently and is more than what the server
|
|
73
|
+
* can handle.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
76
|
+
* <p>Indicates that the request is not authorized. This can happen due to an invalid access
|
|
77
|
+
* token in the request.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link SSOServiceException}
|
|
80
|
+
* <p>Base exception class for all service exceptions from SSO service.</p>
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare class GetRoleCredentialsCommand extends GetRoleCredentialsCommand_base {
|
|
86
|
+
/** @internal type navigation helper, not in runtime. */
|
|
87
|
+
protected static __types: {
|
|
88
|
+
api: {
|
|
89
|
+
input: GetRoleCredentialsRequest;
|
|
90
|
+
output: GetRoleCredentialsResponse;
|
|
91
|
+
};
|
|
92
|
+
sdk: {
|
|
93
|
+
input: GetRoleCredentialsCommandInput;
|
|
94
|
+
output: GetRoleCredentialsCommandOutput;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetRoleCredentialsCommand";
|