Skip to content

Commit ca062d4

Browse files
committed
chore: add additional prefix to resolve/plugin function params supplier
1 parent 52576ef commit ca062d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ && isAwsService(s)
106106
RuntimeClientPlugin.builder()
107107
.withConventions(AwsDependency.STS_MIDDLEWARE.dependency,
108108
"StsAuth", HAS_CONFIG)
109-
.resolveFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
109+
.additionalResolveFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
110110
put("STSClient", Symbol.builder().name("STSClient").build());
111111
}})
112112
.servicePredicate((m, s) -> testServiceId(s, "STS"))

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
7070
.withConventions(AwsDependency.MIDDLEWARE_ENDPOINT_DISCOVERY.dependency,
7171
"EndpointDiscovery", RuntimeClientPlugin.Convention.HAS_CONFIG)
7272
// ToDo: The Endpoint Discovery Command Name needs to be read from ClientEndpointDiscoveryTrait.
73-
.resolveFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
73+
.additionalResolveFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
7474
put("DescribeEndpointsCommand", Symbol.builder().name("DescribeEndpointsCommand").build());
7575
}})
7676
.servicePredicate((m, s) -> hasClientEndpointDiscovery(s))
@@ -80,7 +80,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
8080
RuntimeClientPlugin.builder()
8181
.withConventions(AwsDependency.MIDDLEWARE_ENDPOINT_DISCOVERY.dependency,
8282
"EndpointDiscoveryRequired", RuntimeClientPlugin.Convention.HAS_MIDDLEWARE)
83-
.pluginFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
83+
.additionalPluginFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
8484
put("clientStack", Symbol.builder().name("clientStack").build());
8585
put("options", Symbol.builder().name("options").build());
8686
}})
@@ -89,7 +89,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
8989
RuntimeClientPlugin.builder()
9090
.withConventions(AwsDependency.MIDDLEWARE_ENDPOINT_DISCOVERY.dependency,
9191
"EndpointDiscoveryOptional", RuntimeClientPlugin.Convention.HAS_MIDDLEWARE)
92-
.pluginFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
92+
.additionalPluginFunctionParamsSupplier((m, s, o) -> new HashMap<String, Object>() {{
9393
put("clientStack", Symbol.builder().name("clientStack").build());
9494
put("options", Symbol.builder().name("options").build());
9595
}})

0 commit comments

Comments
 (0)