Skip to content

fix(core): use credentials provided by extensions when instantiating sigv4 signer #6956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export class AccessAnalyzerClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-account/src/AccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class AccountClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-account/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/src/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export class ACMPCAClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/src/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class ACMClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-acm/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/src/AmpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export class AmpClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-amp/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/src/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export class AmplifyClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-amplify/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export class AmplifyBackendClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class AmplifyUIBuilderClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/src/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ export class APIGatewayClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export class ApiGatewayManagementApiClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/src/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export class ApiGatewayV2Client extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/src/AppMeshClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export class AppMeshClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-app-mesh/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appconfig/src/AppConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ export class AppConfigClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-appconfig/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appconfigdata/src/AppConfigDataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class AppConfigDataClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appfabric/src/AppFabricClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export class AppFabricClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-appfabric/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appflow/src/AppflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export class AppflowClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
7 changes: 4 additions & 3 deletions clients/client-appflow/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
/**
* @internal
*/
export const resolveHttpAuthSchemeConfig = <T>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
{ client }: { client: () => { config: R } }
): T & HttpAuthSchemeResolvedConfig => {
const config_0 = resolveAwsSdkSigV4Config(config);
const config_0 = resolveAwsSdkSigV4Config(config, client);
return {
...config_0,
} as T & HttpAuthSchemeResolvedConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export class AppIntegrationsClient extends __Client<
const _config_4 = resolveRegionConfig(_config_3);
const _config_5 = resolveHostHeaderConfig(_config_4);
const _config_6 = resolveEndpointConfig(_config_5);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
super(_config_8);
this.config = _config_8;
Expand Down
Loading
Loading