Function aws_config::defaults

source ·
pub fn defaults(version: BehaviorVersion) -> ConfigLoader
Expand description

Create a config loader with the defaults for the given behavior version.

For more information about default configuration, refer to the AWS SDKs and Tools shared configuration documentation.

§Examples

use aws_config::BehaviorVersion;
let config = aws_config::defaults(BehaviorVersion::v2023_11_09())
    .region("us-east-1")
    .load()
    .await;