@aws-sdk/nested-clients 3.935.0 → 3.939.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.
Files changed (77) hide show
  1. package/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
  2. package/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
  3. package/dist-cjs/submodules/signin/endpoint/ruleset.js +7 -0
  4. package/dist-cjs/submodules/signin/index.js +439 -0
  5. package/dist-cjs/submodules/signin/runtimeConfig.browser.js +39 -0
  6. package/dist-cjs/submodules/signin/runtimeConfig.js +54 -0
  7. package/dist-cjs/submodules/signin/runtimeConfig.native.js +15 -0
  8. package/dist-cjs/submodules/signin/runtimeConfig.shared.js +42 -0
  9. package/dist-es/submodules/signin/Signin.js +9 -0
  10. package/dist-es/submodules/signin/SigninClient.js +50 -0
  11. package/dist-es/submodules/signin/auth/httpAuthExtensionConfiguration.js +38 -0
  12. package/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +50 -0
  13. package/dist-es/submodules/signin/commands/CreateOAuth2TokenCommand.js +16 -0
  14. package/dist-es/submodules/signin/commands/index.js +1 -0
  15. package/dist-es/submodules/signin/endpoint/EndpointParameters.js +13 -0
  16. package/dist-es/submodules/signin/endpoint/endpointResolver.js +14 -0
  17. package/dist-es/submodules/signin/endpoint/ruleset.js +4 -0
  18. package/dist-es/submodules/signin/extensionConfiguration.js +1 -0
  19. package/dist-es/submodules/signin/index.js +6 -0
  20. package/dist-es/submodules/signin/models/SigninServiceException.js +8 -0
  21. package/dist-es/submodules/signin/models/enums.js +8 -0
  22. package/dist-es/submodules/signin/models/errors.js +57 -0
  23. package/dist-es/submodules/signin/models/models_0.js +1 -0
  24. package/dist-es/submodules/signin/runtimeConfig.browser.js +34 -0
  25. package/dist-es/submodules/signin/runtimeConfig.js +49 -0
  26. package/dist-es/submodules/signin/runtimeConfig.native.js +11 -0
  27. package/dist-es/submodules/signin/runtimeConfig.shared.js +38 -0
  28. package/dist-es/submodules/signin/runtimeExtensions.js +9 -0
  29. package/dist-es/submodules/signin/schemas/schemas_0.js +221 -0
  30. package/dist-types/submodules/signin/Signin.d.ts +18 -0
  31. package/dist-types/submodules/signin/SigninClient.d.ts +198 -0
  32. package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  33. package/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +75 -0
  34. package/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +157 -0
  35. package/dist-types/submodules/signin/commands/index.d.ts +1 -0
  36. package/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +38 -0
  37. package/dist-types/submodules/signin/endpoint/endpointResolver.d.ts +5 -0
  38. package/dist-types/submodules/signin/endpoint/ruleset.d.ts +2 -0
  39. package/dist-types/submodules/signin/extensionConfiguration.d.ts +9 -0
  40. package/dist-types/submodules/signin/index.d.ts +16 -0
  41. package/dist-types/submodules/signin/models/SigninServiceException.d.ts +14 -0
  42. package/dist-types/submodules/signin/models/enums.d.ts +34 -0
  43. package/dist-types/submodules/signin/models/errors.d.ts +102 -0
  44. package/dist-types/submodules/signin/models/models_0.d.ts +142 -0
  45. package/dist-types/submodules/signin/runtimeConfig.browser.d.ts +59 -0
  46. package/dist-types/submodules/signin/runtimeConfig.d.ts +59 -0
  47. package/dist-types/submodules/signin/runtimeConfig.native.d.ts +58 -0
  48. package/dist-types/submodules/signin/runtimeConfig.shared.d.ts +33 -0
  49. package/dist-types/submodules/signin/runtimeExtensions.d.ts +17 -0
  50. package/dist-types/submodules/signin/schemas/schemas_0.d.ts +14 -0
  51. package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +2 -3
  52. package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
  53. package/dist-types/submodules/sts/models/errors.d.ts +2 -3
  54. package/dist-types/ts3.4/submodules/signin/Signin.d.ts +22 -0
  55. package/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +127 -0
  56. package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  57. package/dist-types/ts3.4/submodules/signin/auth/httpAuthSchemeProvider.d.ts +47 -0
  58. package/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +47 -0
  59. package/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
  60. package/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +51 -0
  61. package/dist-types/ts3.4/submodules/signin/endpoint/endpointResolver.d.ts +8 -0
  62. package/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +2 -0
  63. package/dist-types/ts3.4/submodules/signin/extensionConfiguration.d.ts +9 -0
  64. package/dist-types/ts3.4/submodules/signin/index.d.ts +10 -0
  65. package/dist-types/ts3.4/submodules/signin/models/SigninServiceException.d.ts +9 -0
  66. package/dist-types/ts3.4/submodules/signin/models/enums.d.ts +10 -0
  67. package/dist-types/ts3.4/submodules/signin/models/errors.d.ts +35 -0
  68. package/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +26 -0
  69. package/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +121 -0
  70. package/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +114 -0
  71. package/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +125 -0
  72. package/dist-types/ts3.4/submodules/signin/runtimeConfig.shared.d.ts +53 -0
  73. package/dist-types/ts3.4/submodules/signin/runtimeExtensions.d.ts +11 -0
  74. package/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +19 -0
  75. package/package.json +22 -11
  76. package/signin.d.ts +7 -0
  77. package/signin.js +5 -0
