|
15 | 15 |
|
16 | 16 | package software.amazon.smithy.aws.typescript.codegen;
|
17 | 17 |
|
18 |
| -import static software.amazon.smithy.typescript.codegen.integration.RuntimeClientPlugin.Convention.HAS_MIDDLEWARE; |
19 |
| - |
20 | 18 | import java.util.Collections;
|
21 |
| -import java.util.List; |
22 | 19 | import java.util.Map;
|
23 | 20 | import java.util.function.Consumer;
|
24 | 21 | import software.amazon.smithy.aws.traits.ServiceTrait;
|
|
28 | 25 | import software.amazon.smithy.typescript.codegen.LanguageTarget;
|
29 | 26 | import software.amazon.smithy.typescript.codegen.TypeScriptSettings;
|
30 | 27 | import software.amazon.smithy.typescript.codegen.TypeScriptWriter;
|
31 |
| -import software.amazon.smithy.typescript.codegen.integration.RuntimeClientPlugin; |
32 | 28 | import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
|
33 |
| -import software.amazon.smithy.utils.ListUtils; |
34 | 29 | import software.amazon.smithy.utils.MapUtils;
|
35 | 30 | import software.amazon.smithy.utils.SmithyInternalApi;
|
36 | 31 |
|
|
39 | 34 | */
|
40 | 35 | @SmithyInternalApi
|
41 | 36 | public final class AddEventBridgePlugin implements TypeScriptIntegration {
|
42 |
| - |
43 |
| - @Override |
44 |
| - public List<RuntimeClientPlugin> getClientPlugins() { |
45 |
| - return ListUtils.of( |
46 |
| - RuntimeClientPlugin.builder() |
47 |
| - .withConventions(AwsDependency.EVENTBRIDGE_MIDDLEWARE.dependency, "InjectEndpointId", |
48 |
| - HAS_MIDDLEWARE) |
49 |
| - .operationPredicate((m, s, o) -> testServiceId(s) && o.getId().getName(s).equals("PutEvents")) |
50 |
| - .build() |
51 |
| - ); |
52 |
| - } |
53 |
| - |
54 | 37 | public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(TypeScriptSettings settings, Model model,
|
55 | 38 | SymbolProvider symbolProvider, LanguageTarget target) {
|
56 | 39 | if (!testServiceId(settings.getService(model))) {
|
|
0 commit comments