Skip to content

Add config option for disabling region detection#3349

Merged
richardwang1124 merged 3 commits intoversion-3from
feature/support-disabling-sqs-region-detection
Jan 22, 2026
Merged

Add config option for disabling region detection#3349
richardwang1124 merged 3 commits intoversion-3from
feature/support-disabling-sqs-region-detection

Conversation

@richardwang1124
Copy link
Contributor

When using custom endpoints/queue URLs like https://sqs.elb-proxy.elb-x.us-east-1.amazonaws.com/1234567890/demo_us-east-1, a manually-specified region (e.g. us-east-1) is overridden with an auto-detected and incorrect region (elb-proxy).

This PR adds a config option to disable region detection from the queue URLs.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

  1. To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the CHANGELOG.md file (at corresponding gem). For the description entry, please make sure it lives in one line and starts with Feature or Issue in the correct format.

  2. For generated code changes, please checkout below instructions first:
    https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md

Thank you for your contribution!

Unreleased Changes
------------------

* Feature - Support disabling queue url region detection.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit - mention the specific option here maybe?

# When set to 'true' the request body will not be compressed
# for supported operations.
#
# @option options [Boolean] :disable_url_region_detection (false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the code generated changes right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep those were code generated.

@richardwang1124 richardwang1124 merged commit d0967a6 into version-3 Jan 22, 2026
27 checks passed
@richardwang1124 richardwang1124 deleted the feature/support-disabling-sqs-region-detection branch January 22, 2026 17:46
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.

2 participants