Skip to content

Commit

Permalink
fix(codegen): consistently add region as config option when generated…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
kuhe authored Jun 4, 2024
1 parent 6965b33 commit 06f51cc
Show file tree
Hide file tree
Showing 398 changed files with 1,981 additions and 1,945 deletions.
10 changes: 5 additions & 5 deletions clients/client-accessanalyzer/src/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-account/src/AccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-acm-pca/src/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-acm/src/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-amp/src/AmpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-amplify/src/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-amplifybackend/src/AmplifyBackendClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-amplifyuibuilder/src/AmplifyUIBuilderClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-api-gateway/src/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,15 +630,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-apigatewayv2/src/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,15 +416,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-app-mesh/src/AppMeshClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,15 +326,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-appconfig/src/AppConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,15 +353,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-appconfigdata/src/AppConfigDataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-appfabric/src/AppFabricClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-appflow/src/AppflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
10 changes: 5 additions & 5 deletions clients/client-appintegrations/src/AppIntegrationsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
useFipsEndpoint?: boolean | __Provider<boolean>;

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

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

/**
* Default credentials provider; Not available in browser runtime.
Expand Down
Loading

0 comments on commit 06f51cc

Please sign in to comment.