Open
Description
Describe the feature
Add reachability metadata for service sso
, namely for the constructor of SsoProfileCredentialsProviderFactory
.
Use Case
GraalVM native image requires reflection hints for code that is only used by reflection.
Proposed Solution
Add a file reflect-config.json
under src/main/resources/META-INF/native-image/software.amazon.awssdk/sso
with:
[
{
"name": "software.amazon.awssdk.services.sso.auth.SsoProfileCredentialsProviderFactory",
"methods": [
{
"name": "<init>",
"parameterTypes": []
}
]
}
]
Other Information
Native hints can be provided by the application (e.g., for spring applications, via @ImportRuntimeHints
), but it's mostly a try-and-error process. Libraries providing metadata simplify the operation of building a native image considerably.
Other aws services already provide metadata, see ssooidc.
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
2.29.52
JDK version used
21.0.5
Operating System and version
MacOS 15.2