Struct aws_config::default_provider::credentials::Builder[][src]

pub struct Builder { /* fields omitted */ }
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 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

Performs the conversion.

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

Performs the conversion.

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