diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index 19ee75a757..fa1dc973b5 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -64,3 +64,9 @@ message = "Fix event stream `:content-type` message headers for struct messages. references = ["smithy-rs#3603"] meta = { "breaking" = false, "tada" = false, "bug" = true, "target" = "all" } author = "jdisanti" + +[[aws-sdk-rust]] +message = "`aws_config::default_provider::use_dual_stack_provider` is now public instead of `pub(crate)`" +references = ["aws-sdk-rust#879", "smithy-rs#3611"] +meta = { "breaking" = false, "tada" = false, "bug" = false } +author = "jdisanti" diff --git a/aws/rust-runtime/aws-config/Cargo.toml b/aws/rust-runtime/aws-config/Cargo.toml index ac6f7dfa12..98f7458542 100644 --- a/aws/rust-runtime/aws-config/Cargo.toml +++ b/aws/rust-runtime/aws-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aws-config" -version = "1.2.1" +version = "1.3.0" authors = [ "AWS Rust SDK Team ", "Russell Cohen ", diff --git a/aws/rust-runtime/aws-config/src/default_provider/use_dual_stack.rs b/aws/rust-runtime/aws-config/src/default_provider/use_dual_stack.rs index 5004938c08..a78be5ae0e 100644 --- a/aws/rust-runtime/aws-config/src/default_provider/use_dual_stack.rs +++ b/aws/rust-runtime/aws-config/src/default_provider/use_dual_stack.rs @@ -16,7 +16,14 @@ mod profile_key { pub(super) const USE_DUAL_STACK: &str = "use_dualstack_endpoint"; } -pub(crate) async fn use_dual_stack_provider(provider_config: &ProviderConfig) -> Option { +/// Load the value for "use dual-stack" +/// +/// This checks the following sources: +/// 1. The environment variable `AWS_USE_DUALSTACK_ENDPOINT=true/false` +/// 2. The profile key `use_dualstack_endpoint=true/false` +/// +/// If invalid values are found, the provider will return `None` and an error will be logged. +pub async fn use_dual_stack_provider(provider_config: &ProviderConfig) -> Option { let env = provider_config.env(); let profiles = provider_config.profile().await;