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.

Timeout for the entire credential loading chain.

Defaults to 5 seconds.

Timeout for the entire credential loading chain.

Defaults to 5 seconds.

Amount of time before the actual credential expiration time where credentials are considered expired.

For example, if credentials are expiring in 15 minutes, and the buffer time is 10 seconds, then any requests made after 14 minutes and 50 seconds will load new credentials.

Defaults to 10 seconds.

Amount of time before the actual credential expiration time where credentials are considered expired.

For example, if credentials are expiring in 15 minutes, and the buffer time is 10 seconds, then any requests made after 14 minutes and 50 seconds will load new credentials.

Defaults to 10 seconds.

Default expiration time to set on credentials if they don’t have an expiration time.

This is only used if the given ProvideCredentials returns Credentials that don’t have their expiry set. This must be at least 15 minutes.

Defaults to 15 minutes.

Default expiration time to set on credentials if they don’t have an expiration time.

This is only used if the given ProvideCredentials returns Credentials that don’t have their expiry set. This must be at least 15 minutes.

Defaults to 15 minutes.

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 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

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.

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