Skip to content

Commit 1b8bf47

Browse files
committed
feat: generate default endpoint ruleset
1 parent 52317fe commit 1b8bf47

37 files changed

+393
-127
lines changed

packages/middleware-endpoint/src/resolveEndpointConfig.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
5656
*/
5757
interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters> {
5858
urlParser: UrlParser;
59-
region: Provider<string>;
6059
endpointProvider: (params: T, context?: { logger?: Logger }) => EndpointV2;
6160
logger?: Logger;
6261
serviceId?: string;

packages/middleware-serde/src/serdePlugin.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ export const serializerMiddlewareOption: SerializeHandlerOptions = {
3030
override: true,
3131
};
3232

33-
// Type the modifies the EndpointBearer to make it compatible with Endpoints 2.0 change.
34-
// Must be removed after all clients has been onboard the Endpoints 2.0
33+
/**
34+
* Modifies the EndpointBearer to make it compatible with Endpoints 2.0 change.
35+
*
36+
* @internal
37+
* @deprecated
38+
*/
3539
export type V1OrV2Endpoint = {
3640
// for v2
3741
urlParser?: UrlParser;
@@ -49,7 +53,7 @@ export function getSerdePlugin<
4953
CommandSerdeContext extends SerdeContext = any,
5054
OutputType extends MetadataBearer = any,
5155
>(
52-
config: V1OrV2Endpoint & SerdeFunctions,
56+
config: SerdeFunctions,
5357
serializer: RequestSerializer<any, CommandSerdeContext>,
5458
deserializer: ResponseDeserializer<OutputType, any, CommandSerdeContext>
5559
): Pluggable<InputType, OutputType> {

packages/middleware-serde/src/serializerMiddleware.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ import type { V1OrV2Endpoint } from "./serdePlugin";
1818
*/
1919
export const serializerMiddleware =
2020
<Input extends object = any, Output extends object = any, CommandSerdeContext extends SerdeContext = any>(
21-
options: V1OrV2Endpoint & SerdeFunctions,
21+
options: SerdeFunctions,
2222
serializer: RequestSerializer<any, CommandSerdeContext>
2323
): SerializeMiddleware<Input, Output> =>
2424
(next: SerializeHandler<Input, Output>, context: HandlerExecutionContext): SerializeHandler<Input, Output> =>
2525
async (args: SerializeHandlerArguments<Input>): Promise<SerializeHandlerOutput<Output>> => {
26+
const endpointConfig = options as V1OrV2Endpoint;
27+
2628
const endpoint: Provider<Endpoint> =
27-
context.endpointV2?.url && options.urlParser
28-
? async () => options.urlParser!(context.endpointV2!.url as URL)
29-
: options.endpoint!;
29+
context.endpointV2?.url && endpointConfig.urlParser
30+
? async () => endpointConfig.urlParser!(context.endpointV2!.url as URL)
31+
: endpointConfig.endpoint!;
3032

3133
if (!endpoint) {
3234
throw new Error("No valid endpoint provider available.");

private/smithy-rpcv2-cbor/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@smithy/hash-node": "workspace:^",
2828
"@smithy/invalid-dependency": "workspace:^",
2929
"@smithy/middleware-content-length": "workspace:^",
30+
"@smithy/middleware-endpoint": "workspace:^",
3031
"@smithy/middleware-retry": "workspace:^",
3132
"@smithy/middleware-serde": "workspace:^",
3233
"@smithy/middleware-stack": "workspace:^",
@@ -41,6 +42,7 @@
4142
"@smithy/util-body-length-node": "workspace:^",
4243
"@smithy/util-defaults-mode-browser": "workspace:^",
4344
"@smithy/util-defaults-mode-node": "workspace:^",
45+
"@smithy/util-endpoints": "workspace:^",
4446
"@smithy/util-middleware": "workspace:^",
4547
"@smithy/util-retry": "workspace:^",
4648
"@smithy/util-utf8": "workspace:^",

private/smithy-rpcv2-cbor/src/RpcV2ProtocolClient.ts

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,21 @@ import {
3333
SparseNullsOperationCommandInput,
3434
SparseNullsOperationCommandOutput,
3535
} from "./commands/SparseNullsOperationCommand";
36+
import {
37+
ClientInputEndpointParameters,
38+
ClientResolvedEndpointParameters,
39+
EndpointParameters,
40+
resolveClientEndpointParameters,
41+
} from "./endpoint/EndpointParameters";
3642
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3743
import { RuntimeExtension, RuntimeExtensionsConfig, resolveRuntimeExtensions } from "./runtimeExtensions";
3844
import {
39-
CustomEndpointsInputConfig,
40-
CustomEndpointsResolvedConfig,
41-
resolveCustomEndpointsConfig,
42-
} from "@smithy/config-resolver";
43-
import { DefaultIdentityProviderConfig, getHttpAuthSchemePlugin, getHttpSigningPlugin } from "@smithy/core";
45+
DefaultIdentityProviderConfig,
46+
getHttpAuthSchemeEndpointRuleSetPlugin,
47+
getHttpSigningPlugin,
48+
} from "@smithy/core";
4449
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
50+
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint";
4551
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
4652
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
4753
import {
@@ -205,9 +211,10 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
205211
*/
206212
export type RpcV2ProtocolClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
207213
ClientDefaults &
208-
CustomEndpointsInputConfig &
209214
RetryInputConfig &
210-
HttpAuthSchemeInputConfig;
215+
EndpointInputConfig<EndpointParameters> &
216+
HttpAuthSchemeInputConfig &
217+
ClientInputEndpointParameters;
211218
/**
212219
* @public
213220
*
@@ -221,9 +228,10 @@ export interface RpcV2ProtocolClientConfig extends RpcV2ProtocolClientConfigType
221228
export type RpcV2ProtocolClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
222229
Required<ClientDefaults> &
223230
RuntimeExtensionsConfig &
224-
CustomEndpointsResolvedConfig &
225231
RetryResolvedConfig &
226-
HttpAuthSchemeResolvedConfig;
232+
EndpointResolvedConfig<EndpointParameters> &
233+
HttpAuthSchemeResolvedConfig &
234+
ClientResolvedEndpointParameters;
227235
/**
228236
* @public
229237
*
@@ -249,15 +257,16 @@ export class RpcV2ProtocolClient extends __Client<
249257
let _config_0 = __getRuntimeConfig(configuration || {});
250258
super(_config_0 as any);
251259
this.initConfig = _config_0;
252-
let _config_1 = resolveCustomEndpointsConfig(_config_0);
260+
let _config_1 = resolveClientEndpointParameters(_config_0);
253261
let _config_2 = resolveRetryConfig(_config_1);
254-
let _config_3 = resolveHttpAuthSchemeConfig(_config_2);
255-
let _config_4 = resolveRuntimeExtensions(_config_3, configuration?.extensions || []);
256-
this.config = _config_4;
262+
let _config_3 = resolveEndpointConfig(_config_2);
263+
let _config_4 = resolveHttpAuthSchemeConfig(_config_3);
264+
let _config_5 = resolveRuntimeExtensions(_config_4, configuration?.extensions || []);
265+
this.config = _config_5;
257266
this.middlewareStack.use(getRetryPlugin(this.config));
258267
this.middlewareStack.use(getContentLengthPlugin(this.config));
259268
this.middlewareStack.use(
260-
getHttpAuthSchemePlugin(this.config, {
269+
getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
261270
httpAuthSchemeParametersProvider: defaultRpcV2ProtocolHttpAuthSchemeParametersProvider,
262271
identityProviderConfigProvider: async (config: RpcV2ProtocolClientResolvedConfig) =>
263272
new DefaultIdentityProviderConfig({}),

private/smithy-rpcv2-cbor/src/commands/EmptyInputOutputCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { EmptyStructure } from "../models/models_0";
45
import { de_EmptyInputOutputCommand, se_EmptyInputOutputCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -59,8 +61,12 @@ export class EmptyInputOutputCommand extends $Command
5961
ServiceInputTypes,
6062
ServiceOutputTypes
6163
>()
64+
.ep(commonParams)
6265
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
63-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
66+
return [
67+
getSerdePlugin(config, this.serialize, this.deserialize),
68+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
69+
];
6470
})
6571
.s("RpcV2Protocol", "EmptyInputOutput", {})
6672
.n("RpcV2ProtocolClient", "EmptyInputOutputCommand")

private/smithy-rpcv2-cbor/src/commands/Float16Command.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { Float16Output } from "../models/models_0";
45
import { de_Float16Command, se_Float16Command } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -61,8 +63,12 @@ export class Float16Command extends $Command
6163
ServiceInputTypes,
6264
ServiceOutputTypes
6365
>()
66+
.ep(commonParams)
6467
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
65-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
68+
return [
69+
getSerdePlugin(config, this.serialize, this.deserialize),
70+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
71+
];
6672
})
6773
.s("RpcV2Protocol", "Float16", {})
6874
.n("RpcV2ProtocolClient", "Float16Command")

private/smithy-rpcv2-cbor/src/commands/FractionalSecondsCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { FractionalSecondsOutput } from "../models/models_0";
45
import { de_FractionalSecondsCommand, se_FractionalSecondsCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -61,8 +63,12 @@ export class FractionalSecondsCommand extends $Command
6163
ServiceInputTypes,
6264
ServiceOutputTypes
6365
>()
66+
.ep(commonParams)
6467
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
65-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
68+
return [
69+
getSerdePlugin(config, this.serialize, this.deserialize),
70+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
71+
];
6672
})
6773
.s("RpcV2Protocol", "FractionalSeconds", {})
6874
.n("RpcV2ProtocolClient", "FractionalSecondsCommand")

private/smithy-rpcv2-cbor/src/commands/GreetingWithErrorsCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { GreetingWithErrorsOutput } from "../models/models_0";
45
import { de_GreetingWithErrorsCommand, se_GreetingWithErrorsCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -74,8 +76,12 @@ export class GreetingWithErrorsCommand extends $Command
7476
ServiceInputTypes,
7577
ServiceOutputTypes
7678
>()
79+
.ep(commonParams)
7780
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
78-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
81+
return [
82+
getSerdePlugin(config, this.serialize, this.deserialize),
83+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
84+
];
7985
})
8086
.s("RpcV2Protocol", "GreetingWithErrors", {})
8187
.n("RpcV2ProtocolClient", "GreetingWithErrorsCommand")

private/smithy-rpcv2-cbor/src/commands/NoInputOutputCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { de_NoInputOutputCommand, se_NoInputOutputCommand } from "../protocols/Rpcv2cbor";
5+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
46
import { getSerdePlugin } from "@smithy/middleware-serde";
57
import { Command as $Command } from "@smithy/smithy-client";
68
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -58,8 +60,12 @@ export class NoInputOutputCommand extends $Command
5860
ServiceInputTypes,
5961
ServiceOutputTypes
6062
>()
63+
.ep(commonParams)
6164
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
62-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
65+
return [
66+
getSerdePlugin(config, this.serialize, this.deserialize),
67+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
68+
];
6369
})
6470
.s("RpcV2Protocol", "NoInputOutput", {})
6571
.n("RpcV2ProtocolClient", "NoInputOutputCommand")

private/smithy-rpcv2-cbor/src/commands/OperationWithDefaultsCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { OperationWithDefaultsInput, OperationWithDefaultsOutput } from "../models/models_0";
45
import { de_OperationWithDefaultsCommand, se_OperationWithDefaultsCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -127,8 +129,12 @@ export class OperationWithDefaultsCommand extends $Command
127129
ServiceInputTypes,
128130
ServiceOutputTypes
129131
>()
132+
.ep(commonParams)
130133
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
131-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
134+
return [
135+
getSerdePlugin(config, this.serialize, this.deserialize),
136+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
137+
];
132138
})
133139
.s("RpcV2Protocol", "OperationWithDefaults", {})
134140
.n("RpcV2ProtocolClient", "OperationWithDefaultsCommand")

private/smithy-rpcv2-cbor/src/commands/OptionalInputOutputCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { SimpleStructure } from "../models/models_0";
45
import { de_OptionalInputOutputCommand, se_OptionalInputOutputCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -63,8 +65,12 @@ export class OptionalInputOutputCommand extends $Command
6365
ServiceInputTypes,
6466
ServiceOutputTypes
6567
>()
68+
.ep(commonParams)
6669
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
67-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
70+
return [
71+
getSerdePlugin(config, this.serialize, this.deserialize),
72+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
73+
];
6874
})
6975
.s("RpcV2Protocol", "OptionalInputOutput", {})
7076
.n("RpcV2ProtocolClient", "OptionalInputOutputCommand")

private/smithy-rpcv2-cbor/src/commands/RecursiveShapesCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { RecursiveShapesInputOutput } from "../models/models_0";
45
import { de_RecursiveShapesCommand, se_RecursiveShapesCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -87,8 +89,12 @@ export class RecursiveShapesCommand extends $Command
8789
ServiceInputTypes,
8890
ServiceOutputTypes
8991
>()
92+
.ep(commonParams)
9093
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
91-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
94+
return [
95+
getSerdePlugin(config, this.serialize, this.deserialize),
96+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
97+
];
9298
})
9399
.s("RpcV2Protocol", "RecursiveShapes", {})
94100
.n("RpcV2ProtocolClient", "RecursiveShapesCommand")

private/smithy-rpcv2-cbor/src/commands/RpcV2CborDenseMapsCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { RpcV2CborDenseMapsInputOutput } from "../models/models_0";
45
import { de_RpcV2CborDenseMapsCommand, se_RpcV2CborDenseMapsCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -104,8 +106,12 @@ export class RpcV2CborDenseMapsCommand extends $Command
104106
ServiceInputTypes,
105107
ServiceOutputTypes
106108
>()
109+
.ep(commonParams)
107110
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
108-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
111+
return [
112+
getSerdePlugin(config, this.serialize, this.deserialize),
113+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
114+
];
109115
})
110116
.s("RpcV2Protocol", "RpcV2CborDenseMaps", {})
111117
.n("RpcV2ProtocolClient", "RpcV2CborDenseMapsCommand")

private/smithy-rpcv2-cbor/src/commands/RpcV2CborListsCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// smithy-typescript generated code
22
import { RpcV2ProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RpcV2ProtocolClient";
3+
import { commonParams } from "../endpoint/EndpointParameters";
34
import { RpcV2CborListInputOutput } from "../models/models_0";
45
import { de_RpcV2CborListsCommand, se_RpcV2CborListsCommand } from "../protocols/Rpcv2cbor";
6+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
57
import { getSerdePlugin } from "@smithy/middleware-serde";
68
import { Command as $Command } from "@smithy/smithy-client";
79
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
@@ -142,8 +144,12 @@ export class RpcV2CborListsCommand extends $Command
142144
ServiceInputTypes,
143145
ServiceOutputTypes
144146
>()
147+
.ep(commonParams)
145148
.m(function (this: any, Command: any, cs: any, config: RpcV2ProtocolClientResolvedConfig, o: any) {
146-
return [getSerdePlugin(config, this.serialize, this.deserialize)];
149+
return [
150+
getSerdePlugin(config, this.serialize, this.deserialize),
151+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
152+
];
147153
})
148154
.s("RpcV2Protocol", "RpcV2CborLists", {})
149155
.n("RpcV2ProtocolClient", "RpcV2CborListsCommand")

0 commit comments

Comments
 (0)