Skip to content

Commit

Permalink
Generic client runtime config (#4427)
Browse files Browse the repository at this point in the history
* feat(codegen): rely on smithy-typescript for client config

Moved logger from aws to generic.

* chore(codegen): update client config

* feat(codegen): move endpoint config to AddAwsRuntimeConfig

* chore(codegen): update client config
  • Loading branch information
srchase authored Feb 14, 2023
1 parent b8320f4 commit 7ff83c4
Show file tree
Hide file tree
Showing 354 changed files with 6,293 additions and 6,560 deletions.
36 changes: 18 additions & 18 deletions clients/client-accessanalyzer/src/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
disableHostPrefix?: boolean;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
* Unique service identifier.
* @internal
*/
logger?: __Logger;
serviceId?: string;

/**
* Enables IPv6/IPv4 dualstack endpoint.
Expand All @@ -261,12 +252,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
useFipsEndpoint?: boolean | __Provider<boolean>;

/**
* Unique service identifier.
* @internal
*/
serviceId?: string;

/**
* The AWS region to which this client will send requests
*/
Expand All @@ -284,6 +269,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down
36 changes: 18 additions & 18 deletions clients/client-account/src/AccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
disableHostPrefix?: boolean;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
* Unique service identifier.
* @internal
*/
logger?: __Logger;
serviceId?: string;

/**
* Enables IPv6/IPv4 dualstack endpoint.
Expand All @@ -195,12 +186,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
useFipsEndpoint?: boolean | __Provider<boolean>;

/**
* Unique service identifier.
* @internal
*/
serviceId?: string;

/**
* The AWS region to which this client will send requests
*/
Expand All @@ -218,6 +203,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down
36 changes: 18 additions & 18 deletions clients/client-acm-pca/src/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
disableHostPrefix?: boolean;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
* Unique service identifier.
* @internal
*/
logger?: __Logger;
serviceId?: string;

/**
* Enables IPv6/IPv4 dualstack endpoint.
Expand All @@ -261,12 +252,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
useFipsEndpoint?: boolean | __Provider<boolean>;

/**
* Unique service identifier.
* @internal
*/
serviceId?: string;

/**
* The AWS region to which this client will send requests
*/
Expand All @@ -284,6 +269,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down
36 changes: 18 additions & 18 deletions clients/client-acm/src/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
disableHostPrefix?: boolean;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
* Unique service identifier.
* @internal
*/
logger?: __Logger;
serviceId?: string;

/**
* Enables IPv6/IPv4 dualstack endpoint.
Expand All @@ -222,12 +213,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
useFipsEndpoint?: boolean | __Provider<boolean>;

/**
* Unique service identifier.
* @internal
*/
serviceId?: string;

/**
* The AWS region to which this client will send requests
*/
Expand All @@ -245,6 +230,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down
36 changes: 18 additions & 18 deletions clients/client-alexa-for-business/src/AlexaForBusinessClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,19 +525,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
disableHostPrefix?: boolean;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
* Unique service identifier.
* @internal
*/
logger?: __Logger;
serviceId?: string;

/**
* Enables IPv6/IPv4 dualstack endpoint.
Expand All @@ -549,12 +540,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
useFipsEndpoint?: boolean | __Provider<boolean>;

/**
* Unique service identifier.
* @internal
*/
serviceId?: string;

/**
* The AWS region to which this client will send requests
*/
Expand All @@ -572,6 +557,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down
36 changes: 18 additions & 18 deletions clients/client-amp/src/AmpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
disableHostPrefix?: boolean;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
* Unique service identifier.
* @internal
*/
logger?: __Logger;
serviceId?: string;

/**
* Enables IPv6/IPv4 dualstack endpoint.
Expand All @@ -261,12 +252,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
useFipsEndpoint?: boolean | __Provider<boolean>;

/**
* Unique service identifier.
* @internal
*/
serviceId?: string;

/**
* The AWS region to which this client will send requests
*/
Expand All @@ -284,6 +269,21 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;

/**
* Specifies which retry algorithm to use.
*/
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
Expand Down
Loading

0 comments on commit 7ff83c4

Please sign in to comment.