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(clients): enable Endpoint Discovery #2395

Merged
merged 14 commits into from
May 14, 2021
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions clients/client-dynamodb/DynamoDBClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ import {
DescribeContributorInsightsCommandInput,
DescribeContributorInsightsCommandOutput,
} from "./commands/DescribeContributorInsightsCommand";
import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
import {
DescribeEndpointsCommand,
DescribeEndpointsCommandInput,
DescribeEndpointsCommandOutput,
} from "./commands/DescribeEndpointsCommand";
import { DescribeExportCommandInput, DescribeExportCommandOutput } from "./commands/DescribeExportCommand";
import {
DescribeGlobalTableCommandInput,
Expand Down Expand Up @@ -109,6 +113,11 @@ import {
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
EndpointDiscoveryInputConfig,
EndpointDiscoveryResolvedConfig,
resolveEndpointDiscoveryConfig,
} from "@aws-sdk/middleware-endpoint-discovery";
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
Expand Down Expand Up @@ -359,6 +368,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* @internal
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* The provider which populates default for endpointDiscoveryEnabled configuration, if it's
* not passed during client creation.
* @internal
*/
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
}

type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand All @@ -368,7 +384,8 @@ type DynamoDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptio
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
UserAgentInputConfig &
EndpointDiscoveryInputConfig;
/**
* The configuration interface of DynamoDBClient class constructor that set the region, credentials and other options.
*/
Expand All @@ -381,7 +398,8 @@ type DynamoDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHand
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
UserAgentResolvedConfig &
EndpointDiscoveryResolvedConfig;
/**
* The resolved configuration interface of DynamoDBClient class. This is resolved and normalized from the {@link DynamoDBClientConfig | constructor configuration interface}.
*/
Expand Down Expand Up @@ -430,8 +448,9 @@ export class DynamoDBClient extends __Client<
let _config_4 = resolveHostHeaderConfig(_config_3);
let _config_5 = resolveAwsAuthConfig(_config_4);
let _config_6 = resolveUserAgentConfig(_config_5);
super(_config_6);
this.config = _config_6;
let _config_7 = resolveEndpointDiscoveryConfig(_config_6, DescribeEndpointsCommand);
super(_config_7);
this.config = _config_7;
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
this.middlewareStack.use(getHostHeaderPlugin(this.config));
Expand Down
1 change: 1 addition & 0 deletions clients/client-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@aws-sdk/hash-node": "3.15.0",
"@aws-sdk/invalid-dependency": "3.15.0",
"@aws-sdk/middleware-content-length": "3.15.0",
"@aws-sdk/middleware-endpoint-discovery": "3.0.0",
"@aws-sdk/middleware-host-header": "3.15.0",
"@aws-sdk/middleware-logger": "3.15.0",
"@aws-sdk/middleware-retry": "3.15.0",
Expand Down
1 change: 1 addition & 0 deletions clients/client-dynamodb/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
}),
endpointDiscoveryEnabledProvider: () => Promise.resolve(undefined),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidProvider("Region is missing"),
requestHandler: new FetchHttpHandler(),
Expand Down
2 changes: 2 additions & 0 deletions clients/client-dynamodb/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
Expand All @@ -28,6 +29,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
}),
endpointDiscoveryEnabledProvider: loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),
maxAttempts: loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: new NodeHttpHandler(),
Expand Down
29 changes: 24 additions & 5 deletions clients/client-timestream-query/TimestreamQueryClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
import {
DescribeEndpointsCommand,
DescribeEndpointsCommandInput,
DescribeEndpointsCommandOutput,
} from "./commands/DescribeEndpointsCommand";
import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
import {
Expand All @@ -11,6 +15,11 @@ import {
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
EndpointDiscoveryInputConfig,
EndpointDiscoveryResolvedConfig,
resolveEndpointDiscoveryConfig,
} from "@aws-sdk/middleware-endpoint-discovery";
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
Expand Down Expand Up @@ -161,6 +170,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* @internal
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* The provider which populates default for endpointDiscoveryEnabled configuration, if it's
* not passed during client creation.
* @internal
*/
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
}

type TimestreamQueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand All @@ -170,7 +186,8 @@ type TimestreamQueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandl
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
UserAgentInputConfig &
EndpointDiscoveryInputConfig;
/**
* The configuration interface of TimestreamQueryClient class constructor that set the region, credentials and other options.
*/
Expand All @@ -183,7 +200,8 @@ type TimestreamQueryClientResolvedConfigType = __SmithyResolvedConfiguration<__H
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
UserAgentResolvedConfig &
EndpointDiscoveryResolvedConfig;
/**
* The resolved configuration interface of TimestreamQueryClient class. This is resolved and normalized from the {@link TimestreamQueryClientConfig | constructor configuration interface}.
*/
Expand Down Expand Up @@ -216,8 +234,9 @@ export class TimestreamQueryClient extends __Client<
let _config_4 = resolveHostHeaderConfig(_config_3);
let _config_5 = resolveAwsAuthConfig(_config_4);
let _config_6 = resolveUserAgentConfig(_config_5);
super(_config_6);
this.config = _config_6;
let _config_7 = resolveEndpointDiscoveryConfig(_config_6, DescribeEndpointsCommand);
super(_config_7);
this.config = _config_7;
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
this.middlewareStack.use(getHostHeaderPlugin(this.config));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
deserializeAws_json1_0CancelQueryCommand,
serializeAws_json1_0CancelQueryCommand,
} from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -64,6 +65,7 @@ export class CancelQueryCommand extends $Command<
options?: __HttpHandlerOptions
): Handler<CancelQueryCommandInput, CancelQueryCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
2 changes: 2 additions & 0 deletions clients/client-timestream-query/commands/QueryCommand.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ServiceInputTypes, ServiceOutputTypes, TimestreamQueryClientResolvedConfig } from "../TimestreamQueryClient";
import { QueryRequest, QueryResponse } from "../models/models_0";
import { deserializeAws_json1_0QueryCommand, serializeAws_json1_0QueryCommand } from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -55,6 +56,7 @@ export class QueryCommand extends $Command<QueryCommandInput, QueryCommandOutput
options?: __HttpHandlerOptions
): Handler<QueryCommandInput, QueryCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
1 change: 1 addition & 0 deletions clients/client-timestream-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@aws-sdk/hash-node": "3.15.0",
"@aws-sdk/invalid-dependency": "3.15.0",
"@aws-sdk/middleware-content-length": "3.15.0",
"@aws-sdk/middleware-endpoint-discovery": "3.0.0",
"@aws-sdk/middleware-host-header": "3.15.0",
"@aws-sdk/middleware-logger": "3.15.0",
"@aws-sdk/middleware-retry": "3.15.0",
Expand Down
1 change: 1 addition & 0 deletions clients/client-timestream-query/runtimeConfig.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
}),
endpointDiscoveryEnabledProvider: () => Promise.resolve(undefined),
maxAttempts: DEFAULT_MAX_ATTEMPTS,
region: invalidProvider("Region is missing"),
requestHandler: new FetchHttpHandler(),
Expand Down
2 changes: 2 additions & 0 deletions clients/client-timestream-query/runtimeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery";
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
Expand All @@ -28,6 +29,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
}),
endpointDiscoveryEnabledProvider: loadNodeConfig(NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),
maxAttempts: loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
requestHandler: new NodeHttpHandler(),
Expand Down
29 changes: 24 additions & 5 deletions clients/client-timestream-write/TimestreamWriteClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/Cr
import { DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput } from "./commands/DeleteDatabaseCommand";
import { DeleteTableCommandInput, DeleteTableCommandOutput } from "./commands/DeleteTableCommand";
import { DescribeDatabaseCommandInput, DescribeDatabaseCommandOutput } from "./commands/DescribeDatabaseCommand";
import { DescribeEndpointsCommandInput, DescribeEndpointsCommandOutput } from "./commands/DescribeEndpointsCommand";
import {
DescribeEndpointsCommand,
DescribeEndpointsCommandInput,
DescribeEndpointsCommandOutput,
} from "./commands/DescribeEndpointsCommand";
import { DescribeTableCommandInput, DescribeTableCommandOutput } from "./commands/DescribeTableCommand";
import { ListDatabasesCommandInput, ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
Expand All @@ -26,6 +30,11 @@ import {
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
EndpointDiscoveryInputConfig,
EndpointDiscoveryResolvedConfig,
resolveEndpointDiscoveryConfig,
} from "@aws-sdk/middleware-endpoint-discovery";
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
Expand Down Expand Up @@ -206,6 +215,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* @internal
*/
defaultUserAgentProvider?: Provider<__UserAgent>;

/**
* The provider which populates default for endpointDiscoveryEnabled configuration, if it's
* not passed during client creation.
* @internal
*/
endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;
}

type TimestreamWriteClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand All @@ -215,7 +231,8 @@ type TimestreamWriteClientConfigType = Partial<__SmithyConfiguration<__HttpHandl
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
UserAgentInputConfig &
EndpointDiscoveryInputConfig;
/**
* The configuration interface of TimestreamWriteClient class constructor that set the region, credentials and other options.
*/
Expand All @@ -228,7 +245,8 @@ type TimestreamWriteClientResolvedConfigType = __SmithyResolvedConfiguration<__H
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
UserAgentResolvedConfig &
EndpointDiscoveryResolvedConfig;
/**
* The resolved configuration interface of TimestreamWriteClient class. This is resolved and normalized from the {@link TimestreamWriteClientConfig | constructor configuration interface}.
*/
Expand Down Expand Up @@ -259,8 +277,9 @@ export class TimestreamWriteClient extends __Client<
let _config_4 = resolveHostHeaderConfig(_config_3);
let _config_5 = resolveAwsAuthConfig(_config_4);
let _config_6 = resolveUserAgentConfig(_config_5);
super(_config_6);
this.config = _config_6;
let _config_7 = resolveEndpointDiscoveryConfig(_config_6, DescribeEndpointsCommand);
super(_config_7);
this.config = _config_7;
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
this.middlewareStack.use(getHostHeaderPlugin(this.config));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
deserializeAws_json1_0CreateDatabaseCommand,
serializeAws_json1_0CreateDatabaseCommand,
} from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -63,6 +64,7 @@ export class CreateDatabaseCommand extends $Command<
options?: __HttpHandlerOptions
): Handler<CreateDatabaseCommandInput, CreateDatabaseCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
deserializeAws_json1_0CreateTableCommand,
serializeAws_json1_0CreateTableCommand,
} from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -67,6 +68,7 @@ export class CreateTableCommand extends $Command<
options?: __HttpHandlerOptions
): Handler<CreateTableCommandInput, CreateTableCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
deserializeAws_json1_0DeleteDatabaseCommand,
serializeAws_json1_0DeleteDatabaseCommand,
} from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -68,6 +69,7 @@ export class DeleteDatabaseCommand extends $Command<
options?: __HttpHandlerOptions
): Handler<DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
deserializeAws_json1_0DeleteTableCommand,
serializeAws_json1_0DeleteTableCommand,
} from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -65,6 +66,7 @@ export class DeleteTableCommand extends $Command<
options?: __HttpHandlerOptions
): Handler<DeleteTableCommandInput, DeleteTableCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
deserializeAws_json1_0DescribeDatabaseCommand,
serializeAws_json1_0DescribeDatabaseCommand,
} from "../protocols/Aws_json1_0";
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
Expand Down Expand Up @@ -62,6 +63,7 @@ export class DescribeDatabaseCommand extends $Command<
options?: __HttpHandlerOptions
): Handler<DescribeDatabaseCommandInput, DescribeDatabaseCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));

const stack = clientStack.concat(this.middlewareStack);

Expand Down
Loading