pub fn default_provider() -> Builder
Expand description

Default timeout::Config Provider chain

Unlike other credentials and region, timeout::Config has no related TimeoutConfigProvider trait. Instead, a builder struct is returned which has a similar API.

This provider will check the following sources in order:

  1. Environment variables
  2. Profile file (~/.aws/config)

Example

use aws_config::default_provider::timeout_config;

// Load a timeout config from a specific profile
let timeout_config = timeout_config::default_provider()
    .profile_name("other_profile")
    .timeout_config()
    .await;
let config = aws_config::from_env()
    // Override the timeout config set by the default profile
    .timeout_config(timeout_config)
    .load()
    .await;
// instantiate a service client:
// <my_aws_service>::Client::new(&config);