-
Notifications
You must be signed in to change notification settings - Fork 931
Open
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.graalvmp2This is a standard priority issueThis is a standard priority issue
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
jdussouillez
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.graalvmp2This is a standard priority issueThis is a standard priority issue