Enum aws_config::imds::client::TokenError [−][src]
pub enum TokenError {
InvalidToken,
NoTtl,
InvalidTtl,
InvalidParameters,
Forbidden,
}
Expand description
Error retrieving token from IMDS
Variants
InvalidToken
The token was invalid
Because tokens must be eventually sent as a header, the token must be a valid header value.
NoTtl
No TTL was sent
The token response must include a time-to-live indicating the lifespan of the token.
InvalidTtl
The TTL was invalid
The TTL must be a valid positive integer.
InvalidParameters
Invalid Parameters
The request to load a token was malformed. This indicates an SDK bug.
Forbidden
Forbidden
IMDS is disabled or has been disallowed via permissions.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TokenError
impl Send for TokenError
impl Sync for TokenError
impl Unpin for TokenError
impl UnwindSafe for TokenError
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