Struct aws_config::imds::credentials::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Builder for ImdsCredentialsProvider
Implementations
Override the configuration used for this provider
Override the instance profile used for this provider.
When retrieving IMDS credentials, a call must first be made to
<IMDS_BASE_URL>/latest/meta-data/iam/security-credentials
. This returns the instance
profile used. By setting this parameter, the initial call to retrieve the profile is skipped
and the provided value is used instead.
Override the IMDS client used for this provider
The IMDS client will be loaded and configured via ~/.aws/config
and environment variables,
however, if necessary the entire client may be provided directly.
For more information about IMDS client configuration loading see imds::Client
Create an ImdsCredentialsProvider
from this builder.
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