aws-sdk-kotlin icon indicating copy to clipboard operation
aws-sdk-kotlin copied to clipboard

Call the Kotlin SDK from Java

Open kggilmer opened this issue 3 years ago • 2 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Describe the Feature

Support the ability to use the Kotlin SDK (JVM platform) from Java programs.

Is your Feature Request related to a problem?

Currently the Kotlin SDK does not provide a way of calling service operations in a way that is compatible with Java. Additionally, the model type builders, while technically usable, are not simple or obvious to use when coming from a Java builder perspective.

Proposed Solution

Provide a capability in the SDK such that SDK functionality can be used from Java. This may be built-in or as an additional add-on layer.

Describe alternatives you've considered

Due to inherent compatibility issues between Kotlin and Java concurrency, there is not a way of enabling Java interop without updating the codegen on service client interfaces and their implementations.

Additional Context

  • [X] I may be able to implement this feature request

kggilmer avatar Nov 18 '21 18:11 kggilmer

Use the AWS Java SDK, which is idiomatic for Java usage. The Kotlin SDK is idiomatic for Kotlin, and includes things that don't exist in Java - DSL builders, coroutines (suspend functions) - why expend effort bridging all those when you can just import the Java SDK.

cloudshiftchris avatar Jul 28 '23 20:07 cloudshiftchris

This is just a feature request to track/gauge interest. One of the reasons this may be important for people is if they are migrating a large Java codebase to Kotlin. I don't think this would be part of the core SDK IF we offered anything here at all.

aajtodd avatar Jul 31 '23 12:07 aajtodd