Repository navigation
Add request compression config fields to generated clients - #994
Open
stobrien89 wants to merge 2 commits into
Open
stobrien89 wants to merge 2 commits into
stobrien89 wants to merge 2 commits into
Conversation
kuhe
requested changes
Nov 30, 2026
kuhe
left a comment
Contributor
There was a problem hiding this comment.
can you add this to the frankenstein model?
stobrien89
force-pushed
the
python-client-request-compression
branch
from
November 30, 2026 16:06
d69b4aa to
7f1886b
Compare
kuhe
approved these changes
Nov 30, 2026
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:
Pairs with #855, which adds the runtime.
Description of changes:
Generated configs get the request compression fields when an operation has the
smithy.api#requestCompressiontrait, matching the JavaRequestCompressionIntegrationin #855:disable_request_compression: bool, defaultFalserequest_min_compression_size_bytes: int, default10240Only non-AWS configs get them from the generator. AWS configs inherit both from
AwsConfigin #855, which also resolves them from the environment and profile. The compression itself stays in the runtime, and the generator only declares the fields. Both names are reserved so a client context param can't take them.Unlike Java, the fields only appear when the model uses the trait, like
disable_host_prefix_injection.The
SDKAppliedContentEncoding_*vectors stay strict xfails until #855's runtime lands. One thing to check there: #855 compresses in the async protocols, but the Python generator also writes sync clients.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.