awslabs / aws-sdk-swift

Apache License 2.0
403 stars 80 forks source link

Add typealias for SmithyIdentity.AWSCredentialIdentityResolver #1789

Open shepazon opened 1 month ago

shepazon commented 1 month ago

Describe the feature

AWSCredentialIdentityResolver currently requires that the developer import SmithyIdentity. There is benefit in encouraging developers to write code that's flexible about credential identity resolvers, both for current utility but also to better support future credential identity provider types that may be added.

Use Case

I'm writing library code that wants to accept input parameters of type any AWSCredentialIdentityResolver, so the program can use any credential identity resolver type from the same function.

Proposed Solution

Since we are trying to avoid requiring developers to import any of the Smithy modules directly, we should add a typealias for this type in AWSSDKIdentity.

Other Information

No response

Acknowledgements