pub struct Builder { /* private fields */ }
Expand description

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.

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.

See with_custom_provider

Override the profile name used by this provider

When unset, the value of the AWS_PROFILE environment variable will be used.

Override the IMDS client used for this provider

When unset, the default IMDS client 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§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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