Skip to content

Commit df8c144

Browse files
committed
chore(clients): add config authSchemePreference
1 parent d330358 commit df8c144

File tree

404 files changed

+5656
-404
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404 files changed

+5656
-404
lines changed

clients/client-accessanalyzer/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -95,6 +96,11 @@ export const defaultAccessAnalyzerHttpAuthSchemeProvider: AccessAnalyzerHttpAuth
9596
* @internal
9697
*/
9798
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
99+
/**
100+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
101+
*/
102+
authSchemePreference?: string[] | Provider<string[]>;
103+
98104
/**
99105
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
100106
* @internal
@@ -112,6 +118,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
112118
* @internal
113119
*/
114120
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
121+
/**
122+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
123+
*/
124+
readonly authSchemePreference: Provider<string[]>;
125+
115126
/**
116127
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
117128
* @internal
@@ -132,5 +143,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
132143
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
133144
): T & HttpAuthSchemeResolvedConfig => {
134145
const config_0 = resolveAwsSdkSigV4Config(config);
135-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
146+
return Object.assign(config_0, {
147+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
148+
}) as T & HttpAuthSchemeResolvedConfig;
136149
};

clients/client-account/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -94,6 +95,11 @@ export const defaultAccountHttpAuthSchemeProvider: AccountHttpAuthSchemeProvider
9495
* @internal
9596
*/
9697
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
98+
/**
99+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
100+
*/
101+
authSchemePreference?: string[] | Provider<string[]>;
102+
97103
/**
98104
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
99105
* @internal
@@ -111,6 +117,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
111117
* @internal
112118
*/
113119
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
120+
/**
121+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
122+
*/
123+
readonly authSchemePreference: Provider<string[]>;
124+
114125
/**
115126
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
116127
* @internal
@@ -131,5 +142,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
131142
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
132143
): T & HttpAuthSchemeResolvedConfig => {
133144
const config_0 = resolveAwsSdkSigV4Config(config);
134-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
145+
return Object.assign(config_0, {
146+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
147+
}) as T & HttpAuthSchemeResolvedConfig;
135148
};

clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -94,6 +95,11 @@ export const defaultACMPCAHttpAuthSchemeProvider: ACMPCAHttpAuthSchemeProvider =
9495
* @internal
9596
*/
9697
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
98+
/**
99+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
100+
*/
101+
authSchemePreference?: string[] | Provider<string[]>;
102+
97103
/**
98104
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
99105
* @internal
@@ -111,6 +117,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
111117
* @internal
112118
*/
113119
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
120+
/**
121+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
122+
*/
123+
readonly authSchemePreference: Provider<string[]>;
124+
114125
/**
115126
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
116127
* @internal
@@ -131,5 +142,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
131142
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
132143
): T & HttpAuthSchemeResolvedConfig => {
133144
const config_0 = resolveAwsSdkSigV4Config(config);
134-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
145+
return Object.assign(config_0, {
146+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
147+
}) as T & HttpAuthSchemeResolvedConfig;
135148
};

clients/client-acm/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -94,6 +95,11 @@ export const defaultACMHttpAuthSchemeProvider: ACMHttpAuthSchemeProvider = (auth
9495
* @internal
9596
*/
9697
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
98+
/**
99+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
100+
*/
101+
authSchemePreference?: string[] | Provider<string[]>;
102+
97103
/**
98104
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
99105
* @internal
@@ -111,6 +117,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
111117
* @internal
112118
*/
113119
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
120+
/**
121+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
122+
*/
123+
readonly authSchemePreference: Provider<string[]>;
124+
114125
/**
115126
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
116127
* @internal
@@ -131,5 +142,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
131142
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
132143
): T & HttpAuthSchemeResolvedConfig => {
133144
const config_0 = resolveAwsSdkSigV4Config(config);
134-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
145+
return Object.assign(config_0, {
146+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
147+
}) as T & HttpAuthSchemeResolvedConfig;
135148
};

clients/client-amp/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -94,6 +95,11 @@ export const defaultAmpHttpAuthSchemeProvider: AmpHttpAuthSchemeProvider = (auth
9495
* @internal
9596
*/
9697
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
98+
/**
99+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
100+
*/
101+
authSchemePreference?: string[] | Provider<string[]>;
102+
97103
/**
98104
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
99105
* @internal
@@ -111,6 +117,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
111117
* @internal
112118
*/
113119
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
120+
/**
121+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
122+
*/
123+
readonly authSchemePreference: Provider<string[]>;
124+
114125
/**
115126
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
116127
* @internal
@@ -131,5 +142,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
131142
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
132143
): T & HttpAuthSchemeResolvedConfig => {
133144
const config_0 = resolveAwsSdkSigV4Config(config);
134-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
145+
return Object.assign(config_0, {
146+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
147+
}) as T & HttpAuthSchemeResolvedConfig;
135148
};

clients/client-amplify/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -94,6 +95,11 @@ export const defaultAmplifyHttpAuthSchemeProvider: AmplifyHttpAuthSchemeProvider
9495
* @internal
9596
*/
9697
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
98+
/**
99+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
100+
*/
101+
authSchemePreference?: string[] | Provider<string[]>;
102+
97103
/**
98104
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
99105
* @internal
@@ -111,6 +117,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
111117
* @internal
112118
*/
113119
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
120+
/**
121+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
122+
*/
123+
readonly authSchemePreference: Provider<string[]>;
124+
114125
/**
115126
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
116127
* @internal
@@ -131,5 +142,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
131142
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
132143
): T & HttpAuthSchemeResolvedConfig => {
133144
const config_0 = resolveAwsSdkSigV4Config(config);
134-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
145+
return Object.assign(config_0, {
146+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
147+
}) as T & HttpAuthSchemeResolvedConfig;
135148
};

clients/client-amplifybackend/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -95,6 +96,11 @@ export const defaultAmplifyBackendHttpAuthSchemeProvider: AmplifyBackendHttpAuth
9596
* @internal
9697
*/
9798
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
99+
/**
100+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
101+
*/
102+
authSchemePreference?: string[] | Provider<string[]>;
103+
98104
/**
99105
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
100106
* @internal
@@ -112,6 +118,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
112118
* @internal
113119
*/
114120
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
121+
/**
122+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
123+
*/
124+
readonly authSchemePreference: Provider<string[]>;
125+
115126
/**
116127
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
117128
* @internal
@@ -132,5 +143,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
132143
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
133144
): T & HttpAuthSchemeResolvedConfig => {
134145
const config_0 = resolveAwsSdkSigV4Config(config);
135-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
146+
return Object.assign(config_0, {
147+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
148+
}) as T & HttpAuthSchemeResolvedConfig;
136149
};

clients/client-amplifyuibuilder/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -97,6 +98,11 @@ export const defaultAmplifyUIBuilderHttpAuthSchemeProvider: AmplifyUIBuilderHttp
9798
* @internal
9899
*/
99100
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
101+
/**
102+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
103+
*/
104+
authSchemePreference?: string[] | Provider<string[]>;
105+
100106
/**
101107
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
102108
* @internal
@@ -114,6 +120,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
114120
* @internal
115121
*/
116122
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
123+
/**
124+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
125+
*/
126+
readonly authSchemePreference: Provider<string[]>;
127+
117128
/**
118129
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
119130
* @internal
@@ -134,5 +145,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
134145
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
135146
): T & HttpAuthSchemeResolvedConfig => {
136147
const config_0 = resolveAwsSdkSigV4Config(config);
137-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
148+
return Object.assign(config_0, {
149+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
150+
}) as T & HttpAuthSchemeResolvedConfig;
138151
};

clients/client-api-gateway/src/auth/httpAuthSchemeProvider.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
HttpAuthSchemeParameters,
1313
HttpAuthSchemeParametersProvider,
1414
HttpAuthSchemeProvider,
15+
Provider,
1516
} from "@smithy/types";
1617
import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
1718

@@ -94,6 +95,11 @@ export const defaultAPIGatewayHttpAuthSchemeProvider: APIGatewayHttpAuthSchemePr
9495
* @internal
9596
*/
9697
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
98+
/**
99+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
100+
*/
101+
authSchemePreference?: string[] | Provider<string[]>;
102+
97103
/**
98104
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
99105
* @internal
@@ -111,6 +117,11 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
111117
* @internal
112118
*/
113119
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
120+
/**
121+
* A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4. @public
122+
*/
123+
readonly authSchemePreference: Provider<string[]>;
124+
114125
/**
115126
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
116127
* @internal
@@ -131,5 +142,7 @@ export const resolveHttpAuthSchemeConfig = <T>(
131142
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
132143
): T & HttpAuthSchemeResolvedConfig => {
133144
const config_0 = resolveAwsSdkSigV4Config(config);
134-
return Object.assign(config_0, {}) as T & HttpAuthSchemeResolvedConfig;
145+
return Object.assign(config_0, {
146+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
147+
}) as T & HttpAuthSchemeResolvedConfig;
135148
};

0 commit comments

Comments
 (0)