Struct aws_types::sdk_config::SdkConfig
source · pub struct SdkConfig { /* private fields */ }
Expand description
AWS Shared Configuration
Implementations§
source§impl SdkConfig
impl SdkConfig
sourcepub fn endpoint_url(&self) -> Option<&str>
pub fn endpoint_url(&self) -> Option<&str>
Configured endpoint URL
sourcepub fn retry_config(&self) -> Option<&RetryConfig>
pub fn retry_config(&self) -> Option<&RetryConfig>
Configured retry config
sourcepub fn timeout_config(&self) -> Option<&TimeoutConfig>
pub fn timeout_config(&self) -> Option<&TimeoutConfig>
Configured timeout config
sourcepub fn sleep_impl(&self) -> Option<SharedAsyncSleep>
pub fn sleep_impl(&self) -> Option<SharedAsyncSleep>
Configured sleep implementation
sourcepub fn identity_cache(&self) -> Option<SharedIdentityCache>
pub fn identity_cache(&self) -> Option<SharedIdentityCache>
Configured identity cache
sourcepub fn credentials_provider(&self) -> Option<SharedCredentialsProvider>
pub fn credentials_provider(&self) -> Option<SharedCredentialsProvider>
Configured credentials provider
sourcepub fn token_provider(&self) -> Option<SharedTokenProvider>
pub fn token_provider(&self) -> Option<SharedTokenProvider>
Configured bearer auth token provider
sourcepub fn time_source(&self) -> Option<SharedTimeSource>
pub fn time_source(&self) -> Option<SharedTimeSource>
Configured time source
sourcepub fn http_client(&self) -> Option<SharedHttpClient>
pub fn http_client(&self) -> Option<SharedHttpClient>
Configured HTTP client
sourcepub fn use_dual_stack(&self) -> Option<bool>
pub fn use_dual_stack(&self) -> Option<bool>
Use dual-stack endpoint
sourcepub fn stalled_stream_protection(&self) -> Option<StalledStreamProtectionConfig>
pub fn stalled_stream_protection(&self) -> Option<StalledStreamProtectionConfig>
Configured stalled stream protection
sourcepub fn behavior_version(&self) -> Option<BehaviorVersion>
pub fn behavior_version(&self) -> Option<BehaviorVersion>
Behavior major version configured for this client
sourcepub fn service_config(&self) -> Option<&dyn LoadServiceConfig>
pub fn service_config(&self) -> Option<&dyn LoadServiceConfig>
Return an immutable reference to the service config provider configured for this client.
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Config builder
Important: Using the aws-config
crate to configure the SDK is preferred to invoking this
builder directly. Using this builder directly won’t pull in any AWS recommended default
configuration values.
sourcepub fn to_builder(&self) -> Builder
pub fn to_builder(&self) -> Builder
sourcepub fn get_origin(&self, setting: &'static str) -> Origin
pub fn get_origin(&self, setting: &'static str) -> Origin
Get the origin of a setting.
This is used internally to understand how to merge config structs while respecting precedence of origins.
sourcepub fn into_builder(self) -> Builder
pub fn into_builder(self) -> Builder
Convert this SdkConfig
back to a builder to enable modification