Enum aws_sdk_inspector::Error
source · [−]#[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(Box<dyn Error + Send + Sync + 'static>),
}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 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(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<AddAttributesToFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<AddAttributesToFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<AddAttributesToFindingsError, R>) -> Self
fn from(err: SdkError<AddAttributesToFindingsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<CreateAssessmentTargetError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateAssessmentTargetError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateAssessmentTargetError, R>) -> Self
fn from(err: SdkError<CreateAssessmentTargetError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<CreateAssessmentTemplateError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateAssessmentTemplateError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateAssessmentTemplateError, R>) -> Self
fn from(err: SdkError<CreateAssessmentTemplateError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<CreateExclusionsPreviewError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateExclusionsPreviewError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateExclusionsPreviewError, R>) -> Self
fn from(err: SdkError<CreateExclusionsPreviewError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<CreateResourceGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateResourceGroupError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateResourceGroupError, R>) -> Self
fn from(err: SdkError<CreateResourceGroupError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DeleteAssessmentRunError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteAssessmentRunError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteAssessmentRunError, R>) -> Self
fn from(err: SdkError<DeleteAssessmentRunError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DeleteAssessmentTargetError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteAssessmentTargetError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteAssessmentTargetError, R>) -> Self
fn from(err: SdkError<DeleteAssessmentTargetError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DeleteAssessmentTemplateError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteAssessmentTemplateError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteAssessmentTemplateError, R>) -> Self
fn from(err: SdkError<DeleteAssessmentTemplateError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeAssessmentRunsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAssessmentRunsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeAssessmentRunsError, R>) -> Self
fn from(err: SdkError<DescribeAssessmentRunsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeAssessmentTargetsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAssessmentTargetsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeAssessmentTargetsError, R>) -> Self
fn from(err: SdkError<DescribeAssessmentTargetsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeAssessmentTemplatesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeAssessmentTemplatesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeAssessmentTemplatesError, R>) -> Self
fn from(err: SdkError<DescribeAssessmentTemplatesError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeCrossAccountAccessRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeCrossAccountAccessRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeCrossAccountAccessRoleError, R>) -> Self
fn from(err: SdkError<DescribeCrossAccountAccessRoleError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeExclusionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeExclusionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeExclusionsError, R>) -> Self
fn from(err: SdkError<DescribeExclusionsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeFindingsError, R>) -> Self
fn from(err: SdkError<DescribeFindingsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeResourceGroupsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeResourceGroupsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeResourceGroupsError, R>) -> Self
fn from(err: SdkError<DescribeResourceGroupsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<DescribeRulesPackagesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DescribeRulesPackagesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DescribeRulesPackagesError, R>) -> Self
fn from(err: SdkError<DescribeRulesPackagesError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<GetAssessmentReportError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetAssessmentReportError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetAssessmentReportError, R>) -> Self
fn from(err: SdkError<GetAssessmentReportError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<GetExclusionsPreviewError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetExclusionsPreviewError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetExclusionsPreviewError, R>) -> Self
fn from(err: SdkError<GetExclusionsPreviewError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<GetTelemetryMetadataError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetTelemetryMetadataError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetTelemetryMetadataError, R>) -> Self
fn from(err: SdkError<GetTelemetryMetadataError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListAssessmentRunAgentsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListAssessmentRunAgentsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListAssessmentRunAgentsError, R>) -> Self
fn from(err: SdkError<ListAssessmentRunAgentsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListAssessmentRunsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListAssessmentRunsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListAssessmentRunsError, R>) -> Self
fn from(err: SdkError<ListAssessmentRunsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListAssessmentTargetsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListAssessmentTargetsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListAssessmentTargetsError, R>) -> Self
fn from(err: SdkError<ListAssessmentTargetsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListAssessmentTemplatesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListAssessmentTemplatesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListAssessmentTemplatesError, R>) -> Self
fn from(err: SdkError<ListAssessmentTemplatesError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListEventSubscriptionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListEventSubscriptionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListEventSubscriptionsError, R>) -> Self
fn from(err: SdkError<ListEventSubscriptionsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListExclusionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListExclusionsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListExclusionsError, R>) -> Self
fn from(err: SdkError<ListExclusionsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListFindingsError, R>) -> Self
fn from(err: SdkError<ListFindingsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListRulesPackagesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListRulesPackagesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListRulesPackagesError, R>) -> Self
fn from(err: SdkError<ListRulesPackagesError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<PreviewAgentsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<PreviewAgentsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<PreviewAgentsError, R>) -> Self
fn from(err: SdkError<PreviewAgentsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<RegisterCrossAccountAccessRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RegisterCrossAccountAccessRoleError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<RegisterCrossAccountAccessRoleError, R>) -> Self
fn from(err: SdkError<RegisterCrossAccountAccessRoleError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<RemoveAttributesFromFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RemoveAttributesFromFindingsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<RemoveAttributesFromFindingsError, R>) -> Self
fn from(err: SdkError<RemoveAttributesFromFindingsError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<SetTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<SetTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<SetTagsForResourceError, R>) -> Self
fn from(err: SdkError<SetTagsForResourceError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<StartAssessmentRunError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StartAssessmentRunError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StartAssessmentRunError, R>) -> Self
fn from(err: SdkError<StartAssessmentRunError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<StopAssessmentRunError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<StopAssessmentRunError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<StopAssessmentRunError, R>) -> Self
fn from(err: SdkError<StopAssessmentRunError, R>) -> Self
Performs the conversion.
sourceimpl<R> From<SdkError<SubscribeToEventError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<SubscribeToEventError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<SubscribeToEventError, R>) -> Self
fn from(err: SdkError<SubscribeToEventError, R>) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more