-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add support for default configuration modes #2624
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
Conversation
…values through rake task
This reverts commit a5a9e8e.
Reminder: Confirm core version requirements before merge/release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
tasks/update-defaults-mode.rake
Outdated
puts "Loading defaults from: #{defaults_file}" | ||
defaults = JSON.load(File.read(defaults_file)) | ||
|
||
default_mode_docs = ["<p>The following `:default_mode` values are supported: </p>"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these hardcoded strings live in the actual documentation, and maybe just code generate multiple dynamic sections like all of the modes and configuration maps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - I think that makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NVM - this doesn't work as we need all of the links to be processed together by kramdown.
@@ -63,6 +63,20 @@ module S3 | |||
'https://s3.us-east-1.amazonaws.com/') | |||
end | |||
|
|||
it 'can be set through defaults mode' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you update all of the plugin tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - every option that has changed has a new test.
It's a bit unclear how to use default config mode. |
You can set the
It is just a canned way of overwriting some other config options. You may be better off just overwriting any options you want instead. |
Thank you! |
Adds support for the
default_mode
configuration value that standardizes SDK default configurations.Add a new aws-defaults pseudo gem (similar to seahorse and sts/sso) in core which has:
DefaultsModeConfigResolver
- responsible for logic to resolve defaults from a defaults mode (as well as environment detection).DefaultsModeConfiguration
module - documentation and config values code generated from the cross SDK values.default_mode
is added as an option by theDefaultsMode
plugin. Resolution of defaults is done through updates to the default blocks on the appropriate existing config options.This change also adds support for the
ssl_timeout
config option for net http.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
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 withFeature
orIssue
in the correct format.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!