You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Customers using e.g. aws_sdk_sts::config::Builder::new() and customizing a few settings (e.g., credential provider) don't currently receive defaults for other fields, such as the retry policy.
Ideally we'd have strong warnings against usage of these methods in favor of the aws-config constructors, and potentially consider some stronger messaging (e.g., deprecating in favor of without_defaults() or similarly less "easy to use" methods). Note that there's a bunch of ways to get such a builder today:
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
Partially addresses awslabs/aws-sdk-rust#1226,
although we might want to look into going further and actually
deprecating or warning on these builder methods.
## Description
<!--- Describe your changes in detail -->
## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
Doc only update
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
Added a warning to those methods in smithy-lang/smithy-rs#3960, but we will also discuss marking them as deprecated going forward. Leaving this issue open pending those discussions.
https://docs.rs/aws-config/latest/aws_config/imds/client/struct.Builder.html might also be an interesting case of a special client that seems like it can't be created from the aws-config Config? (That might make sense, since there's recursive dependency implied there for at least some of the configuration).
It might be a good idea to update its documentation if it's Builder is special and does come with the recommended defaults -- that looks true to me from a quick glance at the code, but don't trust me on that :)
Describe the issue
Customers using e.g.
aws_sdk_sts::config::Builder::new()
and customizing a few settings (e.g., credential provider) don't currently receive defaults for other fields, such as the retry policy.Ideally we'd have strong warnings against usage of these methods in favor of the aws-config constructors, and potentially consider some stronger messaging (e.g., deprecating in favor of
without_defaults()
or similarly less "easy to use" methods). Note that there's a bunch of ways to get such a builder today:Each should likely have similar treatment. The docs on the Config struct also say:
Which probably should be clarified to say "and this is almost certainly not what you want".
Links
(Also present in every other SDK):
The text was updated successfully, but these errors were encountered: