#[non_exhaustive]pub enum GetWebIdentityTokenError {
JwtPayloadSizeExceededException(JwtPayloadSizeExceededException),
OutboundWebIdentityFederationDisabledException(OutboundWebIdentityFederationDisabledException),
SessionDurationEscalationException(SessionDurationEscalationException),
Unhandled(Unhandled),
}Expand description
Error type for the GetWebIdentityTokenError operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
JwtPayloadSizeExceededException(JwtPayloadSizeExceededException)
The requested token payload size exceeds the maximum allowed size. Reduce the number of request tags included in the GetWebIdentityToken API call to reduce the token payload size.
OutboundWebIdentityFederationDisabledException(OutboundWebIdentityFederationDisabledException)
The outbound web identity federation feature is not enabled for this account. To use this feature, you must first enable it through the Amazon Web Services Management Console or API.
SessionDurationEscalationException(SessionDurationEscalationException)
The requested token duration would extend the session beyond its original expiration time. You cannot use this operation to extend the lifetime of a session beyond what was granted when the session was originally created.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Implementations§
Source§impl GetWebIdentityTokenError
impl GetWebIdentityTokenError
Sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the GetWebIdentityTokenError::Unhandled variant from any error type.
Sourcepub fn generic(err: ErrorMetadata) -> Self
pub fn generic(err: ErrorMetadata) -> Self
Creates the GetWebIdentityTokenError::Unhandled variant from an ErrorMetadata.
Sourcepub fn meta(&self) -> &ErrorMetadata
pub fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Sourcepub fn is_jwt_payload_size_exceeded_exception(&self) -> bool
pub fn is_jwt_payload_size_exceeded_exception(&self) -> bool
Returns true if the error kind is GetWebIdentityTokenError::JwtPayloadSizeExceededException.
Sourcepub fn is_outbound_web_identity_federation_disabled_exception(&self) -> bool
pub fn is_outbound_web_identity_federation_disabled_exception(&self) -> bool
Returns true if the error kind is GetWebIdentityTokenError::OutboundWebIdentityFederationDisabledException.
Sourcepub fn is_session_duration_escalation_exception(&self) -> bool
pub fn is_session_duration_escalation_exception(&self) -> bool
Returns true if the error kind is GetWebIdentityTokenError::SessionDurationEscalationException.
Trait Implementations§
Source§impl CreateUnhandledError for GetWebIdentityTokenError
impl CreateUnhandledError for GetWebIdentityTokenError
Source§fn create_unhandled_error(
source: Box<dyn Error + Send + Sync + 'static>,
meta: Option<ErrorMetadata>,
) -> Self
fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata>, ) -> Self
source and error metadata.Source§impl Debug for GetWebIdentityTokenError
impl Debug for GetWebIdentityTokenError
Source§impl Display for GetWebIdentityTokenError
impl Display for GetWebIdentityTokenError
Source§impl Error for GetWebIdentityTokenError
impl Error for GetWebIdentityTokenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<GetWebIdentityTokenError> for Error
impl From<GetWebIdentityTokenError> for Error
Source§fn from(err: GetWebIdentityTokenError) -> Self
fn from(err: GetWebIdentityTokenError) -> Self
Source§impl ProvideErrorMetadata for GetWebIdentityTokenError
impl ProvideErrorMetadata for GetWebIdentityTokenError
Source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Source§impl RequestId for GetWebIdentityTokenError
impl RequestId for GetWebIdentityTokenError
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.Auto Trait Implementations§
impl Freeze for GetWebIdentityTokenError
impl !RefUnwindSafe for GetWebIdentityTokenError
impl Send for GetWebIdentityTokenError
impl Sync for GetWebIdentityTokenError
impl Unpin for GetWebIdentityTokenError
impl !UnwindSafe for GetWebIdentityTokenError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more