Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: requestHandler ctor param pass-through #5820

Merged
merged 9 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 21 additions & 21 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@
"@aws-sdk/util-endpoints": "*",
"@aws-sdk/util-user-agent-browser": "*",
"@aws-sdk/util-user-agent-node": "*",
"@smithy/config-resolver": "^2.1.1",
"@smithy/core": "^1.3.2",
"@smithy/fetch-http-handler": "^2.4.1",
"@smithy/hash-node": "^2.1.1",
"@smithy/invalid-dependency": "^2.1.1",
"@smithy/middleware-content-length": "^2.1.1",
"@smithy/middleware-endpoint": "^2.4.1",
"@smithy/middleware-retry": "^2.1.1",
"@smithy/middleware-serde": "^2.1.1",
"@smithy/middleware-stack": "^2.1.1",
"@smithy/node-config-provider": "^2.2.1",
"@smithy/node-http-handler": "^2.3.1",
"@smithy/protocol-http": "^3.1.1",
"@smithy/smithy-client": "^2.3.1",
"@smithy/types": "^2.9.1",
"@smithy/url-parser": "^2.1.1",
"@smithy/config-resolver": "^2.1.2",
"@smithy/core": "^1.3.3",
"@smithy/fetch-http-handler": "^2.4.2",
"@smithy/hash-node": "^2.1.2",
"@smithy/invalid-dependency": "^2.1.2",
"@smithy/middleware-content-length": "^2.1.2",
"@smithy/middleware-endpoint": "^2.4.2",
"@smithy/middleware-retry": "^2.1.2",
"@smithy/middleware-serde": "^2.1.2",
"@smithy/middleware-stack": "^2.1.2",
"@smithy/node-config-provider": "^2.2.2",
"@smithy/node-http-handler": "^2.4.0",
"@smithy/protocol-http": "^3.2.0",
"@smithy/smithy-client": "^2.4.0",
"@smithy/types": "^2.10.0",
"@smithy/url-parser": "^2.1.2",
"@smithy/util-base64": "^2.1.1",
"@smithy/util-body-length-browser": "^2.1.1",
"@smithy/util-body-length-node": "^2.2.1",
"@smithy/util-defaults-mode-browser": "^2.1.1",
"@smithy/util-defaults-mode-node": "^2.2.0",
"@smithy/util-endpoints": "^1.1.1",
"@smithy/util-middleware": "^2.1.1",
"@smithy/util-retry": "^2.1.1",
"@smithy/util-defaults-mode-browser": "^2.1.2",
"@smithy/util-defaults-mode-node": "^2.2.1",
"@smithy/util-endpoints": "^1.1.2",
"@smithy/util-middleware": "^2.1.2",
"@smithy/util-retry": "^2.1.2",
"@smithy/util-utf8": "^2.1.1",
"tslib": "^2.5.0",
"uuid": "^9.0.1"
Expand Down
8 changes: 4 additions & 4 deletions clients/client-accessanalyzer/src/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
Client as __Client,
DefaultsMode as __DefaultsMode,
Expand Down Expand Up @@ -200,11 +200,11 @@ export type ServiceOutputTypes =
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandler;
requestHandler?: __HttpHandlerUserInput;

