smithy-rs/rust-runtime/aws-smithy-mocks-experimental
Zelda Hessler 5f7113f506
Sourcing service config from the environment. (#3493)
## 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 -->
https://github.com/smithy-lang/smithy-rs/issues/2863
https://github.com/awslabs/aws-sdk-rust/issues/1060

## Description
<!--- Describe your changes in detail -->
This PR adds a new feature: the ability to source service-specific
config from the environment.
This is **only** supported when creating a service config from an
`SdkConfig`. I've posted [a
guide](https://github.com/smithy-lang/smithy-rs/discussions/3537) to our
discussions board.

[This also adds support for setting an endpoint URL in environment
config.](https://github.com/smithy-lang/smithy-rs/issues/2863)

## 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. -->
I have written several tests ensuring config is extracted with the
correct precedence.

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

---------

Co-authored-by: John DiSanti <jdisanti@amazon.com>
Co-authored-by: ysaito1001 <awsaito@amazon.com>
2024-04-01 14:50:31 +00:00
..
examples Fix the runtime versioner and update tool deps (#3503) 2024-03-22 18:10:07 +00:00
src Fix the runtime versioner and update tool deps (#3503) 2024-03-22 18:10:07 +00:00
tests Fix the runtime versioner and update tool deps (#3503) 2024-03-22 18:10:07 +00:00
Cargo.toml Sourcing service config from the environment. (#3493) 2024-04-01 14:50:31 +00:00
LICENSE Adds experimental mocks package. (#3308) 2024-01-11 20:02:28 +00:00
README.md Adds experimental mocks package. (#3308) 2024-01-11 20:02:28 +00:00

README.md

aws-smithy-mocks

Experiment for mocking Smithy Clients using interceptors. See tests/get-object-mocks.rs for example usage.

This crate is part of the AWS SDK for Rust and the smithy-rs code generator.