You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working through converting code from Java SDK to Kotlin SDK; where we have configurability for region providers, such as:
region:
static: # default: null; region name, e.g. ca-central-1
system-settings: # default: false; use environment variable or JVM property AWS_REGION
instance-profile: # default: true; region from IMDS
profile: # default: null; region from the specified profile name
...the equivalent is not directly possible with Kotlin SDK as all the RegionProviders are internal, preventing using them in alternate ways.
Specifically:
JvmSystemPropRegionProvider
EnvironmentRegionProvider
ProfileRegionProvider
ImdsRegionProvider
DefaultRegionProviderChain
The only public class is RegionProviderChain, which is odd given that no concrete providers are available to use in that chain.
Expected behavior
Much like CredentialsProviders one can compose a custom RegionProviderChain to satisfy various use cases.
Current behavior
All the concrete implementations of RegionProvider are marked as internal and not available to use.
Steps to Reproduce
n/a
Possible Solution
Expose the noted internal classes as public
Context
Prevents direct migration from Java SDK; unclear at this time how to proceed, given that some of the RegionProvider implementations are non-trivial (imds & profile).
AWS Kotlin SDK version used
0.29.0-beta
Platform (JVM/JS/Native)
JVM
Operating System and version
MacOS
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Working through converting code from Java SDK to Kotlin SDK; where we have configurability for region providers, such as:
...the equivalent is not directly possible with Kotlin SDK as all the RegionProviders are internal, preventing using them in alternate ways.
Specifically:
JvmSystemPropRegionProvider
EnvironmentRegionProvider
ProfileRegionProvider
ImdsRegionProvider
DefaultRegionProviderChain
The only public class is
RegionProviderChain
, which is odd given that no concrete providers are available to use in that chain.Expected behavior
Much like CredentialsProviders one can compose a custom RegionProviderChain to satisfy various use cases.
Current behavior
All the concrete implementations of RegionProvider are marked as
internal
and not available to use.Steps to Reproduce
n/a
Possible Solution
Expose the noted
internal
classes aspublic
Context
Prevents direct migration from Java SDK; unclear at this time how to proceed, given that some of the RegionProvider implementations are non-trivial (imds & profile).
AWS Kotlin SDK version used
0.29.0-beta
Platform (JVM/JS/Native)
JVM
Operating System and version
MacOS
The text was updated successfully, but these errors were encountered: