Skip to content

Commit 1b16c26

Browse files
committed
chore: rename discoveryEndpointCommandCtor
1 parent 488fda8 commit 1b16c26

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

clients/client-timestream-query/TimestreamQueryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class TimestreamQueryClient extends __Client<
219219
let _config_7 = resolveEndpointDiscoveryClientConfig(_config_6);
220220
super(_config_7);
221221
_config_7.client = this;
222-
_config_7.discoveryEndpointCommandCtor = DescribeEndpointsCommand;
222+
_config_7.endpointDiscoveryCommandCtor = DescribeEndpointsCommand;
223223
this.config = _config_7;
224224
this.middlewareStack.use(getRetryPlugin(this.config));
225225
this.middlewareStack.use(getContentLengthPlugin(this.config));

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
SerdeContext as __SerdeContext,
1515
} from "@aws-sdk/types";
1616
import { getEndpointDiscoveryCommandPlugin } from "@aws-sdk/middleware-endpoint-discovery";
17-
import { DescribeEndpointsCommand } from "./DescribeEndpointsCommand";
1817

1918
export interface QueryCommandInput extends QueryRequest {}
2019
export interface QueryCommandOutput extends QueryResponse, __MetadataBearer {}

packages/middleware-endpoint-discovery/src/getEndpointDiscoveryCommandPlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const endpointDiscoveryMiddleware = (
3636
args: FinalizeHandlerArguments<any>
3737
): Promise<FinalizeHandlerOutput<Output>> => {
3838
const { client } = config;
39-
const { discoveryEndpointCommandCtor } = client?.config;
39+
const { endpointDiscoveryCommandCtor } = client?.config;
4040
const { isDiscoveredEndpointRequired, getEndpointDiscoveryId } = middlewareConfig;
4141
const { commandName } = context;
4242

@@ -45,15 +45,15 @@ export const endpointDiscoveryMiddleware = (
4545
// till discovered endpoint is updated in cache
4646
await updateDiscoveredEndpointInCache(config, {
4747
commandName,
48-
discoveryEndpointCommandCtor,
48+
endpointDiscoveryCommandCtor,
4949
getEndpointDiscoveryId,
5050
});
5151
} else if (isDiscoveredEndpointRequired === false) {
5252
// Do not call await await on Endpoint Discovery API utility so that function
5353
// does not block, the command will use discovered endpoint, if available.
5454
updateDiscoveredEndpointInCache(config, {
5555
commandName,
56-
discoveryEndpointCommandCtor,
56+
endpointDiscoveryCommandCtor,
5757
getEndpointDiscoveryId,
5858
});
5959
}

packages/middleware-endpoint-discovery/src/resolveEndpointDiscoveryClientConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface PreviouslyResolved {}
77

88
export interface EndpointDiscoveryClientResolvedConfig {
99
client?: Client<any, any, any>;
10-
discoveryEndpointCommandCtor?: new (comandConfig: any) => Command<any, any, any, any, any>;
10+
endpointDiscoveryCommandCtor?: new (comandConfig: any) => Command<any, any, any, any, any>;
1111
endpointCache: LRUCache<string, string>;
1212
}
1313

packages/middleware-endpoint-discovery/src/updateDiscoveredEndpointInCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { EndpointDiscoveryClientResolvedConfig } from "./resolveEndpointDiscover
55

66
export type updateDiscoveredEndpointInCacheOptions = {
77
commandName: string;
8-
discoveryEndpointCommandCtor: new (comandConfig: any) => Command<any, any, any, any, any>;
8+
endpointDiscoveryCommandCtor: new (comandConfig: any) => Command<any, any, any, any, any>;
99
getEndpointDiscoveryId: () => string | undefined;
1010
};
1111

@@ -38,7 +38,7 @@ export const updateDiscoveredEndpointInCache = async (
3838
]);
3939

4040
try {
41-
const command = new options.discoveryEndpointCommandCtor({
41+
const command = new options.endpointDiscoveryCommandCtor({
4242
Operation: commandName.substr(0, commandName.length - 7), // strip "Command"
4343
Identifiers: getEndpointDiscoveryId ? getEndpointDiscoveryId() : undefined,
4444
});

0 commit comments

Comments
 (0)