@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,117 @@
|
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
|
|
2
|
+
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
3
|
+
export declare const getRuntimeConfig: (
|
|
4
|
+
config: CognitoIdentityClientConfig
|
|
5
|
+
) => {
|
|
6
|
+
runtime: string;
|
|
7
|
+
defaultsMode: import("@smithy/types").Provider<
|
|
8
|
+
import("@smithy/smithy-client").ResolvedDefaultsMode
|
|
9
|
+
>;
|
|
10
|
+
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
11
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
12
|
+
defaultUserAgentProvider: (
|
|
13
|
+
config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved
|
|
14
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
15
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
16
|
+
region: string | import("@smithy/types").Provider<string>;
|
|
17
|
+
requestHandler:
|
|
18
|
+
| RequestHandler
|
|
19
|
+
| import("@smithy/protocol-http").HttpHandler<any>;
|
|
20
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
21
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
22
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
23
|
+
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
|
+
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
25
|
+
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
26
|
+
cacheMiddleware?: boolean | undefined;
|
|
27
|
+
protocol:
|
|
28
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
29
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
30
|
+
| typeof import("@aws-sdk/core").AwsJson1_1Protocol;
|
|
31
|
+
protocolSettings: {
|
|
32
|
+
defaultNamespace?: string;
|
|
33
|
+
[setting: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
apiVersion: string;
|
|
36
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
37
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
38
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
39
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
40
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
41
|
+
disableHostPrefix: boolean;
|
|
42
|
+
serviceId: string;
|
|
43
|
+
profile?: string;
|
|
44
|
+
logger: import("@smithy/types").Logger;
|
|
45
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
46
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
47
|
+
retryStrategy?:
|
|
48
|
+
| import("@smithy/types").RetryStrategy
|
|
49
|
+
| import("@smithy/types").RetryStrategyV2;
|
|
50
|
+
endpoint?:
|
|
51
|
+
| ((
|
|
52
|
+
| string
|
|
53
|
+
| import("@smithy/types").Endpoint
|
|
54
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
55
|
+
| import("@smithy/types").EndpointV2
|
|
56
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
57
|
+
) &
|
|
58
|
+
(
|
|
59
|
+
| string
|
|
60
|
+
| import("@smithy/types").Provider<string>
|
|
61
|
+
| import("@smithy/types").Endpoint
|
|
62
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
63
|
+
| import("@smithy/types").EndpointV2
|
|
64
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
65
|
+
))
|
|
66
|
+
| undefined;
|
|
67
|
+
endpointProvider: (
|
|
68
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
69
|
+
context?: {
|
|
70
|
+
logger?: import("@smithy/types").Logger;
|
|
71
|
+
}
|
|
72
|
+
) => import("@smithy/types").EndpointV2;
|
|
73
|
+
tls?: boolean;
|
|
74
|
+
serviceConfiguredEndpoint?: never;
|
|
75
|
+
httpAuthSchemes:
|
|
76
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
77
|
+
| (
|
|
78
|
+
| {
|
|
79
|
+
schemeId: string;
|
|
80
|
+
identityProvider: (
|
|
81
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
82
|
+
) =>
|
|
83
|
+
| import("@smithy/types").IdentityProvider<
|
|
84
|
+
import("@smithy/types").Identity
|
|
85
|
+
>
|
|
86
|
+
| undefined;
|
|
87
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
schemeId: string;
|
|
91
|
+
identityProvider: (
|
|
92
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
93
|
+
) =>
|
|
94
|
+
| import("@smithy/types").IdentityProvider<
|
|
95
|
+
import("@smithy/types").Identity
|
|
96
|
+
>
|
|
97
|
+
| (() => Promise<{}>);
|
|
98
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
99
|
+
}
|
|
100
|
+
)[];
|
|
101
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
|
|
102
|
+
credentials?:
|
|
103
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
104
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
105
|
+
signer?:
|
|
106
|
+
| import("@smithy/types").RequestSigner
|
|
107
|
+
| ((
|
|
108
|
+
authScheme?: import("@smithy/types").AuthScheme
|
|
109
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
110
|
+
signingEscapePath?: boolean;
|
|
111
|
+
systemClockOffset?: number;
|
|
112
|
+
signingRegion?: string;
|
|
113
|
+
signerConstructor?: new (
|
|
114
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
115
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
116
|
+
) => import("@smithy/types").RequestSigner;
|
|
117
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
2
|
+
export declare const getRuntimeConfig: (
|
|
3
|
+
config: CognitoIdentityClientConfig
|
|
4
|
+
) => {
|
|
5
|
+
runtime: string;
|
|
6
|
+
sha256: import("@smithy/types").HashConstructor;
|
|
7
|
+
requestHandler:
|
|
8
|
+
| import("@smithy/types").NodeHttpHandlerOptions
|
|
9
|
+
| import("@smithy/types").FetchHttpHandlerOptions
|
|
10
|
+
| Record<string, unknown>
|
|
11
|
+
| import("@smithy/protocol-http").HttpHandler<any>
|
|
12
|
+
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
13
|
+
cacheMiddleware?: boolean;
|
|
14
|
+
protocol:
|
|
15
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
16
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
17
|
+
| typeof import("@aws-sdk/core").AwsJson1_1Protocol;
|
|
18
|
+
protocolSettings: {
|
|
19
|
+
defaultNamespace?: string;
|
|
20
|
+
[setting: string]: unknown;
|
|
21
|
+
};
|
|
22
|
+
apiVersion: string;
|
|
23
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
24
|
+
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
25
|
+
streamCollector: import("@smithy/types").StreamCollector;
|
|
26
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
27
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
28
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
29
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
30
|
+
disableHostPrefix: boolean;
|
|
31
|
+
serviceId: string;
|
|
32
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
33
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
34
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
35
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
36
|
+
region: string | import("@smithy/types").Provider<any>;
|
|
37
|
+
profile?: string;
|
|
38
|
+
defaultUserAgentProvider: (
|
|
39
|
+
config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
|
40
|
+
) => Promise<import("@smithy/types").UserAgent>;
|
|
41
|
+
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
42
|
+
retryMode: string | import("@smithy/types").Provider<string>;
|
|
43
|
+
logger: import("@smithy/types").Logger;
|
|
44
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
45
|
+
defaultsMode:
|
|
46
|
+
| import("@smithy/smithy-client").DefaultsMode
|
|
47
|
+
| import("@smithy/types").Provider<
|
|
48
|
+
import("@smithy/smithy-client").DefaultsMode
|
|
49
|
+
>;
|
|
50
|
+
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
51
|
+
userAgentAppId?:
|
|
52
|
+
| string
|
|
53
|
+
| undefined
|
|
54
|
+
| import("@smithy/types").Provider<string | undefined>;
|
|
55
|
+
retryStrategy?:
|
|
56
|
+
| import("@smithy/types").RetryStrategy
|
|
57
|
+
| import("@smithy/types").RetryStrategyV2;
|
|
58
|
+
endpoint?:
|
|
59
|
+
| ((
|
|
60
|
+
| string
|
|
61
|
+
| import("@smithy/types").Endpoint
|
|
62
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
63
|
+
| import("@smithy/types").EndpointV2
|
|
64
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
65
|
+
) &
|
|
66
|
+
(
|
|
67
|
+
| string
|
|
68
|
+
| import("@smithy/types").Provider<string>
|
|
69
|
+
| import("@smithy/types").Endpoint
|
|
70
|
+
| import("@smithy/types").Provider<import("@smithy/types").Endpoint>
|
|
71
|
+
| import("@smithy/types").EndpointV2
|
|
72
|
+
| import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
|
|
73
|
+
))
|
|
74
|
+
| undefined;
|
|
75
|
+
endpointProvider: (
|
|
76
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
77
|
+
context?: {
|
|
78
|
+
logger?: import("@smithy/types").Logger;
|
|
79
|
+
}
|
|
80
|
+
) => import("@smithy/types").EndpointV2;
|
|
81
|
+
tls?: boolean;
|
|
82
|
+
serviceConfiguredEndpoint?: never;
|
|
83
|
+
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
84
|
+
httpAuthSchemes:
|
|
85
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
86
|
+
| (
|
|
87
|
+
| {
|
|
88
|
+
schemeId: string;
|
|
89
|
+
identityProvider: (
|
|
90
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
91
|
+
) =>
|
|
92
|
+
| import("@smithy/types").IdentityProvider<
|
|
93
|
+
import("@smithy/types").Identity
|
|
94
|
+
>
|
|
95
|
+
| undefined;
|
|
96
|
+
signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
|
|
97
|
+
}
|
|
98
|
+
| {
|
|
99
|
+
schemeId: string;
|
|
100
|
+
identityProvider: (
|
|
101
|
+
ipc: import("@smithy/types").IdentityProviderConfig
|
|
102
|
+
) =>
|
|
103
|
+
| import("@smithy/types").IdentityProvider<
|
|
104
|
+
import("@smithy/types").Identity
|
|
105
|
+
>
|
|
106
|
+
| (() => Promise<{}>);
|
|
107
|
+
signer: import("@smithy/core").NoAuthSigner;
|
|
108
|
+
}
|
|
109
|
+
)[];
|
|
110
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
|
|
111
|
+
credentials?:
|
|
112
|
+
| import("@smithy/types").AwsCredentialIdentity
|
|
113
|
+
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
114
|
+
signer?:
|
|
115
|
+
| import("@smithy/types").RequestSigner
|
|
116
|
+
| ((
|
|
117
|
+
authScheme?: import("@smithy/types").AuthScheme
|
|
118
|
+
) => Promise<import("@smithy/types").RequestSigner>);
|
|
119
|
+
signingEscapePath?: boolean;
|
|
120
|
+
systemClockOffset?: number;
|
|
121
|
+
signingRegion?: string;
|
|
122
|
+
signerConstructor?: new (
|
|
123
|
+
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
124
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
125
|
+
) => import("@smithy/types").RequestSigner;
|
|
126
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoAuthSigner } from "@smithy/core";
|
|
4
|
+
import { IdentityProviderConfig } from "@smithy/types";
|
|
5
|
+
import { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
|
|
6
|
+
export declare const getRuntimeConfig: (
|
|
7
|
+
config: CognitoIdentityClientConfig
|
|
8
|
+
) => {
|
|
9
|
+
apiVersion: string;
|
|
10
|
+
base64Decoder: import("@smithy/types").Decoder;
|
|
11
|
+
base64Encoder: (_input: Uint8Array | string) => string;
|
|
12
|
+
disableHostPrefix: boolean;
|
|
13
|
+
endpointProvider: (
|
|
14
|
+
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
15
|
+
context?: {
|
|
16
|
+
logger?: import("@smithy/types").Logger;
|
|
17
|
+
}
|
|
18
|
+
) => import("@smithy/types").EndpointV2;
|
|
19
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
20
|
+
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
|
|
21
|
+
httpAuthSchemes:
|
|
22
|
+
| import("@smithy/types").HttpAuthScheme[]
|
|
23
|
+
| (
|
|
24
|
+
| {
|
|
25
|
+
schemeId: string;
|
|
26
|
+
identityProvider: (
|
|
27
|
+
ipc: IdentityProviderConfig
|
|
28
|
+
) =>
|
|
29
|
+
| import("@smithy/types").IdentityProvider<
|
|
30
|
+
import("@smithy/types").Identity
|
|
31
|
+
>
|
|
32
|
+
| undefined;
|
|
33
|
+
signer: AwsSdkSigV4Signer;
|
|
34
|
+
}
|
|
35
|
+
| {
|
|
36
|
+
schemeId: string;
|
|
37
|
+
identityProvider: (
|
|
38
|
+
ipc: IdentityProviderConfig
|
|
39
|
+
) =>
|
|
40
|
+
| import("@smithy/types").IdentityProvider<
|
|
41
|
+
import("@smithy/types").Identity
|
|
42
|
+
>
|
|
43
|
+
| (() => Promise<{}>);
|
|
44
|
+
signer: NoAuthSigner;
|
|
45
|
+
}
|
|
46
|
+
)[];
|
|
47
|
+
logger: import("@smithy/types").Logger;
|
|
48
|
+
protocol:
|
|
49
|
+
| import("@smithy/types").ClientProtocol<any, any>
|
|
50
|
+
| import("@smithy/types").ClientProtocolCtor<any, any>
|
|
51
|
+
| typeof AwsJson1_1Protocol;
|
|
52
|
+
protocolSettings: {
|
|
53
|
+
[setting: string]: unknown;
|
|
54
|
+
defaultNamespace?: string;
|
|
55
|
+
};
|
|
56
|
+
serviceId: string;
|
|
57
|
+
urlParser: import("@smithy/types").UrlParser;
|
|
58
|
+
utf8Decoder: import("@smithy/types").Decoder;
|
|
59
|
+
utf8Encoder: (input: Uint8Array | string) => string;
|
|
60
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
|
|
2
|
+
export interface RuntimeExtension {
|
|
3
|
+
configure(
|
|
4
|
+
extensionConfiguration: CognitoIdentityExtensionConfiguration
|
|
5
|
+
): void;
|
|
6
|
+
}
|
|
7
|
+
export interface RuntimeExtensionsConfig {
|
|
8
|
+
extensions: RuntimeExtension[];
|
|
9
|
+
}
|
|
10
|
+
export declare const resolveRuntimeExtensions: (
|
|
11
|
+
runtimeConfig: any,
|
|
12
|
+
extensions: RuntimeExtension[]
|
|
13
|
+
) => any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
|
+
import {
|
|
3
|
+
StaticErrorSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var CognitoIdentityServiceException$: StaticErrorSchema;
|
|
8
|
+
export declare var ExternalServiceException$: StaticErrorSchema;
|
|
9
|
+
export declare var InternalErrorException$: StaticErrorSchema;
|
|
10
|
+
export declare var InvalidIdentityPoolConfigurationException$: StaticErrorSchema;
|
|
11
|
+
export declare var InvalidParameterException$: StaticErrorSchema;
|
|
12
|
+
export declare var LimitExceededException$: StaticErrorSchema;
|
|
13
|
+
export declare var NotAuthorizedException$: StaticErrorSchema;
|
|
14
|
+
export declare var ResourceConflictException$: StaticErrorSchema;
|
|
15
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
16
|
+
export declare var TooManyRequestsException$: StaticErrorSchema;
|
|
17
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
18
|
+
export declare var Credentials$: StaticStructureSchema;
|
|
19
|
+
export declare var GetCredentialsForIdentityInput$: StaticStructureSchema;
|
|
20
|
+
export declare var GetCredentialsForIdentityResponse$: StaticStructureSchema;
|
|
21
|
+
export declare var GetIdInput$: StaticStructureSchema;
|
|
22
|
+
export declare var GetIdResponse$: StaticStructureSchema;
|
|
23
|
+
export declare var GetCredentialsForIdentity$: StaticOperationSchema;
|
|
24
|
+
export declare var GetId$: StaticOperationSchema;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
HttpAuthScheme,
|
|
3
2
|
AwsCredentialIdentity,
|
|
4
3
|
AwsCredentialIdentityProvider,
|
|
5
4
|
} from "@smithy/types";
|
|
5
|
+
import { HttpAuthScheme } from "@smithy/types";
|
|
6
6
|
import { SigninHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
7
|
export interface HttpAuthExtensionConfiguration {
|
|
8
8
|
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetRoleCredentialsCommandInput,
|
|
4
|
+
GetRoleCredentialsCommandOutput,
|
|
5
|
+
} from "./commands/GetRoleCredentialsCommand";
|
|
6
|
+
import { SSOClient } from "./SSOClient";
|
|
7
|
+
export interface SSO {
|
|
8
|
+
getRoleCredentials(
|
|
9
|
+
args: GetRoleCredentialsCommandInput,
|
|
10
|
+
options?: __HttpHandlerOptions
|
|
11
|
+
): Promise<GetRoleCredentialsCommandOutput>;
|
|
12
|
+
getRoleCredentials(
|
|
13
|
+
args: GetRoleCredentialsCommandInput,
|
|
14
|
+
cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void
|
|
15
|
+
): void;
|
|
16
|
+
getRoleCredentials(
|
|
17
|
+
args: GetRoleCredentialsCommandInput,
|
|
18
|
+
options: __HttpHandlerOptions,
|
|
19
|
+
cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void
|
|
20
|
+
): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class SSO extends SSOClient implements SSO {}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
HostHeaderInputConfig,
|
|
3
|
+
HostHeaderResolvedConfig,
|
|
4
|
+
} from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import {
|
|
6
|
+
UserAgentInputConfig,
|
|
7
|
+
UserAgentResolvedConfig,
|
|
8
|
+
} from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import {
|
|
10
|
+
RegionInputConfig,
|
|
11
|
+
RegionResolvedConfig,
|
|
12
|
+
} from "@smithy/config-resolver";
|
|
13
|
+
import {
|
|
14
|
+
EndpointInputConfig,
|
|
15
|
+
EndpointResolvedConfig,
|
|
16
|
+
} from "@smithy/middleware-endpoint";
|
|
17
|
+
import {
|
|
18
|
+
RetryInputConfig,
|
|
19
|
+
RetryResolvedConfig,
|
|
20
|
+
} from "@smithy/middleware-retry";
|
|
21
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
22
|
+
import {
|
|
23
|
+
DefaultsMode as __DefaultsMode,
|
|
24
|
+
SmithyConfiguration as __SmithyConfiguration,
|
|
25
|
+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
26
|
+
Client as __Client,
|
|
27
|
+
} from "@smithy/smithy-client";
|
|
28
|
+
import { Provider, UserAgent as __UserAgent } from "@smithy/types";
|
|
29
|
+
import {
|
|
30
|
+
BodyLengthCalculator as __BodyLengthCalculator,
|
|
31
|
+
CheckOptionalClientConfig as __CheckOptionalClientConfig,
|
|
32
|
+
ChecksumConstructor as __ChecksumConstructor,
|
|
33
|
+
Decoder as __Decoder,
|
|
34
|
+
Encoder as __Encoder,
|
|
35
|
+
HashConstructor as __HashConstructor,
|
|
36
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
37
|
+
Logger as __Logger,
|
|
38
|
+
Provider as __Provider,
|
|
39
|
+
StreamCollector as __StreamCollector,
|
|
40
|
+
UrlParser as __UrlParser,
|
|
41
|
+
} from "@smithy/types";
|
|
42
|
+
import {
|
|
43
|
+
HttpAuthSchemeInputConfig,
|
|
44
|
+
HttpAuthSchemeResolvedConfig,
|
|
45
|
+
} from "./auth/httpAuthSchemeProvider";
|
|
46
|
+
import {
|
|
47
|
+
GetRoleCredentialsCommandInput,
|
|
48
|
+
GetRoleCredentialsCommandOutput,
|
|
49
|
+
} from "./commands/GetRoleCredentialsCommand";
|
|
50
|
+
import {
|
|
51
|
+
ClientInputEndpointParameters,
|
|
52
|
+
ClientResolvedEndpointParameters,
|
|
53
|
+
EndpointParameters,
|
|
54
|
+
} from "./endpoint/EndpointParameters";
|
|
55
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
56
|
+
export { __Client };
|
|
57
|
+
export type ServiceInputTypes = GetRoleCredentialsCommandInput;
|
|
58
|
+
export type ServiceOutputTypes = GetRoleCredentialsCommandOutput;
|
|
59
|
+
export interface ClientDefaults
|
|
60
|
+
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
61
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
62
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
63
|
+
urlParser?: __UrlParser;
|
|
64
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
65
|
+
streamCollector?: __StreamCollector;
|
|
66
|
+
base64Decoder?: __Decoder;
|
|
67
|
+
base64Encoder?: __Encoder;
|
|
68
|
+
utf8Decoder?: __Decoder;
|
|
69
|
+
utf8Encoder?: __Encoder;
|
|
70
|
+
runtime?: string;
|
|
71
|
+
disableHostPrefix?: boolean;
|
|
72
|
+
serviceId?: string;
|
|
73
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
74
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
75
|
+
region?: string | __Provider<string>;
|
|
76
|
+
profile?: string;
|
|
77
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
78
|
+
maxAttempts?: number | __Provider<number>;
|
|
79
|
+
retryMode?: string | __Provider<string>;
|
|
80
|
+
logger?: __Logger;
|
|
81
|
+
extensions?: RuntimeExtension[];
|
|
82
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
83
|
+
}
|
|
84
|
+
export type SSOClientConfigType = Partial<
|
|
85
|
+
__SmithyConfiguration<__HttpHandlerOptions>
|
|
86
|
+
> &
|
|
87
|
+
ClientDefaults &
|
|
88
|
+
UserAgentInputConfig &
|
|
89
|
+
RetryInputConfig &
|
|
90
|
+
RegionInputConfig &
|
|
91
|
+
HostHeaderInputConfig &
|
|
92
|
+
EndpointInputConfig<EndpointParameters> &
|
|
93
|
+
HttpAuthSchemeInputConfig &
|
|
94
|
+
ClientInputEndpointParameters;
|
|
95
|
+
export interface SSOClientConfig extends SSOClientConfigType {}
|
|
96
|
+
export type SSOClientResolvedConfigType =
|
|
97
|
+
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
98
|
+
Required<ClientDefaults> &
|
|
99
|
+
RuntimeExtensionsConfig &
|
|
100
|
+
UserAgentResolvedConfig &
|
|
101
|
+
RetryResolvedConfig &
|
|
102
|
+
RegionResolvedConfig &
|
|
103
|
+
HostHeaderResolvedConfig &
|
|
104
|
+
EndpointResolvedConfig<EndpointParameters> &
|
|
105
|
+
HttpAuthSchemeResolvedConfig &
|
|
106
|
+
ClientResolvedEndpointParameters;
|
|
107
|
+
export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {}
|
|
108
|
+
export declare class SSOClient extends __Client<
|
|
109
|
+
__HttpHandlerOptions,
|
|
110
|
+
ServiceInputTypes,
|
|
111
|
+
ServiceOutputTypes,
|
|
112
|
+
SSOClientResolvedConfig
|
|
113
|
+
> {
|
|
114
|
+
readonly config: SSOClientResolvedConfig;
|
|
115
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SSOClientConfig>);
|
|
116
|
+
destroy(): void;
|
|
117
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsCredentialIdentity,
|
|
3
|
+
AwsCredentialIdentityProvider,
|
|
4
|
+
} from "@smithy/types";
|
|
5
|
+
import { HttpAuthScheme } from "@smithy/types";
|
|
6
|
+
import { SSOHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
7
|
+
export interface HttpAuthExtensionConfiguration {
|
|
8
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
9
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
10
|
+
setHttpAuthSchemeProvider(
|
|
11
|
+
httpAuthSchemeProvider: SSOHttpAuthSchemeProvider
|
|
12
|
+
): void;
|
|
13
|
+
httpAuthSchemeProvider(): SSOHttpAuthSchemeProvider;
|
|
14
|
+
setCredentials(
|
|
15
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
|
|
16
|
+
): void;
|
|
17
|
+
credentials():
|
|
18
|
+
| AwsCredentialIdentity
|
|
19
|
+
| AwsCredentialIdentityProvider
|
|
20
|
+
| undefined;
|
|
21
|
+
}
|
|
22
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
23
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
24
|
+
httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
|
25
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const getHttpAuthExtensionConfiguration: (
|
|
28
|
+
runtimeConfig: HttpAuthRuntimeConfig
|
|
29
|
+
) => HttpAuthExtensionConfiguration;
|
|
30
|
+
export declare const resolveHttpAuthRuntimeConfig: (
|
|
31
|
+
config: HttpAuthExtensionConfiguration
|
|
32
|
+
) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AwsSdkSigV4AuthInputConfig,
|
|
3
|
+
AwsSdkSigV4AuthResolvedConfig,
|
|
4
|
+
AwsSdkSigV4PreviouslyResolved,
|
|
5
|
+
} from "@aws-sdk/core";
|
|
6
|
+
import {
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpAuthScheme,
|
|
9
|
+
HttpAuthSchemeParameters,
|
|
10
|
+
HttpAuthSchemeParametersProvider,
|
|
11
|
+
HttpAuthSchemeProvider,
|
|
12
|
+
Provider,
|
|
13
|
+
} from "@smithy/types";
|
|
14
|
+
import { SSOClientResolvedConfig } from "../SSOClient";
|
|
15
|
+
export interface SSOHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
16
|
+
region?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface SSOHttpAuthSchemeParametersProvider
|
|
19
|
+
extends HttpAuthSchemeParametersProvider<
|
|
20
|
+
SSOClientResolvedConfig,
|
|
21
|
+
HandlerExecutionContext,
|
|
22
|
+
SSOHttpAuthSchemeParameters,
|
|
23
|
+
object
|
|
24
|
+
> {}
|
|
25
|
+
export declare const defaultSSOHttpAuthSchemeParametersProvider: (
|
|
26
|
+
config: SSOClientResolvedConfig,
|
|
27
|
+
context: HandlerExecutionContext,
|
|
28
|
+
input: object
|
|
29
|
+
) => Promise<SSOHttpAuthSchemeParameters>;
|
|
30
|
+
export interface SSOHttpAuthSchemeProvider
|
|
31
|
+
extends HttpAuthSchemeProvider<SSOHttpAuthSchemeParameters> {}
|
|
32
|
+
export declare const defaultSSOHttpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
|
33
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
34
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
35
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
36
|
+
httpAuthSchemeProvider?: SSOHttpAuthSchemeProvider;
|
|
37
|
+
}
|
|
38
|
+
export interface HttpAuthSchemeResolvedConfig
|
|
39
|
+
extends AwsSdkSigV4AuthResolvedConfig {
|
|
40
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
41
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
42
|
+
readonly httpAuthSchemeProvider: SSOHttpAuthSchemeProvider;
|
|
43
|
+
}
|
|
44
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
45
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
46
|
+
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
GetRoleCredentialsRequest,
|
|
5
|
+
GetRoleCredentialsResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import { SSOClientResolvedConfig } from "../SSOClient";
|
|
8
|
+
export { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
export interface GetRoleCredentialsCommandInput
|
|
11
|
+
extends GetRoleCredentialsRequest {}
|
|
12
|
+
export interface GetRoleCredentialsCommandOutput
|
|
13
|
+
extends GetRoleCredentialsResponse,
|
|
14
|
+
__MetadataBearer {}
|
|
15
|
+
declare const GetRoleCredentialsCommand_base: {
|
|
16
|
+
new (
|
|
17
|
+
input: GetRoleCredentialsCommandInput
|
|
18
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
19
|
+
GetRoleCredentialsCommandInput,
|
|
20
|
+
GetRoleCredentialsCommandOutput,
|
|
21
|
+
SSOClientResolvedConfig,
|
|
22
|
+
GetRoleCredentialsCommandInput,
|
|
23
|
+
GetRoleCredentialsCommandOutput
|
|
24
|
+
>;
|
|
25
|
+
new (
|
|
26
|
+
input: GetRoleCredentialsCommandInput
|
|
27
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
28
|
+
GetRoleCredentialsCommandInput,
|
|
29
|
+
GetRoleCredentialsCommandOutput,
|
|
30
|
+
SSOClientResolvedConfig,
|
|
31
|
+
GetRoleCredentialsCommandInput,
|
|
32
|
+
GetRoleCredentialsCommandOutput
|
|
33
|
+
>;
|
|
34
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
35
|
+
};
|
|
36
|
+
export declare class GetRoleCredentialsCommand extends GetRoleCredentialsCommand_base {
|
|
37
|
+
protected static __types: {
|
|
38
|
+
api: {
|
|
39
|
+
input: GetRoleCredentialsRequest;
|
|
40
|
+
output: GetRoleCredentialsResponse;
|
|
41
|
+
};
|
|
42
|
+
sdk: {
|
|
43
|
+
input: GetRoleCredentialsCommandInput;
|
|
44
|
+
output: GetRoleCredentialsCommandOutput;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetRoleCredentialsCommand";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Endpoint,
|
|
3
|
+
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
5
|
+
Provider,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export interface ClientInputEndpointParameters {
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
11
|
+
endpoint?:
|
|
12
|
+
| string
|
|
13
|
+
| Provider<string>
|
|
14
|
+
| Endpoint
|
|
15
|
+
| Provider<Endpoint>
|
|
16
|
+
| EndpointV2
|
|
17
|
+
| Provider<EndpointV2>;
|
|
18
|
+
}
|
|
19
|
+
export type ClientResolvedEndpointParameters = Pick<
|
|
20
|
+
ClientInputEndpointParameters,
|
|
21
|
+
Exclude<keyof ClientInputEndpointParameters, "endpoint">
|
|
22
|
+
> & {
|
|
23
|
+
defaultSigningName: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const resolveClientEndpointParameters: <T>(
|
|
26
|
+
options: T & ClientInputEndpointParameters
|
|
27
|
+
) => T & ClientResolvedEndpointParameters;
|
|
28
|
+
export declare const commonParams: {
|
|
29
|
+
readonly UseFIPS: {
|
|
30
|
+
readonly type: "builtInParams";
|
|
31
|
+
readonly name: "useFipsEndpoint";
|
|
32
|
+
};
|
|
33
|
+
readonly Endpoint: {
|
|
34
|
+
readonly type: "builtInParams";
|
|
35
|
+
readonly name: "endpoint";
|
|
36
|
+
};
|
|
37
|
+
readonly Region: {
|
|
38
|
+
readonly type: "builtInParams";
|
|
39
|
+
readonly name: "region";
|
|
40
|
+
};
|
|
41
|
+
readonly UseDualStack: {
|
|
42
|
+
readonly type: "builtInParams";
|
|
43
|
+
readonly name: "useDualstackEndpoint";
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
47
|
+
Region?: string | undefined;
|
|
48
|
+
UseDualStack?: boolean | undefined;
|
|
49
|
+
UseFIPS?: boolean | undefined;
|
|
50
|
+
Endpoint?: string | undefined;
|
|
51
|
+
}
|