Enum aws_sdk_detective::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
TooManyRequestsException(TooManyRequestsException),
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)
The request issuer does not have permission to access this resource or perform this operation.
ConflictException(ConflictException)
The request attempted an invalid action.
InternalServerException(InternalServerException)
The request was valid but failed because of a problem with the service.
ResourceNotFoundException(ResourceNotFoundException)
The request refers to a nonexistent resource.
ServiceQuotaExceededException(ServiceQuotaExceededException)
This request cannot be completed for one of the following reasons.
-
This request cannot be completed if it would cause the number of member accounts in the behavior graph to exceed the maximum allowed. A behavior graph cannot have more than 1,200 member accounts.
-
This request cannot be completed if the current volume ingested is above the limit of 10 TB per day. Detective will not allow you to add additional member accounts.
TooManyRequestsException(TooManyRequestsException)
The request cannot be completed because too many other requests are occurring at the same time.
ValidationException(ValidationException)
The request parameters are invalid.
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<AcceptInvitationError> for Error
impl From<AcceptInvitationError> for Error
source§fn from(err: AcceptInvitationError) -> Self
fn from(err: AcceptInvitationError) -> Self
source§impl From<BatchGetGraphMemberDatasourcesError> for Error
impl From<BatchGetGraphMemberDatasourcesError> for Error
source§fn from(err: BatchGetGraphMemberDatasourcesError) -> Self
fn from(err: BatchGetGraphMemberDatasourcesError) -> Self
source§impl From<BatchGetMembershipDatasourcesError> for Error
impl From<BatchGetMembershipDatasourcesError> for Error
source§fn from(err: BatchGetMembershipDatasourcesError) -> Self
fn from(err: BatchGetMembershipDatasourcesError) -> Self
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<CreateGraphError> for Error
impl From<CreateGraphError> for Error
source§fn from(err: CreateGraphError) -> Self
fn from(err: CreateGraphError) -> Self
source§impl From<CreateMembersError> for Error
impl From<CreateMembersError> for Error
source§fn from(err: CreateMembersError) -> Self
fn from(err: CreateMembersError) -> Self
source§impl From<DeleteGraphError> for Error
impl From<DeleteGraphError> for Error
source§fn from(err: DeleteGraphError) -> Self
fn from(err: DeleteGraphError) -> Self
source§impl From<DeleteMembersError> for Error
impl From<DeleteMembersError> for Error
source§fn from(err: DeleteMembersError) -> Self
fn from(err: DeleteMembersError) -> Self
source§impl From<DescribeOrganizationConfigurationError> for Error
impl From<DescribeOrganizationConfigurationError> for Error
source§fn from(err: DescribeOrganizationConfigurationError) -> Self
fn from(err: DescribeOrganizationConfigurationError) -> Self
source§impl From<DisableOrganizationAdminAccountError> for Error
impl From<DisableOrganizationAdminAccountError> for Error
source§fn from(err: DisableOrganizationAdminAccountError) -> Self
fn from(err: DisableOrganizationAdminAccountError) -> Self
source§impl From<DisassociateMembershipError> for Error
impl From<DisassociateMembershipError> for Error
source§fn from(err: DisassociateMembershipError) -> Self
fn from(err: DisassociateMembershipError) -> Self
source§impl From<EnableOrganizationAdminAccountError> for Error
impl From<EnableOrganizationAdminAccountError> for Error
source§fn from(err: EnableOrganizationAdminAccountError) -> Self
fn from(err: EnableOrganizationAdminAccountError) -> Self
source§impl From<GetInvestigationError> for Error
impl From<GetInvestigationError> for Error
source§fn from(err: GetInvestigationError) -> Self
fn from(err: GetInvestigationError) -> Self
source§impl From<GetMembersError> for Error
impl From<GetMembersError> for Error
source§fn from(err: GetMembersError) -> Self
fn from(err: GetMembersError) -> Self
source§impl From<ListDatasourcePackagesError> for Error
impl From<ListDatasourcePackagesError> for Error
source§fn from(err: ListDatasourcePackagesError) -> Self
fn from(err: ListDatasourcePackagesError) -> Self
source§impl From<ListGraphsError> for Error
impl From<ListGraphsError> for Error
source§fn from(err: ListGraphsError) -> Self
fn from(err: ListGraphsError) -> Self
source§impl From<ListIndicatorsError> for Error
impl From<ListIndicatorsError> for Error
source§fn from(err: ListIndicatorsError) -> Self
fn from(err: ListIndicatorsError) -> Self
source§impl From<ListInvestigationsError> for Error
impl From<ListInvestigationsError> for Error
source§fn from(err: ListInvestigationsError) -> Self
fn from(err: ListInvestigationsError) -> Self
source§impl From<ListInvitationsError> for Error
impl From<ListInvitationsError> for Error
source§fn from(err: ListInvitationsError) -> Self
fn from(err: ListInvitationsError) -> Self
source§impl From<ListMembersError> for Error
impl From<ListMembersError> for Error
source§fn from(err: ListMembersError) -> Self
fn from(err: ListMembersError) -> Self
source§impl From<ListOrganizationAdminAccountsError> for Error
impl From<ListOrganizationAdminAccountsError> for Error
source§fn from(err: ListOrganizationAdminAccountsError) -> Self
fn from(err: ListOrganizationAdminAccountsError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<RejectInvitationError> for Error
impl From<RejectInvitationError> for Error
source§fn from(err: RejectInvitationError) -> Self
fn from(err: RejectInvitationError) -> Self
source§impl<R> From<SdkError<AcceptInvitationError, R>> for Error
impl<R> From<SdkError<AcceptInvitationError, R>> for Error
source§fn from(err: SdkError<AcceptInvitationError, R>) -> Self
fn from(err: SdkError<AcceptInvitationError, R>) -> Self
source§impl<R> From<SdkError<BatchGetGraphMemberDatasourcesError, R>> for Error
impl<R> From<SdkError<BatchGetGraphMemberDatasourcesError, R>> for Error
source§fn from(err: SdkError<BatchGetGraphMemberDatasourcesError, R>) -> Self
fn from(err: SdkError<BatchGetGraphMemberDatasourcesError, R>) -> Self
source§impl<R> From<SdkError<BatchGetMembershipDatasourcesError, R>> for Error
impl<R> From<SdkError<BatchGetMembershipDatasourcesError, R>> for Error
source§fn from(err: SdkError<BatchGetMembershipDatasourcesError, R>) -> Self
fn from(err: SdkError<BatchGetMembershipDatasourcesError, R>) -> Self
source§impl<R> From<SdkError<CreateGraphError, R>> for Error
impl<R> From<SdkError<CreateGraphError, R>> for Error
source§fn from(err: SdkError<CreateGraphError, R>) -> Self
fn from(err: SdkError<CreateGraphError, R>) -> Self
source§impl<R> From<SdkError<CreateMembersError, R>> for Error
impl<R> From<SdkError<CreateMembersError, R>> for Error
source§fn from(err: SdkError<CreateMembersError, R>) -> Self
fn from(err: SdkError<CreateMembersError, R>) -> Self
source§impl<R> From<SdkError<DeleteGraphError, R>> for Error
impl<R> From<SdkError<DeleteGraphError, R>> for Error
source§fn from(err: SdkError<DeleteGraphError, R>) -> Self
fn from(err: SdkError<DeleteGraphError, R>) -> Self
source§impl<R> From<SdkError<DeleteMembersError, R>> for Error
impl<R> From<SdkError<DeleteMembersError, R>> for Error
source§fn from(err: SdkError<DeleteMembersError, R>) -> Self
fn from(err: SdkError<DeleteMembersError, R>) -> Self
source§impl<R> From<SdkError<DescribeOrganizationConfigurationError, R>> for Error
impl<R> From<SdkError<DescribeOrganizationConfigurationError, R>> for Error
source§fn from(err: SdkError<DescribeOrganizationConfigurationError, R>) -> Self
fn from(err: SdkError<DescribeOrganizationConfigurationError, R>) -> Self
source§impl<R> From<SdkError<DisableOrganizationAdminAccountError, R>> for Error
impl<R> From<SdkError<DisableOrganizationAdminAccountError, R>> for Error
source§fn from(err: SdkError<DisableOrganizationAdminAccountError, R>) -> Self
fn from(err: SdkError<DisableOrganizationAdminAccountError, R>) -> Self
source§impl<R> From<SdkError<DisassociateMembershipError, R>> for Error
impl<R> From<SdkError<DisassociateMembershipError, R>> for Error
source§fn from(err: SdkError<DisassociateMembershipError, R>) -> Self
fn from(err: SdkError<DisassociateMembershipError, R>) -> Self
source§impl<R> From<SdkError<EnableOrganizationAdminAccountError, R>> for Error
impl<R> From<SdkError<EnableOrganizationAdminAccountError, R>> for Error
source§fn from(err: SdkError<EnableOrganizationAdminAccountError, R>) -> Self
fn from(err: SdkError<EnableOrganizationAdminAccountError, R>) -> Self
source§impl<R> From<SdkError<GetInvestigationError, R>> for Error
impl<R> From<SdkError<GetInvestigationError, R>> for Error
source§fn from(err: SdkError<GetInvestigationError, R>) -> Self
fn from(err: SdkError<GetInvestigationError, R>) -> Self
source§impl<R> From<SdkError<GetMembersError, R>> for Error
impl<R> From<SdkError<GetMembersError, R>> for Error
source§fn from(err: SdkError<GetMembersError, R>) -> Self
fn from(err: SdkError<GetMembersError, R>) -> Self
source§impl<R> From<SdkError<ListDatasourcePackagesError, R>> for Error
impl<R> From<SdkError<ListDatasourcePackagesError, R>> for Error
source§fn from(err: SdkError<ListDatasourcePackagesError, R>) -> Self
fn from(err: SdkError<ListDatasourcePackagesError, R>) -> Self
source§impl<R> From<SdkError<ListGraphsError, R>> for Error
impl<R> From<SdkError<ListGraphsError, R>> for Error
source§fn from(err: SdkError<ListGraphsError, R>) -> Self
fn from(err: SdkError<ListGraphsError, R>) -> Self
source§impl<R> From<SdkError<ListIndicatorsError, R>> for Error
impl<R> From<SdkError<ListIndicatorsError, R>> for Error
source§fn from(err: SdkError<ListIndicatorsError, R>) -> Self
fn from(err: SdkError<ListIndicatorsError, R>) -> Self
source§impl<R> From<SdkError<ListInvestigationsError, R>> for Error
impl<R> From<SdkError<ListInvestigationsError, R>> for Error
source§fn from(err: SdkError<ListInvestigationsError, R>) -> Self
fn from(err: SdkError<ListInvestigationsError, R>) -> Self
source§impl<R> From<SdkError<ListInvitationsError, R>> for Error
impl<R> From<SdkError<ListInvitationsError, R>> for Error
source§fn from(err: SdkError<ListInvitationsError, R>) -> Self
fn from(err: SdkError<ListInvitationsError, R>) -> Self
source§impl<R> From<SdkError<ListMembersError, R>> for Error
impl<R> From<SdkError<ListMembersError, R>> for Error
source§fn from(err: SdkError<ListMembersError, R>) -> Self
fn from(err: SdkError<ListMembersError, R>) -> Self
source§impl<R> From<SdkError<ListOrganizationAdminAccountsError, R>> for Error
impl<R> From<SdkError<ListOrganizationAdminAccountsError, R>> for Error
source§fn from(err: SdkError<ListOrganizationAdminAccountsError, R>) -> Self
fn from(err: SdkError<ListOrganizationAdminAccountsError, R>) -> Self
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
source§impl<R> From<SdkError<RejectInvitationError, R>> for Error
impl<R> From<SdkError<RejectInvitationError, R>> for Error
source§fn from(err: SdkError<RejectInvitationError, R>) -> Self
fn from(err: SdkError<RejectInvitationError, R>) -> Self
source§impl<R> From<SdkError<StartInvestigationError, R>> for Error
impl<R> From<SdkError<StartInvestigationError, R>> for Error
source§fn from(err: SdkError<StartInvestigationError, R>) -> Self
fn from(err: SdkError<StartInvestigationError, R>) -> Self
source§impl<R> From<SdkError<StartMonitoringMemberError, R>> for Error
impl<R> From<SdkError<StartMonitoringMemberError, R>> for Error
source§fn from(err: SdkError<StartMonitoringMemberError, R>) -> Self
fn from(err: SdkError<StartMonitoringMemberError, R>) -> Self
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
source§impl<R> From<SdkError<UpdateDatasourcePackagesError, R>> for Error
impl<R> From<SdkError<UpdateDatasourcePackagesError, R>> for Error
source§fn from(err: SdkError<UpdateDatasourcePackagesError, R>) -> Self
fn from(err: SdkError<UpdateDatasourcePackagesError, R>) -> Self
source§impl<R> From<SdkError<UpdateInvestigationStateError, R>> for Error
impl<R> From<SdkError<UpdateInvestigationStateError, R>> for Error
source§fn from(err: SdkError<UpdateInvestigationStateError, R>) -> Self
fn from(err: SdkError<UpdateInvestigationStateError, R>) -> Self
source§impl<R> From<SdkError<UpdateOrganizationConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateOrganizationConfigurationError, R>> for Error
source§fn from(err: SdkError<UpdateOrganizationConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateOrganizationConfigurationError, R>) -> Self
source§impl From<StartInvestigationError> for Error
impl From<StartInvestigationError> for Error
source§fn from(err: StartInvestigationError) -> Self
fn from(err: StartInvestigationError) -> Self
source§impl From<StartMonitoringMemberError> for Error
impl From<StartMonitoringMemberError> for Error
source§fn from(err: StartMonitoringMemberError) -> Self
fn from(err: StartMonitoringMemberError) -> Self
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
source§impl From<UpdateDatasourcePackagesError> for Error
impl From<UpdateDatasourcePackagesError> for Error
source§fn from(err: UpdateDatasourcePackagesError) -> Self
fn from(err: UpdateDatasourcePackagesError) -> Self
source§impl From<UpdateInvestigationStateError> for Error
impl From<UpdateInvestigationStateError> for Error
source§fn from(err: UpdateInvestigationStateError) -> Self
fn from(err: UpdateInvestigationStateError) -> Self
source§impl From<UpdateOrganizationConfigurationError> for Error
impl From<UpdateOrganizationConfigurationError> for Error
source§fn from(err: UpdateOrganizationConfigurationError) -> Self
fn from(err: UpdateOrganizationConfigurationError) -> 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