Struct aws_config::default_provider::credentials::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Builder for DefaultCredentialsChain
Implementations
Sets the region used when making requests to AWS services
When unset, the default region resolver chain will be used.
Sets the region used when making requests to AWS services
When unset, the default region resolver chain will be used.
pub fn with_custom_credential_source(
self,
name: impl Into<Cow<'static, str>>,
provider: impl ProvideCredentials + 'static
) -> Self
pub fn with_custom_credential_source(
self,
name: impl Into<Cow<'static, str>>,
provider: impl ProvideCredentials + 'static
) -> Self
Add an additional credential source for the ProfileProvider
Assume role profiles may specify named credential sources:
[default]
role_arn = arn:aws:iam::123456789:role/RoleA
credential_source = MyCustomProvider
Typically, these are built-in providers like Environment
, however, custom sources may
also be used.
Override the profile name used by this provider
When unset, the value of the AWS_PROFILE
environment variable will be used.
Override the configuration used for this provider
Creates a DefaultCredentialsChain
Panics
This function will panic if no connector has been set and neither rustls
and native-tls
features have both been disabled.
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