Skip to content

feat: Add pass-through implementations for serviceClientConfiguration()#179

Open
kevinh-canva wants to merge 1 commit into
awslabs:masterfrom
kevinh-canva:kevinh-pass-through-service-client-configuration
Open

feat: Add pass-through implementations for serviceClientConfiguration()#179
kevinh-canva wants to merge 1 commit into
awslabs:masterfrom
kevinh-canva:kevinh-pass-through-service-client-configuration

Conversation

@kevinh-canva

Copy link
Copy Markdown

Issue #, if available:

Description of changes:

We're using AmazonSqsExtendedClient from this library, and we have a use case that needs the region of the client post construction. This can usually be looked up using sqsClient.serviceClientConfiguration().region() with a standard client, but AmazonSqsExtendedClient doesn't pass through the invocation to the underlying client. Instead, the default implementation on the SqsClient interface is used, which throws an UnsupportedOperationException.

This PR adds pass-through implementations for serviceClientConfiguration() to AmazonSQSExtendedClientBase (and its async equivalence) which actually invokes the underlying amazonSqsToBeExtended.serviceClientConfiguration() which might provide a concrete implementation for this. method.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant