#[non_exhaustive]
pub enum Error { AccessDeniedException(AccessDeniedException), BadRequestException(BadRequestException), 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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccessDeniedException(AccessDeniedException)

You do not have sufficient access to perform this action.

§

BadRequestException(BadRequestException)

One or more tags submitted as part of the request is not valid.

§

ConflictException(ConflictException)

A conflict occurred.

§

InternalServerException(InternalServerException)

The request has failed due to an internal failure of the Amazon Inspector service.

§

ResourceNotFoundException(ResourceNotFoundException)

The operation tried to access an invalid resource. Make sure the resource is specified correctly.

§

ServiceQuotaExceededException(ServiceQuotaExceededException)

You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.

§

ThrottlingException(ThrottlingException)

The limit on the number of requests per second was exceeded.

§

ValidationException(ValidationException)

The request has failed validation due to missing required fields or having invalid inputs.

§

Unhandled(Unhandled)

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AssociateMemberError> for Error

source§

fn from(err: AssociateMemberError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetAccountStatusError> for Error

source§

fn from(err: BatchGetAccountStatusError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetCodeSnippetError> for Error

source§

fn from(err: BatchGetCodeSnippetError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetFreeTrialInfoError> for Error

source§

fn from(err: BatchGetFreeTrialInfoError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetMemberEc2DeepInspectionStatusError> for Error

source§

fn from(err: BatchGetMemberEc2DeepInspectionStatusError) -> Self

Converts to this type from the input type.
source§

impl From<BatchUpdateMemberEc2DeepInspectionStatusError> for Error

source§

fn from(err: BatchUpdateMemberEc2DeepInspectionStatusError) -> Self

Converts to this type from the input type.
source§

impl From<CancelFindingsReportError> for Error

source§

fn from(err: CancelFindingsReportError) -> Self

Converts to this type from the input type.
source§

impl From<CancelSbomExportError> for Error

source§

fn from(err: CancelSbomExportError) -> Self

Converts to this type from the input type.
source§

impl From<CreateFilterError> for Error

source§

fn from(err: CreateFilterError) -> Self

Converts to this type from the input type.
source§

impl From<CreateFindingsReportError> for Error

source§

fn from(err: CreateFindingsReportError) -> Self

Converts to this type from the input type.
source§

impl From<CreateSbomExportError> for Error

source§

fn from(err: CreateSbomExportError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteFilterError> for Error

source§

fn from(err: DeleteFilterError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeOrganizationConfigurationError> for Error

source§

fn from(err: DescribeOrganizationConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<DisableDelegatedAdminAccountError> for Error

source§

fn from(err: DisableDelegatedAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<DisableError> for Error

source§

fn from(err: DisableError) -> Self

Converts to this type from the input type.
source§

impl From<DisassociateMemberError> for Error

source§

fn from(err: DisassociateMemberError) -> Self

Converts to this type from the input type.
source§

impl From<EnableDelegatedAdminAccountError> for Error

source§

fn from(err: EnableDelegatedAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<EnableError> for Error

source§

fn from(err: EnableError) -> Self

Converts to this type from the input type.
source§

impl From<GetConfigurationError> for Error

source§

fn from(err: GetConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<GetDelegatedAdminAccountError> for Error

source§

fn from(err: GetDelegatedAdminAccountError) -> Self

Converts to this type from the input type.
source§

impl From<GetEc2DeepInspectionConfigurationError> for Error

source§

fn from(err: GetEc2DeepInspectionConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<GetEncryptionKeyError> for Error

source§

fn from(err: GetEncryptionKeyError) -> Self

Converts to this type from the input type.
source§

impl From<GetFindingsReportStatusError> for Error

source§

fn from(err: GetFindingsReportStatusError) -> Self

Converts to this type from the input type.
source§

impl From<GetMemberError> for Error

source§

fn from(err: GetMemberError) -> Self

Converts to this type from the input type.
source§

impl From<GetSbomExportError> for Error

source§

fn from(err: GetSbomExportError) -> Self

Converts to this type from the input type.
source§

impl From<ListAccountPermissionsError> for Error

source§

fn from(err: ListAccountPermissionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListCoverageError> for Error

source§

fn from(err: ListCoverageError) -> Self

Converts to this type from the input type.
source§

impl From<ListCoverageStatisticsError> for Error

source§

fn from(err: ListCoverageStatisticsError) -> Self

Converts to this type from the input type.
source§

impl From<ListDelegatedAdminAccountsError> for Error

source§

fn from(err: ListDelegatedAdminAccountsError) -> Self

Converts to this type from the input type.
source§

impl From<ListFiltersError> for Error

source§

fn from(err: ListFiltersError) -> Self

Converts to this type from the input type.
source§

impl From<ListFindingAggregationsError> for Error

source§

fn from(err: ListFindingAggregationsError) -> Self

Converts to this type from the input type.
source§

impl From<ListFindingsError> for Error

source§

fn from(err: ListFindingsError) -> Self

Converts to this type from the input type.
source§

impl From<ListMembersError> for Error

source§

fn from(err: ListMembersError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsForResourceError> for Error

source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<ListUsageTotalsError> for Error

source§

fn from(err: ListUsageTotalsError) -> Self

Converts to this type from the input type.
source§

impl From<ResetEncryptionKeyError> for Error

source§

fn from(err: ResetEncryptionKeyError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<AssociateMemberError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<AssociateMemberError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchGetAccountStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchGetAccountStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchGetCodeSnippetError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchGetCodeSnippetError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchGetFreeTrialInfoError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchGetFreeTrialInfoError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchGetMemberEc2DeepInspectionStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchGetMemberEc2DeepInspectionStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchUpdateMemberEc2DeepInspectionStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<BatchUpdateMemberEc2DeepInspectionStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CancelFindingsReportError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CancelFindingsReportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CancelSbomExportError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CancelSbomExportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateFilterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateFilterError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateFindingsReportError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateFindingsReportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateSbomExportError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<CreateSbomExportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteFilterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DeleteFilterError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeOrganizationConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DescribeOrganizationConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisableDelegatedAdminAccountError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DisableDelegatedAdminAccountError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisableError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DisableError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<DisassociateMemberError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<DisassociateMemberError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<EnableDelegatedAdminAccountError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<EnableDelegatedAdminAccountError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<EnableError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<EnableError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetDelegatedAdminAccountError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetDelegatedAdminAccountError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetEc2DeepInspectionConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetEc2DeepInspectionConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetEncryptionKeyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetEncryptionKeyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetFindingsReportStatusError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetFindingsReportStatusError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetMemberError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetMemberError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<GetSbomExportError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<GetSbomExportError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAccountPermissionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListAccountPermissionsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListCoverageError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListCoverageError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListCoverageStatisticsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListCoverageStatisticsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListDelegatedAdminAccountsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListDelegatedAdminAccountsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListFiltersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListFiltersError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListFindingAggregationsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListFindingAggregationsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListFindingsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListFindingsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListMembersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListMembersError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListUsageTotalsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListUsageTotalsError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<ResetEncryptionKeyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ResetEncryptionKeyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<SearchVulnerabilitiesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<SearchVulnerabilitiesError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateEc2DeepInspectionConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateEc2DeepInspectionConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateEncryptionKeyError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateEncryptionKeyError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateFilterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateFilterError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateOrgEc2DeepInspectionConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateOrgEc2DeepInspectionConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateOrganizationConfigurationError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<UpdateOrganizationConfigurationError, R>) -> Self

Converts to this type from the input type.
source§

impl From<SearchVulnerabilitiesError> for Error

source§

fn from(err: SearchVulnerabilitiesError) -> Self

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateConfigurationError> for Error

source§

fn from(err: UpdateConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateEc2DeepInspectionConfigurationError> for Error

source§

fn from(err: UpdateEc2DeepInspectionConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateEncryptionKeyError> for Error

source§

fn from(err: UpdateEncryptionKeyError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateFilterError> for Error

source§

fn from(err: UpdateFilterError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateOrgEc2DeepInspectionConfigurationError> for Error

source§

fn from(err: UpdateOrgEc2DeepInspectionConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateOrganizationConfigurationError> for Error

source§

fn from(err: UpdateOrganizationConfigurationError) -> Self

Converts to this type from the input type.
source§

impl RequestId for Error

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more