Skip to content

[Default Configuration Part 5]: Move default configuration related classes to aws-core #2816

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

Merged

Conversation

zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Nov 2, 2021

Description

  • Move default configuration related classes from sdk-core to aws-core
  • Remove defaultsMode from ClientOverrideConfiguration.
  • Add defaultsMode to AwsClientBuilder
  • Minor refactoring on the configuration resolution in AwsDefaultClientBuilder

@@ -170,8 +169,7 @@
AWS_MAX_ATTEMPTS("aws.maxAttempts", null),

/**
* Which {@link DefaultsMode} to use, case insensitive
* @see DefaultsMode
* Which {@code DefaultsMode} to use, case insensitive
*/
AWS_DEFAULTS_MODE("aws.defaultsMode", null),
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this still belong in sdk-core?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't actually have an AwsSystemSetting. AWS related system properties such as AWS_ACCESS_KEY_ID are in this class already, so I kept it here to be consistent.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 4, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

85.8% 85.8% Coverage
0.2% 0.2% Duplication

@zoewangg zoewangg merged commit 28ef24b into feature/master/defaults-mode Nov 4, 2021
@zoewangg zoewangg deleted the zoewang/defaultsmode-moveClasses branch November 4, 2021 19:40
zoewangg added a commit that referenced this pull request Dec 17, 2021
* Add support to generate DefaultsMode and implement configuration resolution (#2781)

* [Default Configuration Part 2]:Implement auto mode discovery (#2786)

* Implement auto mode discovery

* Fix tests on CodeBuild

* Address feedback

* Add comment and rename misnamed constant

* [Default Configuration Part 3]: add defaults from defaults mode to the configuration resolution chain (#2803)

* Wiring up configuration

* Address comments

* Add test

* Update debug statement and add singleton for AttributeMap

* Add tlsNegotiationTimeout (#2814)

* [Default Configuration Part 5]: Move default configuration related classes to aws-core (#2816)

* Move default configuration related classes to aws-core

* Remove extra space and fix build

* [Default Configuration Part 6]: apply default s3 us-east-1 regional setting (#2825)

* Add s3 regional setting

* Rename option name

* Fix checkstyle

* Update sdk-default-configuraiton.json

* Add changelog entry
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.

2 participants