@aws-sdk/nested-clients
Advanced tools
Comparing version
@@ -52,4 +52,6 @@ "use strict"; | ||
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config); | ||
return Object.assign(config_0, {}); | ||
return Object.assign(config_0, { | ||
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []), | ||
}); | ||
}; | ||
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; |
@@ -58,4 +58,6 @@ "use strict"; | ||
const config_1 = (0, core_1.resolveAwsSdkSigV4Config)(config_0); | ||
return Object.assign(config_1, {}); | ||
return Object.assign(config_1, { | ||
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []), | ||
}); | ||
}; | ||
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig; |
@@ -47,3 +47,5 @@ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core"; | ||
const config_0 = resolveAwsSdkSigV4Config(config); | ||
return Object.assign(config_0, {}); | ||
return Object.assign(config_0, { | ||
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
}); | ||
}; |
@@ -52,3 +52,5 @@ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core"; | ||
const config_1 = resolveAwsSdkSigV4Config(config_0); | ||
return Object.assign(config_1, {}); | ||
return Object.assign(config_1, { | ||
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), | ||
}); | ||
}; |
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core"; | ||
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types"; | ||
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types"; | ||
import { SSOOIDCClientResolvedConfig } from "../SSOOIDCClient"; | ||
@@ -33,2 +33,9 @@ /** | ||
/** | ||
* A comma-separated list of case-sensitive auth scheme names. | ||
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. | ||
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. | ||
* @public | ||
*/ | ||
authSchemePreference?: string[] | Provider<string[]>; | ||
/** | ||
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. | ||
@@ -49,2 +56,9 @@ * @internal | ||
/** | ||
* A comma-separated list of case-sensitive auth scheme names. | ||
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. | ||
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. | ||
* @public | ||
*/ | ||
readonly authSchemePreference: Provider<string[]>; | ||
/** | ||
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. | ||
@@ -51,0 +65,0 @@ * @internal |
@@ -40,2 +40,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
@@ -42,0 +43,0 @@ schemeId: string; |
@@ -40,2 +40,3 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
@@ -42,0 +43,0 @@ schemeId: string; |
@@ -39,2 +39,3 @@ import { SSOOIDCClientConfig } from "./SSOOIDCClient"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
@@ -41,0 +42,0 @@ schemeId: string; |
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core"; | ||
import { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types"; | ||
import { Client, HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types"; | ||
import { STSClientResolvedConfig } from "../STSClient"; | ||
@@ -43,2 +43,9 @@ /** | ||
/** | ||
* A comma-separated list of case-sensitive auth scheme names. | ||
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. | ||
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. | ||
* @public | ||
*/ | ||
authSchemePreference?: string[] | Provider<string[]>; | ||
/** | ||
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. | ||
@@ -59,2 +66,9 @@ * @internal | ||
/** | ||
* A comma-separated list of case-sensitive auth scheme names. | ||
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. | ||
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. | ||
* @public | ||
*/ | ||
readonly authSchemePreference: Provider<string[]>; | ||
/** | ||
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. | ||
@@ -61,0 +75,0 @@ * @internal |
@@ -41,2 +41,3 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
@@ -43,0 +44,0 @@ schemeId: string; |
@@ -48,2 +48,3 @@ import { NoAuthSigner } from "@smithy/core"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider; | ||
@@ -50,0 +51,0 @@ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined; |
@@ -40,2 +40,3 @@ import { STSClientConfig } from "./STSClient"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined; | ||
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({ | ||
@@ -42,0 +43,0 @@ schemeId: string; |
@@ -12,2 +12,3 @@ import { | ||
HttpAuthSchemeProvider, | ||
Provider, | ||
} from "@smithy/types"; | ||
@@ -35,2 +36,3 @@ import { SSOOIDCClientResolvedConfig } from "../SSOOIDCClient"; | ||
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { | ||
authSchemePreference?: string[] | Provider<string[]>; | ||
httpAuthSchemes?: HttpAuthScheme[]; | ||
@@ -41,2 +43,3 @@ httpAuthSchemeProvider?: SSOOIDCHttpAuthSchemeProvider; | ||
extends AwsSdkSigV4AuthResolvedConfig { | ||
readonly authSchemePreference: Provider<string[]>; | ||
readonly httpAuthSchemes: HttpAuthScheme[]; | ||
@@ -43,0 +46,0 @@ readonly httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider; |
@@ -70,2 +70,6 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: | ||
| string[] | ||
| import("@smithy/types").Provider<string[]> | ||
| undefined; | ||
httpAuthSchemes: | ||
@@ -72,0 +76,0 @@ | import("@smithy/types").HttpAuthScheme[] |
@@ -67,2 +67,6 @@ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: | ||
| string[] | ||
| import("@smithy/types").Provider<string[]> | ||
| undefined; | ||
httpAuthSchemes: | ||
@@ -69,0 +73,0 @@ | import("@smithy/types").HttpAuthScheme[] |
@@ -74,2 +74,6 @@ import { SSOOIDCClientConfig } from "./SSOOIDCClient"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: | ||
| string[] | ||
| import("@smithy/types").Provider<string[]> | ||
| undefined; | ||
httpAuthSchemes: | ||
@@ -76,0 +80,0 @@ | import("@smithy/types").HttpAuthScheme[] |
@@ -13,2 +13,3 @@ import { | ||
HttpAuthSchemeProvider, | ||
Provider, | ||
} from "@smithy/types"; | ||
@@ -44,2 +45,3 @@ import { STSClientResolvedConfig } from "../STSClient"; | ||
AwsSdkSigV4AuthInputConfig { | ||
authSchemePreference?: string[] | Provider<string[]>; | ||
httpAuthSchemes?: HttpAuthScheme[]; | ||
@@ -51,2 +53,3 @@ httpAuthSchemeProvider?: STSHttpAuthSchemeProvider; | ||
AwsSdkSigV4AuthResolvedConfig { | ||
readonly authSchemePreference: Provider<string[]>; | ||
readonly httpAuthSchemes: HttpAuthScheme[]; | ||
@@ -53,0 +56,0 @@ readonly httpAuthSchemeProvider: STSHttpAuthSchemeProvider; |
@@ -77,2 +77,6 @@ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: | ||
| string[] | ||
| import("@smithy/types").Provider<string[]> | ||
| undefined; | ||
httpAuthSchemes: | ||
@@ -79,0 +83,0 @@ | import("@smithy/types").HttpAuthScheme[] |
@@ -87,2 +87,6 @@ import { NoAuthSigner } from "@smithy/core"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: | ||
| string[] | ||
| import("@smithy/types").Provider<string[]> | ||
| undefined; | ||
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").STSHttpAuthSchemeProvider; | ||
@@ -89,0 +93,0 @@ credentials?: |
@@ -81,2 +81,6 @@ import { STSClientConfig } from "./STSClient"; | ||
serviceConfiguredEndpoint?: undefined; | ||
authSchemePreference?: | ||
| string[] | ||
| import("@smithy/types").Provider<string[]> | ||
| undefined; | ||
httpAuthSchemes: | ||
@@ -83,0 +87,0 @@ | import("@smithy/types").HttpAuthScheme[] |
{ | ||
"name": "@aws-sdk/nested-clients", | ||
"version": "3.796.0", | ||
"version": "3.797.0", | ||
"description": "Nested clients for AWS SDK packages.", | ||
@@ -5,0 +5,0 @@ "main": "./dist-cjs/index.js", |
456177
0.7%9742
0.74%