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