Skip to content

Add disable_host_prefix_injection to configs with host prefixes - #978

Open
stobrien89 wants to merge 1 commit into
python-client-aws-queryfrom
python-client-host-prefix
Open

stobrien89 wants to merge 1 commit into
python-client-aws-queryfrom
python-client-host-prefix

Conversation

@stobrien89

Copy link
Copy Markdown
Contributor

Issue #, if available:

Stacked on #977.

Description of changes:

Configs now get disable_host_prefix_injection: bool | None when an operation has the smithy.api#endpoint trait, matching Java's HostPrefixIntegration. 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.

@stobrien89
stobrien89 requested a review from a team as a code owner November 22, 2026 21:31
kuhe
kuhe previously approved these changes Nov 23, 2026
@stobrien89
stobrien89 force-pushed the python-client-host-prefix branch from 111a804 to d182942 Compare November 24, 2026 22:27

@jonathan343 jonathan343 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

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.

3 participants