Skip to content

Commit 06f51cc

Browse files
authoredJun 4, 2024··
fix(codegen): consistently add region as config option when generated client is Sigv4 but not AWS (#6156)
* fix(codegen): consistently add region as config option when generated client is Sigv4 but not AWS * fix(codegen): consistently add region as config option when generated client is Sigv4 but not AWS * fix(codegen): codegen diff * fix(codegen): do not provide credentialDefaultProvider if service is not sigv4 * fix(codegen): address pr comments * chore(codegen): sync codegen
1 parent 6965b33 commit 06f51cc

File tree

398 files changed

+1981
-1945
lines changed

Some content is hidden

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

398 files changed

+1981
-1945
lines changed
 

‎clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
284284
useFipsEndpoint?: boolean | __Provider<boolean>;
285285

286286
/**
287-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
288-
* @internal
287+
* The AWS region to which this client will send requests
289288
*/
290-
defaultUserAgentProvider?: Provider<__UserAgent>;
289+
region?: string | __Provider<string>;
291290

292291
/**
293-
* The AWS region to which this client will send requests
292+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
293+
* @internal
294294
*/
295-
region?: string | __Provider<string>;
295+
defaultUserAgentProvider?: Provider<__UserAgent>;
296296

297297
/**
298298
* Default credentials provider; Not available in browser runtime.

‎clients/client-account/src/AccountClient.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
203203
useFipsEndpoint?: boolean | __Provider<boolean>;
204204

205205
/**
206-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
207-
* @internal
206+
* The AWS region to which this client will send requests
208207
*/
209-
defaultUserAgentProvider?: Provider<__UserAgent>;
208+
region?: string | __Provider<string>;
210209

211210
/**
212-
* The AWS region to which this client will send requests
211+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
212+
* @internal
213213
*/
214-
region?: string | __Provider<string>;
214+
defaultUserAgentProvider?: Provider<__UserAgent>;
215215

216216
/**
217217
* Default credentials provider; Not available in browser runtime.

0 commit comments

Comments
 (0)
Please sign in to comment.