Enum aws_sdk_identitystore::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action.
ConflictException(ConflictException)
This request cannot be completed for one of the following reasons:
-
Performing the requested operation would violate an existing uniqueness claim in the identity store. Resolve the conflict before retrying this request.
-
The requested resource was being concurrently modified by another request.
InternalServerException(InternalServerException)
The request processing has failed because of an unknown error, exception or failure with an internal server.
ResourceNotFoundException(ResourceNotFoundException)
Indicates that a requested resource is not found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The request would cause the number of users or groups in the identity store to exceed the maximum allowed.
ThrottlingException(ThrottlingException)
Indicates that the principal has crossed the throttling limits of the API operations.
ValidationException(ValidationException)
The request failed because it contains a syntax error.
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).
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
source§impl From<CreateGroupError> for Error
impl From<CreateGroupError> for Error
source§fn from(err: CreateGroupError) -> Self
fn from(err: CreateGroupError) -> Self
source§impl From<CreateGroupMembershipError> for Error
impl From<CreateGroupMembershipError> for Error
source§fn from(err: CreateGroupMembershipError) -> Self
fn from(err: CreateGroupMembershipError) -> Self
source§impl From<CreateUserError> for Error
impl From<CreateUserError> for Error
source§fn from(err: CreateUserError) -> Self
fn from(err: CreateUserError) -> Self
source§impl From<DeleteGroupError> for Error
impl From<DeleteGroupError> for Error
source§fn from(err: DeleteGroupError) -> Self
fn from(err: DeleteGroupError) -> Self
source§impl From<DeleteGroupMembershipError> for Error
impl From<DeleteGroupMembershipError> for Error
source§fn from(err: DeleteGroupMembershipError) -> Self
fn from(err: DeleteGroupMembershipError) -> Self
source§impl From<DeleteUserError> for Error
impl From<DeleteUserError> for Error
source§fn from(err: DeleteUserError) -> Self
fn from(err: DeleteUserError) -> Self
source§impl From<DescribeGroupError> for Error
impl From<DescribeGroupError> for Error
source§fn from(err: DescribeGroupError) -> Self
fn from(err: DescribeGroupError) -> Self
source§impl From<DescribeGroupMembershipError> for Error
impl From<DescribeGroupMembershipError> for Error
source§fn from(err: DescribeGroupMembershipError) -> Self
fn from(err: DescribeGroupMembershipError) -> Self
source§impl From<DescribeUserError> for Error
impl From<DescribeUserError> for Error
source§fn from(err: DescribeUserError) -> Self
fn from(err: DescribeUserError) -> Self
source§impl From<GetGroupIdError> for Error
impl From<GetGroupIdError> for Error
source§fn from(err: GetGroupIdError) -> Self
fn from(err: GetGroupIdError) -> Self
source§impl From<GetGroupMembershipIdError> for Error
impl From<GetGroupMembershipIdError> for Error
source§fn from(err: GetGroupMembershipIdError) -> Self
fn from(err: GetGroupMembershipIdError) -> Self
source§impl From<GetUserIdError> for Error
impl From<GetUserIdError> for Error
source§fn from(err: GetUserIdError) -> Self
fn from(err: GetUserIdError) -> Self
source§impl From<IsMemberInGroupsError> for Error
impl From<IsMemberInGroupsError> for Error
source§fn from(err: IsMemberInGroupsError) -> Self
fn from(err: IsMemberInGroupsError) -> Self
source§impl From<ListGroupMembershipsError> for Error
impl From<ListGroupMembershipsError> for Error
source§fn from(err: ListGroupMembershipsError) -> Self
fn from(err: ListGroupMembershipsError) -> Self
source§impl From<ListGroupMembershipsForMemberError> for Error
impl From<ListGroupMembershipsForMemberError> for Error
source§fn from(err: ListGroupMembershipsForMemberError) -> Self
fn from(err: ListGroupMembershipsForMemberError) -> Self
source§impl From<ListGroupsError> for Error
impl From<ListGroupsError> for Error
source§fn from(err: ListGroupsError) -> Self
fn from(err: ListGroupsError) -> Self
source§impl From<ListUsersError> for Error
impl From<ListUsersError> for Error
source§fn from(err: ListUsersError) -> Self
fn from(err: ListUsersError) -> Self
source§impl<R> From<SdkError<CreateGroupError, R>> for Error
impl<R> From<SdkError<CreateGroupError, R>> for Error
source§fn from(err: SdkError<CreateGroupError, R>) -> Self
fn from(err: SdkError<CreateGroupError, R>) -> Self
source§impl<R> From<SdkError<CreateGroupMembershipError, R>> for Error
impl<R> From<SdkError<CreateGroupMembershipError, R>> for Error
source§fn from(err: SdkError<CreateGroupMembershipError, R>) -> Self
fn from(err: SdkError<CreateGroupMembershipError, R>) -> Self
source§impl<R> From<SdkError<CreateUserError, R>> for Error
impl<R> From<SdkError<CreateUserError, R>> for Error
source§fn from(err: SdkError<CreateUserError, R>) -> Self
fn from(err: SdkError<CreateUserError, R>) -> Self
source§impl<R> From<SdkError<DeleteGroupError, R>> for Error
impl<R> From<SdkError<DeleteGroupError, R>> for Error
source§fn from(err: SdkError<DeleteGroupError, R>) -> Self
fn from(err: SdkError<DeleteGroupError, R>) -> Self
source§impl<R> From<SdkError<DeleteGroupMembershipError, R>> for Error
impl<R> From<SdkError<DeleteGroupMembershipError, R>> for Error
source§fn from(err: SdkError<DeleteGroupMembershipError, R>) -> Self
fn from(err: SdkError<DeleteGroupMembershipError, R>) -> Self
source§impl<R> From<SdkError<DeleteUserError, R>> for Error
impl<R> From<SdkError<DeleteUserError, R>> for Error
source§fn from(err: SdkError<DeleteUserError, R>) -> Self
fn from(err: SdkError<DeleteUserError, R>) -> Self
source§impl<R> From<SdkError<DescribeGroupError, R>> for Error
impl<R> From<SdkError<DescribeGroupError, R>> for Error
source§fn from(err: SdkError<DescribeGroupError, R>) -> Self
fn from(err: SdkError<DescribeGroupError, R>) -> Self
source§impl<R> From<SdkError<DescribeGroupMembershipError, R>> for Error
impl<R> From<SdkError<DescribeGroupMembershipError, R>> for Error
source§fn from(err: SdkError<DescribeGroupMembershipError, R>) -> Self
fn from(err: SdkError<DescribeGroupMembershipError, R>) -> Self
source§impl<R> From<SdkError<DescribeUserError, R>> for Error
impl<R> From<SdkError<DescribeUserError, R>> for Error
source§fn from(err: SdkError<DescribeUserError, R>) -> Self
fn from(err: SdkError<DescribeUserError, R>) -> Self
source§impl<R> From<SdkError<GetGroupIdError, R>> for Error
impl<R> From<SdkError<GetGroupIdError, R>> for Error
source§fn from(err: SdkError<GetGroupIdError, R>) -> Self
fn from(err: SdkError<GetGroupIdError, R>) -> Self
source§impl<R> From<SdkError<GetGroupMembershipIdError, R>> for Error
impl<R> From<SdkError<GetGroupMembershipIdError, R>> for Error
source§fn from(err: SdkError<GetGroupMembershipIdError, R>) -> Self
fn from(err: SdkError<GetGroupMembershipIdError, R>) -> Self
source§impl<R> From<SdkError<GetUserIdError, R>> for Error
impl<R> From<SdkError<GetUserIdError, R>> for Error
source§fn from(err: SdkError<GetUserIdError, R>) -> Self
fn from(err: SdkError<GetUserIdError, R>) -> Self
source§impl<R> From<SdkError<IsMemberInGroupsError, R>> for Error
impl<R> From<SdkError<IsMemberInGroupsError, R>> for Error
source§fn from(err: SdkError<IsMemberInGroupsError, R>) -> Self
fn from(err: SdkError<IsMemberInGroupsError, R>) -> Self
source§impl<R> From<SdkError<ListGroupMembershipsError, R>> for Error
impl<R> From<SdkError<ListGroupMembershipsError, R>> for Error
source§fn from(err: SdkError<ListGroupMembershipsError, R>) -> Self
fn from(err: SdkError<ListGroupMembershipsError, R>) -> Self
source§impl<R> From<SdkError<ListGroupMembershipsForMemberError, R>> for Error
impl<R> From<SdkError<ListGroupMembershipsForMemberError, R>> for Error
source§fn from(err: SdkError<ListGroupMembershipsForMemberError, R>) -> Self
fn from(err: SdkError<ListGroupMembershipsForMemberError, R>) -> Self
source§impl<R> From<SdkError<ListGroupsError, R>> for Error
impl<R> From<SdkError<ListGroupsError, R>> for Error
source§fn from(err: SdkError<ListGroupsError, R>) -> Self
fn from(err: SdkError<ListGroupsError, R>) -> Self
source§impl<R> From<SdkError<ListUsersError, R>> for Error
impl<R> From<SdkError<ListUsersError, R>> for Error
source§fn from(err: SdkError<ListUsersError, R>) -> Self
fn from(err: SdkError<ListUsersError, R>) -> Self
source§impl<R> From<SdkError<UpdateGroupError, R>> for Error
impl<R> From<SdkError<UpdateGroupError, R>> for Error
source§fn from(err: SdkError<UpdateGroupError, R>) -> Self
fn from(err: SdkError<UpdateGroupError, R>) -> Self
source§impl<R> From<SdkError<UpdateUserError, R>> for Error
impl<R> From<SdkError<UpdateUserError, R>> for Error
source§fn from(err: SdkError<UpdateUserError, R>) -> Self
fn from(err: SdkError<UpdateUserError, R>) -> Self
source§impl From<UpdateGroupError> for Error
impl From<UpdateGroupError> for Error
source§fn from(err: UpdateGroupError) -> Self
fn from(err: UpdateGroupError) -> Self
source§impl From<UpdateUserError> for Error
impl From<UpdateUserError> for Error
source§fn from(err: UpdateUserError) -> Self
fn from(err: UpdateUserError) -> Self
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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