#[non_exhaustive]
pub enum Error { AccessDeniedException(AccessDeniedException), AgentsAlreadyRunningAssessmentException(AgentsAlreadyRunningAssessmentException), AssessmentRunInProgressException(AssessmentRunInProgressException), InternalException(InternalException), InvalidCrossAccountRoleException(InvalidCrossAccountRoleException), InvalidInputException(InvalidInputException), LimitExceededException(LimitExceededException), NoSuchEntityException(NoSuchEntityException), PreviewGenerationInProgressException(PreviewGenerationInProgressException), ServiceTemporarilyUnavailableException(ServiceTemporarilyUnavailableException), UnsupportedFeatureException(UnsupportedFeatureException), 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 required permissions to access the requested resource.

§

AgentsAlreadyRunningAssessmentException(AgentsAlreadyRunningAssessmentException)

You started an assessment run, but one of the instances is already participating in another assessment run.

§

AssessmentRunInProgressException(AssessmentRunInProgressException)

You cannot perform a specified action if an assessment run is currently in progress.

§

InternalException(InternalException)

Internal server error.

§

InvalidCrossAccountRoleException(InvalidCrossAccountRoleException)

Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.

§

InvalidInputException(InvalidInputException)

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

§

LimitExceededException(LimitExceededException)

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

§

NoSuchEntityException(NoSuchEntityException)

The request was rejected because it referenced an entity that does not exist. The error code describes the entity.

§

PreviewGenerationInProgressException(PreviewGenerationInProgressException)

The request is rejected. The specified assessment template is currently generating an exclusions preview.

§

ServiceTemporarilyUnavailableException(ServiceTemporarilyUnavailableException)

The serice is temporary unavailable.

§

UnsupportedFeatureException(UnsupportedFeatureException)

Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.

§

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<AddAttributesToFindingsError> for Error

source§

fn from(err: AddAttributesToFindingsError) -> Self

Converts to this type from the input type.
source§

impl From<CreateAssessmentTargetError> for Error

source§

fn from(err: CreateAssessmentTargetError) -> Self

Converts to this type from the input type.
source§

impl From<CreateAssessmentTemplateError> for Error

source§

fn from(err: CreateAssessmentTemplateError) -> Self

Converts to this type from the input type.
source§

impl From<CreateExclusionsPreviewError> for Error

source§

fn from(err: CreateExclusionsPreviewError) -> Self

Converts to this type from the input type.
source§

impl From<CreateResourceGroupError> for Error

source§

fn from(err: CreateResourceGroupError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAssessmentRunError> for Error

source§

fn from(err: DeleteAssessmentRunError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAssessmentTargetError> for Error

source§

fn from(err: DeleteAssessmentTargetError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteAssessmentTemplateError> for Error

source§

fn from(err: DeleteAssessmentTemplateError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAssessmentRunsError> for Error

source§

fn from(err: DescribeAssessmentRunsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAssessmentTargetsError> for Error

source§

fn from(err: DescribeAssessmentTargetsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeAssessmentTemplatesError> for Error

source§

fn from(err: DescribeAssessmentTemplatesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeCrossAccountAccessRoleError> for Error

source§

fn from(err: DescribeCrossAccountAccessRoleError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeExclusionsError> for Error

source§

fn from(err: DescribeExclusionsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeFindingsError> for Error

source§

fn from(err: DescribeFindingsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeResourceGroupsError> for Error

source§

fn from(err: DescribeResourceGroupsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeRulesPackagesError> for Error

source§

fn from(err: DescribeRulesPackagesError) -> Self

Converts to this type from the input type.
source§

impl From<GetAssessmentReportError> for Error

source§

fn from(err: GetAssessmentReportError) -> Self

Converts to this type from the input type.
source§

impl From<GetExclusionsPreviewError> for Error

source§

fn from(err: GetExclusionsPreviewError) -> Self

Converts to this type from the input type.
source§

impl From<GetTelemetryMetadataError> for Error

source§

fn from(err: GetTelemetryMetadataError) -> Self

Converts to this type from the input type.
source§

impl From<ListAssessmentRunAgentsError> for Error

source§

fn from(err: ListAssessmentRunAgentsError) -> Self

Converts to this type from the input type.
source§

impl From<ListAssessmentRunsError> for Error

source§

fn from(err: ListAssessmentRunsError) -> Self

Converts to this type from the input type.
source§

impl From<ListAssessmentTargetsError> for Error

source§

fn from(err: ListAssessmentTargetsError) -> Self

Converts to this type from the input type.
source§

impl From<ListAssessmentTemplatesError> for Error

source§

fn from(err: ListAssessmentTemplatesError) -> Self

Converts to this type from the input type.
source§

impl From<ListEventSubscriptionsError> for Error

source§

fn from(err: ListEventSubscriptionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListExclusionsError> for Error

source§

fn from(err: ListExclusionsError) -> 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<ListRulesPackagesError> for Error

source§

fn from(err: ListRulesPackagesError) -> 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<PreviewAgentsError> for Error

source§

fn from(err: PreviewAgentsError) -> Self

Converts to this type from the input type.
source§

impl From<RegisterCrossAccountAccessRoleError> for Error

source§

fn from(err: RegisterCrossAccountAccessRoleError) -> Self

Converts to this type from the input type.
source§

impl From<RemoveAttributesFromFindingsError> for Error

source§

fn from(err: RemoveAttributesFromFindingsError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<ListExclusionsError, 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<ListRulesPackagesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

fn from(err: SdkError<ListRulesPackagesError, 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<PreviewAgentsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl From<SetTagsForResourceError> for Error

source§

fn from(err: SetTagsForResourceError) -> Self

Converts to this type from the input type.
source§

impl From<StartAssessmentRunError> for Error

source§

fn from(err: StartAssessmentRunError) -> Self

Converts to this type from the input type.
source§

impl From<StopAssessmentRunError> for Error

source§

fn from(err: StopAssessmentRunError) -> Self

Converts to this type from the input type.
source§

impl From<SubscribeToEventError> for Error

source§

fn from(err: SubscribeToEventError) -> Self

Converts to this type from the input type.
source§

impl From<UnsubscribeFromEventError> for Error

source§

fn from(err: UnsubscribeFromEventError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateAssessmentTargetError> for Error

source§

fn from(err: UpdateAssessmentTargetError) -> 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