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.

§Examples

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