Repository navigation
Add disable_host_prefix_injection to configs with host prefixes - #978
Open
stobrien89 wants to merge 1 commit into
Open
stobrien89 wants to merge 1 commit into
stobrien89 wants to merge 1 commit into
Conversation
kuhe
previously approved these changes
Nov 23, 2026
stobrien89
force-pushed
the
python-client-host-prefix
branch
from
November 23, 2026 15:48
db18d8e to
405a22e
Compare
stobrien89
force-pushed
the
python-client-host-prefix
branch
from
November 24, 2026 18:09
405a22e to
111a804
Compare
stobrien89
force-pushed
the
python-client-host-prefix
branch
from
November 24, 2026 22:27
111a804 to
d182942
Compare
jonathan343
approved these changes
Nov 24, 2026
jonathan343
left a comment
Contributor
There was a problem hiding this comment.
Thanks @stobrien89! LGTM.
Not blocking, but neither this nor the Java generator reads AWS_DISABLE_HOST_PREFIX_INJECTION or the disable_host_prefix_injection profile key. I think @arandito had a reason for deferring, so shouldn't be blocking. I'll follow up with him about it and we can add in a future PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Stacked on #977.
Description of changes:
Configs now get
disable_host_prefix_injection: bool | Nonewhen an operation has thesmithy.api#endpointtrait, matching Java'sHostPrefixIntegration. The runtime already prepends host prefixes and reads this field, but generated configs had no way to set it.Both the core and AWS config writers add the field, and it's reserved so a client context param can't take it. The snapshots of the 6 clients with host prefix operations gain the field. A new unit test checks a call with and without it.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.