awslabs / aws-sdk-kotlin

Multiplatform AWS SDK for Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CredentialsProviderChain does not accept a list of CredentialsProviders, only varargs

cloudshiftchris opened this issue · comments

Describe the feature

Currently CredentialsProviderChain is constructed as:

public class CredentialsProviderChain(vararg providers: CredentialsProvider)

...which is fine for ad-hoc creation of chains.

For configuration-driven use-cases, where a List of providers is created, it would be convenient to accept a List as well.

Is your Feature Request related to a problem?

n/a

Proposed Solution

Provide a secondary constructor to create a CredentialsProviderChain from a List

Describe alternative solutions or features you've considered

Currently doing CredentialsProviderChain(*providers.toTypedArray())

Acknowledge

  • I may be able to implement this feature request

AWS Kotlin SDK version used

0.29.0-beta

Platform (JVM/JS/Native)

JVM

Operating System and version

MacOS

Thanks for the suggestion! It seems reasonable and we'll add it to our task list.