Skip to content

Commit b0082ea

Browse files
committed
feat(clients): call getEndpointDiscovery*Plugin from commands
1 parent 9d1cecc commit b0082ea

16 files changed

+32
-0
lines changed

clients/client-timestream-query/commands/CancelQueryCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0CancelQueryCommand,
55
serializeAws_json1_0CancelQueryCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -64,6 +65,7 @@ export class CancelQueryCommand extends $Command<
6465
options?: __HttpHandlerOptions
6566
): Handler<CancelQueryCommandInput, CancelQueryCommandOutput> {
6667
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6769

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

clients/client-timestream-query/commands/QueryCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ServiceInputTypes, ServiceOutputTypes, TimestreamQueryClientResolvedConfig } from "../TimestreamQueryClient";
22
import { QueryRequest, QueryResponse } from "../models/models_0";
33
import { deserializeAws_json1_0QueryCommand, serializeAws_json1_0QueryCommand } from "../protocols/Aws_json1_0";
4+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
45
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
56
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
67
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -55,6 +56,7 @@ export class QueryCommand extends $Command<QueryCommandInput, QueryCommandOutput
5556
options?: __HttpHandlerOptions
5657
): Handler<QueryCommandInput, QueryCommandOutput> {
5758
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
59+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
5860

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

clients/client-timestream-write/commands/CreateDatabaseCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0CreateDatabaseCommand,
55
serializeAws_json1_0CreateDatabaseCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -63,6 +64,7 @@ export class CreateDatabaseCommand extends $Command<
6364
options?: __HttpHandlerOptions
6465
): Handler<CreateDatabaseCommandInput, CreateDatabaseCommandOutput> {
6566
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6668

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

clients/client-timestream-write/commands/CreateTableCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0CreateTableCommand,
55
serializeAws_json1_0CreateTableCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -67,6 +68,7 @@ export class CreateTableCommand extends $Command<
6768
options?: __HttpHandlerOptions
6869
): Handler<CreateTableCommandInput, CreateTableCommandOutput> {
6970
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
7072

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

clients/client-timestream-write/commands/DeleteDatabaseCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0DeleteDatabaseCommand,
55
serializeAws_json1_0DeleteDatabaseCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -68,6 +69,7 @@ export class DeleteDatabaseCommand extends $Command<
6869
options?: __HttpHandlerOptions
6970
): Handler<DeleteDatabaseCommandInput, DeleteDatabaseCommandOutput> {
7071
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
7173

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

clients/client-timestream-write/commands/DeleteTableCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0DeleteTableCommand,
55
serializeAws_json1_0DeleteTableCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -65,6 +66,7 @@ export class DeleteTableCommand extends $Command<
6566
options?: __HttpHandlerOptions
6667
): Handler<DeleteTableCommandInput, DeleteTableCommandOutput> {
6768
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6870

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

clients/client-timestream-write/commands/DescribeDatabaseCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0DescribeDatabaseCommand,
55
serializeAws_json1_0DescribeDatabaseCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -62,6 +63,7 @@ export class DescribeDatabaseCommand extends $Command<
6263
options?: __HttpHandlerOptions
6364
): Handler<DescribeDatabaseCommandInput, DescribeDatabaseCommandOutput> {
6465
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6567

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

clients/client-timestream-write/commands/DescribeTableCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0DescribeTableCommand,
55
serializeAws_json1_0DescribeTableCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -63,6 +64,7 @@ export class DescribeTableCommand extends $Command<
6364
options?: __HttpHandlerOptions
6465
): Handler<DescribeTableCommandInput, DescribeTableCommandOutput> {
6566
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6668

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

clients/client-timestream-write/commands/ListDatabasesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0ListDatabasesCommand,
55
serializeAws_json1_0ListDatabasesCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -62,6 +63,7 @@ export class ListDatabasesCommand extends $Command<
6263
options?: __HttpHandlerOptions
6364
): Handler<ListDatabasesCommandInput, ListDatabasesCommandOutput> {
6465
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6567

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

clients/client-timestream-write/commands/ListTablesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0ListTablesCommand,
55
serializeAws_json1_0ListTablesCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -61,6 +62,7 @@ export class ListTablesCommand extends $Command<
6162
options?: __HttpHandlerOptions
6263
): Handler<ListTablesCommandInput, ListTablesCommandOutput> {
6364
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6466

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

clients/client-timestream-write/commands/ListTagsForResourceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0ListTagsForResourceCommand,
55
serializeAws_json1_0ListTagsForResourceCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -62,6 +63,7 @@ export class ListTagsForResourceCommand extends $Command<
6263
options?: __HttpHandlerOptions
6364
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
6465
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6567

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

clients/client-timestream-write/commands/TagResourceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0TagResourceCommand,
55
serializeAws_json1_0TagResourceCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -64,6 +65,7 @@ export class TagResourceCommand extends $Command<
6465
options?: __HttpHandlerOptions
6566
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
6667
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6769

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

clients/client-timestream-write/commands/UntagResourceCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0UntagResourceCommand,
55
serializeAws_json1_0UntagResourceCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -62,6 +63,7 @@ export class UntagResourceCommand extends $Command<
6263
options?: __HttpHandlerOptions
6364
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
6465
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6567

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

clients/client-timestream-write/commands/UpdateDatabaseCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0UpdateDatabaseCommand,
55
serializeAws_json1_0UpdateDatabaseCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -64,6 +65,7 @@ export class UpdateDatabaseCommand extends $Command<
6465
options?: __HttpHandlerOptions
6566
): Handler<UpdateDatabaseCommandInput, UpdateDatabaseCommandOutput> {
6667
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6769

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

clients/client-timestream-write/commands/UpdateTableCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0UpdateTableCommand,
55
serializeAws_json1_0UpdateTableCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -66,6 +67,7 @@ export class UpdateTableCommand extends $Command<
6667
options?: __HttpHandlerOptions
6768
): Handler<UpdateTableCommandInput, UpdateTableCommandOutput> {
6869
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
6971

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

clients/client-timestream-write/commands/WriteRecordsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
deserializeAws_json1_0WriteRecordsCommand,
55
serializeAws_json1_0WriteRecordsCommand,
66
} from "../protocols/Aws_json1_0";
7+
import { getEndpointDiscoveryRequiredPlugin } from "@aws-sdk/middleware-endpoint-discovery";
78
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
89
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
910
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -73,6 +74,7 @@ export class WriteRecordsCommand extends $Command<
7374
options?: __HttpHandlerOptions
7475
): Handler<WriteRecordsCommandInput, WriteRecordsCommandOutput> {
7576
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
77+
this.middlewareStack.use(getEndpointDiscoveryRequiredPlugin(configuration, { clientStack, options }));
7678

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

0 commit comments

Comments
 (0)