Struct aws_sdk_translate::config::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Builder for creating a Config
.
Implementations
Sets the idempotency token provider to use for service calls that require tokens.
Set the retry_config for the builder
Examples
use aws_sdk_translate::config::Config;
use aws_smithy_types::retry::RetryConfig;
let retry_config = RetryConfig::new().with_max_attempts(5);
let config = Config::builder().retry_config(retry_config).build();
Set the retry_config for the builder
Examples
use aws_sdk_translate::config::{Builder, Config};
use aws_smithy_types::retry::RetryConfig;
fn disable_retries(builder: &mut Builder) {
let retry_config = RetryConfig::new().with_max_attempts(1);
builder.set_retry_config(Some(retry_config));
}
let mut builder = Config::builder();
disable_retries(&mut builder);
let config = builder.build();
Sets the endpoint resolver to use when making requests.
Sets the AWS region to use when making requests.
pub fn credentials_provider(
self,
credentials_provider: impl ProvideCredentials + 'static
) -> Self
pub fn credentials_provider(
self,
credentials_provider: impl ProvideCredentials + 'static
) -> Self
Sets the credentials provider for this service
pub fn set_credentials_provider(
&mut self,
credentials_provider: Option<SharedCredentialsProvider>
) -> &mut Self
pub fn set_credentials_provider(
&mut self,
credentials_provider: Option<SharedCredentialsProvider>
) -> &mut Self
Sets the credentials provider for this service
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more