Skip to content

Commit 9df52d1

Browse files
authored
fix(core): revert "use credentials provided by extensions when instantiating sigv4 signer (#6956)" (#6958)
This reverts commit 6288dff.
1 parent 6288dff commit 9df52d1

File tree

840 files changed

+1672
-2094
lines changed

Some content is hidden

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

840 files changed

+1672
-2094
lines changed

clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export class AccessAnalyzerClient extends __Client<
460460
const _config_4 = resolveRegionConfig(_config_3);
461461
const _config_5 = resolveHostHeaderConfig(_config_4);
462462
const _config_6 = resolveEndpointConfig(_config_5);
463-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
463+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
464464
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
465465
super(_config_8);
466466
this.config = _config_8;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
128128
/**
129129
* @internal
130130
*/
131-
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
132-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
133-
{ client }: { client: () => { config: R } }
131+
export const resolveHttpAuthSchemeConfig = <T>(
132+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
134133
): T & HttpAuthSchemeResolvedConfig => {
135-
const config_0 = resolveAwsSdkSigV4Config(config, client);
134+
const config_0 = resolveAwsSdkSigV4Config(config);
136135
return {
137136
...config_0,
138137
} as T & HttpAuthSchemeResolvedConfig;

clients/client-account/src/AccountClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export class AccountClient extends __Client<
344344
const _config_4 = resolveRegionConfig(_config_3);
345345
const _config_5 = resolveHostHeaderConfig(_config_4);
346346
const _config_6 = resolveEndpointConfig(_config_5);
347-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
347+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
348348
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
349349
super(_config_8);
350350
this.config = _config_8;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132-
{ client }: { client: () => { config: R } }
130+
export const resolveHttpAuthSchemeConfig = <T>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
133132
): T & HttpAuthSchemeResolvedConfig => {
134-
const config_0 = resolveAwsSdkSigV4Config(config, client);
133+
const config_0 = resolveAwsSdkSigV4Config(config);
135134
return {
136135
...config_0,
137136
} as T & HttpAuthSchemeResolvedConfig;

clients/client-acm-pca/src/ACMPCAClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export class ACMPCAClient extends __Client<
410410
const _config_4 = resolveRegionConfig(_config_3);
411411
const _config_5 = resolveHostHeaderConfig(_config_4);
412412
const _config_6 = resolveEndpointConfig(_config_5);
413-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
413+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
414414
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
415415
super(_config_8);
416416
this.config = _config_8;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132-
{ client }: { client: () => { config: R } }
130+
export const resolveHttpAuthSchemeConfig = <T>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
133132
): T & HttpAuthSchemeResolvedConfig => {
134-
const config_0 = resolveAwsSdkSigV4Config(config, client);
133+
const config_0 = resolveAwsSdkSigV4Config(config);
135134
return {
136135
...config_0,
137136
} as T & HttpAuthSchemeResolvedConfig;

clients/client-acm/src/ACMClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export class ACMClient extends __Client<
358358
const _config_4 = resolveRegionConfig(_config_3);
359359
const _config_5 = resolveHostHeaderConfig(_config_4);
360360
const _config_6 = resolveEndpointConfig(_config_5);
361-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
361+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
362362
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
363363
super(_config_8);
364364
this.config = _config_8;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132-
{ client }: { client: () => { config: R } }
130+
export const resolveHttpAuthSchemeConfig = <T>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
133132
): T & HttpAuthSchemeResolvedConfig => {
134-
const config_0 = resolveAwsSdkSigV4Config(config, client);
133+
const config_0 = resolveAwsSdkSigV4Config(config);
135134
return {
136135
...config_0,
137136
} as T & HttpAuthSchemeResolvedConfig;

clients/client-amp/src/AmpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export class AmpClient extends __Client<
433433
const _config_4 = resolveRegionConfig(_config_3);
434434
const _config_5 = resolveHostHeaderConfig(_config_4);
435435
const _config_6 = resolveEndpointConfig(_config_5);
436-
const _config_7 = resolveHttpAuthSchemeConfig(_config_6, { client: () => this });
436+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
437437
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
438438
super(_config_8);
439439
this.config = _config_8;

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedCon
127127
/**
128128
* @internal
129129
*/
130-
export const resolveHttpAuthSchemeConfig = <T, R extends object>(
131-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
132-
{ client }: { client: () => { config: R } }
130+
export const resolveHttpAuthSchemeConfig = <T>(
131+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
133132
): T & HttpAuthSchemeResolvedConfig => {
134-
const config_0 = resolveAwsSdkSigV4Config(config, client);
133+
const config_0 = resolveAwsSdkSigV4Config(config);
135134
return {
136135
...config_0,
137136
} as T & HttpAuthSchemeResolvedConfig;

0 commit comments

Comments
 (0)