Struct SdkConfig
pub struct SdkConfig { /* private fields */ }Expand description
AWS Shared Configuration
Implementations§
§impl SdkConfig
impl SdkConfig
pub fn account_id_endpoint_mode(&self) -> Option<&AccountIdEndpointMode>
pub fn account_id_endpoint_mode(&self) -> Option<&AccountIdEndpointMode>
Configured account ID endpoint mode
pub fn auth_scheme_preference(&self) -> Option<&AuthSchemePreference>
pub fn auth_scheme_preference(&self) -> Option<&AuthSchemePreference>
Configured auth scheme preference
pub fn sigv4a_signing_region_set(&self) -> Option<&SigningRegionSet>
pub fn sigv4a_signing_region_set(&self) -> Option<&SigningRegionSet>
Configured SigV4a signing region set
pub fn endpoint_url(&self) -> Option<&str>
pub fn endpoint_url(&self) -> Option<&str>
Configured endpoint URL
pub fn retry_config(&self) -> Option<&RetryConfig>
pub fn retry_config(&self) -> Option<&RetryConfig>
Configured retry config
pub fn timeout_config(&self) -> Option<&TimeoutConfig>
pub fn timeout_config(&self) -> Option<&TimeoutConfig>
Configured timeout config
pub fn sleep_impl(&self) -> Option<SharedAsyncSleep>
pub fn sleep_impl(&self) -> Option<SharedAsyncSleep>
Configured sleep implementation
pub fn identity_cache(&self) -> Option<SharedIdentityCache>
pub fn identity_cache(&self) -> Option<SharedIdentityCache>
Configured identity cache
pub fn credentials_provider(&self) -> Option<SharedCredentialsProvider>
pub fn credentials_provider(&self) -> Option<SharedCredentialsProvider>
Configured credentials provider
pub fn token_provider(&self) -> Option<SharedTokenProvider>
pub fn token_provider(&self) -> Option<SharedTokenProvider>
Configured bearer auth token provider
pub fn time_source(&self) -> Option<SharedTimeSource>
pub fn time_source(&self) -> Option<SharedTimeSource>
Configured time source
pub fn framework_metadata(&self) -> &[FrameworkMetadata]
pub fn framework_metadata(&self) -> &[FrameworkMetadata]
Configured framework metadata
pub fn http_client(&self) -> Option<SharedHttpClient>
pub fn http_client(&self) -> Option<SharedHttpClient>
Configured HTTP client
pub fn protocol(&self) -> Option<SharedClientProtocol>
pub fn protocol(&self) -> Option<SharedClientProtocol>
Configured client protocol for serialization and deserialization
pub fn use_dual_stack(&self) -> Option<bool>
pub fn use_dual_stack(&self) -> Option<bool>
Use dual-stack endpoint
pub fn disable_request_compression(&self) -> Option<bool>
pub fn disable_request_compression(&self) -> Option<bool>
When true, request compression is disabled.
pub fn disable_clock_skew_correction(&self) -> Option<bool>
pub fn disable_clock_skew_correction(&self) -> Option<bool>
When true, clock skew correction is disabled.
pub fn request_checksum_calculation(&self) -> Option<RequestChecksumCalculation>
pub fn request_checksum_calculation(&self) -> Option<RequestChecksumCalculation>
Configured checksum request behavior.
pub fn response_checksum_validation(&self) -> Option<ResponseChecksumValidation>
pub fn response_checksum_validation(&self) -> Option<ResponseChecksumValidation>
Configured checksum response behavior.
pub fn request_min_compression_size_bytes(&self) -> Option<u32>
pub fn request_min_compression_size_bytes(&self) -> Option<u32>
Configured minimum request compression size.
pub fn stalled_stream_protection(&self) -> Option<StalledStreamProtectionConfig>
pub fn stalled_stream_protection(&self) -> Option<StalledStreamProtectionConfig>
Configured stalled stream protection
pub fn behavior_version(&self) -> Option<BehaviorVersion>
pub fn behavior_version(&self) -> Option<BehaviorVersion>
Behavior version configured for this client
pub 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.
pub 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.
pub fn to_builder(&self) -> Builder
pub fn to_builder(&self) -> Builder
Convert this SdkConfig into a [Builder] by cloning it first
pub 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.
pub fn into_builder(self) -> Builder
pub fn into_builder(self) -> Builder
Convert this SdkConfig back to a builder to enable modification
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SdkConfig
impl !UnwindSafe for SdkConfig
impl Freeze for SdkConfig
impl Send for SdkConfig
impl Sync for SdkConfig
impl Unpin for SdkConfig
impl UnsafeUnpin for SdkConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more