Skip to content

Commit a595e77

Browse files
committed
chore(codegen): add DescribeEndpointsCommand in resolve function params
1 parent 8fdea61 commit a595e77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddEndpointDiscoveryPlugin.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public void addConfigInterfaceFields(
5555
// Add import for endpoint discovery command here, as getClientPlugins doesn't have access to writer.
5656
addEndpointDiscoveryCommandImport(model, symbolProvider, service, writer);
5757
writer.addImport("Provider", "__Provider", TypeScriptDependency.AWS_SDK_TYPES.packageName);
58-
writer.writeDocs("The provider which populates default for endpointDisvoveryEnabled configuration, if it's\n"
59-
+ "not passed during client creation.\n@internal")
58+
writer.writeDocs("The provider which populates default for endpointDiscoveryEnabled configuration,"
59+
+ " if it's\nnot passed during client creation.\n@internal")
6060
.write("endpointDiscoveryEnabledProvider?: __Provider<boolean | undefined>;\n");
6161
}
6262
}
@@ -67,6 +67,8 @@ public List<RuntimeClientPlugin> getClientPlugins() {
6767
RuntimeClientPlugin.builder()
6868
.withConventions(AwsDependency.MIDDLEWARE_ENDPOINT_DISCOVERY.dependency,
6969
"EndpointDiscovery", RuntimeClientPlugin.Convention.HAS_CONFIG)
70+
// ToDo: The Endpoint Discovery Command Name needs to be read from ClientEndpointDiscoveryTrait.
71+
.additionalResolveFunctionParameters("DescribeEndpointsCommand")
7072
.servicePredicate((m, s) -> hasClientEndpointDiscovery(s))
7173
.build()
7274
);

0 commit comments

Comments
 (0)