@@ -0,0 +1,221 @@
1
+ const _ADE = "AccessDeniedException";
2
+ const _AT = "AccessToken";
3
+ const _COAT = "CreateOAuth2Token";
4
+ const _COATR = "CreateOAuth2TokenRequest";
5
+ const _COATRB = "CreateOAuth2TokenRequestBody";
6
+ const _COATRBr = "CreateOAuth2TokenResponseBody";
7
+ const _COATRr = "CreateOAuth2TokenResponse";
8
+ const _ISE = "InternalServerException";
9
+ const _RT = "RefreshToken";
10
+ const _TMRE = "TooManyRequestsError";
11
+ const _VE = "ValidationException";
12
+ const _aKI = "accessKeyId";
13
+ const _aT = "accessToken";
14
+ const _c = "client";
15
+ const _cI = "clientId";
16
+ const _cV = "codeVerifier";
17
+ const _co = "code";
18
+ const _e = "error";
19
+ const _eI = "expiresIn";
20
+ const _gT = "grantType";
21
+ const _h = "http";
22
+ const _hE = "httpError";
23
+ const _iT = "idToken";
24
+ const _jN = "jsonName";
25
+ const _m = "message";
26
+ const _rT = "refreshToken";
27
+ const _rU = "redirectUri";
28
+ const _s = "server";
29
+ const _sAK = "secretAccessKey";
30
+ const _sT = "sessionToken";
31
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
32
+ const _tI = "tokenInput";
33
+ const _tO = "tokenOutput";
34
+ const _tT = "tokenType";
35
+ const n0 = "com.amazonaws.signin";
36
+ import { TypeRegistry } from "@smithy/core/schema";
37
+ import { AccessDeniedException as __AccessDeniedException, InternalServerException as __InternalServerException, TooManyRequestsError as __TooManyRequestsError, ValidationException as __ValidationException, } from "../models/errors";
38
+ import { SigninServiceException as __SigninServiceException } from "../models/SigninServiceException";
39
+ export var RefreshToken = [0, n0, _RT, 8, 0];
40
+ export var AccessDeniedException = [
41
+ -3,
42
+ n0,
43
+ _ADE,
44
+ {
45
+ [_e]: _c,
46
+ },
47
+ [_e, _m],
48
+ [0, 0],
49
+ ];
50
+ TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
51
+ export var AccessToken = [
52
+ 3,
53
+ n0,
54
+ _AT,
55
+ 8,
56
+ [_aKI, _sAK, _sT],
57
+ [
58
+ [
59
+ 0,
60
+ {
61
+ [_jN]: _aKI,
62
+ },
63
+ ],
64
+ [
65
+ 0,
66
+ {
67
+ [_jN]: _sAK,
68
+ },
69
+ ],
70
+ [
71
+ 0,
72
+ {
73
+ [_jN]: _sT,
74
+ },
75
+ ],
76
+ ],
77
+ ];
78
+ export var CreateOAuth2TokenRequest = [
79
+ 3,
80
+ n0,
81
+ _COATR,
82
+ 0,
83
+ [_tI],
84
+ [[() => CreateOAuth2TokenRequestBody, 16]],
85
+ ];
86
+ export var CreateOAuth2TokenRequestBody = [
87
+ 3,
88
+ n0,
89
+ _COATRB,
90
+ 0,
91
+ [_cI, _gT, _co, _rU, _cV, _rT],
92
+ [
93
+ [
94
+ 0,
95
+ {
96
+ [_jN]: _cI,
97
+ },
98
+ ],
99
+ [
100
+ 0,
101
+ {
102
+ [_jN]: _gT,
103
+ },
104
+ ],
105
+ 0,
106
+ [
107
+ 0,
108
+ {
109
+ [_jN]: _rU,
110
+ },
111
+ ],
112
+ [
113
+ 0,
114
+ {
115
+ [_jN]: _cV,
116
+ },
117
+ ],
118
+ [
119
+ () => RefreshToken,
120
+ {
121
+ [_jN]: _rT,
122
+ },
123
+ ],
124
+ ],
125
+ ];
126
+ export var CreateOAuth2TokenResponse = [
127
+ 3,
128
+ n0,
129
+ _COATRr,
130
+ 0,
131
+ [_tO],
132
+ [[() => CreateOAuth2TokenResponseBody, 16]],
133
+ ];
134
+ export var CreateOAuth2TokenResponseBody = [
135
+ 3,
136
+ n0,
137
+ _COATRBr,
138
+ 0,
139
+ [_aT, _tT, _eI, _rT, _iT],
140
+ [
141
+ [
142
+ () => AccessToken,
143
+ {
144
+ [_jN]: _aT,
145
+ },
146
+ ],
147
+ [
148
+ 0,
149
+ {
150
+ [_jN]: _tT,
151
+ },
152
+ ],
153
+ [
154
+ 1,
155
+ {
156
+ [_jN]: _eI,
157
+ },
158
+ ],
159
+ [
160
+ () => RefreshToken,
161
+ {
162
+ [_jN]: _rT,
163
+ },
164
+ ],
165
+ [
166
+ 0,
167
+ {
168
+ [_jN]: _iT,
169
+ },
170
+ ],
171
+ ],
172
+ ];
173
+ export var InternalServerException = [
174
+ -3,
175
+ n0,
176
+ _ISE,
177
+ {
178
+ [_e]: _s,
179
+ [_hE]: 500,
180
+ },
181
+ [_e, _m],
182
+ [0, 0],
183
+ ];
184
+ TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
185
+ export var TooManyRequestsError = [
186
+ -3,
187
+ n0,
188
+ _TMRE,
189
+ {
190
+ [_e]: _c,
191
+ [_hE]: 429,
192
+ },
193
+ [_e, _m],
194
+ [0, 0],
195
+ ];
196
+ TypeRegistry.for(n0).registerError(TooManyRequestsError, __TooManyRequestsError);
197
+ export var ValidationException = [
198
+ -3,
199
+ n0,
200
+ _VE,
201
+ {
202
+ [_e]: _c,
203
+ [_hE]: 400,
204
+ },
205
+ [_e, _m],
206
+ [0, 0],
207
+ ];
208
+ TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
209
+ export var __Unit = "unit";
210
+ export var SigninServiceException = [-3, _sm, "SigninServiceException", 0, [], []];
211
+ TypeRegistry.for(_sm).registerError(SigninServiceException, __SigninServiceException);
212
+ export var CreateOAuth2Token = [
213
+ 9,
214
+ n0,
215
+ _COAT,
216
+ {
217
+ [_h]: ["POST", "/v1/token", 200],
218
+ },
219
+ () => CreateOAuth2TokenRequest,
220
+ () => CreateOAuth2TokenResponse,
221
+ ];
@@ -0,0 +1,18 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
3
+ import { SigninClient } from "./SigninClient";
4
+ export interface Signin {
5
+ /**
6
+ * @see {@link CreateOAuth2TokenCommand}
7
+ */
8
+ createOAuth2Token(args: CreateOAuth2TokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateOAuth2TokenCommandOutput>;
9
+ createOAuth2Token(args: CreateOAuth2TokenCommandInput, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
10
+ createOAuth2Token(args: CreateOAuth2TokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
11
+ }
12
+ /**
13
+ * AWS Sign-In manages authentication for AWS services. This service provides
14
+ * secure authentication flows for accessing AWS resources from the console and developer tools.
15
+ * @public
16
+ */
17
+ export declare class Signin extends SigninClient implements Signin {
18
+ }
@@ -0,0 +1,198 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
11
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
12
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
13
+ export { __Client };
14
+ /**
15
+ * @public
16
+ */
17
+ export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
18
+ /**
19
+ * @public
20
+ */
21
+ export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
22
+ /**
23
+ * @public
24
+ */
25
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
26
+ /**
27
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
28
+ */
29
+ requestHandler?: __HttpHandlerUserInput;
30
+ /**
31
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
32
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
33
+ * @internal
34
+ */
35
+ sha256?: __ChecksumConstructor | __HashConstructor;
36
+ /**
37
+ * The function that will be used to convert strings into HTTP endpoints.
38
+ * @internal
39
+ */
40
+ urlParser?: __UrlParser;
41
+ /**
42
+ * A function that can calculate the length of a request body.
43
+ * @internal
44
+ */
45
+ bodyLengthChecker?: __BodyLengthCalculator;
46
+ /**
47
+ * A function that converts a stream into an array of bytes.
48
+ * @internal
49
+ */
50
+ streamCollector?: __StreamCollector;
51
+ /**
52
+ * The function that will be used to convert a base64-encoded string to a byte array.
53
+ * @internal
54
+ */
55
+ base64Decoder?: __Decoder;
56
+ /**
57
+ * The function that will be used to convert binary data to a base64-encoded string.
58
+ * @internal
59
+ */
60
+ base64Encoder?: __Encoder;
61
+ /**
62
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
63
+ * @internal
64
+ */
65
+ utf8Decoder?: __Decoder;
66
+ /**
67
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
68
+ * @internal
69
+ */
70
+ utf8Encoder?: __Encoder;
71
+ /**
72
+ * The runtime environment.
73
+ * @internal
74
+ */
75
+ runtime?: string;
76
+ /**
77
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
78
+ * trait of an operation.
79
+ */
80
+ disableHostPrefix?: boolean;
81
+ /**
82
+ * Unique service identifier.
83
+ * @internal
84
+ */
85
+ serviceId?: string;
86
+ /**
87
+ * Enables IPv6/IPv4 dualstack endpoint.
88
+ */
89
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
90
+ /**
91
+ * Enables FIPS compatible endpoints.
92
+ */
93
+ useFipsEndpoint?: boolean | __Provider<boolean>;
94
+ /**
95
+ * The AWS region to which this client will send requests
96
+ */
97
+ region?: string | __Provider<string>;
98
+ /**
99
+ * Setting a client profile is similar to setting a value for the
100
+ * AWS_PROFILE environment variable. Setting a profile on a client
101
+ * in code only affects the single client instance, unlike AWS_PROFILE.
102
+ *
103
+ * When set, and only for environments where an AWS configuration
104
+ * file exists, fields configurable by this file will be retrieved
105
+ * from the specified profile within that file.
106
+ * Conflicting code configuration and environment variables will
107
+ * still have higher priority.
108
+ *
109
+ * For client credential resolution that involves checking the AWS
110
+ * configuration file, the client's profile (this value) will be
111
+ * used unless a different profile is set in the credential
112
+ * provider options.
113
+ *
114
+ */
115
+ profile?: string;
116
+ /**
117
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
118
+ * @internal
119
+ */
120
+ defaultUserAgentProvider?: Provider<__UserAgent>;
121
+ /**
122
+ * Default credentials provider; Not available in browser runtime.
123
+ * @deprecated
124
+ * @internal
125
+ */
126
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
127
+ /**
128
+ * Value for how many times a request will be made at most in case of retry.
129
+ */
130
+ maxAttempts?: number | __Provider<number>;
131
+ /**
132
+ * Specifies which retry algorithm to use.
133
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
134
+ *
135
+ */
136
+ retryMode?: string | __Provider<string>;
137
+ /**
138
+ * Optional logger for logging debug/info/warn/error.
139
+ */
140
+ logger?: __Logger;
141
+ /**
142
+ * Optional extensions
143
+ */
144
+ extensions?: RuntimeExtension[];
145
+ /**
146
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
147
+ * may be overridden. A default will always be set by the client.
148
+ * Available options depend on the service's supported protocols and will not be validated by
149
+ * the client.
150
+ * @alpha
151
+ *
152
+ */
153
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
154
+ /**
155
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
156
+ */
157
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
158
+ }
159
+ /**
160
+ * @public
161
+ */
162
+ export type SigninClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
163
+ /**
164
+ * @public
165
+ *
166
+ * The configuration interface of SigninClient class constructor that set the region, credentials and other options.
167
+ */
168
+ export interface SigninClientConfig extends SigninClientConfigType {
169
+ }
170
+ /**
171
+ * @public
172
+ */
173
+ export type SigninClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
174
+ /**
175
+ * @public
176
+ *
177
+ * The resolved configuration interface of SigninClient class. This is resolved and normalized from the {@link SigninClientConfig | constructor configuration interface}.
178
+ */
179
+ export interface SigninClientResolvedConfig extends SigninClientResolvedConfigType {
180
+ }
181
+ /**
182
+ * AWS Sign-In manages authentication for AWS services. This service provides
183
+ * secure authentication flows for accessing AWS resources from the console and developer tools.
184
+ * @public
185
+ */
186
+ export declare class SigninClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig> {
187
+ /**
188
+ * The resolved configuration of SigninClient class. This is resolved and normalized from the {@link SigninClientConfig | constructor configuration interface}.
189
+ */
190
+ readonly config: SigninClientResolvedConfig;
191
+ constructor(...[configuration]: __CheckOptionalClientConfig<SigninClientConfig>);
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,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { SigninHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: SigninHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): SigninHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { SigninClientResolvedConfig } from "../SigninClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface SigninHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface SigninHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SigninClientResolvedConfig, HandlerExecutionContext, SigninHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultSigninHttpAuthSchemeParametersProvider: (config: SigninClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SigninHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface SigninHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SigninHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultSigninHttpAuthSchemeProvider: SigninHttpAuthSchemeProvider;
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?: SigninHttpAuthSchemeProvider;
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: SigninHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;