/**
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-accessanalyzer/src/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
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 RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode:
config?.retryMode ??
loadNodeConfig({
Expand Down
42 changes: 21 additions & 21 deletions clients/client-account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@
"@aws-sdk/util-endpoints": "*",
"@aws-sdk/util-user-agent-browser": "*",
"@aws-sdk/util-user-agent-node": "*",
"@smithy/config-resolver": "^2.1.1",
"@smithy/core": "^1.3.2",
"@smithy/fetch-http-handler": "^2.4.1",
"@smithy/hash-node": "^2.1.1",
"@smithy/invalid-dependency": "^2.1.1",
"@smithy/middleware-content-length": "^2.1.1",
"@smithy/middleware-endpoint": "^2.4.1",
"@smithy/middleware-retry": "^2.1.1",
"@smithy/middleware-serde": "^2.1.1",
"@smithy/middleware-stack": "^2.1.1",
"@smithy/node-config-provider": "^2.2.1",
"@smithy/node-http-handler": "^2.3.1",
"@smithy/protocol-http": "^3.1.1",
"@smithy/smithy-client": "^2.3.1",
"@smithy/types": "^2.9.1",
"@smithy/url-parser": "^2.1.1",
"@smithy/config-resolver": "^2.1.2",
"@smithy/core": "^1.3.3",
"@smithy/fetch-http-handler": "^2.4.2",
"@smithy/hash-node": "^2.1.2",
"@smithy/invalid-dependency": "^2.1.2",
"@smithy/middleware-content-length": "^2.1.2",
"@smithy/middleware-endpoint": "^2.4.2",
"@smithy/middleware-retry": "^2.1.2",
"@smithy/middleware-serde": "^2.1.2",
"@smithy/middleware-stack": "^2.1.2",
"@smithy/node-config-provider": "^2.2.2",
"@smithy/node-http-handler": "^2.4.0",
"@smithy/protocol-http": "^3.2.0",
"@smithy/smithy-client": "^2.4.0",
"@smithy/types": "^2.10.0",
"@smithy/url-parser": "^2.1.2",
"@smithy/util-base64": "^2.1.1",
"@smithy/util-body-length-browser": "^2.1.1",
"@smithy/util-body-length-node": "^2.2.1",
"@smithy/util-defaults-mode-browser": "^2.1.1",
"@smithy/util-defaults-mode-node": "^2.2.0",
"@smithy/util-endpoints": "^1.1.1",
"@smithy/util-middleware": "^2.1.1",
"@smithy/util-retry": "^2.1.1",
"@smithy/util-defaults-mode-browser": "^2.1.2",
"@smithy/util-defaults-mode-node": "^2.2.1",
"@smithy/util-endpoints": "^1.1.2",
"@smithy/util-middleware": "^2.1.2",
"@smithy/util-retry": "^2.1.2",
"@smithy/util-utf8": "^2.1.1",
"tslib": "^2.5.0"
},
Expand Down
8 changes: 4 additions & 4 deletions clients/client-account/src/AccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
Client as __Client,
DefaultsMode as __DefaultsMode,
Expand Down Expand Up @@ -119,11 +119,11 @@ export type ServiceOutputTypes =
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandler;
requestHandler?: __HttpHandlerUserInput;

/**
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
Expand Down
2 changes: 1 addition & 1 deletion clients/client-account/src/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-account/src/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
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 RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode:
config?.retryMode ??
loadNodeConfig({
Expand Down
44 changes: 22 additions & 22 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,32 @@
"@aws-sdk/util-endpoints": "*",
"@aws-sdk/util-user-agent-browser": "*",
"@aws-sdk/util-user-agent-node": "*",
"@smithy/config-resolver": "^2.1.1",
"@smithy/core": "^1.3.2",
"@smithy/fetch-http-handler": "^2.4.1",
"@smithy/hash-node": "^2.1.1",
"@smithy/invalid-dependency": "^2.1.1",
"@smithy/middleware-content-length": "^2.1.1",
"@smithy/middleware-endpoint": "^2.4.1",
"@smithy/middleware-retry": "^2.1.1",
"@smithy/middleware-serde": "^2.1.1",
"@smithy/middleware-stack": "^2.1.1",
"@smithy/node-config-provider": "^2.2.1",
"@smithy/node-http-handler": "^2.3.1",
"@smithy/protocol-http": "^3.1.1",
"@smithy/smithy-client": "^2.3.1",
"@smithy/types": "^2.9.1",
"@smithy/url-parser": "^2.1.1",
"@smithy/config-resolver": "^2.1.2",
"@smithy/core": "^1.3.3",
"@smithy/fetch-http-handler": "^2.4.2",
"@smithy/hash-node": "^2.1.2",
"@smithy/invalid-dependency": "^2.1.2",
"@smithy/middleware-content-length": "^2.1.2",
"@smithy/middleware-endpoint": "^2.4.2",
"@smithy/middleware-retry": "^2.1.2",
"@smithy/middleware-serde": "^2.1.2",
"@smithy/middleware-stack": "^2.1.2",
"@smithy/node-config-provider": "^2.2.2",
"@smithy/node-http-handler": "^2.4.0",
"@smithy/protocol-http": "^3.2.0",
"@smithy/smithy-client": "^2.4.0",
"@smithy/types": "^2.10.0",
"@smithy/url-parser": "^2.1.2",
"@smithy/util-base64": "^2.1.1",
"@smithy/util-body-length-browser": "^2.1.1",
"@smithy/util-body-length-node": "^2.2.1",
"@smithy/util-defaults-mode-browser": "^2.1.1",
"@smithy/util-defaults-mode-node": "^2.2.0",
"@smithy/util-endpoints": "^1.1.1",
"@smithy/util-middleware": "^2.1.1",
"@smithy/util-retry": "^2.1.1",
"@smithy/util-defaults-mode-browser": "^2.1.2",
"@smithy/util-defaults-mode-node": "^2.2.1",
"@smithy/util-endpoints": "^1.1.2",
"@smithy/util-middleware": "^2.1.2",
"@smithy/util-retry": "^2.1.2",
"@smithy/util-utf8": "^2.1.1",
"@smithy/util-waiter": "^2.1.1",
"@smithy/util-waiter": "^2.1.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions clients/client-acm-pca/src/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
Client as __Client,
DefaultsMode as __DefaultsMode,
Expand Down Expand Up @@ -185,11 +185,11 @@ export type ServiceOutputTypes =
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandler;
requestHandler?: __HttpHandlerUserInput;

/**
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/src/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm-pca/src/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
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 RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode:
config?.retryMode ??
loadNodeConfig({
Expand Down
44 changes: 22 additions & 22 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,32 @@
"@aws-sdk/util-endpoints": "*",
"@aws-sdk/util-user-agent-browser": "*",
"@aws-sdk/util-user-agent-node": "*",
"@smithy/config-resolver": "^2.1.1",
"@smithy/core": "^1.3.2",
"@smithy/fetch-http-handler": "^2.4.1",
"@smithy/hash-node": "^2.1.1",
"@smithy/invalid-dependency": "^2.1.1",
"@smithy/middleware-content-length": "^2.1.1",
"@smithy/middleware-endpoint": "^2.4.1",
"@smithy/middleware-retry": "^2.1.1",
"@smithy/middleware-serde": "^2.1.1",
"@smithy/middleware-stack": "^2.1.1",
"@smithy/node-config-provider": "^2.2.1",
"@smithy/node-http-handler": "^2.3.1",
"@smithy/protocol-http": "^3.1.1",
"@smithy/smithy-client": "^2.3.1",
"@smithy/types": "^2.9.1",
"@smithy/url-parser": "^2.1.1",
"@smithy/config-resolver": "^2.1.2",
"@smithy/core": "^1.3.3",
"@smithy/fetch-http-handler": "^2.4.2",
"@smithy/hash-node": "^2.1.2",
"@smithy/invalid-dependency": "^2.1.2",
"@smithy/middleware-content-length": "^2.1.2",
"@smithy/middleware-endpoint": "^2.4.2",
"@smithy/middleware-retry": "^2.1.2",
"@smithy/middleware-serde": "^2.1.2",
"@smithy/middleware-stack": "^2.1.2",
"@smithy/node-config-provider": "^2.2.2",
"@smithy/node-http-handler": "^2.4.0",
"@smithy/protocol-http": "^3.2.0",
"@smithy/smithy-client": "^2.4.0",
"@smithy/types": "^2.10.0",
"@smithy/url-parser": "^2.1.2",
"@smithy/util-base64": "^2.1.1",
"@smithy/util-body-length-browser": "^2.1.1",
"@smithy/util-body-length-node": "^2.2.1",
"@smithy/util-defaults-mode-browser": "^2.1.1",
"@smithy/util-defaults-mode-node": "^2.2.0",
"@smithy/util-endpoints": "^1.1.1",
"@smithy/util-middleware": "^2.1.1",
"@smithy/util-retry": "^2.1.1",
"@smithy/util-defaults-mode-browser": "^2.1.2",
"@smithy/util-defaults-mode-node": "^2.2.1",
"@smithy/util-endpoints": "^1.1.2",
"@smithy/util-middleware": "^2.1.2",
"@smithy/util-retry": "^2.1.2",
"@smithy/util-utf8": "^2.1.1",
"@smithy/util-waiter": "^2.1.1",
"@smithy/util-waiter": "^2.1.2",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions clients/client-acm/src/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
Client as __Client,
DefaultsMode as __DefaultsMode,
Expand Down Expand Up @@ -146,11 +146,11 @@ export type ServiceOutputTypes =
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandler;
requestHandler?: __HttpHandlerUserInput;

/**
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/src/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getRuntimeConfig = (config: ACMClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
region: config?.region ?? invalidProvider("Region is missing"),
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
sha256: config?.sha256 ?? Sha256,
streamCollector: config?.streamCollector ?? streamCollector,
Expand Down
2 changes: 1 addition & 1 deletion clients/client-acm/src/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getRuntimeConfig = (config: ACMClientConfig) => {
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
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 RequestHandler(defaultConfigProvider),
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
retryMode:
config?.retryMode ??
loadNodeConfig({
Expand Down
Loading
Loading