diff --git a/clients/client-accessanalyzer/src/auth/httpAuthSchemeProvider.ts b/clients/client-accessanalyzer/src/auth/httpAuthSchemeProvider.ts index 1e6101e08266..acc496b874a2 100644 --- a/clients/client-accessanalyzer/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-accessanalyzer/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultAccessAnalyzerHttpAuthSchemeProvider: AccessAnalyzerHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-account/src/auth/httpAuthSchemeProvider.ts b/clients/client-account/src/auth/httpAuthSchemeProvider.ts index 578202cf4732..a6fc6f441d7b 100644 --- a/clients/client-account/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-account/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAccountHttpAuthSchemeProvider: AccountHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts b/clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts index 94bdb3daaaa7..77cdc2a87fe6 100644 --- a/clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultACMPCAHttpAuthSchemeProvider: ACMPCAHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-acm/src/auth/httpAuthSchemeProvider.ts b/clients/client-acm/src/auth/httpAuthSchemeProvider.ts index 5ed2408997f7..9ce8cd153426 100644 --- a/clients/client-acm/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-acm/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultACMHttpAuthSchemeProvider: ACMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-amp/src/auth/httpAuthSchemeProvider.ts b/clients/client-amp/src/auth/httpAuthSchemeProvider.ts index 9c56eea2ff67..b24abdceb673 100644 --- a/clients/client-amp/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-amp/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAmpHttpAuthSchemeProvider: AmpHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-amplify/src/auth/httpAuthSchemeProvider.ts b/clients/client-amplify/src/auth/httpAuthSchemeProvider.ts index 0a950d08abfb..1fbe19b47b09 100644 --- a/clients/client-amplify/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-amplify/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAmplifyHttpAuthSchemeProvider: AmplifyHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-amplifybackend/src/auth/httpAuthSchemeProvider.ts b/clients/client-amplifybackend/src/auth/httpAuthSchemeProvider.ts index c824229a2812..3b8db178b6b0 100644 --- a/clients/client-amplifybackend/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-amplifybackend/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultAmplifyBackendHttpAuthSchemeProvider: AmplifyBackendHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-amplifyuibuilder/src/auth/httpAuthSchemeProvider.ts b/clients/client-amplifyuibuilder/src/auth/httpAuthSchemeProvider.ts index ebcf7b1c8b6c..c4b0606fb073 100644 --- a/clients/client-amplifyuibuilder/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-amplifyuibuilder/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultAmplifyUIBuilderHttpAuthSchemeProvider: AmplifyUIBuilderHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-api-gateway/src/auth/httpAuthSchemeProvider.ts b/clients/client-api-gateway/src/auth/httpAuthSchemeProvider.ts index 59474aec138e..1fdf355547d3 100644 --- a/clients/client-api-gateway/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-api-gateway/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAPIGatewayHttpAuthSchemeProvider: APIGatewayHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-apigatewaymanagementapi/src/auth/httpAuthSchemeProvider.ts b/clients/client-apigatewaymanagementapi/src/auth/httpAuthSchemeProvider.ts index 35316168380c..e77f3589d9f5 100644 --- a/clients/client-apigatewaymanagementapi/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-apigatewaymanagementapi/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultApiGatewayManagementApiHttpAuthSchemeProvider: ApiGatewayMan * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-apigatewayv2/src/auth/httpAuthSchemeProvider.ts b/clients/client-apigatewayv2/src/auth/httpAuthSchemeProvider.ts index b8de1d64dfd3..f1ebc33d2f11 100644 --- a/clients/client-apigatewayv2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-apigatewayv2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultApiGatewayV2HttpAuthSchemeProvider: ApiGatewayV2HttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-app-mesh/src/auth/httpAuthSchemeProvider.ts b/clients/client-app-mesh/src/auth/httpAuthSchemeProvider.ts index 0b947d0f8fa8..23fec92d55d4 100644 --- a/clients/client-app-mesh/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-app-mesh/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppMeshHttpAuthSchemeProvider: AppMeshHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appconfig/src/auth/httpAuthSchemeProvider.ts b/clients/client-appconfig/src/auth/httpAuthSchemeProvider.ts index 449a640a2c01..b18a55d25379 100644 --- a/clients/client-appconfig/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appconfig/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppConfigHttpAuthSchemeProvider: AppConfigHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appconfigdata/src/auth/httpAuthSchemeProvider.ts b/clients/client-appconfigdata/src/auth/httpAuthSchemeProvider.ts index 21e15da5a5f2..b051c60a96c1 100644 --- a/clients/client-appconfigdata/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appconfigdata/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultAppConfigDataHttpAuthSchemeProvider: AppConfigDataHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appfabric/src/auth/httpAuthSchemeProvider.ts b/clients/client-appfabric/src/auth/httpAuthSchemeProvider.ts index a52e4c0d99b3..7df31e67ba2c 100644 --- a/clients/client-appfabric/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appfabric/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppFabricHttpAuthSchemeProvider: AppFabricHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appflow/src/auth/httpAuthSchemeProvider.ts b/clients/client-appflow/src/auth/httpAuthSchemeProvider.ts index be9e84c08b2f..267c80e43ef0 100644 --- a/clients/client-appflow/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appflow/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppflowHttpAuthSchemeProvider: AppflowHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appintegrations/src/auth/httpAuthSchemeProvider.ts b/clients/client-appintegrations/src/auth/httpAuthSchemeProvider.ts index 4e87fff970c3..5ea8d8c09078 100644 --- a/clients/client-appintegrations/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appintegrations/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultAppIntegrationsHttpAuthSchemeProvider: AppIntegrationsHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-application-auto-scaling/src/auth/httpAuthSchemeProvider.ts b/clients/client-application-auto-scaling/src/auth/httpAuthSchemeProvider.ts index 0338d502ff02..2fc8a6a231f1 100644 --- a/clients/client-application-auto-scaling/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-application-auto-scaling/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultApplicationAutoScalingHttpAuthSchemeProvider: ApplicationAut * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-application-discovery-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-application-discovery-service/src/auth/httpAuthSchemeProvider.ts index ff5194aab992..de2c6a0b2ef8 100644 --- a/clients/client-application-discovery-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-application-discovery-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultApplicationDiscoveryServiceHttpAuthSchemeProvider: Applicati * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-application-insights/src/auth/httpAuthSchemeProvider.ts b/clients/client-application-insights/src/auth/httpAuthSchemeProvider.ts index 75c0b554813b..b6c401542a52 100644 --- a/clients/client-application-insights/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-application-insights/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultApplicationInsightsHttpAuthSchemeProvider: ApplicationInsigh * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-application-signals/src/auth/httpAuthSchemeProvider.ts b/clients/client-application-signals/src/auth/httpAuthSchemeProvider.ts index 90a5f3c56058..d4bcaf94d054 100644 --- a/clients/client-application-signals/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-application-signals/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultApplicationSignalsHttpAuthSchemeProvider: ApplicationSignals * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-applicationcostprofiler/src/auth/httpAuthSchemeProvider.ts b/clients/client-applicationcostprofiler/src/auth/httpAuthSchemeProvider.ts index 17eb5e002bc0..8f05e194b6d5 100644 --- a/clients/client-applicationcostprofiler/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-applicationcostprofiler/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultApplicationCostProfilerHttpAuthSchemeProvider: ApplicationCo * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-apprunner/src/auth/httpAuthSchemeProvider.ts b/clients/client-apprunner/src/auth/httpAuthSchemeProvider.ts index 1f7c1930c32e..0cd4d5e60731 100644 --- a/clients/client-apprunner/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-apprunner/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppRunnerHttpAuthSchemeProvider: AppRunnerHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appstream/src/auth/httpAuthSchemeProvider.ts b/clients/client-appstream/src/auth/httpAuthSchemeProvider.ts index bd2cb944f7dc..85fcc50a6dd6 100644 --- a/clients/client-appstream/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appstream/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppStreamHttpAuthSchemeProvider: AppStreamHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-appsync/src/auth/httpAuthSchemeProvider.ts b/clients/client-appsync/src/auth/httpAuthSchemeProvider.ts index ecee1dab590d..76d897f52ca7 100644 --- a/clients/client-appsync/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-appsync/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppSyncHttpAuthSchemeProvider: AppSyncHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-apptest/src/auth/httpAuthSchemeProvider.ts b/clients/client-apptest/src/auth/httpAuthSchemeProvider.ts index fb8d387915e0..363475ee42ed 100644 --- a/clients/client-apptest/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-apptest/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAppTestHttpAuthSchemeProvider: AppTestHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-arc-zonal-shift/src/auth/httpAuthSchemeProvider.ts b/clients/client-arc-zonal-shift/src/auth/httpAuthSchemeProvider.ts index db085acc596e..2fbe1711eebb 100644 --- a/clients/client-arc-zonal-shift/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-arc-zonal-shift/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultARCZonalShiftHttpAuthSchemeProvider: ARCZonalShiftHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-artifact/src/auth/httpAuthSchemeProvider.ts b/clients/client-artifact/src/auth/httpAuthSchemeProvider.ts index 0ed8c530b1d2..aa9e68bdca31 100644 --- a/clients/client-artifact/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-artifact/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultArtifactHttpAuthSchemeProvider: ArtifactHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-athena/src/auth/httpAuthSchemeProvider.ts b/clients/client-athena/src/auth/httpAuthSchemeProvider.ts index 985624c2848e..0a9442f95bb5 100644 --- a/clients/client-athena/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-athena/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAthenaHttpAuthSchemeProvider: AthenaHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-auditmanager/src/auth/httpAuthSchemeProvider.ts b/clients/client-auditmanager/src/auth/httpAuthSchemeProvider.ts index cd73ceaab692..a6dc3c04d353 100644 --- a/clients/client-auditmanager/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-auditmanager/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultAuditManagerHttpAuthSchemeProvider: AuditManagerHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-auto-scaling-plans/src/auth/httpAuthSchemeProvider.ts b/clients/client-auto-scaling-plans/src/auth/httpAuthSchemeProvider.ts index a0e353dc3f51..00989319ab25 100644 --- a/clients/client-auto-scaling-plans/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-auto-scaling-plans/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultAutoScalingPlansHttpAuthSchemeProvider: AutoScalingPlansHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-auto-scaling/src/auth/httpAuthSchemeProvider.ts b/clients/client-auto-scaling/src/auth/httpAuthSchemeProvider.ts index 195f3f4006fd..314211f8c16d 100644 --- a/clients/client-auto-scaling/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-auto-scaling/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultAutoScalingHttpAuthSchemeProvider: AutoScalingHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-b2bi/src/auth/httpAuthSchemeProvider.ts b/clients/client-b2bi/src/auth/httpAuthSchemeProvider.ts index 2b487b64dc4d..feb5ee29e0f2 100644 --- a/clients/client-b2bi/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-b2bi/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultB2biHttpAuthSchemeProvider: B2biHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-backup-gateway/src/auth/httpAuthSchemeProvider.ts b/clients/client-backup-gateway/src/auth/httpAuthSchemeProvider.ts index de721e74c11c..b658929ec522 100644 --- a/clients/client-backup-gateway/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-backup-gateway/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultBackupGatewayHttpAuthSchemeProvider: BackupGatewayHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-backup/src/auth/httpAuthSchemeProvider.ts b/clients/client-backup/src/auth/httpAuthSchemeProvider.ts index c46621f70b0d..79ac3b9b17e0 100644 --- a/clients/client-backup/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-backup/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultBackupHttpAuthSchemeProvider: BackupHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-backupsearch/src/auth/httpAuthSchemeProvider.ts b/clients/client-backupsearch/src/auth/httpAuthSchemeProvider.ts index 79533661f6ff..5db7ef2c6a4f 100644 --- a/clients/client-backupsearch/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-backupsearch/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultBackupSearchHttpAuthSchemeProvider: BackupSearchHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-batch/src/auth/httpAuthSchemeProvider.ts b/clients/client-batch/src/auth/httpAuthSchemeProvider.ts index aeb0e938e869..b4f1b6a52f29 100644 --- a/clients/client-batch/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-batch/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultBatchHttpAuthSchemeProvider: BatchHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bcm-data-exports/src/auth/httpAuthSchemeProvider.ts b/clients/client-bcm-data-exports/src/auth/httpAuthSchemeProvider.ts index a044d1ca09e1..d4fc3dbd102d 100644 --- a/clients/client-bcm-data-exports/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bcm-data-exports/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultBCMDataExportsHttpAuthSchemeProvider: BCMDataExportsHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bcm-pricing-calculator/src/auth/httpAuthSchemeProvider.ts b/clients/client-bcm-pricing-calculator/src/auth/httpAuthSchemeProvider.ts index 1a8b7d5d36b0..12aa385ee25c 100644 --- a/clients/client-bcm-pricing-calculator/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bcm-pricing-calculator/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultBCMPricingCalculatorHttpAuthSchemeProvider: BCMPricingCalcul * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bedrock-agent-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock-agent-runtime/src/auth/httpAuthSchemeProvider.ts index e88089a32227..870dde678b08 100644 --- a/clients/client-bedrock-agent-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bedrock-agent-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultBedrockAgentRuntimeHttpAuthSchemeProvider: BedrockAgentRunti * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bedrock-agent/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock-agent/src/auth/httpAuthSchemeProvider.ts index 65ebb66c80f7..51dab2e22cf8 100644 --- a/clients/client-bedrock-agent/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bedrock-agent/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultBedrockAgentHttpAuthSchemeProvider: BedrockAgentHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bedrock-data-automation-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock-data-automation-runtime/src/auth/httpAuthSchemeProvider.ts index ae597918a377..401fa7ee2330 100644 --- a/clients/client-bedrock-data-automation-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bedrock-data-automation-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultBedrockDataAutomationRuntimeHttpAuthSchemeProvider: BedrockD * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts index 843b1887fd66..ae7c9e0e711c 100644 --- a/clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bedrock-data-automation/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultBedrockDataAutomationHttpAuthSchemeProvider: BedrockDataAuto * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bedrock-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock-runtime/src/auth/httpAuthSchemeProvider.ts index 917896002ae4..e86553c87851 100644 --- a/clients/client-bedrock-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bedrock-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultBedrockRuntimeHttpAuthSchemeProvider: BedrockRuntimeHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-bedrock/src/auth/httpAuthSchemeProvider.ts b/clients/client-bedrock/src/auth/httpAuthSchemeProvider.ts index 9f897a8cec8d..82db65141e79 100644 --- a/clients/client-bedrock/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-bedrock/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultBedrockHttpAuthSchemeProvider: BedrockHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-billing/src/auth/httpAuthSchemeProvider.ts b/clients/client-billing/src/auth/httpAuthSchemeProvider.ts index b6da2f84d240..408e32c859e0 100644 --- a/clients/client-billing/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-billing/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultBillingHttpAuthSchemeProvider: BillingHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-billingconductor/src/auth/httpAuthSchemeProvider.ts b/clients/client-billingconductor/src/auth/httpAuthSchemeProvider.ts index b491eb560b67..a7f87c3ea5fa 100644 --- a/clients/client-billingconductor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-billingconductor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultBillingconductorHttpAuthSchemeProvider: BillingconductorHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-braket/src/auth/httpAuthSchemeProvider.ts b/clients/client-braket/src/auth/httpAuthSchemeProvider.ts index 45ee9dafbff5..153d8a4a3eb0 100644 --- a/clients/client-braket/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-braket/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultBraketHttpAuthSchemeProvider: BraketHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-budgets/src/auth/httpAuthSchemeProvider.ts b/clients/client-budgets/src/auth/httpAuthSchemeProvider.ts index c2865028b859..3e2a87e1099a 100644 --- a/clients/client-budgets/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-budgets/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultBudgetsHttpAuthSchemeProvider: BudgetsHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chatbot/src/auth/httpAuthSchemeProvider.ts b/clients/client-chatbot/src/auth/httpAuthSchemeProvider.ts index 071988e4cf45..8e52165050d0 100644 --- a/clients/client-chatbot/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chatbot/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultChatbotHttpAuthSchemeProvider: ChatbotHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chime-sdk-identity/src/auth/httpAuthSchemeProvider.ts b/clients/client-chime-sdk-identity/src/auth/httpAuthSchemeProvider.ts index 2fcdbb8f60bb..83b858f3ea64 100644 --- a/clients/client-chime-sdk-identity/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chime-sdk-identity/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultChimeSDKIdentityHttpAuthSchemeProvider: ChimeSDKIdentityHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chime-sdk-media-pipelines/src/auth/httpAuthSchemeProvider.ts b/clients/client-chime-sdk-media-pipelines/src/auth/httpAuthSchemeProvider.ts index 11ad98eb5db8..a3b83a0ffc24 100644 --- a/clients/client-chime-sdk-media-pipelines/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chime-sdk-media-pipelines/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultChimeSDKMediaPipelinesHttpAuthSchemeProvider: ChimeSDKMediaP * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chime-sdk-meetings/src/auth/httpAuthSchemeProvider.ts b/clients/client-chime-sdk-meetings/src/auth/httpAuthSchemeProvider.ts index a86bf62256ff..d1b45ab2f5b6 100644 --- a/clients/client-chime-sdk-meetings/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chime-sdk-meetings/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultChimeSDKMeetingsHttpAuthSchemeProvider: ChimeSDKMeetingsHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chime-sdk-messaging/src/auth/httpAuthSchemeProvider.ts b/clients/client-chime-sdk-messaging/src/auth/httpAuthSchemeProvider.ts index aa0068c5f5f8..99f108e046bb 100644 --- a/clients/client-chime-sdk-messaging/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chime-sdk-messaging/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultChimeSDKMessagingHttpAuthSchemeProvider: ChimeSDKMessagingHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chime-sdk-voice/src/auth/httpAuthSchemeProvider.ts b/clients/client-chime-sdk-voice/src/auth/httpAuthSchemeProvider.ts index fd7697d2dff3..8b33215059fb 100644 --- a/clients/client-chime-sdk-voice/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chime-sdk-voice/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultChimeSDKVoiceHttpAuthSchemeProvider: ChimeSDKVoiceHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-chime/src/auth/httpAuthSchemeProvider.ts b/clients/client-chime/src/auth/httpAuthSchemeProvider.ts index ebcda7a39318..4bf4b3b36f3c 100644 --- a/clients/client-chime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-chime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultChimeHttpAuthSchemeProvider: ChimeHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cleanrooms/src/auth/httpAuthSchemeProvider.ts b/clients/client-cleanrooms/src/auth/httpAuthSchemeProvider.ts index 31c5350db119..3642175fa407 100644 --- a/clients/client-cleanrooms/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cleanrooms/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCleanRoomsHttpAuthSchemeProvider: CleanRoomsHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cleanroomsml/src/auth/httpAuthSchemeProvider.ts b/clients/client-cleanroomsml/src/auth/httpAuthSchemeProvider.ts index f3cd1cd89595..ab2c0021a92b 100644 --- a/clients/client-cleanroomsml/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cleanroomsml/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCleanRoomsMLHttpAuthSchemeProvider: CleanRoomsMLHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloud9/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloud9/src/auth/httpAuthSchemeProvider.ts index 410ef6c8770f..33fa85c94e2e 100644 --- a/clients/client-cloud9/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloud9/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCloud9HttpAuthSchemeProvider: Cloud9HttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudcontrol/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudcontrol/src/auth/httpAuthSchemeProvider.ts index e39f2b299d44..3bde2a193d3f 100644 --- a/clients/client-cloudcontrol/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudcontrol/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCloudControlHttpAuthSchemeProvider: CloudControlHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-clouddirectory/src/auth/httpAuthSchemeProvider.ts b/clients/client-clouddirectory/src/auth/httpAuthSchemeProvider.ts index b64fd047c9a3..1c99c3defd3b 100644 --- a/clients/client-clouddirectory/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-clouddirectory/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCloudDirectoryHttpAuthSchemeProvider: CloudDirectoryHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudformation/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudformation/src/auth/httpAuthSchemeProvider.ts index 2ab3375361c3..111a2ef66446 100644 --- a/clients/client-cloudformation/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudformation/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCloudFormationHttpAuthSchemeProvider: CloudFormationHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudfront-keyvaluestore/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudfront-keyvaluestore/src/auth/httpAuthSchemeProvider.ts index d125506afbe3..cb8556932dfc 100644 --- a/clients/client-cloudfront-keyvaluestore/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudfront-keyvaluestore/src/auth/httpAuthSchemeProvider.ts @@ -21,6 +21,7 @@ import { HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Logger, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -302,6 +303,14 @@ export const defaultCloudFrontKeyValueStoreHttpAuthSchemeProvider: CloudFrontKey * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -319,6 +328,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, A * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -340,5 +357,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); const config_1 = resolveAwsSdkSigV4AConfig(config_0); - return Object.assign(config_1, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudfront/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudfront/src/auth/httpAuthSchemeProvider.ts index 0697a1941ab2..3020cbdbd278 100644 --- a/clients/client-cloudfront/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudfront/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCloudFrontHttpAuthSchemeProvider: CloudFrontHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudhsm-v2/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudhsm-v2/src/auth/httpAuthSchemeProvider.ts index b474eaf82b05..903e1465934d 100644 --- a/clients/client-cloudhsm-v2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudhsm-v2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCloudHSMV2HttpAuthSchemeProvider: CloudHSMV2HttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudhsm/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudhsm/src/auth/httpAuthSchemeProvider.ts index 7f543a81601e..523966c6f149 100644 --- a/clients/client-cloudhsm/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudhsm/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCloudHSMHttpAuthSchemeProvider: CloudHSMHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudsearch-domain/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudsearch-domain/src/auth/httpAuthSchemeProvider.ts index 7ba25896b27f..f53c62da8577 100644 --- a/clients/client-cloudsearch-domain/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudsearch-domain/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCloudSearchDomainHttpAuthSchemeProvider: CloudSearchDomainHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudsearch/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudsearch/src/auth/httpAuthSchemeProvider.ts index 4cdbdc14748c..367022a79928 100644 --- a/clients/client-cloudsearch/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudsearch/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCloudSearchHttpAuthSchemeProvider: CloudSearchHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudtrail-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudtrail-data/src/auth/httpAuthSchemeProvider.ts index d75b6e38dc0f..5c1ebcdd9a26 100644 --- a/clients/client-cloudtrail-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudtrail-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCloudTrailDataHttpAuthSchemeProvider: CloudTrailDataHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudtrail/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudtrail/src/auth/httpAuthSchemeProvider.ts index 799c793fdf9b..2983ec94078c 100644 --- a/clients/client-cloudtrail/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudtrail/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCloudTrailHttpAuthSchemeProvider: CloudTrailHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudwatch-events/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudwatch-events/src/auth/httpAuthSchemeProvider.ts index a18d84bb0d93..f9d297c9df93 100644 --- a/clients/client-cloudwatch-events/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudwatch-events/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCloudWatchEventsHttpAuthSchemeProvider: CloudWatchEventsHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudwatch-logs/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudwatch-logs/src/auth/httpAuthSchemeProvider.ts index b3e447e0a938..bf40f5c3b7bd 100644 --- a/clients/client-cloudwatch-logs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudwatch-logs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCloudWatchLogsHttpAuthSchemeProvider: CloudWatchLogsHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cloudwatch/src/auth/httpAuthSchemeProvider.ts b/clients/client-cloudwatch/src/auth/httpAuthSchemeProvider.ts index 6462282498e0..86ff7af257f2 100644 --- a/clients/client-cloudwatch/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cloudwatch/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCloudWatchHttpAuthSchemeProvider: CloudWatchHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codeartifact/src/auth/httpAuthSchemeProvider.ts b/clients/client-codeartifact/src/auth/httpAuthSchemeProvider.ts index 903b29e930a5..4c0035277774 100644 --- a/clients/client-codeartifact/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codeartifact/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCodeartifactHttpAuthSchemeProvider: CodeartifactHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codebuild/src/auth/httpAuthSchemeProvider.ts b/clients/client-codebuild/src/auth/httpAuthSchemeProvider.ts index d3345dc3c8ad..70e6241484b9 100644 --- a/clients/client-codebuild/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codebuild/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCodeBuildHttpAuthSchemeProvider: CodeBuildHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codecatalyst/src/auth/httpAuthSchemeProvider.ts b/clients/client-codecatalyst/src/auth/httpAuthSchemeProvider.ts index 02a82298ea3b..42c8ea806d92 100644 --- a/clients/client-codecatalyst/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codecatalyst/src/auth/httpAuthSchemeProvider.ts @@ -8,10 +8,11 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, TokenIdentity, TokenIdentityProvider, } from "@smithy/types"; -import { getSmithyContext } from "@smithy/util-middleware"; +import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; import { CodeCatalystClientResolvedConfig } from "../CodeCatalystClient"; @@ -89,6 +90,14 @@ export const defaultCodeCatalystHttpAuthSchemeProvider: CodeCatalystHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -137,6 +154,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh); return Object.assign(config, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), token, }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codecommit/src/auth/httpAuthSchemeProvider.ts b/clients/client-codecommit/src/auth/httpAuthSchemeProvider.ts index 6956973546f3..c59caedf35a0 100644 --- a/clients/client-codecommit/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codecommit/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCodeCommitHttpAuthSchemeProvider: CodeCommitHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codeconnections/src/auth/httpAuthSchemeProvider.ts b/clients/client-codeconnections/src/auth/httpAuthSchemeProvider.ts index d285e0d2423a..7bdce74be257 100644 --- a/clients/client-codeconnections/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codeconnections/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCodeConnectionsHttpAuthSchemeProvider: CodeConnectionsHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codedeploy/src/auth/httpAuthSchemeProvider.ts b/clients/client-codedeploy/src/auth/httpAuthSchemeProvider.ts index 3e4e0949d823..1ce140f348ab 100644 --- a/clients/client-codedeploy/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codedeploy/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultCodeDeployHttpAuthSchemeProvider: CodeDeployHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codeguru-reviewer/src/auth/httpAuthSchemeProvider.ts b/clients/client-codeguru-reviewer/src/auth/httpAuthSchemeProvider.ts index 06069284f6c2..89febf508bf5 100644 --- a/clients/client-codeguru-reviewer/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codeguru-reviewer/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCodeGuruReviewerHttpAuthSchemeProvider: CodeGuruReviewerHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codeguru-security/src/auth/httpAuthSchemeProvider.ts b/clients/client-codeguru-security/src/auth/httpAuthSchemeProvider.ts index e7f449cb81b4..968985b6fda0 100644 --- a/clients/client-codeguru-security/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codeguru-security/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCodeGuruSecurityHttpAuthSchemeProvider: CodeGuruSecurityHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codeguruprofiler/src/auth/httpAuthSchemeProvider.ts b/clients/client-codeguruprofiler/src/auth/httpAuthSchemeProvider.ts index 0bf9a1a15e24..9a6af2039d91 100644 --- a/clients/client-codeguruprofiler/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codeguruprofiler/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCodeGuruProfilerHttpAuthSchemeProvider: CodeGuruProfilerHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codepipeline/src/auth/httpAuthSchemeProvider.ts b/clients/client-codepipeline/src/auth/httpAuthSchemeProvider.ts index 982f88869f39..50bbd2821c62 100644 --- a/clients/client-codepipeline/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codepipeline/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCodePipelineHttpAuthSchemeProvider: CodePipelineHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codestar-connections/src/auth/httpAuthSchemeProvider.ts b/clients/client-codestar-connections/src/auth/httpAuthSchemeProvider.ts index 324620b80e41..d97780c673c4 100644 --- a/clients/client-codestar-connections/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codestar-connections/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCodeStarConnectionsHttpAuthSchemeProvider: CodeStarConnectio * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-codestar-notifications/src/auth/httpAuthSchemeProvider.ts b/clients/client-codestar-notifications/src/auth/httpAuthSchemeProvider.ts index 0f46139b3e40..35593d6ce03e 100644 --- a/clients/client-codestar-notifications/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-codestar-notifications/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultCodestarNotificationsHttpAuthSchemeProvider: CodestarNotific * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cognito-identity-provider/src/auth/httpAuthSchemeProvider.ts b/clients/client-cognito-identity-provider/src/auth/httpAuthSchemeProvider.ts index a4d541879ff8..5dbd976a22e6 100644 --- a/clients/client-cognito-identity-provider/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cognito-identity-provider/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -234,6 +235,14 @@ export const defaultCognitoIdentityProviderHttpAuthSchemeProvider: CognitoIdenti * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -251,6 +260,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -271,5 +288,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cognito-identity/src/auth/httpAuthSchemeProvider.ts b/clients/client-cognito-identity/src/auth/httpAuthSchemeProvider.ts index 8d5648f2caf8..119ef284a6e8 100644 --- a/clients/client-cognito-identity/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cognito-identity/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -117,6 +118,14 @@ export const defaultCognitoIdentityHttpAuthSchemeProvider: CognitoIdentityHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,6 +143,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -154,5 +171,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cognito-sync/src/auth/httpAuthSchemeProvider.ts b/clients/client-cognito-sync/src/auth/httpAuthSchemeProvider.ts index ce003915d486..557a24baeff3 100644 --- a/clients/client-cognito-sync/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cognito-sync/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCognitoSyncHttpAuthSchemeProvider: CognitoSyncHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-comprehend/src/auth/httpAuthSchemeProvider.ts b/clients/client-comprehend/src/auth/httpAuthSchemeProvider.ts index ce28a335a1f9..d0b233ff16a7 100644 --- a/clients/client-comprehend/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-comprehend/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultComprehendHttpAuthSchemeProvider: ComprehendHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-comprehendmedical/src/auth/httpAuthSchemeProvider.ts b/clients/client-comprehendmedical/src/auth/httpAuthSchemeProvider.ts index ea57961fe183..1a0629f2dfdd 100644 --- a/clients/client-comprehendmedical/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-comprehendmedical/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultComprehendMedicalHttpAuthSchemeProvider: ComprehendMedicalHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-compute-optimizer/src/auth/httpAuthSchemeProvider.ts b/clients/client-compute-optimizer/src/auth/httpAuthSchemeProvider.ts index 96bd7907e50f..83d2dc97ccbb 100644 --- a/clients/client-compute-optimizer/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-compute-optimizer/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultComputeOptimizerHttpAuthSchemeProvider: ComputeOptimizerHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-config-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-config-service/src/auth/httpAuthSchemeProvider.ts index 7ac98a922cb5..d35bd179bc12 100644 --- a/clients/client-config-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-config-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultConfigServiceHttpAuthSchemeProvider: ConfigServiceHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-connect-contact-lens/src/auth/httpAuthSchemeProvider.ts b/clients/client-connect-contact-lens/src/auth/httpAuthSchemeProvider.ts index e455619aab6a..81d78849dd01 100644 --- a/clients/client-connect-contact-lens/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-connect-contact-lens/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultConnectContactLensHttpAuthSchemeProvider: ConnectContactLens * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-connect/src/auth/httpAuthSchemeProvider.ts b/clients/client-connect/src/auth/httpAuthSchemeProvider.ts index d528a6d60eba..010934d05339 100644 --- a/clients/client-connect/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-connect/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultConnectHttpAuthSchemeProvider: ConnectHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-connectcampaigns/src/auth/httpAuthSchemeProvider.ts b/clients/client-connectcampaigns/src/auth/httpAuthSchemeProvider.ts index 05965fe99031..9043f66fbfa3 100644 --- a/clients/client-connectcampaigns/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-connectcampaigns/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultConnectCampaignsHttpAuthSchemeProvider: ConnectCampaignsHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-connectcampaignsv2/src/auth/httpAuthSchemeProvider.ts b/clients/client-connectcampaignsv2/src/auth/httpAuthSchemeProvider.ts index cd2d54f8b946..1c38891c55fa 100644 --- a/clients/client-connectcampaignsv2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-connectcampaignsv2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultConnectCampaignsV2HttpAuthSchemeProvider: ConnectCampaignsV2 * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-connectcases/src/auth/httpAuthSchemeProvider.ts b/clients/client-connectcases/src/auth/httpAuthSchemeProvider.ts index bf0570e59eff..6b084b0ef6ac 100644 --- a/clients/client-connectcases/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-connectcases/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultConnectCasesHttpAuthSchemeProvider: ConnectCasesHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-connectparticipant/src/auth/httpAuthSchemeProvider.ts b/clients/client-connectparticipant/src/auth/httpAuthSchemeProvider.ts index daaba7ddc05b..e9b9548327e0 100644 --- a/clients/client-connectparticipant/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-connectparticipant/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultConnectParticipantHttpAuthSchemeProvider: ConnectParticipant * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-controlcatalog/src/auth/httpAuthSchemeProvider.ts b/clients/client-controlcatalog/src/auth/httpAuthSchemeProvider.ts index 5abd7e1913f6..eabea8c8a977 100644 --- a/clients/client-controlcatalog/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-controlcatalog/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultControlCatalogHttpAuthSchemeProvider: ControlCatalogHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-controltower/src/auth/httpAuthSchemeProvider.ts b/clients/client-controltower/src/auth/httpAuthSchemeProvider.ts index 1fcea019a4a5..c2d208185ef5 100644 --- a/clients/client-controltower/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-controltower/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultControlTowerHttpAuthSchemeProvider: ControlTowerHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cost-and-usage-report-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-cost-and-usage-report-service/src/auth/httpAuthSchemeProvider.ts index e97a82939e4d..40a0834d63c1 100644 --- a/clients/client-cost-and-usage-report-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cost-and-usage-report-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultCostAndUsageReportServiceHttpAuthSchemeProvider: CostAndUsag * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cost-explorer/src/auth/httpAuthSchemeProvider.ts b/clients/client-cost-explorer/src/auth/httpAuthSchemeProvider.ts index 485f87b42f3e..9924dd260ffa 100644 --- a/clients/client-cost-explorer/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cost-explorer/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultCostExplorerHttpAuthSchemeProvider: CostExplorerHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-cost-optimization-hub/src/auth/httpAuthSchemeProvider.ts b/clients/client-cost-optimization-hub/src/auth/httpAuthSchemeProvider.ts index efc849086424..b170f2ca90f8 100644 --- a/clients/client-cost-optimization-hub/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-cost-optimization-hub/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCostOptimizationHubHttpAuthSchemeProvider: CostOptimizationH * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-customer-profiles/src/auth/httpAuthSchemeProvider.ts b/clients/client-customer-profiles/src/auth/httpAuthSchemeProvider.ts index 78b41d61895b..00074fb007dc 100644 --- a/clients/client-customer-profiles/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-customer-profiles/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultCustomerProfilesHttpAuthSchemeProvider: CustomerProfilesHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-data-pipeline/src/auth/httpAuthSchemeProvider.ts b/clients/client-data-pipeline/src/auth/httpAuthSchemeProvider.ts index b65b45ccf270..001fb7ca67cb 100644 --- a/clients/client-data-pipeline/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-data-pipeline/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultDataPipelineHttpAuthSchemeProvider: DataPipelineHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-database-migration-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-database-migration-service/src/auth/httpAuthSchemeProvider.ts index 1eabeb1a1f5c..fac95b3019fe 100644 --- a/clients/client-database-migration-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-database-migration-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultDatabaseMigrationServiceHttpAuthSchemeProvider: DatabaseMigr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-databrew/src/auth/httpAuthSchemeProvider.ts b/clients/client-databrew/src/auth/httpAuthSchemeProvider.ts index c5287ab14077..01d0491a763a 100644 --- a/clients/client-databrew/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-databrew/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDataBrewHttpAuthSchemeProvider: DataBrewHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-dataexchange/src/auth/httpAuthSchemeProvider.ts b/clients/client-dataexchange/src/auth/httpAuthSchemeProvider.ts index 8362a6aa33b5..2f08acd784e8 100644 --- a/clients/client-dataexchange/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-dataexchange/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultDataExchangeHttpAuthSchemeProvider: DataExchangeHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-datasync/src/auth/httpAuthSchemeProvider.ts b/clients/client-datasync/src/auth/httpAuthSchemeProvider.ts index 12969362d2cc..0c79f068a844 100644 --- a/clients/client-datasync/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-datasync/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDataSyncHttpAuthSchemeProvider: DataSyncHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-datazone/src/auth/httpAuthSchemeProvider.ts b/clients/client-datazone/src/auth/httpAuthSchemeProvider.ts index 52e4a8697fed..7e242820f3bf 100644 --- a/clients/client-datazone/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-datazone/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDataZoneHttpAuthSchemeProvider: DataZoneHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-dax/src/auth/httpAuthSchemeProvider.ts b/clients/client-dax/src/auth/httpAuthSchemeProvider.ts index 4610eb9f3009..4ce8f23174ef 100644 --- a/clients/client-dax/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-dax/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDAXHttpAuthSchemeProvider: DAXHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-deadline/src/auth/httpAuthSchemeProvider.ts b/clients/client-deadline/src/auth/httpAuthSchemeProvider.ts index cebc0dbf0a82..95b783381c3c 100644 --- a/clients/client-deadline/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-deadline/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDeadlineHttpAuthSchemeProvider: DeadlineHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-detective/src/auth/httpAuthSchemeProvider.ts b/clients/client-detective/src/auth/httpAuthSchemeProvider.ts index 4d21e1aacd4e..b1d152abde4f 100644 --- a/clients/client-detective/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-detective/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDetectiveHttpAuthSchemeProvider: DetectiveHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-device-farm/src/auth/httpAuthSchemeProvider.ts b/clients/client-device-farm/src/auth/httpAuthSchemeProvider.ts index 066dbe20db78..62539114c065 100644 --- a/clients/client-device-farm/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-device-farm/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDeviceFarmHttpAuthSchemeProvider: DeviceFarmHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-devops-guru/src/auth/httpAuthSchemeProvider.ts b/clients/client-devops-guru/src/auth/httpAuthSchemeProvider.ts index 2e49239cac38..1ca1df8c7bae 100644 --- a/clients/client-devops-guru/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-devops-guru/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDevOpsGuruHttpAuthSchemeProvider: DevOpsGuruHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-direct-connect/src/auth/httpAuthSchemeProvider.ts b/clients/client-direct-connect/src/auth/httpAuthSchemeProvider.ts index acee9d9f5827..e5145c671caf 100644 --- a/clients/client-direct-connect/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-direct-connect/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultDirectConnectHttpAuthSchemeProvider: DirectConnectHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-directory-service-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-directory-service-data/src/auth/httpAuthSchemeProvider.ts index c446ec599385..9e715473639d 100644 --- a/clients/client-directory-service-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-directory-service-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultDirectoryServiceDataHttpAuthSchemeProvider: DirectoryService * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-directory-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-directory-service/src/auth/httpAuthSchemeProvider.ts index 042aed9e3c8e..f71a7415fa86 100644 --- a/clients/client-directory-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-directory-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultDirectoryServiceHttpAuthSchemeProvider: DirectoryServiceHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-dlm/src/auth/httpAuthSchemeProvider.ts b/clients/client-dlm/src/auth/httpAuthSchemeProvider.ts index 52813ff70dd6..731fbd002d5b 100644 --- a/clients/client-dlm/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-dlm/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDLMHttpAuthSchemeProvider: DLMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-docdb-elastic/src/auth/httpAuthSchemeProvider.ts b/clients/client-docdb-elastic/src/auth/httpAuthSchemeProvider.ts index 290633385ac0..203fb87ec6aa 100644 --- a/clients/client-docdb-elastic/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-docdb-elastic/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultDocDBElasticHttpAuthSchemeProvider: DocDBElasticHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-docdb/src/auth/httpAuthSchemeProvider.ts b/clients/client-docdb/src/auth/httpAuthSchemeProvider.ts index e7f80e1e3488..79dd61b13998 100644 --- a/clients/client-docdb/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-docdb/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDocDBHttpAuthSchemeProvider: DocDBHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-drs/src/auth/httpAuthSchemeProvider.ts b/clients/client-drs/src/auth/httpAuthSchemeProvider.ts index 8bbaaf926a7c..77d4fec3c7d8 100644 --- a/clients/client-drs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-drs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDrsHttpAuthSchemeProvider: DrsHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-dsql/src/auth/httpAuthSchemeProvider.ts b/clients/client-dsql/src/auth/httpAuthSchemeProvider.ts index 26b2b514a15e..74995621f721 100644 --- a/clients/client-dsql/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-dsql/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDSQLHttpAuthSchemeProvider: DSQLHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-dynamodb-streams/src/auth/httpAuthSchemeProvider.ts b/clients/client-dynamodb-streams/src/auth/httpAuthSchemeProvider.ts index 9c839e571b64..d0c8f0717163 100644 --- a/clients/client-dynamodb-streams/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-dynamodb-streams/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultDynamoDBStreamsHttpAuthSchemeProvider: DynamoDBStreamsHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-dynamodb/src/auth/httpAuthSchemeProvider.ts b/clients/client-dynamodb/src/auth/httpAuthSchemeProvider.ts index ae210971efcc..866a4245257d 100644 --- a/clients/client-dynamodb/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-dynamodb/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultDynamoDBHttpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ebs/src/auth/httpAuthSchemeProvider.ts b/clients/client-ebs/src/auth/httpAuthSchemeProvider.ts index 4078b74a8aa9..dbf66e86c032 100644 --- a/clients/client-ebs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ebs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEBSHttpAuthSchemeProvider: EBSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ec2-instance-connect/src/auth/httpAuthSchemeProvider.ts b/clients/client-ec2-instance-connect/src/auth/httpAuthSchemeProvider.ts index aa9f9946ce97..d2ab84d882ae 100644 --- a/clients/client-ec2-instance-connect/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ec2-instance-connect/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultEC2InstanceConnectHttpAuthSchemeProvider: EC2InstanceConnect * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ec2/src/auth/httpAuthSchemeProvider.ts b/clients/client-ec2/src/auth/httpAuthSchemeProvider.ts index 76fe0fb24d9d..04b681ea3683 100644 --- a/clients/client-ec2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ec2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEC2HttpAuthSchemeProvider: EC2HttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ecr-public/src/auth/httpAuthSchemeProvider.ts b/clients/client-ecr-public/src/auth/httpAuthSchemeProvider.ts index 447af95ab187..0047865d4e9d 100644 --- a/clients/client-ecr-public/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ecr-public/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultECRPUBLICHttpAuthSchemeProvider: ECRPUBLICHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ecr/src/auth/httpAuthSchemeProvider.ts b/clients/client-ecr/src/auth/httpAuthSchemeProvider.ts index 335a87b79872..c32e5aaef18c 100644 --- a/clients/client-ecr/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ecr/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultECRHttpAuthSchemeProvider: ECRHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ecs/src/auth/httpAuthSchemeProvider.ts b/clients/client-ecs/src/auth/httpAuthSchemeProvider.ts index c557751502d9..30bcb35cce27 100644 --- a/clients/client-ecs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ecs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultECSHttpAuthSchemeProvider: ECSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-efs/src/auth/httpAuthSchemeProvider.ts b/clients/client-efs/src/auth/httpAuthSchemeProvider.ts index c89f33bb3d0b..cf74a4c85f9e 100644 --- a/clients/client-efs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-efs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEFSHttpAuthSchemeProvider: EFSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-eks-auth/src/auth/httpAuthSchemeProvider.ts b/clients/client-eks-auth/src/auth/httpAuthSchemeProvider.ts index 993b4ba306dc..d564ada9ee6a 100644 --- a/clients/client-eks-auth/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-eks-auth/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEKSAuthHttpAuthSchemeProvider: EKSAuthHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-eks/src/auth/httpAuthSchemeProvider.ts b/clients/client-eks/src/auth/httpAuthSchemeProvider.ts index 55db6d82e794..34abe82e00d5 100644 --- a/clients/client-eks/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-eks/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEKSHttpAuthSchemeProvider: EKSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-elastic-beanstalk/src/auth/httpAuthSchemeProvider.ts b/clients/client-elastic-beanstalk/src/auth/httpAuthSchemeProvider.ts index 39cd8c7e604f..cc4ed2f8dfe4 100644 --- a/clients/client-elastic-beanstalk/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-elastic-beanstalk/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultElasticBeanstalkHttpAuthSchemeProvider: ElasticBeanstalkHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-elastic-load-balancing-v2/src/auth/httpAuthSchemeProvider.ts b/clients/client-elastic-load-balancing-v2/src/auth/httpAuthSchemeProvider.ts index 468380eaed0e..72f569161ff3 100644 --- a/clients/client-elastic-load-balancing-v2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-elastic-load-balancing-v2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultElasticLoadBalancingV2HttpAuthSchemeProvider: ElasticLoadBal * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-elastic-load-balancing/src/auth/httpAuthSchemeProvider.ts b/clients/client-elastic-load-balancing/src/auth/httpAuthSchemeProvider.ts index e97314d2b38a..9995f127df17 100644 --- a/clients/client-elastic-load-balancing/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-elastic-load-balancing/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultElasticLoadBalancingHttpAuthSchemeProvider: ElasticLoadBalan * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-elastic-transcoder/src/auth/httpAuthSchemeProvider.ts b/clients/client-elastic-transcoder/src/auth/httpAuthSchemeProvider.ts index de8ecc7e1940..1a493dc3c13e 100644 --- a/clients/client-elastic-transcoder/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-elastic-transcoder/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultElasticTranscoderHttpAuthSchemeProvider: ElasticTranscoderHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-elasticache/src/auth/httpAuthSchemeProvider.ts b/clients/client-elasticache/src/auth/httpAuthSchemeProvider.ts index 032bd821dbcf..0be72830eabc 100644 --- a/clients/client-elasticache/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-elasticache/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultElastiCacheHttpAuthSchemeProvider: ElastiCacheHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-elasticsearch-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-elasticsearch-service/src/auth/httpAuthSchemeProvider.ts index 91a905b3a620..fbec92b38093 100644 --- a/clients/client-elasticsearch-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-elasticsearch-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultElasticsearchServiceHttpAuthSchemeProvider: ElasticsearchSer * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-emr-containers/src/auth/httpAuthSchemeProvider.ts b/clients/client-emr-containers/src/auth/httpAuthSchemeProvider.ts index 7774682dbe38..8cb29ac20063 100644 --- a/clients/client-emr-containers/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-emr-containers/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultEMRContainersHttpAuthSchemeProvider: EMRContainersHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-emr-serverless/src/auth/httpAuthSchemeProvider.ts b/clients/client-emr-serverless/src/auth/httpAuthSchemeProvider.ts index 27b185e97d1f..9f3d87234248 100644 --- a/clients/client-emr-serverless/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-emr-serverless/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultEMRServerlessHttpAuthSchemeProvider: EMRServerlessHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-emr/src/auth/httpAuthSchemeProvider.ts b/clients/client-emr/src/auth/httpAuthSchemeProvider.ts index eb008d23e7bd..c0d8c3e86b6a 100644 --- a/clients/client-emr/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-emr/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEMRHttpAuthSchemeProvider: EMRHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-entityresolution/src/auth/httpAuthSchemeProvider.ts b/clients/client-entityresolution/src/auth/httpAuthSchemeProvider.ts index 28e558f428e6..f66898febe6c 100644 --- a/clients/client-entityresolution/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-entityresolution/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultEntityResolutionHttpAuthSchemeProvider: EntityResolutionHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-eventbridge/src/auth/httpAuthSchemeProvider.ts b/clients/client-eventbridge/src/auth/httpAuthSchemeProvider.ts index 64092cd090e8..fd749bd34691 100644 --- a/clients/client-eventbridge/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-eventbridge/src/auth/httpAuthSchemeProvider.ts @@ -21,6 +21,7 @@ import { HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Logger, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -284,6 +285,14 @@ export const defaultEventBridgeHttpAuthSchemeProvider: EventBridgeHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -301,6 +310,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, A * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -322,5 +339,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); const config_1 = resolveAwsSdkSigV4AConfig(config_0); - return Object.assign(config_1, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-evidently/src/auth/httpAuthSchemeProvider.ts b/clients/client-evidently/src/auth/httpAuthSchemeProvider.ts index 6cd78fd7a755..a12ec7f904ad 100644 --- a/clients/client-evidently/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-evidently/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultEvidentlyHttpAuthSchemeProvider: EvidentlyHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-finspace-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-finspace-data/src/auth/httpAuthSchemeProvider.ts index aac5c493fd19..5317800929e7 100644 --- a/clients/client-finspace-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-finspace-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultFinspaceDataHttpAuthSchemeProvider: FinspaceDataHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-finspace/src/auth/httpAuthSchemeProvider.ts b/clients/client-finspace/src/auth/httpAuthSchemeProvider.ts index c4b011342f1f..c2af29238ffc 100644 --- a/clients/client-finspace/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-finspace/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultFinspaceHttpAuthSchemeProvider: FinspaceHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-firehose/src/auth/httpAuthSchemeProvider.ts b/clients/client-firehose/src/auth/httpAuthSchemeProvider.ts index c2226613c96c..cd79e4eb2c4e 100644 --- a/clients/client-firehose/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-firehose/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultFirehoseHttpAuthSchemeProvider: FirehoseHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-fis/src/auth/httpAuthSchemeProvider.ts b/clients/client-fis/src/auth/httpAuthSchemeProvider.ts index 18dfc9c54f2b..beacf85908ea 100644 --- a/clients/client-fis/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-fis/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultFisHttpAuthSchemeProvider: FisHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-fms/src/auth/httpAuthSchemeProvider.ts b/clients/client-fms/src/auth/httpAuthSchemeProvider.ts index 63b44fbf910d..e4b916ce55f6 100644 --- a/clients/client-fms/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-fms/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultFMSHttpAuthSchemeProvider: FMSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-forecast/src/auth/httpAuthSchemeProvider.ts b/clients/client-forecast/src/auth/httpAuthSchemeProvider.ts index 921cace4fb9b..17093ea879e9 100644 --- a/clients/client-forecast/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-forecast/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultForecastHttpAuthSchemeProvider: ForecastHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-forecastquery/src/auth/httpAuthSchemeProvider.ts b/clients/client-forecastquery/src/auth/httpAuthSchemeProvider.ts index d2418ff497ab..b21e5e91ba66 100644 --- a/clients/client-forecastquery/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-forecastquery/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultForecastqueryHttpAuthSchemeProvider: ForecastqueryHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-frauddetector/src/auth/httpAuthSchemeProvider.ts b/clients/client-frauddetector/src/auth/httpAuthSchemeProvider.ts index 7eff4397a804..8b49595b2e8d 100644 --- a/clients/client-frauddetector/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-frauddetector/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultFraudDetectorHttpAuthSchemeProvider: FraudDetectorHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-freetier/src/auth/httpAuthSchemeProvider.ts b/clients/client-freetier/src/auth/httpAuthSchemeProvider.ts index c989ab2a9264..3470d9c96212 100644 --- a/clients/client-freetier/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-freetier/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultFreeTierHttpAuthSchemeProvider: FreeTierHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-fsx/src/auth/httpAuthSchemeProvider.ts b/clients/client-fsx/src/auth/httpAuthSchemeProvider.ts index 68c08b1107e4..3ae7880a0400 100644 --- a/clients/client-fsx/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-fsx/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultFSxHttpAuthSchemeProvider: FSxHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-gamelift/src/auth/httpAuthSchemeProvider.ts b/clients/client-gamelift/src/auth/httpAuthSchemeProvider.ts index ee096cf7a1c1..79bdca43de31 100644 --- a/clients/client-gamelift/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-gamelift/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGameLiftHttpAuthSchemeProvider: GameLiftHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-gameliftstreams/src/auth/httpAuthSchemeProvider.ts b/clients/client-gameliftstreams/src/auth/httpAuthSchemeProvider.ts index 00f8670d99e3..d16a4508d517 100644 --- a/clients/client-gameliftstreams/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-gameliftstreams/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultGameLiftStreamsHttpAuthSchemeProvider: GameLiftStreamsHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-geo-maps/src/auth/httpAuthSchemeProvider.ts b/clients/client-geo-maps/src/auth/httpAuthSchemeProvider.ts index 343dbb68eda4..08e6b2d18d5f 100644 --- a/clients/client-geo-maps/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-geo-maps/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGeoMapsHttpAuthSchemeProvider: GeoMapsHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-geo-places/src/auth/httpAuthSchemeProvider.ts b/clients/client-geo-places/src/auth/httpAuthSchemeProvider.ts index c88b8429be99..7ced3e3a5ada 100644 --- a/clients/client-geo-places/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-geo-places/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGeoPlacesHttpAuthSchemeProvider: GeoPlacesHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-geo-routes/src/auth/httpAuthSchemeProvider.ts b/clients/client-geo-routes/src/auth/httpAuthSchemeProvider.ts index f4624f1b9c6f..e93b0bff51e8 100644 --- a/clients/client-geo-routes/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-geo-routes/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGeoRoutesHttpAuthSchemeProvider: GeoRoutesHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-glacier/src/auth/httpAuthSchemeProvider.ts b/clients/client-glacier/src/auth/httpAuthSchemeProvider.ts index b756c7bf75ba..7a25fb604cfc 100644 --- a/clients/client-glacier/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-glacier/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGlacierHttpAuthSchemeProvider: GlacierHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-global-accelerator/src/auth/httpAuthSchemeProvider.ts b/clients/client-global-accelerator/src/auth/httpAuthSchemeProvider.ts index c49cf81b9c73..5985574f2ac6 100644 --- a/clients/client-global-accelerator/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-global-accelerator/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultGlobalAcceleratorHttpAuthSchemeProvider: GlobalAcceleratorHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-glue/src/auth/httpAuthSchemeProvider.ts b/clients/client-glue/src/auth/httpAuthSchemeProvider.ts index 17bddad92b05..f2c94d96011e 100644 --- a/clients/client-glue/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-glue/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGlueHttpAuthSchemeProvider: GlueHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-grafana/src/auth/httpAuthSchemeProvider.ts b/clients/client-grafana/src/auth/httpAuthSchemeProvider.ts index fa5b86c73f61..b26540d6123c 100644 --- a/clients/client-grafana/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-grafana/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGrafanaHttpAuthSchemeProvider: GrafanaHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-greengrass/src/auth/httpAuthSchemeProvider.ts b/clients/client-greengrass/src/auth/httpAuthSchemeProvider.ts index 20c976808fd5..4fba7333c69f 100644 --- a/clients/client-greengrass/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-greengrass/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGreengrassHttpAuthSchemeProvider: GreengrassHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-greengrassv2/src/auth/httpAuthSchemeProvider.ts b/clients/client-greengrassv2/src/auth/httpAuthSchemeProvider.ts index fb84feba9050..c026c260a282 100644 --- a/clients/client-greengrassv2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-greengrassv2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultGreengrassV2HttpAuthSchemeProvider: GreengrassV2HttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-groundstation/src/auth/httpAuthSchemeProvider.ts b/clients/client-groundstation/src/auth/httpAuthSchemeProvider.ts index b106034e4ab9..7b942c838b4a 100644 --- a/clients/client-groundstation/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-groundstation/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultGroundStationHttpAuthSchemeProvider: GroundStationHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-guardduty/src/auth/httpAuthSchemeProvider.ts b/clients/client-guardduty/src/auth/httpAuthSchemeProvider.ts index ac0f9251008c..961f146d14dd 100644 --- a/clients/client-guardduty/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-guardduty/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGuardDutyHttpAuthSchemeProvider: GuardDutyHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-health/src/auth/httpAuthSchemeProvider.ts b/clients/client-health/src/auth/httpAuthSchemeProvider.ts index b7d7ad371dbd..78ce56fceba7 100644 --- a/clients/client-health/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-health/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultHealthHttpAuthSchemeProvider: HealthHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-healthlake/src/auth/httpAuthSchemeProvider.ts b/clients/client-healthlake/src/auth/httpAuthSchemeProvider.ts index 4aa341b29347..ae04519cb233 100644 --- a/clients/client-healthlake/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-healthlake/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultHealthLakeHttpAuthSchemeProvider: HealthLakeHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iam/src/auth/httpAuthSchemeProvider.ts b/clients/client-iam/src/auth/httpAuthSchemeProvider.ts index f0c38b74ca3d..6ef9f622a8fe 100644 --- a/clients/client-iam/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iam/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultIAMHttpAuthSchemeProvider: IAMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-identitystore/src/auth/httpAuthSchemeProvider.ts b/clients/client-identitystore/src/auth/httpAuthSchemeProvider.ts index eb37d1235eb2..ea615a42eaed 100644 --- a/clients/client-identitystore/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-identitystore/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIdentitystoreHttpAuthSchemeProvider: IdentitystoreHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-imagebuilder/src/auth/httpAuthSchemeProvider.ts b/clients/client-imagebuilder/src/auth/httpAuthSchemeProvider.ts index 6e5d1e02c4fc..f81df7ca8f66 100644 --- a/clients/client-imagebuilder/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-imagebuilder/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultImagebuilderHttpAuthSchemeProvider: ImagebuilderHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-inspector-scan/src/auth/httpAuthSchemeProvider.ts b/clients/client-inspector-scan/src/auth/httpAuthSchemeProvider.ts index 7701a6bcf4a9..b89e0c126e8f 100644 --- a/clients/client-inspector-scan/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-inspector-scan/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultInspectorScanHttpAuthSchemeProvider: InspectorScanHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-inspector/src/auth/httpAuthSchemeProvider.ts b/clients/client-inspector/src/auth/httpAuthSchemeProvider.ts index e73a4dbb1747..f75a93ceee97 100644 --- a/clients/client-inspector/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-inspector/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultInspectorHttpAuthSchemeProvider: InspectorHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-inspector2/src/auth/httpAuthSchemeProvider.ts b/clients/client-inspector2/src/auth/httpAuthSchemeProvider.ts index f867826d06cb..66455e0200ec 100644 --- a/clients/client-inspector2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-inspector2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultInspector2HttpAuthSchemeProvider: Inspector2HttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-internetmonitor/src/auth/httpAuthSchemeProvider.ts b/clients/client-internetmonitor/src/auth/httpAuthSchemeProvider.ts index c63c8cae71ba..4e6d15fc10c6 100644 --- a/clients/client-internetmonitor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-internetmonitor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultInternetMonitorHttpAuthSchemeProvider: InternetMonitorHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts b/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts index 506217afc53a..62d3f636974f 100644 --- a/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-invoicing/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultInvoicingHttpAuthSchemeProvider: InvoicingHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot-data-plane/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot-data-plane/src/auth/httpAuthSchemeProvider.ts index 17490f4bc2ab..80af25c96b58 100644 --- a/clients/client-iot-data-plane/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot-data-plane/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTDataPlaneHttpAuthSchemeProvider: IoTDataPlaneHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot-events-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot-events-data/src/auth/httpAuthSchemeProvider.ts index 918ce1da25ab..1f11c8e889e3 100644 --- a/clients/client-iot-events-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot-events-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTEventsDataHttpAuthSchemeProvider: IoTEventsDataHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot-events/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot-events/src/auth/httpAuthSchemeProvider.ts index 329154f17a5c..bb06aebea4af 100644 --- a/clients/client-iot-events/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot-events/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultIoTEventsHttpAuthSchemeProvider: IoTEventsHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot-jobs-data-plane/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot-jobs-data-plane/src/auth/httpAuthSchemeProvider.ts index 952f4b7ecf53..9ad8c5f86fd8 100644 --- a/clients/client-iot-jobs-data-plane/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot-jobs-data-plane/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultIoTJobsDataPlaneHttpAuthSchemeProvider: IoTJobsDataPlaneHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot-managed-integrations/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot-managed-integrations/src/auth/httpAuthSchemeProvider.ts index 0df7fa62c994..35eb24e441ec 100644 --- a/clients/client-iot-managed-integrations/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot-managed-integrations/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultIoTManagedIntegrationsHttpAuthSchemeProvider: IoTManagedInte * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot-wireless/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot-wireless/src/auth/httpAuthSchemeProvider.ts index c0eaf3c1adcb..ad2844369b87 100644 --- a/clients/client-iot-wireless/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot-wireless/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTWirelessHttpAuthSchemeProvider: IoTWirelessHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iot/src/auth/httpAuthSchemeProvider.ts b/clients/client-iot/src/auth/httpAuthSchemeProvider.ts index 0a3595082642..e0b6af82c542 100644 --- a/clients/client-iot/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iot/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultIoTHttpAuthSchemeProvider: IoTHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotanalytics/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotanalytics/src/auth/httpAuthSchemeProvider.ts index 9ae214fb62c3..9fa89e8fadca 100644 --- a/clients/client-iotanalytics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotanalytics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTAnalyticsHttpAuthSchemeProvider: IoTAnalyticsHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotdeviceadvisor/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotdeviceadvisor/src/auth/httpAuthSchemeProvider.ts index 7166b8f16ccc..71e9910e91e7 100644 --- a/clients/client-iotdeviceadvisor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotdeviceadvisor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultIotDeviceAdvisorHttpAuthSchemeProvider: IotDeviceAdvisorHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotfleethub/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotfleethub/src/auth/httpAuthSchemeProvider.ts index be3fef38d625..b0c886fac2b4 100644 --- a/clients/client-iotfleethub/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotfleethub/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTFleetHubHttpAuthSchemeProvider: IoTFleetHubHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotfleetwise/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotfleetwise/src/auth/httpAuthSchemeProvider.ts index a8995b22f701..e6bc680c5abd 100644 --- a/clients/client-iotfleetwise/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotfleetwise/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTFleetWiseHttpAuthSchemeProvider: IoTFleetWiseHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotsecuretunneling/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotsecuretunneling/src/auth/httpAuthSchemeProvider.ts index beff6bd83c2c..f181f8bf828f 100644 --- a/clients/client-iotsecuretunneling/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotsecuretunneling/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultIoTSecureTunnelingHttpAuthSchemeProvider: IoTSecureTunneling * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotsitewise/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotsitewise/src/auth/httpAuthSchemeProvider.ts index 3dc7172e0245..12ee02e40ac2 100644 --- a/clients/client-iotsitewise/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotsitewise/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTSiteWiseHttpAuthSchemeProvider: IoTSiteWiseHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iotthingsgraph/src/auth/httpAuthSchemeProvider.ts b/clients/client-iotthingsgraph/src/auth/httpAuthSchemeProvider.ts index 130ed10be93d..6f6df211d4bc 100644 --- a/clients/client-iotthingsgraph/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iotthingsgraph/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTThingsGraphHttpAuthSchemeProvider: IoTThingsGraphHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-iottwinmaker/src/auth/httpAuthSchemeProvider.ts b/clients/client-iottwinmaker/src/auth/httpAuthSchemeProvider.ts index 740ca3de8c07..5aab783f625e 100644 --- a/clients/client-iottwinmaker/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-iottwinmaker/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIoTTwinMakerHttpAuthSchemeProvider: IoTTwinMakerHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ivs-realtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-ivs-realtime/src/auth/httpAuthSchemeProvider.ts index 3c0dda625a22..debc09eba251 100644 --- a/clients/client-ivs-realtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ivs-realtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultIVSRealTimeHttpAuthSchemeProvider: IVSRealTimeHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ivs/src/auth/httpAuthSchemeProvider.ts b/clients/client-ivs/src/auth/httpAuthSchemeProvider.ts index c5a4eed0dd3b..7c3989404efb 100644 --- a/clients/client-ivs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ivs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultIvsHttpAuthSchemeProvider: IvsHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ivschat/src/auth/httpAuthSchemeProvider.ts b/clients/client-ivschat/src/auth/httpAuthSchemeProvider.ts index 70265d597ab4..77e9c731b4a6 100644 --- a/clients/client-ivschat/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ivschat/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultIvschatHttpAuthSchemeProvider: IvschatHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kafka/src/auth/httpAuthSchemeProvider.ts b/clients/client-kafka/src/auth/httpAuthSchemeProvider.ts index 71609194e359..7cf395e62c70 100644 --- a/clients/client-kafka/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kafka/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultKafkaHttpAuthSchemeProvider: KafkaHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kafkaconnect/src/auth/httpAuthSchemeProvider.ts b/clients/client-kafkaconnect/src/auth/httpAuthSchemeProvider.ts index 0003b7ad57b2..800854315fc2 100644 --- a/clients/client-kafkaconnect/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kafkaconnect/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultKafkaConnectHttpAuthSchemeProvider: KafkaConnectHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kendra-ranking/src/auth/httpAuthSchemeProvider.ts b/clients/client-kendra-ranking/src/auth/httpAuthSchemeProvider.ts index 1593300909df..a6d00fc6a927 100644 --- a/clients/client-kendra-ranking/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kendra-ranking/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultKendraRankingHttpAuthSchemeProvider: KendraRankingHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kendra/src/auth/httpAuthSchemeProvider.ts b/clients/client-kendra/src/auth/httpAuthSchemeProvider.ts index ea52f7a072c7..56e1dec03097 100644 --- a/clients/client-kendra/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kendra/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultKendraHttpAuthSchemeProvider: KendraHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-keyspaces/src/auth/httpAuthSchemeProvider.ts b/clients/client-keyspaces/src/auth/httpAuthSchemeProvider.ts index f5db823d6334..54250fc1ec66 100644 --- a/clients/client-keyspaces/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-keyspaces/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultKeyspacesHttpAuthSchemeProvider: KeyspacesHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-analytics-v2/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-analytics-v2/src/auth/httpAuthSchemeProvider.ts index d5bdb6899f29..067da6e8cb48 100644 --- a/clients/client-kinesis-analytics-v2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-analytics-v2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultKinesisAnalyticsV2HttpAuthSchemeProvider: KinesisAnalyticsV2 * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-analytics/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-analytics/src/auth/httpAuthSchemeProvider.ts index 1cb7238857ac..96c48c7139d9 100644 --- a/clients/client-kinesis-analytics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-analytics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultKinesisAnalyticsHttpAuthSchemeProvider: KinesisAnalyticsHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-video-archived-media/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-video-archived-media/src/auth/httpAuthSchemeProvider.ts index e8d20161f3c1..a50369251f97 100644 --- a/clients/client-kinesis-video-archived-media/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-video-archived-media/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultKinesisVideoArchivedMediaHttpAuthSchemeProvider: KinesisVide * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-video-media/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-video-media/src/auth/httpAuthSchemeProvider.ts index 0987c87711d5..ecb6c1dc0102 100644 --- a/clients/client-kinesis-video-media/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-video-media/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultKinesisVideoMediaHttpAuthSchemeProvider: KinesisVideoMediaHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-video-signaling/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-video-signaling/src/auth/httpAuthSchemeProvider.ts index b243269b8d44..9008aded1b1a 100644 --- a/clients/client-kinesis-video-signaling/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-video-signaling/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultKinesisVideoSignalingHttpAuthSchemeProvider: KinesisVideoSig * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-video-webrtc-storage/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-video-webrtc-storage/src/auth/httpAuthSchemeProvider.ts index 44a8e6d8e76b..01770b5b54f8 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultKinesisVideoWebRTCStorageHttpAuthSchemeProvider: KinesisVide * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis-video/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis-video/src/auth/httpAuthSchemeProvider.ts index 98cf5075f6a3..69973b39ee5a 100644 --- a/clients/client-kinesis-video/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis-video/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultKinesisVideoHttpAuthSchemeProvider: KinesisVideoHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kinesis/src/auth/httpAuthSchemeProvider.ts b/clients/client-kinesis/src/auth/httpAuthSchemeProvider.ts index d94f947dbaf1..aa5bc057626f 100644 --- a/clients/client-kinesis/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kinesis/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultKinesisHttpAuthSchemeProvider: KinesisHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-kms/src/auth/httpAuthSchemeProvider.ts b/clients/client-kms/src/auth/httpAuthSchemeProvider.ts index 95fd1d89f4c5..8c87000a5094 100644 --- a/clients/client-kms/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-kms/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultKMSHttpAuthSchemeProvider: KMSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lakeformation/src/auth/httpAuthSchemeProvider.ts b/clients/client-lakeformation/src/auth/httpAuthSchemeProvider.ts index 5db50f21f715..38e53a757e94 100644 --- a/clients/client-lakeformation/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lakeformation/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLakeFormationHttpAuthSchemeProvider: LakeFormationHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lambda/src/auth/httpAuthSchemeProvider.ts b/clients/client-lambda/src/auth/httpAuthSchemeProvider.ts index 3bf54621f874..1624b0d56c53 100644 --- a/clients/client-lambda/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lambda/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultLambdaHttpAuthSchemeProvider: LambdaHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-launch-wizard/src/auth/httpAuthSchemeProvider.ts b/clients/client-launch-wizard/src/auth/httpAuthSchemeProvider.ts index 9fc72a0be43f..59390c6c734c 100644 --- a/clients/client-launch-wizard/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-launch-wizard/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLaunchWizardHttpAuthSchemeProvider: LaunchWizardHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lex-model-building-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-lex-model-building-service/src/auth/httpAuthSchemeProvider.ts index da8720b503ad..72bed48580b0 100644 --- a/clients/client-lex-model-building-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lex-model-building-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultLexModelBuildingServiceHttpAuthSchemeProvider: LexModelBuild * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lex-models-v2/src/auth/httpAuthSchemeProvider.ts b/clients/client-lex-models-v2/src/auth/httpAuthSchemeProvider.ts index c03242442a3a..3868320e1ed7 100644 --- a/clients/client-lex-models-v2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lex-models-v2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLexModelsV2HttpAuthSchemeProvider: LexModelsV2HttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lex-runtime-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-lex-runtime-service/src/auth/httpAuthSchemeProvider.ts index 7e899277e1e7..5c8c25cfe45f 100644 --- a/clients/client-lex-runtime-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lex-runtime-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultLexRuntimeServiceHttpAuthSchemeProvider: LexRuntimeServiceHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lex-runtime-v2/src/auth/httpAuthSchemeProvider.ts b/clients/client-lex-runtime-v2/src/auth/httpAuthSchemeProvider.ts index 396cc47cb28d..10e55fd4e7bd 100644 --- a/clients/client-lex-runtime-v2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lex-runtime-v2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLexRuntimeV2HttpAuthSchemeProvider: LexRuntimeV2HttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-license-manager-linux-subscriptions/src/auth/httpAuthSchemeProvider.ts b/clients/client-license-manager-linux-subscriptions/src/auth/httpAuthSchemeProvider.ts index 8fc509660e9a..343dbccb0294 100644 --- a/clients/client-license-manager-linux-subscriptions/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-license-manager-linux-subscriptions/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultLicenseManagerLinuxSubscriptionsHttpAuthSchemeProvider: Lice * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-license-manager-user-subscriptions/src/auth/httpAuthSchemeProvider.ts b/clients/client-license-manager-user-subscriptions/src/auth/httpAuthSchemeProvider.ts index 4da306e54352..4b516ed7a733 100644 --- a/clients/client-license-manager-user-subscriptions/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-license-manager-user-subscriptions/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultLicenseManagerUserSubscriptionsHttpAuthSchemeProvider: Licen * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-license-manager/src/auth/httpAuthSchemeProvider.ts b/clients/client-license-manager/src/auth/httpAuthSchemeProvider.ts index 34f698856c5e..f590a4b495fc 100644 --- a/clients/client-license-manager/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-license-manager/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLicenseManagerHttpAuthSchemeProvider: LicenseManagerHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lightsail/src/auth/httpAuthSchemeProvider.ts b/clients/client-lightsail/src/auth/httpAuthSchemeProvider.ts index db12c3d038c2..41dbedcb379f 100644 --- a/clients/client-lightsail/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lightsail/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultLightsailHttpAuthSchemeProvider: LightsailHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-location/src/auth/httpAuthSchemeProvider.ts b/clients/client-location/src/auth/httpAuthSchemeProvider.ts index 2001593e0e30..e2cf7334eabc 100644 --- a/clients/client-location/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-location/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultLocationHttpAuthSchemeProvider: LocationHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lookoutequipment/src/auth/httpAuthSchemeProvider.ts b/clients/client-lookoutequipment/src/auth/httpAuthSchemeProvider.ts index 53398149f55c..71773bcef6dd 100644 --- a/clients/client-lookoutequipment/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lookoutequipment/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultLookoutEquipmentHttpAuthSchemeProvider: LookoutEquipmentHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lookoutmetrics/src/auth/httpAuthSchemeProvider.ts b/clients/client-lookoutmetrics/src/auth/httpAuthSchemeProvider.ts index b12777444212..7c1c51431cf8 100644 --- a/clients/client-lookoutmetrics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lookoutmetrics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLookoutMetricsHttpAuthSchemeProvider: LookoutMetricsHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-lookoutvision/src/auth/httpAuthSchemeProvider.ts b/clients/client-lookoutvision/src/auth/httpAuthSchemeProvider.ts index fa18091218d5..c2a6602baa14 100644 --- a/clients/client-lookoutvision/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-lookoutvision/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultLookoutVisionHttpAuthSchemeProvider: LookoutVisionHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-m2/src/auth/httpAuthSchemeProvider.ts b/clients/client-m2/src/auth/httpAuthSchemeProvider.ts index 0ef795284de9..da79d9bbfe59 100644 --- a/clients/client-m2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-m2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultM2HttpAuthSchemeProvider: M2HttpAuthSchemeProvider = (authPa * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-machine-learning/src/auth/httpAuthSchemeProvider.ts b/clients/client-machine-learning/src/auth/httpAuthSchemeProvider.ts index 99cecc61cac8..9752577b5f62 100644 --- a/clients/client-machine-learning/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-machine-learning/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMachineLearningHttpAuthSchemeProvider: MachineLearningHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-macie2/src/auth/httpAuthSchemeProvider.ts b/clients/client-macie2/src/auth/httpAuthSchemeProvider.ts index ba63d1c08352..9fae9d53186b 100644 --- a/clients/client-macie2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-macie2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMacie2HttpAuthSchemeProvider: Macie2HttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mailmanager/src/auth/httpAuthSchemeProvider.ts b/clients/client-mailmanager/src/auth/httpAuthSchemeProvider.ts index 8e9ae3e250c2..6e405b24132c 100644 --- a/clients/client-mailmanager/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mailmanager/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMailManagerHttpAuthSchemeProvider: MailManagerHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-managedblockchain-query/src/auth/httpAuthSchemeProvider.ts b/clients/client-managedblockchain-query/src/auth/httpAuthSchemeProvider.ts index 7609d49fd9a6..74e5d3d6d94e 100644 --- a/clients/client-managedblockchain-query/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-managedblockchain-query/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultManagedBlockchainQueryHttpAuthSchemeProvider: ManagedBlockch * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-managedblockchain/src/auth/httpAuthSchemeProvider.ts b/clients/client-managedblockchain/src/auth/httpAuthSchemeProvider.ts index e731f53a371e..b7274bca94fc 100644 --- a/clients/client-managedblockchain/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-managedblockchain/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultManagedBlockchainHttpAuthSchemeProvider: ManagedBlockchainHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-agreement/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-agreement/src/auth/httpAuthSchemeProvider.ts index 79413522694d..3ea67fb0a840 100644 --- a/clients/client-marketplace-agreement/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-agreement/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultMarketplaceAgreementHttpAuthSchemeProvider: MarketplaceAgree * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-catalog/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-catalog/src/auth/httpAuthSchemeProvider.ts index d1dd72dca29c..d21bebb69962 100644 --- a/clients/client-marketplace-catalog/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-catalog/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultMarketplaceCatalogHttpAuthSchemeProvider: MarketplaceCatalog * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-commerce-analytics/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-commerce-analytics/src/auth/httpAuthSchemeProvider.ts index be594670f322..2dac6823b730 100644 --- a/clients/client-marketplace-commerce-analytics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-commerce-analytics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultMarketplaceCommerceAnalyticsHttpAuthSchemeProvider: Marketpl * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-deployment/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-deployment/src/auth/httpAuthSchemeProvider.ts index 0bd7bcd857ad..4a09df499452 100644 --- a/clients/client-marketplace-deployment/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-deployment/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultMarketplaceDeploymentHttpAuthSchemeProvider: MarketplaceDepl * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-entitlement-service/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-entitlement-service/src/auth/httpAuthSchemeProvider.ts index 0d94d63932ac..d675684557d1 100644 --- a/clients/client-marketplace-entitlement-service/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-entitlement-service/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultMarketplaceEntitlementServiceHttpAuthSchemeProvider: Marketp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-metering/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-metering/src/auth/httpAuthSchemeProvider.ts index f55d9fcac3aa..c2883a4391fc 100644 --- a/clients/client-marketplace-metering/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-metering/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultMarketplaceMeteringHttpAuthSchemeProvider: MarketplaceMeteri * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-marketplace-reporting/src/auth/httpAuthSchemeProvider.ts b/clients/client-marketplace-reporting/src/auth/httpAuthSchemeProvider.ts index 7b2668e3b79f..7598988081a9 100644 --- a/clients/client-marketplace-reporting/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-marketplace-reporting/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultMarketplaceReportingHttpAuthSchemeProvider: MarketplaceRepor * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediaconnect/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediaconnect/src/auth/httpAuthSchemeProvider.ts index bf50dabd6321..0e416536505b 100644 --- a/clients/client-mediaconnect/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediaconnect/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaConnectHttpAuthSchemeProvider: MediaConnectHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediaconvert/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediaconvert/src/auth/httpAuthSchemeProvider.ts index 44fda4a377e1..8a411f210b4c 100644 --- a/clients/client-mediaconvert/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediaconvert/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaConvertHttpAuthSchemeProvider: MediaConvertHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-medialive/src/auth/httpAuthSchemeProvider.ts b/clients/client-medialive/src/auth/httpAuthSchemeProvider.ts index 21841708d6fd..fb510172baf1 100644 --- a/clients/client-medialive/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-medialive/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMediaLiveHttpAuthSchemeProvider: MediaLiveHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediapackage-vod/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediapackage-vod/src/auth/httpAuthSchemeProvider.ts index 90bee79746a5..7099c24d6907 100644 --- a/clients/client-mediapackage-vod/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediapackage-vod/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaPackageVodHttpAuthSchemeProvider: MediaPackageVodHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediapackage/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediapackage/src/auth/httpAuthSchemeProvider.ts index 29bad8d89996..f85cd129123a 100644 --- a/clients/client-mediapackage/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediapackage/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaPackageHttpAuthSchemeProvider: MediaPackageHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediapackagev2/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediapackagev2/src/auth/httpAuthSchemeProvider.ts index 35f2f5707ab3..44d23207594f 100644 --- a/clients/client-mediapackagev2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediapackagev2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaPackageV2HttpAuthSchemeProvider: MediaPackageV2HttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediastore-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediastore-data/src/auth/httpAuthSchemeProvider.ts index a4e2c35e8c28..9268cfe4e79c 100644 --- a/clients/client-mediastore-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediastore-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaStoreDataHttpAuthSchemeProvider: MediaStoreDataHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediastore/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediastore/src/auth/httpAuthSchemeProvider.ts index 9bddc52a7835..8663f2d5d973 100644 --- a/clients/client-mediastore/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediastore/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMediaStoreHttpAuthSchemeProvider: MediaStoreHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mediatailor/src/auth/httpAuthSchemeProvider.ts b/clients/client-mediatailor/src/auth/httpAuthSchemeProvider.ts index cfa21f6d79bb..ae4fd344d2e3 100644 --- a/clients/client-mediatailor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mediatailor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMediaTailorHttpAuthSchemeProvider: MediaTailorHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-medical-imaging/src/auth/httpAuthSchemeProvider.ts b/clients/client-medical-imaging/src/auth/httpAuthSchemeProvider.ts index 8e363e4238e9..f501752ea339 100644 --- a/clients/client-medical-imaging/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-medical-imaging/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMedicalImagingHttpAuthSchemeProvider: MedicalImagingHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-memorydb/src/auth/httpAuthSchemeProvider.ts b/clients/client-memorydb/src/auth/httpAuthSchemeProvider.ts index 13ad230dad0e..9f9d05fca362 100644 --- a/clients/client-memorydb/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-memorydb/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMemoryDBHttpAuthSchemeProvider: MemoryDBHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mgn/src/auth/httpAuthSchemeProvider.ts b/clients/client-mgn/src/auth/httpAuthSchemeProvider.ts index 95939ca58a25..bb8f9680e0af 100644 --- a/clients/client-mgn/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mgn/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMgnHttpAuthSchemeProvider: MgnHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-migration-hub-refactor-spaces/src/auth/httpAuthSchemeProvider.ts b/clients/client-migration-hub-refactor-spaces/src/auth/httpAuthSchemeProvider.ts index 396968f67d3c..19cc9b33fca1 100644 --- a/clients/client-migration-hub-refactor-spaces/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-migration-hub-refactor-spaces/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultMigrationHubRefactorSpacesHttpAuthSchemeProvider: MigrationH * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-migration-hub/src/auth/httpAuthSchemeProvider.ts b/clients/client-migration-hub/src/auth/httpAuthSchemeProvider.ts index 114e15e7f769..600e625657b5 100644 --- a/clients/client-migration-hub/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-migration-hub/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMigrationHubHttpAuthSchemeProvider: MigrationHubHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-migrationhub-config/src/auth/httpAuthSchemeProvider.ts b/clients/client-migrationhub-config/src/auth/httpAuthSchemeProvider.ts index 125cd67ae78b..af4ccf64e9b6 100644 --- a/clients/client-migrationhub-config/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-migrationhub-config/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultMigrationHubConfigHttpAuthSchemeProvider: MigrationHubConfig * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-migrationhuborchestrator/src/auth/httpAuthSchemeProvider.ts b/clients/client-migrationhuborchestrator/src/auth/httpAuthSchemeProvider.ts index 0e4b7e72946b..5bc2c64bd11b 100644 --- a/clients/client-migrationhuborchestrator/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-migrationhuborchestrator/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultMigrationHubOrchestratorHttpAuthSchemeProvider: MigrationHub * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-migrationhubstrategy/src/auth/httpAuthSchemeProvider.ts b/clients/client-migrationhubstrategy/src/auth/httpAuthSchemeProvider.ts index 31ed96839d72..812bed554dd7 100644 --- a/clients/client-migrationhubstrategy/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-migrationhubstrategy/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultMigrationHubStrategyHttpAuthSchemeProvider: MigrationHubStra * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mq/src/auth/httpAuthSchemeProvider.ts b/clients/client-mq/src/auth/httpAuthSchemeProvider.ts index f479913448c1..f9919ebd9c66 100644 --- a/clients/client-mq/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mq/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMqHttpAuthSchemeProvider: MqHttpAuthSchemeProvider = (authPa * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mturk/src/auth/httpAuthSchemeProvider.ts b/clients/client-mturk/src/auth/httpAuthSchemeProvider.ts index 868c78c636a5..3d329c236a70 100644 --- a/clients/client-mturk/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mturk/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMTurkHttpAuthSchemeProvider: MTurkHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-mwaa/src/auth/httpAuthSchemeProvider.ts b/clients/client-mwaa/src/auth/httpAuthSchemeProvider.ts index af8292b3ea47..b3bded55f021 100644 --- a/clients/client-mwaa/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-mwaa/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultMWAAHttpAuthSchemeProvider: MWAAHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-neptune-graph/src/auth/httpAuthSchemeProvider.ts b/clients/client-neptune-graph/src/auth/httpAuthSchemeProvider.ts index 71e6fef6d63c..868e7a7aa188 100644 --- a/clients/client-neptune-graph/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-neptune-graph/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultNeptuneGraphHttpAuthSchemeProvider: NeptuneGraphHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-neptune/src/auth/httpAuthSchemeProvider.ts b/clients/client-neptune/src/auth/httpAuthSchemeProvider.ts index a07808ec835b..a8ae66b50b87 100644 --- a/clients/client-neptune/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-neptune/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultNeptuneHttpAuthSchemeProvider: NeptuneHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-neptunedata/src/auth/httpAuthSchemeProvider.ts b/clients/client-neptunedata/src/auth/httpAuthSchemeProvider.ts index 783f358e41a3..f56eaa81e309 100644 --- a/clients/client-neptunedata/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-neptunedata/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultNeptunedataHttpAuthSchemeProvider: NeptunedataHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-network-firewall/src/auth/httpAuthSchemeProvider.ts b/clients/client-network-firewall/src/auth/httpAuthSchemeProvider.ts index deb73d3bb1b5..487930532be4 100644 --- a/clients/client-network-firewall/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-network-firewall/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultNetworkFirewallHttpAuthSchemeProvider: NetworkFirewallHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-networkflowmonitor/src/auth/httpAuthSchemeProvider.ts b/clients/client-networkflowmonitor/src/auth/httpAuthSchemeProvider.ts index 5c6fc61238d1..b62bcc97a1dc 100644 --- a/clients/client-networkflowmonitor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-networkflowmonitor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultNetworkFlowMonitorHttpAuthSchemeProvider: NetworkFlowMonitor * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-networkmanager/src/auth/httpAuthSchemeProvider.ts b/clients/client-networkmanager/src/auth/httpAuthSchemeProvider.ts index ae21a474019a..0a0874197e11 100644 --- a/clients/client-networkmanager/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-networkmanager/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultNetworkManagerHttpAuthSchemeProvider: NetworkManagerHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-networkmonitor/src/auth/httpAuthSchemeProvider.ts b/clients/client-networkmonitor/src/auth/httpAuthSchemeProvider.ts index 4281548793f5..bc27301b038f 100644 --- a/clients/client-networkmonitor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-networkmonitor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultNetworkMonitorHttpAuthSchemeProvider: NetworkMonitorHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-notifications/src/auth/httpAuthSchemeProvider.ts b/clients/client-notifications/src/auth/httpAuthSchemeProvider.ts index 97f041ed53e9..7d59f1703337 100644 --- a/clients/client-notifications/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-notifications/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultNotificationsHttpAuthSchemeProvider: NotificationsHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-notificationscontacts/src/auth/httpAuthSchemeProvider.ts b/clients/client-notificationscontacts/src/auth/httpAuthSchemeProvider.ts index f8face9fd345..5871ebc439df 100644 --- a/clients/client-notificationscontacts/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-notificationscontacts/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultNotificationsContactsHttpAuthSchemeProvider: NotificationsCo * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-oam/src/auth/httpAuthSchemeProvider.ts b/clients/client-oam/src/auth/httpAuthSchemeProvider.ts index 0440994a0993..0b8c86aa2830 100644 --- a/clients/client-oam/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-oam/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOAMHttpAuthSchemeProvider: OAMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-observabilityadmin/src/auth/httpAuthSchemeProvider.ts b/clients/client-observabilityadmin/src/auth/httpAuthSchemeProvider.ts index c56d7836e7fc..007e536c9021 100644 --- a/clients/client-observabilityadmin/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-observabilityadmin/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultObservabilityAdminHttpAuthSchemeProvider: ObservabilityAdmin * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-omics/src/auth/httpAuthSchemeProvider.ts b/clients/client-omics/src/auth/httpAuthSchemeProvider.ts index f143946b63d6..725bfdec80fd 100644 --- a/clients/client-omics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-omics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOmicsHttpAuthSchemeProvider: OmicsHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-opensearch/src/auth/httpAuthSchemeProvider.ts b/clients/client-opensearch/src/auth/httpAuthSchemeProvider.ts index e958d727a196..62398b145305 100644 --- a/clients/client-opensearch/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-opensearch/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOpenSearchHttpAuthSchemeProvider: OpenSearchHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-opensearchserverless/src/auth/httpAuthSchemeProvider.ts b/clients/client-opensearchserverless/src/auth/httpAuthSchemeProvider.ts index 43acf4516510..18833238f873 100644 --- a/clients/client-opensearchserverless/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-opensearchserverless/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultOpenSearchServerlessHttpAuthSchemeProvider: OpenSearchServer * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-opsworks/src/auth/httpAuthSchemeProvider.ts b/clients/client-opsworks/src/auth/httpAuthSchemeProvider.ts index 347db01435ed..5359c8fce8af 100644 --- a/clients/client-opsworks/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-opsworks/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOpsWorksHttpAuthSchemeProvider: OpsWorksHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-opsworkscm/src/auth/httpAuthSchemeProvider.ts b/clients/client-opsworkscm/src/auth/httpAuthSchemeProvider.ts index 1d8bd5215bb5..ba5a90d8f121 100644 --- a/clients/client-opsworkscm/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-opsworkscm/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOpsWorksCMHttpAuthSchemeProvider: OpsWorksCMHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-organizations/src/auth/httpAuthSchemeProvider.ts b/clients/client-organizations/src/auth/httpAuthSchemeProvider.ts index 09c360900ca5..811d90da5d87 100644 --- a/clients/client-organizations/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-organizations/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultOrganizationsHttpAuthSchemeProvider: OrganizationsHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-osis/src/auth/httpAuthSchemeProvider.ts b/clients/client-osis/src/auth/httpAuthSchemeProvider.ts index e865d7b4866d..636564edd4dc 100644 --- a/clients/client-osis/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-osis/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOSISHttpAuthSchemeProvider: OSISHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-outposts/src/auth/httpAuthSchemeProvider.ts b/clients/client-outposts/src/auth/httpAuthSchemeProvider.ts index 3e47f3901d16..11d374efb89f 100644 --- a/clients/client-outposts/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-outposts/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultOutpostsHttpAuthSchemeProvider: OutpostsHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-panorama/src/auth/httpAuthSchemeProvider.ts b/clients/client-panorama/src/auth/httpAuthSchemeProvider.ts index ec69bd2d4b9d..a4b08feb4ebe 100644 --- a/clients/client-panorama/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-panorama/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPanoramaHttpAuthSchemeProvider: PanoramaHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-partnercentral-selling/src/auth/httpAuthSchemeProvider.ts b/clients/client-partnercentral-selling/src/auth/httpAuthSchemeProvider.ts index a7bbaccc01c8..1bd025a45ead 100644 --- a/clients/client-partnercentral-selling/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-partnercentral-selling/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultPartnerCentralSellingHttpAuthSchemeProvider: PartnerCentralS * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-payment-cryptography-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-payment-cryptography-data/src/auth/httpAuthSchemeProvider.ts index 32a070c70ed0..0a75af0cbfc9 100644 --- a/clients/client-payment-cryptography-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-payment-cryptography-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultPaymentCryptographyDataHttpAuthSchemeProvider: PaymentCrypto * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-payment-cryptography/src/auth/httpAuthSchemeProvider.ts b/clients/client-payment-cryptography/src/auth/httpAuthSchemeProvider.ts index db2a5dd6fc1b..c79ac944c7ba 100644 --- a/clients/client-payment-cryptography/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-payment-cryptography/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultPaymentCryptographyHttpAuthSchemeProvider: PaymentCryptograp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pca-connector-ad/src/auth/httpAuthSchemeProvider.ts b/clients/client-pca-connector-ad/src/auth/httpAuthSchemeProvider.ts index de37a0bf82ef..a77917de6385 100644 --- a/clients/client-pca-connector-ad/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pca-connector-ad/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultPcaConnectorAdHttpAuthSchemeProvider: PcaConnectorAdHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pca-connector-scep/src/auth/httpAuthSchemeProvider.ts b/clients/client-pca-connector-scep/src/auth/httpAuthSchemeProvider.ts index f4688eed7a4a..9a57bb184182 100644 --- a/clients/client-pca-connector-scep/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pca-connector-scep/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultPcaConnectorScepHttpAuthSchemeProvider: PcaConnectorScepHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pcs/src/auth/httpAuthSchemeProvider.ts b/clients/client-pcs/src/auth/httpAuthSchemeProvider.ts index 33304eb7f7aa..c59dc7bbd290 100644 --- a/clients/client-pcs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pcs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPCSHttpAuthSchemeProvider: PCSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-personalize-events/src/auth/httpAuthSchemeProvider.ts b/clients/client-personalize-events/src/auth/httpAuthSchemeProvider.ts index 5c6a842458f8..0a54d11e7cfa 100644 --- a/clients/client-personalize-events/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-personalize-events/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultPersonalizeEventsHttpAuthSchemeProvider: PersonalizeEventsHt * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-personalize-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-personalize-runtime/src/auth/httpAuthSchemeProvider.ts index 9731ae653d67..3f575c96ba46 100644 --- a/clients/client-personalize-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-personalize-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultPersonalizeRuntimeHttpAuthSchemeProvider: PersonalizeRuntime * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-personalize/src/auth/httpAuthSchemeProvider.ts b/clients/client-personalize/src/auth/httpAuthSchemeProvider.ts index f356f6de36c4..741745746d65 100644 --- a/clients/client-personalize/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-personalize/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultPersonalizeHttpAuthSchemeProvider: PersonalizeHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pi/src/auth/httpAuthSchemeProvider.ts b/clients/client-pi/src/auth/httpAuthSchemeProvider.ts index ed374e9d347f..49fa4791c165 100644 --- a/clients/client-pi/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pi/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPIHttpAuthSchemeProvider: PIHttpAuthSchemeProvider = (authPa * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pinpoint-email/src/auth/httpAuthSchemeProvider.ts b/clients/client-pinpoint-email/src/auth/httpAuthSchemeProvider.ts index f6e2531e07a0..e4e3b02c53a4 100644 --- a/clients/client-pinpoint-email/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pinpoint-email/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultPinpointEmailHttpAuthSchemeProvider: PinpointEmailHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pinpoint-sms-voice-v2/src/auth/httpAuthSchemeProvider.ts b/clients/client-pinpoint-sms-voice-v2/src/auth/httpAuthSchemeProvider.ts index f72a307681ab..c443a116a54a 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultPinpointSMSVoiceV2HttpAuthSchemeProvider: PinpointSMSVoiceV2 * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pinpoint-sms-voice/src/auth/httpAuthSchemeProvider.ts b/clients/client-pinpoint-sms-voice/src/auth/httpAuthSchemeProvider.ts index b939ad83c2d2..e13b23f4465d 100644 --- a/clients/client-pinpoint-sms-voice/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pinpoint-sms-voice/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultPinpointSMSVoiceHttpAuthSchemeProvider: PinpointSMSVoiceHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pinpoint/src/auth/httpAuthSchemeProvider.ts b/clients/client-pinpoint/src/auth/httpAuthSchemeProvider.ts index 88360319317b..5dec17c0cc0a 100644 --- a/clients/client-pinpoint/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pinpoint/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPinpointHttpAuthSchemeProvider: PinpointHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pipes/src/auth/httpAuthSchemeProvider.ts b/clients/client-pipes/src/auth/httpAuthSchemeProvider.ts index 8efd1f4a4516..e0ef6a4edfd7 100644 --- a/clients/client-pipes/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pipes/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPipesHttpAuthSchemeProvider: PipesHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-polly/src/auth/httpAuthSchemeProvider.ts b/clients/client-polly/src/auth/httpAuthSchemeProvider.ts index 8a32d3a56d33..2f7f751bf73b 100644 --- a/clients/client-polly/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-polly/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPollyHttpAuthSchemeProvider: PollyHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-pricing/src/auth/httpAuthSchemeProvider.ts b/clients/client-pricing/src/auth/httpAuthSchemeProvider.ts index cd044e4015b8..d4dd55266317 100644 --- a/clients/client-pricing/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-pricing/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultPricingHttpAuthSchemeProvider: PricingHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-privatenetworks/src/auth/httpAuthSchemeProvider.ts b/clients/client-privatenetworks/src/auth/httpAuthSchemeProvider.ts index 2dbc025121e9..6bfe95eab94c 100644 --- a/clients/client-privatenetworks/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-privatenetworks/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultPrivateNetworksHttpAuthSchemeProvider: PrivateNetworksHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-proton/src/auth/httpAuthSchemeProvider.ts b/clients/client-proton/src/auth/httpAuthSchemeProvider.ts index 461b35b72bbc..5208ec83cfce 100644 --- a/clients/client-proton/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-proton/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultProtonHttpAuthSchemeProvider: ProtonHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-qapps/src/auth/httpAuthSchemeProvider.ts b/clients/client-qapps/src/auth/httpAuthSchemeProvider.ts index 5c58d486e902..6f2d3eb8cdaf 100644 --- a/clients/client-qapps/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-qapps/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultQAppsHttpAuthSchemeProvider: QAppsHttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-qbusiness/src/auth/httpAuthSchemeProvider.ts b/clients/client-qbusiness/src/auth/httpAuthSchemeProvider.ts index 6a2c215507df..dc5793b15a84 100644 --- a/clients/client-qbusiness/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-qbusiness/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultQBusinessHttpAuthSchemeProvider: QBusinessHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-qconnect/src/auth/httpAuthSchemeProvider.ts b/clients/client-qconnect/src/auth/httpAuthSchemeProvider.ts index 04fbb47f35df..57bc851bd5f6 100644 --- a/clients/client-qconnect/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-qconnect/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultQConnectHttpAuthSchemeProvider: QConnectHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-qldb-session/src/auth/httpAuthSchemeProvider.ts b/clients/client-qldb-session/src/auth/httpAuthSchemeProvider.ts index 3b8ae74aae23..a87af7823f8e 100644 --- a/clients/client-qldb-session/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-qldb-session/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultQLDBSessionHttpAuthSchemeProvider: QLDBSessionHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-qldb/src/auth/httpAuthSchemeProvider.ts b/clients/client-qldb/src/auth/httpAuthSchemeProvider.ts index fdf608ade9b0..326f202a38ab 100644 --- a/clients/client-qldb/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-qldb/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultQLDBHttpAuthSchemeProvider: QLDBHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-quicksight/src/auth/httpAuthSchemeProvider.ts b/clients/client-quicksight/src/auth/httpAuthSchemeProvider.ts index 137d0996f473..faed640125d3 100644 --- a/clients/client-quicksight/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-quicksight/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultQuickSightHttpAuthSchemeProvider: QuickSightHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ram/src/auth/httpAuthSchemeProvider.ts b/clients/client-ram/src/auth/httpAuthSchemeProvider.ts index 49642bfb2160..dda7fe3b187d 100644 --- a/clients/client-ram/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ram/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRAMHttpAuthSchemeProvider: RAMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rbin/src/auth/httpAuthSchemeProvider.ts b/clients/client-rbin/src/auth/httpAuthSchemeProvider.ts index ad207d62fa79..64df2ecc5d69 100644 --- a/clients/client-rbin/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rbin/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRbinHttpAuthSchemeProvider: RbinHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rds-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-rds-data/src/auth/httpAuthSchemeProvider.ts index 26b736b9c515..78914c646624 100644 --- a/clients/client-rds-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rds-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRDSDataHttpAuthSchemeProvider: RDSDataHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rds/src/auth/httpAuthSchemeProvider.ts b/clients/client-rds/src/auth/httpAuthSchemeProvider.ts index 4f1996ef2367..3f1df00ea8db 100644 --- a/clients/client-rds/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rds/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRDSHttpAuthSchemeProvider: RDSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-redshift-data/src/auth/httpAuthSchemeProvider.ts b/clients/client-redshift-data/src/auth/httpAuthSchemeProvider.ts index 057b14595eb3..d6855bc23858 100644 --- a/clients/client-redshift-data/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-redshift-data/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRedshiftDataHttpAuthSchemeProvider: RedshiftDataHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-redshift-serverless/src/auth/httpAuthSchemeProvider.ts b/clients/client-redshift-serverless/src/auth/httpAuthSchemeProvider.ts index 30ba036a7065..43584a777ed1 100644 --- a/clients/client-redshift-serverless/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-redshift-serverless/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultRedshiftServerlessHttpAuthSchemeProvider: RedshiftServerless * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-redshift/src/auth/httpAuthSchemeProvider.ts b/clients/client-redshift/src/auth/httpAuthSchemeProvider.ts index f0d28b22b1b0..655033ca77e7 100644 --- a/clients/client-redshift/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-redshift/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRedshiftHttpAuthSchemeProvider: RedshiftHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rekognition/src/auth/httpAuthSchemeProvider.ts b/clients/client-rekognition/src/auth/httpAuthSchemeProvider.ts index 8d9b3d21cb5b..27712e96b4c6 100644 --- a/clients/client-rekognition/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rekognition/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRekognitionHttpAuthSchemeProvider: RekognitionHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rekognitionstreaming/src/auth/httpAuthSchemeProvider.ts b/clients/client-rekognitionstreaming/src/auth/httpAuthSchemeProvider.ts index a01141e51998..5c54f1b23986 100644 --- a/clients/client-rekognitionstreaming/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rekognitionstreaming/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultRekognitionStreamingHttpAuthSchemeProvider: RekognitionStrea * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-repostspace/src/auth/httpAuthSchemeProvider.ts b/clients/client-repostspace/src/auth/httpAuthSchemeProvider.ts index 776c1993ee0d..20262004e2e2 100644 --- a/clients/client-repostspace/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-repostspace/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRepostspaceHttpAuthSchemeProvider: RepostspaceHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-resiliencehub/src/auth/httpAuthSchemeProvider.ts b/clients/client-resiliencehub/src/auth/httpAuthSchemeProvider.ts index 7cf4bcffd734..e33ecaf0145b 100644 --- a/clients/client-resiliencehub/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-resiliencehub/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultResiliencehubHttpAuthSchemeProvider: ResiliencehubHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-resource-explorer-2/src/auth/httpAuthSchemeProvider.ts b/clients/client-resource-explorer-2/src/auth/httpAuthSchemeProvider.ts index 56c3b945201f..b658b8f3f5e1 100644 --- a/clients/client-resource-explorer-2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-resource-explorer-2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultResourceExplorer2HttpAuthSchemeProvider: ResourceExplorer2Ht * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-resource-groups-tagging-api/src/auth/httpAuthSchemeProvider.ts b/clients/client-resource-groups-tagging-api/src/auth/httpAuthSchemeProvider.ts index 9c86b80b78be..1ccf9e8a8c11 100644 --- a/clients/client-resource-groups-tagging-api/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-resource-groups-tagging-api/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultResourceGroupsTaggingAPIHttpAuthSchemeProvider: ResourceGrou * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-resource-groups/src/auth/httpAuthSchemeProvider.ts b/clients/client-resource-groups/src/auth/httpAuthSchemeProvider.ts index 7a0d163c34e4..021bec21ae98 100644 --- a/clients/client-resource-groups/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-resource-groups/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultResourceGroupsHttpAuthSchemeProvider: ResourceGroupsHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-robomaker/src/auth/httpAuthSchemeProvider.ts b/clients/client-robomaker/src/auth/httpAuthSchemeProvider.ts index e77c4dcd311e..34e8f9f395e6 100644 --- a/clients/client-robomaker/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-robomaker/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRoboMakerHttpAuthSchemeProvider: RoboMakerHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rolesanywhere/src/auth/httpAuthSchemeProvider.ts b/clients/client-rolesanywhere/src/auth/httpAuthSchemeProvider.ts index a86a897d56eb..e26a005b33a8 100644 --- a/clients/client-rolesanywhere/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rolesanywhere/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRolesAnywhereHttpAuthSchemeProvider: RolesAnywhereHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route-53-domains/src/auth/httpAuthSchemeProvider.ts b/clients/client-route-53-domains/src/auth/httpAuthSchemeProvider.ts index e7959eac8c5f..e54c03a0f31a 100644 --- a/clients/client-route-53-domains/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route-53-domains/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRoute53DomainsHttpAuthSchemeProvider: Route53DomainsHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route-53/src/auth/httpAuthSchemeProvider.ts b/clients/client-route-53/src/auth/httpAuthSchemeProvider.ts index 7529507b1b59..b0eed2dc7937 100644 --- a/clients/client-route-53/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route-53/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRoute53HttpAuthSchemeProvider: Route53HttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route53-recovery-cluster/src/auth/httpAuthSchemeProvider.ts b/clients/client-route53-recovery-cluster/src/auth/httpAuthSchemeProvider.ts index 4637a29ba0ea..a1d622a4023a 100644 --- a/clients/client-route53-recovery-cluster/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route53-recovery-cluster/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultRoute53RecoveryClusterHttpAuthSchemeProvider: Route53Recover * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route53-recovery-control-config/src/auth/httpAuthSchemeProvider.ts b/clients/client-route53-recovery-control-config/src/auth/httpAuthSchemeProvider.ts index 4e6995653604..8c57a8483416 100644 --- a/clients/client-route53-recovery-control-config/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route53-recovery-control-config/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultRoute53RecoveryControlConfigHttpAuthSchemeProvider: Route53R * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route53-recovery-readiness/src/auth/httpAuthSchemeProvider.ts b/clients/client-route53-recovery-readiness/src/auth/httpAuthSchemeProvider.ts index a26b45d43117..cc0168ccc085 100644 --- a/clients/client-route53-recovery-readiness/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route53-recovery-readiness/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultRoute53RecoveryReadinessHttpAuthSchemeProvider: Route53Recov * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route53profiles/src/auth/httpAuthSchemeProvider.ts b/clients/client-route53profiles/src/auth/httpAuthSchemeProvider.ts index 567fe347456a..88d6ca24f4c2 100644 --- a/clients/client-route53profiles/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route53profiles/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRoute53ProfilesHttpAuthSchemeProvider: Route53ProfilesHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-route53resolver/src/auth/httpAuthSchemeProvider.ts b/clients/client-route53resolver/src/auth/httpAuthSchemeProvider.ts index a1bcb6a7ddd0..76b4d697b5b5 100644 --- a/clients/client-route53resolver/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-route53resolver/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRoute53ResolverHttpAuthSchemeProvider: Route53ResolverHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-rum/src/auth/httpAuthSchemeProvider.ts b/clients/client-rum/src/auth/httpAuthSchemeProvider.ts index 0b5955cd43d9..bdba5b1301b1 100644 --- a/clients/client-rum/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-rum/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultRUMHttpAuthSchemeProvider: RUMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-s3-control/src/auth/httpAuthSchemeProvider.ts b/clients/client-s3-control/src/auth/httpAuthSchemeProvider.ts index 888315599223..52eec4c2bc55 100644 --- a/clients/client-s3-control/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-s3-control/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultS3ControlHttpAuthSchemeProvider: S3ControlHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-s3/src/auth/httpAuthSchemeProvider.ts b/clients/client-s3/src/auth/httpAuthSchemeProvider.ts index 2c54727ddb08..86197ea998cd 100644 --- a/clients/client-s3/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-s3/src/auth/httpAuthSchemeProvider.ts @@ -21,6 +21,7 @@ import { HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Logger, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -286,6 +287,14 @@ export const defaultS3HttpAuthSchemeProvider: S3HttpAuthSchemeProvider = createE * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -303,6 +312,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, A * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -324,5 +341,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); const config_1 = resolveAwsSdkSigV4AConfig(config_0); - return Object.assign(config_1, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-s3outposts/src/auth/httpAuthSchemeProvider.ts b/clients/client-s3outposts/src/auth/httpAuthSchemeProvider.ts index 1095dcb70f5c..b2c8fabbcb6f 100644 --- a/clients/client-s3outposts/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-s3outposts/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultS3OutpostsHttpAuthSchemeProvider: S3OutpostsHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-s3tables/src/auth/httpAuthSchemeProvider.ts b/clients/client-s3tables/src/auth/httpAuthSchemeProvider.ts index 2c93312c1a1b..a157f7d81e2e 100644 --- a/clients/client-s3tables/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-s3tables/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultS3TablesHttpAuthSchemeProvider: S3TablesHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker-a2i-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker-a2i-runtime/src/auth/httpAuthSchemeProvider.ts index d107a619bf99..f247e01de495 100644 --- a/clients/client-sagemaker-a2i-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker-a2i-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultSageMakerA2IRuntimeHttpAuthSchemeProvider: SageMakerA2IRunti * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker-edge/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker-edge/src/auth/httpAuthSchemeProvider.ts index d8a5afbacc5a..24f86daacf77 100644 --- a/clients/client-sagemaker-edge/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker-edge/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSagemakerEdgeHttpAuthSchemeProvider: SagemakerEdgeHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker-featurestore-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker-featurestore-runtime/src/auth/httpAuthSchemeProvider.ts index 9ee762e5f145..309b15ea5ba4 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultSageMakerFeatureStoreRuntimeHttpAuthSchemeProvider: SageMake * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker-geospatial/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker-geospatial/src/auth/httpAuthSchemeProvider.ts index da509224c429..57c527ac364d 100644 --- a/clients/client-sagemaker-geospatial/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker-geospatial/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultSageMakerGeospatialHttpAuthSchemeProvider: SageMakerGeospati * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker-metrics/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker-metrics/src/auth/httpAuthSchemeProvider.ts index 1081cffcc66f..fa479d762324 100644 --- a/clients/client-sagemaker-metrics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker-metrics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultSageMakerMetricsHttpAuthSchemeProvider: SageMakerMetricsHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker-runtime/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker-runtime/src/auth/httpAuthSchemeProvider.ts index c7be585153c6..83befd1c2a83 100644 --- a/clients/client-sagemaker-runtime/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker-runtime/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultSageMakerRuntimeHttpAuthSchemeProvider: SageMakerRuntimeHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sagemaker/src/auth/httpAuthSchemeProvider.ts b/clients/client-sagemaker/src/auth/httpAuthSchemeProvider.ts index 964d29ed39a4..cc5eee4d0c0b 100644 --- a/clients/client-sagemaker/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sagemaker/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSageMakerHttpAuthSchemeProvider: SageMakerHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-savingsplans/src/auth/httpAuthSchemeProvider.ts b/clients/client-savingsplans/src/auth/httpAuthSchemeProvider.ts index d3b6253013fc..779afcc013aa 100644 --- a/clients/client-savingsplans/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-savingsplans/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSavingsplansHttpAuthSchemeProvider: SavingsplansHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-scheduler/src/auth/httpAuthSchemeProvider.ts b/clients/client-scheduler/src/auth/httpAuthSchemeProvider.ts index 66e8b5a3830f..c18a2520affb 100644 --- a/clients/client-scheduler/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-scheduler/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSchedulerHttpAuthSchemeProvider: SchedulerHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-schemas/src/auth/httpAuthSchemeProvider.ts b/clients/client-schemas/src/auth/httpAuthSchemeProvider.ts index 0d5ee27b9c4e..768bbdb2ef97 100644 --- a/clients/client-schemas/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-schemas/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSchemasHttpAuthSchemeProvider: SchemasHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-secrets-manager/src/auth/httpAuthSchemeProvider.ts b/clients/client-secrets-manager/src/auth/httpAuthSchemeProvider.ts index 4df51e34d8ac..a5e9aa10a319 100644 --- a/clients/client-secrets-manager/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-secrets-manager/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSecretsManagerHttpAuthSchemeProvider: SecretsManagerHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-security-ir/src/auth/httpAuthSchemeProvider.ts b/clients/client-security-ir/src/auth/httpAuthSchemeProvider.ts index 8b06ba65fb83..f192cf821885 100644 --- a/clients/client-security-ir/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-security-ir/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSecurityIRHttpAuthSchemeProvider: SecurityIRHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-securityhub/src/auth/httpAuthSchemeProvider.ts b/clients/client-securityhub/src/auth/httpAuthSchemeProvider.ts index 5e1de5c9f496..107400762e48 100644 --- a/clients/client-securityhub/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-securityhub/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSecurityHubHttpAuthSchemeProvider: SecurityHubHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-securitylake/src/auth/httpAuthSchemeProvider.ts b/clients/client-securitylake/src/auth/httpAuthSchemeProvider.ts index 29e69c09afde..2e7b5f42d20c 100644 --- a/clients/client-securitylake/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-securitylake/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSecurityLakeHttpAuthSchemeProvider: SecurityLakeHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-serverlessapplicationrepository/src/auth/httpAuthSchemeProvider.ts b/clients/client-serverlessapplicationrepository/src/auth/httpAuthSchemeProvider.ts index f4c3b269ad80..95f993770fd9 100644 --- a/clients/client-serverlessapplicationrepository/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-serverlessapplicationrepository/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -101,6 +102,14 @@ export const defaultServerlessApplicationRepositoryHttpAuthSchemeProvider: Serve * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -118,6 +127,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -138,5 +155,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-service-catalog-appregistry/src/auth/httpAuthSchemeProvider.ts b/clients/client-service-catalog-appregistry/src/auth/httpAuthSchemeProvider.ts index cb8197b3efe3..003d8cd55859 100644 --- a/clients/client-service-catalog-appregistry/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-service-catalog-appregistry/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultServiceCatalogAppRegistryHttpAuthSchemeProvider: ServiceCata * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-service-catalog/src/auth/httpAuthSchemeProvider.ts b/clients/client-service-catalog/src/auth/httpAuthSchemeProvider.ts index 1cd0050b6d33..4ae804df3241 100644 --- a/clients/client-service-catalog/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-service-catalog/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultServiceCatalogHttpAuthSchemeProvider: ServiceCatalogHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-service-quotas/src/auth/httpAuthSchemeProvider.ts b/clients/client-service-quotas/src/auth/httpAuthSchemeProvider.ts index 8b7cdbe287c9..3e4894f04ce7 100644 --- a/clients/client-service-quotas/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-service-quotas/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultServiceQuotasHttpAuthSchemeProvider: ServiceQuotasHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-servicediscovery/src/auth/httpAuthSchemeProvider.ts b/clients/client-servicediscovery/src/auth/httpAuthSchemeProvider.ts index 29fd5d336fbc..344567c0edbb 100644 --- a/clients/client-servicediscovery/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-servicediscovery/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultServiceDiscoveryHttpAuthSchemeProvider: ServiceDiscoveryHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ses/src/auth/httpAuthSchemeProvider.ts b/clients/client-ses/src/auth/httpAuthSchemeProvider.ts index 7a41ffd7047b..a49e02455c47 100644 --- a/clients/client-ses/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ses/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSESHttpAuthSchemeProvider: SESHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sesv2/src/auth/httpAuthSchemeProvider.ts b/clients/client-sesv2/src/auth/httpAuthSchemeProvider.ts index c1ec3b654588..9abebcd02827 100644 --- a/clients/client-sesv2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sesv2/src/auth/httpAuthSchemeProvider.ts @@ -21,6 +21,7 @@ import { HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Logger, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -283,6 +284,14 @@ export const defaultSESv2HttpAuthSchemeProvider: SESv2HttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AAuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -300,6 +309,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig, A * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -321,5 +338,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); const config_1 = resolveAwsSdkSigV4AConfig(config_0); - return Object.assign(config_1, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sfn/src/auth/httpAuthSchemeProvider.ts b/clients/client-sfn/src/auth/httpAuthSchemeProvider.ts index 6359fc67da7b..67bff6c61ddf 100644 --- a/clients/client-sfn/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sfn/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSFNHttpAuthSchemeProvider: SFNHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-shield/src/auth/httpAuthSchemeProvider.ts b/clients/client-shield/src/auth/httpAuthSchemeProvider.ts index 0d59c121a297..2e93cc1c1bc6 100644 --- a/clients/client-shield/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-shield/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultShieldHttpAuthSchemeProvider: ShieldHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-signer/src/auth/httpAuthSchemeProvider.ts b/clients/client-signer/src/auth/httpAuthSchemeProvider.ts index d277b12f6954..ea1e44fea1c1 100644 --- a/clients/client-signer/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-signer/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSignerHttpAuthSchemeProvider: SignerHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-simspaceweaver/src/auth/httpAuthSchemeProvider.ts b/clients/client-simspaceweaver/src/auth/httpAuthSchemeProvider.ts index 5d10533e5217..2e5abcb38fdd 100644 --- a/clients/client-simspaceweaver/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-simspaceweaver/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSimSpaceWeaverHttpAuthSchemeProvider: SimSpaceWeaverHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sms/src/auth/httpAuthSchemeProvider.ts b/clients/client-sms/src/auth/httpAuthSchemeProvider.ts index f75f24c2c098..3c58792e07ee 100644 --- a/clients/client-sms/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sms/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSMSHttpAuthSchemeProvider: SMSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-snow-device-management/src/auth/httpAuthSchemeProvider.ts b/clients/client-snow-device-management/src/auth/httpAuthSchemeProvider.ts index 3d1c335ffb0d..5e70964baa81 100644 --- a/clients/client-snow-device-management/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-snow-device-management/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultSnowDeviceManagementHttpAuthSchemeProvider: SnowDeviceManage * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-snowball/src/auth/httpAuthSchemeProvider.ts b/clients/client-snowball/src/auth/httpAuthSchemeProvider.ts index 0434536cc744..d2dd74af71fa 100644 --- a/clients/client-snowball/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-snowball/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSnowballHttpAuthSchemeProvider: SnowballHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sns/src/auth/httpAuthSchemeProvider.ts b/clients/client-sns/src/auth/httpAuthSchemeProvider.ts index 76df430ab46f..dd2c010d1ea6 100644 --- a/clients/client-sns/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sns/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSNSHttpAuthSchemeProvider: SNSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-socialmessaging/src/auth/httpAuthSchemeProvider.ts b/clients/client-socialmessaging/src/auth/httpAuthSchemeProvider.ts index 14a3aef153e9..b97b16733629 100644 --- a/clients/client-socialmessaging/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-socialmessaging/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSocialMessagingHttpAuthSchemeProvider: SocialMessagingHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sqs/src/auth/httpAuthSchemeProvider.ts b/clients/client-sqs/src/auth/httpAuthSchemeProvider.ts index bebdf369fcbe..9d8bbb9d13ad 100644 --- a/clients/client-sqs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sqs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSQSHttpAuthSchemeProvider: SQSHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ssm-contacts/src/auth/httpAuthSchemeProvider.ts b/clients/client-ssm-contacts/src/auth/httpAuthSchemeProvider.ts index 27e644a290c5..e89f57f96f96 100644 --- a/clients/client-ssm-contacts/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ssm-contacts/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSSMContactsHttpAuthSchemeProvider: SSMContactsHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ssm-incidents/src/auth/httpAuthSchemeProvider.ts b/clients/client-ssm-incidents/src/auth/httpAuthSchemeProvider.ts index 58d71e961f0b..bced22a06fee 100644 --- a/clients/client-ssm-incidents/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ssm-incidents/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSSMIncidentsHttpAuthSchemeProvider: SSMIncidentsHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ssm-quicksetup/src/auth/httpAuthSchemeProvider.ts b/clients/client-ssm-quicksetup/src/auth/httpAuthSchemeProvider.ts index 59401743d74b..b97d5b8c3091 100644 --- a/clients/client-ssm-quicksetup/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ssm-quicksetup/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSSMQuickSetupHttpAuthSchemeProvider: SSMQuickSetupHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ssm-sap/src/auth/httpAuthSchemeProvider.ts b/clients/client-ssm-sap/src/auth/httpAuthSchemeProvider.ts index 96993d88731f..0b70f6b306a6 100644 --- a/clients/client-ssm-sap/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ssm-sap/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSsmSapHttpAuthSchemeProvider: SsmSapHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-ssm/src/auth/httpAuthSchemeProvider.ts b/clients/client-ssm/src/auth/httpAuthSchemeProvider.ts index e4e4284a12ef..c24a733ae788 100644 --- a/clients/client-ssm/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-ssm/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSSMHttpAuthSchemeProvider: SSMHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sso-admin/src/auth/httpAuthSchemeProvider.ts b/clients/client-sso-admin/src/auth/httpAuthSchemeProvider.ts index 1574daf656ec..9f66ea98a530 100644 --- a/clients/client-sso-admin/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sso-admin/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSSOAdminHttpAuthSchemeProvider: SSOAdminHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sso-oidc/src/auth/httpAuthSchemeProvider.ts b/clients/client-sso-oidc/src/auth/httpAuthSchemeProvider.ts index 8e322c6890cf..91cff97f064d 100644 --- a/clients/client-sso-oidc/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sso-oidc/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -112,6 +113,14 @@ export const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -129,6 +138,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -149,5 +166,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sso/src/auth/httpAuthSchemeProvider.ts b/clients/client-sso/src/auth/httpAuthSchemeProvider.ts index c1d12432db77..c4f7609eddd1 100644 --- a/clients/client-sso/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sso/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -116,6 +117,14 @@ export const defaultSSOHttpAuthSchemeProvider: SSOHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -133,6 +142,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -153,5 +170,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-storage-gateway/src/auth/httpAuthSchemeProvider.ts b/clients/client-storage-gateway/src/auth/httpAuthSchemeProvider.ts index 60b553a60ec4..9e87592abce4 100644 --- a/clients/client-storage-gateway/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-storage-gateway/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultStorageGatewayHttpAuthSchemeProvider: StorageGatewayHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-sts/src/auth/httpAuthSchemeProvider.ts b/clients/client-sts/src/auth/httpAuthSchemeProvider.ts index 9d1613adeb6e..7bb62c84f0e3 100644 --- a/clients/client-sts/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-sts/src/auth/httpAuthSchemeProvider.ts @@ -13,6 +13,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -124,6 +125,14 @@ export const resolveStsAuthConfig = (input: T & StsAuthInputConfig): T & StsA * @internal */ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -141,6 +150,14 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSig * @internal */ export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -162,5 +179,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveStsAuthConfig(config); const config_1 = resolveAwsSdkSigV4Config(config_0); - return Object.assign(config_1, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-supplychain/src/auth/httpAuthSchemeProvider.ts b/clients/client-supplychain/src/auth/httpAuthSchemeProvider.ts index 8e4e38fb10f2..bfa912c6c0bb 100644 --- a/clients/client-supplychain/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-supplychain/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultSupplyChainHttpAuthSchemeProvider: SupplyChainHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-support-app/src/auth/httpAuthSchemeProvider.ts b/clients/client-support-app/src/auth/httpAuthSchemeProvider.ts index 408083820433..084c494f7e63 100644 --- a/clients/client-support-app/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-support-app/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSupportAppHttpAuthSchemeProvider: SupportAppHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-support/src/auth/httpAuthSchemeProvider.ts b/clients/client-support/src/auth/httpAuthSchemeProvider.ts index 5f8e2ae9ce48..6c33693d83ae 100644 --- a/clients/client-support/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-support/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSupportHttpAuthSchemeProvider: SupportHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-swf/src/auth/httpAuthSchemeProvider.ts b/clients/client-swf/src/auth/httpAuthSchemeProvider.ts index 267dcd4559a8..e387f4fb4c7d 100644 --- a/clients/client-swf/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-swf/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSWFHttpAuthSchemeProvider: SWFHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-synthetics/src/auth/httpAuthSchemeProvider.ts b/clients/client-synthetics/src/auth/httpAuthSchemeProvider.ts index dd9604525bea..e3c68207e85d 100644 --- a/clients/client-synthetics/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-synthetics/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultSyntheticsHttpAuthSchemeProvider: SyntheticsHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-taxsettings/src/auth/httpAuthSchemeProvider.ts b/clients/client-taxsettings/src/auth/httpAuthSchemeProvider.ts index 86eb1c0f4adc..3ead2e5dcd2c 100644 --- a/clients/client-taxsettings/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-taxsettings/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultTaxSettingsHttpAuthSchemeProvider: TaxSettingsHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-textract/src/auth/httpAuthSchemeProvider.ts b/clients/client-textract/src/auth/httpAuthSchemeProvider.ts index f9af17d0b9be..f8ccf8a6705f 100644 --- a/clients/client-textract/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-textract/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultTextractHttpAuthSchemeProvider: TextractHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts b/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts index 6289c2c0debd..6075cab33b17 100644 --- a/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-timestream-influxdb/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultTimestreamInfluxDBHttpAuthSchemeProvider: TimestreamInfluxDB * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-timestream-query/src/auth/httpAuthSchemeProvider.ts b/clients/client-timestream-query/src/auth/httpAuthSchemeProvider.ts index f7c5e0d3db9d..c6719fa2b129 100644 --- a/clients/client-timestream-query/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-timestream-query/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultTimestreamQueryHttpAuthSchemeProvider: TimestreamQueryHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-timestream-write/src/auth/httpAuthSchemeProvider.ts b/clients/client-timestream-write/src/auth/httpAuthSchemeProvider.ts index da8b4fb415bf..86cae5c89b5e 100644 --- a/clients/client-timestream-write/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-timestream-write/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultTimestreamWriteHttpAuthSchemeProvider: TimestreamWriteHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-tnb/src/auth/httpAuthSchemeProvider.ts b/clients/client-tnb/src/auth/httpAuthSchemeProvider.ts index 83a0d73f9865..cc487fe861d9 100644 --- a/clients/client-tnb/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-tnb/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultTnbHttpAuthSchemeProvider: TnbHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-transcribe-streaming/src/auth/httpAuthSchemeProvider.ts b/clients/client-transcribe-streaming/src/auth/httpAuthSchemeProvider.ts index fc963191373f..cf4c9c8cc8a0 100644 --- a/clients/client-transcribe-streaming/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-transcribe-streaming/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultTranscribeStreamingHttpAuthSchemeProvider: TranscribeStreami * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-transcribe/src/auth/httpAuthSchemeProvider.ts b/clients/client-transcribe/src/auth/httpAuthSchemeProvider.ts index 0eef6302366b..75daad5637c6 100644 --- a/clients/client-transcribe/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-transcribe/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultTranscribeHttpAuthSchemeProvider: TranscribeHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-transfer/src/auth/httpAuthSchemeProvider.ts b/clients/client-transfer/src/auth/httpAuthSchemeProvider.ts index 22034f5afed2..932304faca06 100644 --- a/clients/client-transfer/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-transfer/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultTransferHttpAuthSchemeProvider: TransferHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-translate/src/auth/httpAuthSchemeProvider.ts b/clients/client-translate/src/auth/httpAuthSchemeProvider.ts index f52cb0f3c6c3..a3f5c4aa3185 100644 --- a/clients/client-translate/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-translate/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultTranslateHttpAuthSchemeProvider: TranslateHttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-trustedadvisor/src/auth/httpAuthSchemeProvider.ts b/clients/client-trustedadvisor/src/auth/httpAuthSchemeProvider.ts index 2ccde2a784fe..f52f12a85d71 100644 --- a/clients/client-trustedadvisor/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-trustedadvisor/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultTrustedAdvisorHttpAuthSchemeProvider: TrustedAdvisorHttpAuth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-verifiedpermissions/src/auth/httpAuthSchemeProvider.ts b/clients/client-verifiedpermissions/src/auth/httpAuthSchemeProvider.ts index 5fdc87e5223a..92fc0f187cb6 100644 --- a/clients/client-verifiedpermissions/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-verifiedpermissions/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultVerifiedPermissionsHttpAuthSchemeProvider: VerifiedPermissio * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-voice-id/src/auth/httpAuthSchemeProvider.ts b/clients/client-voice-id/src/auth/httpAuthSchemeProvider.ts index f8037c116ad9..a1c466625161 100644 --- a/clients/client-voice-id/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-voice-id/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultVoiceIDHttpAuthSchemeProvider: VoiceIDHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-vpc-lattice/src/auth/httpAuthSchemeProvider.ts b/clients/client-vpc-lattice/src/auth/httpAuthSchemeProvider.ts index 60d2297e71e5..6e40f9503bfc 100644 --- a/clients/client-vpc-lattice/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-vpc-lattice/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultVPCLatticeHttpAuthSchemeProvider: VPCLatticeHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-waf-regional/src/auth/httpAuthSchemeProvider.ts b/clients/client-waf-regional/src/auth/httpAuthSchemeProvider.ts index acd7a25479c5..9913dfb4db7e 100644 --- a/clients/client-waf-regional/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-waf-regional/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultWAFRegionalHttpAuthSchemeProvider: WAFRegionalHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-waf/src/auth/httpAuthSchemeProvider.ts b/clients/client-waf/src/auth/httpAuthSchemeProvider.ts index ab6460d666a5..5a1d18492b88 100644 --- a/clients/client-waf/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-waf/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultWAFHttpAuthSchemeProvider: WAFHttpAuthSchemeProvider = (auth * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-wafv2/src/auth/httpAuthSchemeProvider.ts b/clients/client-wafv2/src/auth/httpAuthSchemeProvider.ts index 65c9d00e769b..32e06d904ac5 100644 --- a/clients/client-wafv2/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-wafv2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultWAFV2HttpAuthSchemeProvider: WAFV2HttpAuthSchemeProvider = ( * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-wellarchitected/src/auth/httpAuthSchemeProvider.ts b/clients/client-wellarchitected/src/auth/httpAuthSchemeProvider.ts index 75d57c8d45b0..2e421f565b6d 100644 --- a/clients/client-wellarchitected/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-wellarchitected/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultWellArchitectedHttpAuthSchemeProvider: WellArchitectedHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-wisdom/src/auth/httpAuthSchemeProvider.ts b/clients/client-wisdom/src/auth/httpAuthSchemeProvider.ts index 84cb4f3389cc..5a1bad911b40 100644 --- a/clients/client-wisdom/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-wisdom/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultWisdomHttpAuthSchemeProvider: WisdomHttpAuthSchemeProvider = * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-workdocs/src/auth/httpAuthSchemeProvider.ts b/clients/client-workdocs/src/auth/httpAuthSchemeProvider.ts index d255aac6da5c..e73f64dfc03f 100644 --- a/clients/client-workdocs/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-workdocs/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultWorkDocsHttpAuthSchemeProvider: WorkDocsHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-workmail/src/auth/httpAuthSchemeProvider.ts b/clients/client-workmail/src/auth/httpAuthSchemeProvider.ts index dae695358b88..c107897e0f31 100644 --- a/clients/client-workmail/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-workmail/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultWorkMailHttpAuthSchemeProvider: WorkMailHttpAuthSchemeProvid * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-workmailmessageflow/src/auth/httpAuthSchemeProvider.ts b/clients/client-workmailmessageflow/src/auth/httpAuthSchemeProvider.ts index 8a93b470bf75..fb885b737eda 100644 --- a/clients/client-workmailmessageflow/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-workmailmessageflow/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultWorkMailMessageFlowHttpAuthSchemeProvider: WorkMailMessageFl * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-workspaces-thin-client/src/auth/httpAuthSchemeProvider.ts b/clients/client-workspaces-thin-client/src/auth/httpAuthSchemeProvider.ts index 7996f90a7103..a69c915dffab 100644 --- a/clients/client-workspaces-thin-client/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-workspaces-thin-client/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -102,6 +103,14 @@ export const defaultWorkSpacesThinClientHttpAuthSchemeProvider: WorkSpacesThinCl * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -119,6 +128,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -139,5 +156,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-workspaces-web/src/auth/httpAuthSchemeProvider.ts b/clients/client-workspaces-web/src/auth/httpAuthSchemeProvider.ts index 6c266c6e654e..2f74c4c4fdc6 100644 --- a/clients/client-workspaces-web/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-workspaces-web/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultWorkSpacesWebHttpAuthSchemeProvider: WorkSpacesWebHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-workspaces/src/auth/httpAuthSchemeProvider.ts b/clients/client-workspaces/src/auth/httpAuthSchemeProvider.ts index 98732b67e97c..d5531a2df28d 100644 --- a/clients/client-workspaces/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-workspaces/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultWorkSpacesHttpAuthSchemeProvider: WorkSpacesHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/clients/client-xray/src/auth/httpAuthSchemeProvider.ts b/clients/client-xray/src/auth/httpAuthSchemeProvider.ts index 32cfbe4ac611..0aa1943e7922 100644 --- a/clients/client-xray/src/auth/httpAuthSchemeProvider.ts +++ b/clients/client-xray/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultXRayHttpAuthSchemeProvider: XRayHttpAuthSchemeProvider = (au * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/packages/nested-clients/src/submodules/sso-oidc/auth/httpAuthSchemeProvider.ts b/packages/nested-clients/src/submodules/sso-oidc/auth/httpAuthSchemeProvider.ts index cda83741fab9..08f7a104a014 100644 --- a/packages/nested-clients/src/submodules/sso-oidc/auth/httpAuthSchemeProvider.ts +++ b/packages/nested-clients/src/submodules/sso-oidc/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -104,6 +105,14 @@ export const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -121,6 +130,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -141,5 +158,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/packages/nested-clients/src/submodules/sts/auth/httpAuthSchemeProvider.ts b/packages/nested-clients/src/submodules/sts/auth/httpAuthSchemeProvider.ts index b427701fc53e..21861e14343c 100644 --- a/packages/nested-clients/src/submodules/sts/auth/httpAuthSchemeProvider.ts +++ b/packages/nested-clients/src/submodules/sts/auth/httpAuthSchemeProvider.ts @@ -13,6 +13,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -120,6 +121,14 @@ export const resolveStsAuthConfig = (input: T & StsAuthInputConfig): T & StsA * @internal */ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -137,6 +146,14 @@ export interface HttpAuthSchemeInputConfig extends StsAuthInputConfig, AwsSdkSig * @internal */ export interface HttpAuthSchemeResolvedConfig extends StsAuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -158,5 +175,7 @@ export const resolveHttpAuthSchemeConfig = ( ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveStsAuthConfig(config); const config_1 = resolveAwsSdkSigV4Config(config_0); - return Object.assign(config_1, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_1, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts index 9989684a276b..495acb2ef6f7 100644 --- a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts +++ b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts @@ -110,6 +110,7 @@ export const initializeWithMaximalConfiguration = () => { streamHasher: streamHasher, utf8Decoder: fromUtf8, utf8Encoder: toUtf8, + authSchemePreference: [], httpAuthSchemes: [], httpAuthSchemeProvider: (() => null) as unknown as HttpAuthSchemeProvider, serviceConfiguredEndpoint: null as never, diff --git a/private/aws-echo-service/src/auth/httpAuthSchemeProvider.ts b/private/aws-echo-service/src/auth/httpAuthSchemeProvider.ts index 2d7baf13abac..610884d7e096 100644 --- a/private/aws-echo-service/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-echo-service/src/auth/httpAuthSchemeProvider.ts @@ -7,8 +7,9 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; -import { getSmithyContext } from "@smithy/util-middleware"; +import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; /** * @internal @@ -68,6 +69,14 @@ export const defaultEchoServiceHttpAuthSchemeProvider: EchoServiceHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -85,6 +94,14 @@ export interface HttpAuthSchemeInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -104,5 +121,7 @@ export interface HttpAuthSchemeResolvedConfig { export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig ): T & HttpAuthSchemeResolvedConfig => { - return Object.assign(config, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-ec2/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-ec2/src/auth/httpAuthSchemeProvider.ts index 99da350732e0..e8513d342cbd 100644 --- a/private/aws-protocoltests-ec2/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-ec2/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultEC2ProtocolHttpAuthSchemeProvider: EC2ProtocolHttpAuthScheme * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-json-10/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-json-10/src/auth/httpAuthSchemeProvider.ts index 492565896684..655669306c8d 100644 --- a/private/aws-protocoltests-json-10/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-json-10/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultJSONRPC10HttpAuthSchemeProvider: JSONRPC10HttpAuthSchemeProv * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-json-machinelearning/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-json-machinelearning/src/auth/httpAuthSchemeProvider.ts index 99cecc61cac8..9752577b5f62 100644 --- a/private/aws-protocoltests-json-machinelearning/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-json-machinelearning/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultMachineLearningHttpAuthSchemeProvider: MachineLearningHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-json/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-json/src/auth/httpAuthSchemeProvider.ts index 11a22f31f851..7130e8f049c7 100644 --- a/private/aws-protocoltests-json/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-json/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultJsonProtocolHttpAuthSchemeProvider: JsonProtocolHttpAuthSche * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-query/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-query/src/auth/httpAuthSchemeProvider.ts index b3c18c7fb0ec..78b86390b6ff 100644 --- a/private/aws-protocoltests-query/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-query/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultQueryProtocolHttpAuthSchemeProvider: QueryProtocolHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-restjson-apigateway/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-restjson-apigateway/src/auth/httpAuthSchemeProvider.ts index 59474aec138e..1fdf355547d3 100644 --- a/private/aws-protocoltests-restjson-apigateway/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-restjson-apigateway/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultAPIGatewayHttpAuthSchemeProvider: APIGatewayHttpAuthSchemePr * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-restjson-glacier/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-restjson-glacier/src/auth/httpAuthSchemeProvider.ts index b756c7bf75ba..7a25fb604cfc 100644 --- a/private/aws-protocoltests-restjson-glacier/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-restjson-glacier/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -94,6 +95,14 @@ export const defaultGlacierHttpAuthSchemeProvider: GlacierHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -111,6 +120,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -131,5 +148,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-restjson/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-restjson/src/auth/httpAuthSchemeProvider.ts index b285122dd914..9ad45d578e63 100644 --- a/private/aws-protocoltests-restjson/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-restjson/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -97,6 +98,14 @@ export const defaultRestJsonProtocolHttpAuthSchemeProvider: RestJsonProtocolHttp * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -114,6 +123,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -134,5 +151,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-restxml/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-restxml/src/auth/httpAuthSchemeProvider.ts index 554142c6e50b..41224affdbf6 100644 --- a/private/aws-protocoltests-restxml/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-restxml/src/auth/httpAuthSchemeProvider.ts @@ -12,6 +12,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; @@ -95,6 +96,14 @@ export const defaultRestXmlProtocolHttpAuthSchemeProvider: RestXmlProtocolHttpAu * @internal */ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -112,6 +121,14 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -132,5 +149,7 @@ export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved ): T & HttpAuthSchemeResolvedConfig => { const config_0 = resolveAwsSdkSigV4Config(config); - return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config_0, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/aws-protocoltests-smithy-rpcv2-cbor/src/auth/httpAuthSchemeProvider.ts b/private/aws-protocoltests-smithy-rpcv2-cbor/src/auth/httpAuthSchemeProvider.ts index 450a55e7cfa0..89287e645f2d 100644 --- a/private/aws-protocoltests-smithy-rpcv2-cbor/src/auth/httpAuthSchemeProvider.ts +++ b/private/aws-protocoltests-smithy-rpcv2-cbor/src/auth/httpAuthSchemeProvider.ts @@ -6,8 +6,9 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, } from "@smithy/types"; -import { getSmithyContext } from "@smithy/util-middleware"; +import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; import { RpcV2ProtocolClientResolvedConfig } from "../RpcV2ProtocolClient"; @@ -69,6 +70,14 @@ export const defaultRpcV2ProtocolHttpAuthSchemeProvider: RpcV2ProtocolHttpAuthSc * @internal */ export interface HttpAuthSchemeInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -86,6 +95,14 @@ export interface HttpAuthSchemeInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -105,5 +122,7 @@ export interface HttpAuthSchemeResolvedConfig { export const resolveHttpAuthSchemeConfig = ( config: T & HttpAuthSchemeInputConfig ): T & HttpAuthSchemeResolvedConfig => { - return Object.assign(config, {}) as T & HttpAuthSchemeResolvedConfig; + return Object.assign(config, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), + }) as T & HttpAuthSchemeResolvedConfig; }; diff --git a/private/weather/src/auth/httpAuthSchemeProvider.ts b/private/weather/src/auth/httpAuthSchemeProvider.ts index 027520d8fdb5..14ea4e0d7364 100644 --- a/private/weather/src/auth/httpAuthSchemeProvider.ts +++ b/private/weather/src/auth/httpAuthSchemeProvider.ts @@ -13,6 +13,7 @@ import { HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, + Provider, TokenIdentity, TokenIdentityProvider, Provider as __Provider, @@ -169,6 +170,14 @@ export const defaultWeatherHttpAuthSchemeProvider: WeatherHttpAuthSchemeProvider * @internal */ export interface HttpAuthSchemeInputConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -203,6 +212,14 @@ export interface HttpAuthSchemeInputConfig { * @internal */ export interface HttpAuthSchemeResolvedConfig { + /** + * 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; + /** * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. * @internal @@ -244,6 +261,7 @@ export const resolveHttpAuthSchemeConfig = ( const region = config.region ? normalizeProvider(config.region) : undefined; const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh); return Object.assign(config, { + authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), apiKey, credentials, region, diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 8e8d54170cb0..b45663e83e86 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,7 +1,7 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "7af8ef9daa0f7f6525dbd5039d166e716fdc2b52", + SMITHY_TS_COMMIT: "063c14b082a0fe3f3dd5ec6cc627bde28f03f4d3", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) {