Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding smart default support #2591

Merged
merged 1 commit into from
Jan 15, 2022
Merged

Adding smart default support #2591

merged 1 commit into from
Jan 15, 2022

Conversation

zdutta
Copy link
Contributor

@zdutta zdutta commented Jan 14, 2022

Adding support for defaults_mode client configuration option. The defaults_mode will be used to determine how certain default configuration options are resolved in the SDK. Configurations values impacted include: retry_mode, sts_regional_endpoints , s3 us_east_1_regional_endpoint and connect_timeout.

@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2022

Codecov Report

Merging #2591 (7e3b3b9) into develop (b0923b4) will increase coverage by 0.01%.
The diff coverage is 95.54%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2591      +/-   ##
===========================================
+ Coverage    95.41%   95.42%   +0.01%     
===========================================
  Files           59       59              
  Lines        11631    11832     +201     
===========================================
+ Hits         11098    11291     +193     
- Misses         533      541       +8     
Impacted Files Coverage Δ
botocore/utils.py 95.64% <89.74%> (-0.11%) ⬇️
botocore/configprovider.py 94.44% <95.72%> (+0.98%) ⬆️
botocore/args.py 100.00% <100.00%> (ø)
botocore/config.py 100.00% <100.00%> (ø)
botocore/exceptions.py 99.53% <100.00%> (+<0.01%) ⬆️
botocore/session.py 96.87% <100.00%> (+0.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0923b4...7e3b3b9. Read the comment docs.

@zdutta zdutta requested a review from joguSD January 15, 2022 00:00
default_config_resolver = self._get_internal_component(
'default_config_resolver')
default_modes = default_config_resolver.get_default_modes()
default_modes.extend(['legacy', 'auto'])
Copy link
Contributor

Choose a reason for hiding this comment

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

It might make more sense to just have these be the base in the get_default_modes method and then extend it by the keys we find in the model file.

@zdutta zdutta merged commit c25e1c5 into boto:develop Jan 15, 2022
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.

4 participants