pub async fn load(self) -> aws_types::config::Config {
            let region = if let Some(provider) = self.region {
                provider.region().await
            } else {
                region::default_provider().region().await
            };
            let credentials_provider = if let Some(provider) = self.credentials_provider {
                provider
            } else {
                let mut builder = credentials::DefaultCredentialsChain::builder();
                builder.set_region(region.clone());
                SharedCredentialsProvider::new(builder.build().await)
            };
            Config::builder()
                .region(region)
                .credentials_provider(credentials_provider)
                .build()
        }
/// Load the default configuration chain
///
/// If fields have been overridden during builder construction, the override values will be used.
///
/// Otherwise, the default values for each field will be provided.
///
/// NOTE: When an override is provided, the default implementation is **not** used as a fallback.
/// This means that if you provide a region provider that does not return a region, no region will
/// be set in the resulting [`Config`](aws_types::config::Config)
Load the default configuration chain
If fields have been overridden during builder construction, the override values will be used.

Otherwise, the default values for each field will be provided.

When an override is provided, the default implementation is **not** used as a fallback.
This means that if you provide a region provider that does not return a region, no region will
be set in the resulting [`Config`](aws_types::config::Config)
Load the default configuration chain If fields have been overridden during builder construction the override values will be used . Otherwise the default values for each field will be provided . When an override is provided the default implementation is ** not ** used as a fallback . This means that if you provide a region provider that does not return a region no region will be set in the resulting [ ` Config ` ] ( aws_types :: config :: Config )
pub async fn load(self) -> aws_types::config::Config {
            let region = if let Some(provider) = self.region {
                provider.region().await
            } else {
                region::default_provider().region().await
            };
            let credentials_provider = if let Some(provider) = self.credentials_provider {
                provider
            } else {
                let mut builder = credentials::DefaultCredentialsChain::builder();
                builder.set_region(region.clone());
                SharedCredentialsProvider::new(builder.build().await)
            };
            Config::builder()
                .region(region)
                .credentials_provider(credentials_provider)
                .build()
        }
pub async fn load ( self ) -> aws_types :: config :: Config { let region = if let Some ( provider ) = self . region { provider . region ( ) . await } else { region :: default_provider ( ) . region ( ) . await } ; let credentials_provider = if let Some ( provider ) = self . credentials_provider { provider } else { let mut builder = credentials :: DefaultCredentialsChain :: builder ( ) ; builder . set_region ( region . clone ( ) ) ; SharedCredentialsProvider :: new ( builder . build ( ) . await ) } ; Config :: builder ( ) . region ( region ) . credentials_provider ( credentials_provider ) . build ( ) }
Load the default configuration chain
If fields have been overridden during builder construction, the override values will be used.
Load the default configuration chain If fields have been overridden during builder construction the override values will be used .
self
self