Skip to content

Commit

Permalink
chore: rename internal retryModeProvider to retryMode (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 26, 2021
1 parent 56ab50e commit a42033e
Show file tree
Hide file tree
Showing 850 changed files with 1,166 additions and 1,445 deletions.
5 changes: 2 additions & 3 deletions clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-acm-pca/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-acm/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: ACMClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: ACMClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-alexa-for-business/AlexaForBusinessClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-alexa-for-business/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amp/AmpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: AmpClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amp/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: AmpClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amplify/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: AmplifyClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplify/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: AmplifyClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amplifybackend/AmplifyBackendClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-amplifybackend/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-api-gateway/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: APIGatewayClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-api-gateway/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: APIGatewayClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) =>
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewaymanagementapi/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) =>
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-apigatewayv2/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-apigatewayv2/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-app-mesh/AppMeshClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getRuntimeConfig = (config: AppMeshClientConfig) => {
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new FetchHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
retryMode: config?.retryMode ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-app-mesh/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getRuntimeConfig = (config: AppMeshClientConfig) => {
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: config?.requestHandler ?? new NodeHttpHandler(),
retryModeProvider: config?.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
retryMode: config?.retryMode ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS),
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
streamCollector: config?.streamCollector ?? streamCollector,
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
Expand Down
5 changes: 2 additions & 3 deletions clients/client-appconfig/AppConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
maxAttempts?: number | __Provider<number>;

/**
* Specifies provider for retry algorithm to use.
* @internal
* Specifies which retry algorithm to use.
*/
retryModeProvider?: __Provider<string>;
retryMode?: string | __Provider<string>;

/**
* Optional logger for logging debug/info/warn/error.
Expand Down

0 comments on commit a42033e

Please sign in to comment.