Struct aws_sdk_sqs::Config
source · pub struct Config { /* private fields */ }
Expand description
Service config.
Service configuration allows for customization of endpoints, region, credentials providers,
and retry configuration. Generally, it is constructed automatically for you from a shared
configuration loaded by the aws-config
crate. For example:
// Load a shared config from the environment
let shared_config = aws_config::from_env().load().await;
// The client constructor automatically converts the shared config into the service config
let client = Client::new(&shared_config);
The service config can also be constructed manually using its builder.
Implementations§
source§impl Config
impl Config
sourcepub fn endpoint_resolver(&self) -> Arc<dyn ResolveEndpoint<Params>>
pub fn endpoint_resolver(&self) -> Arc<dyn ResolveEndpoint<Params>>
Returns the endpoint resolver.
sourcepub fn retry_config(&self) -> Option<&RetryConfig>
pub fn retry_config(&self) -> Option<&RetryConfig>
Return a reference to the retry configuration contained in this config, if any.
sourcepub fn sleep_impl(&self) -> Option<Arc<dyn AsyncSleep>>
pub fn sleep_impl(&self) -> Option<Arc<dyn AsyncSleep>>
Return a cloned Arc containing the async sleep implementation from this config, if any.
sourcepub fn timeout_config(&self) -> Option<&TimeoutConfig>
pub fn timeout_config(&self) -> Option<&TimeoutConfig>
Return a reference to the timeout configuration contained in this config, if any.
sourcepub fn app_name(&self) -> Option<&AppName>
pub fn app_name(&self) -> Option<&AppName>
Returns the name of the app that is using the client, if it was provided.
This optional name is used to identify the application in the user agent that gets sent along with requests.
sourcepub fn http_connector(&self) -> Option<&HttpConnector>
pub fn http_connector(&self) -> Option<&HttpConnector>
Return an HttpConnector
to use when making requests, if any.
sourcepub fn new(config: &SdkConfig) -> Self
pub fn new(config: &SdkConfig) -> Self
Creates a new service config from a shared config
.
sourcepub fn signing_service(&self) -> &'static str
pub fn signing_service(&self) -> &'static str
The signature version 4 service signing name to use in the credential scope when signing requests.
The signing service may be overridden by the Endpoint
, or by specifying a custom
SigningService
during operation construction
sourcepub fn credentials_provider(&self) -> SharedCredentialsProvider
pub fn credentials_provider(&self) -> SharedCredentialsProvider
Returns the credentials provider.