#[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
DependencyException(DependencyException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceLinkedRoleLockClientException(ServiceLinkedRoleLockClientException),
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)
The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
ConflictException(ConflictException)
Exception to indicate that there is an ongoing task when a new task is created. Return when once the existing tasks are complete.
DependencyException(DependencyException)
Dependency encountered an error.
InternalServerException(InternalServerException)
The server experienced an internal error. Try again.
ResourceNotFoundException(ResourceNotFoundException)
The specified ID in the request is not found.
ServiceLinkedRoleLockClientException(ServiceLinkedRoleLockClientException)
Exception to indicate that the service-linked role (SLR) is locked.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
ThrottlingException(ThrottlingException)
The request was denied due to request throttling.
ValidationException(ValidationException)
The request body isn't valid.
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<GetApplicationComponentDetailsError> for Error
impl From<GetApplicationComponentDetailsError> for Error
source§fn from(err: GetApplicationComponentDetailsError) -> Self
fn from(err: GetApplicationComponentDetailsError) -> Self
source§impl From<GetApplicationComponentStrategiesError> for Error
impl From<GetApplicationComponentStrategiesError> for Error
source§fn from(err: GetApplicationComponentStrategiesError) -> Self
fn from(err: GetApplicationComponentStrategiesError) -> Self
source§impl From<GetAssessmentError> for Error
impl From<GetAssessmentError> for Error
source§fn from(err: GetAssessmentError) -> Self
fn from(err: GetAssessmentError) -> Self
source§impl From<GetImportFileTaskError> for Error
impl From<GetImportFileTaskError> for Error
source§fn from(err: GetImportFileTaskError) -> Self
fn from(err: GetImportFileTaskError) -> Self
source§impl From<GetLatestAssessmentIdError> for Error
impl From<GetLatestAssessmentIdError> for Error
source§fn from(err: GetLatestAssessmentIdError) -> Self
fn from(err: GetLatestAssessmentIdError) -> Self
source§impl From<GetPortfolioPreferencesError> for Error
impl From<GetPortfolioPreferencesError> for Error
source§fn from(err: GetPortfolioPreferencesError) -> Self
fn from(err: GetPortfolioPreferencesError) -> Self
source§impl From<GetPortfolioSummaryError> for Error
impl From<GetPortfolioSummaryError> for Error
source§fn from(err: GetPortfolioSummaryError) -> Self
fn from(err: GetPortfolioSummaryError) -> Self
source§impl From<GetRecommendationReportDetailsError> for Error
impl From<GetRecommendationReportDetailsError> for Error
source§fn from(err: GetRecommendationReportDetailsError) -> Self
fn from(err: GetRecommendationReportDetailsError) -> Self
source§impl From<GetServerDetailsError> for Error
impl From<GetServerDetailsError> for Error
source§fn from(err: GetServerDetailsError) -> Self
fn from(err: GetServerDetailsError) -> Self
source§impl From<GetServerStrategiesError> for Error
impl From<GetServerStrategiesError> for Error
source§fn from(err: GetServerStrategiesError) -> Self
fn from(err: GetServerStrategiesError) -> Self
source§impl From<ListAnalyzableServersError> for Error
impl From<ListAnalyzableServersError> for Error
source§fn from(err: ListAnalyzableServersError) -> Self
fn from(err: ListAnalyzableServersError) -> Self
source§impl From<ListApplicationComponentsError> for Error
impl From<ListApplicationComponentsError> for Error
source§fn from(err: ListApplicationComponentsError) -> Self
fn from(err: ListApplicationComponentsError) -> Self
source§impl From<ListCollectorsError> for Error
impl From<ListCollectorsError> for Error
source§fn from(err: ListCollectorsError) -> Self
fn from(err: ListCollectorsError) -> Self
source§impl From<ListImportFileTaskError> for Error
impl From<ListImportFileTaskError> for Error
source§fn from(err: ListImportFileTaskError) -> Self
fn from(err: ListImportFileTaskError) -> Self
source§impl From<ListServersError> for Error
impl From<ListServersError> for Error
source§fn from(err: ListServersError) -> Self
fn from(err: ListServersError) -> Self
source§impl From<PutPortfolioPreferencesError> for Error
impl From<PutPortfolioPreferencesError> for Error
source§fn from(err: PutPortfolioPreferencesError) -> Self
fn from(err: PutPortfolioPreferencesError) -> Self
source§impl<R> From<SdkError<GetApplicationComponentDetailsError, R>> for Error
impl<R> From<SdkError<GetApplicationComponentDetailsError, R>> for Error
source§fn from(err: SdkError<GetApplicationComponentDetailsError, R>) -> Self
fn from(err: SdkError<GetApplicationComponentDetailsError, R>) -> Self
source§impl<R> From<SdkError<GetApplicationComponentStrategiesError, R>> for Error
impl<R> From<SdkError<GetApplicationComponentStrategiesError, R>> for Error
source§fn from(err: SdkError<GetApplicationComponentStrategiesError, R>) -> Self
fn from(err: SdkError<GetApplicationComponentStrategiesError, R>) -> Self
source§impl<R> From<SdkError<GetAssessmentError, R>> for Error
impl<R> From<SdkError<GetAssessmentError, R>> for Error
source§fn from(err: SdkError<GetAssessmentError, R>) -> Self
fn from(err: SdkError<GetAssessmentError, R>) -> Self
source§impl<R> From<SdkError<GetImportFileTaskError, R>> for Error
impl<R> From<SdkError<GetImportFileTaskError, R>> for Error
source§fn from(err: SdkError<GetImportFileTaskError, R>) -> Self
fn from(err: SdkError<GetImportFileTaskError, R>) -> Self
source§impl<R> From<SdkError<GetLatestAssessmentIdError, R>> for Error
impl<R> From<SdkError<GetLatestAssessmentIdError, R>> for Error
source§fn from(err: SdkError<GetLatestAssessmentIdError, R>) -> Self
fn from(err: SdkError<GetLatestAssessmentIdError, R>) -> Self
source§impl<R> From<SdkError<GetPortfolioPreferencesError, R>> for Error
impl<R> From<SdkError<GetPortfolioPreferencesError, R>> for Error
source§fn from(err: SdkError<GetPortfolioPreferencesError, R>) -> Self
fn from(err: SdkError<GetPortfolioPreferencesError, R>) -> Self
source§impl<R> From<SdkError<GetPortfolioSummaryError, R>> for Error
impl<R> From<SdkError<GetPortfolioSummaryError, R>> for Error
source§fn from(err: SdkError<GetPortfolioSummaryError, R>) -> Self
fn from(err: SdkError<GetPortfolioSummaryError, R>) -> Self
source§impl<R> From<SdkError<GetRecommendationReportDetailsError, R>> for Error
impl<R> From<SdkError<GetRecommendationReportDetailsError, R>> for Error
source§fn from(err: SdkError<GetRecommendationReportDetailsError, R>) -> Self
fn from(err: SdkError<GetRecommendationReportDetailsError, R>) -> Self
source§impl<R> From<SdkError<GetServerDetailsError, R>> for Error
impl<R> From<SdkError<GetServerDetailsError, R>> for Error
source§fn from(err: SdkError<GetServerDetailsError, R>) -> Self
fn from(err: SdkError<GetServerDetailsError, R>) -> Self
source§impl<R> From<SdkError<GetServerStrategiesError, R>> for Error
impl<R> From<SdkError<GetServerStrategiesError, R>> for Error
source§fn from(err: SdkError<GetServerStrategiesError, R>) -> Self
fn from(err: SdkError<GetServerStrategiesError, R>) -> Self
source§impl<R> From<SdkError<ListAnalyzableServersError, R>> for Error
impl<R> From<SdkError<ListAnalyzableServersError, R>> for Error
source§fn from(err: SdkError<ListAnalyzableServersError, R>) -> Self
fn from(err: SdkError<ListAnalyzableServersError, R>) -> Self
source§impl<R> From<SdkError<ListApplicationComponentsError, R>> for Error
impl<R> From<SdkError<ListApplicationComponentsError, R>> for Error
source§fn from(err: SdkError<ListApplicationComponentsError, R>) -> Self
fn from(err: SdkError<ListApplicationComponentsError, R>) -> Self
source§impl<R> From<SdkError<ListCollectorsError, R>> for Error
impl<R> From<SdkError<ListCollectorsError, R>> for Error
source§fn from(err: SdkError<ListCollectorsError, R>) -> Self
fn from(err: SdkError<ListCollectorsError, R>) -> Self
source§impl<R> From<SdkError<ListImportFileTaskError, R>> for Error
impl<R> From<SdkError<ListImportFileTaskError, R>> for Error
source§fn from(err: SdkError<ListImportFileTaskError, R>) -> Self
fn from(err: SdkError<ListImportFileTaskError, R>) -> Self
source§impl<R> From<SdkError<ListServersError, R>> for Error
impl<R> From<SdkError<ListServersError, R>> for Error
source§fn from(err: SdkError<ListServersError, R>) -> Self
fn from(err: SdkError<ListServersError, R>) -> Self
source§impl<R> From<SdkError<PutPortfolioPreferencesError, R>> for Error
impl<R> From<SdkError<PutPortfolioPreferencesError, R>> for Error
source§fn from(err: SdkError<PutPortfolioPreferencesError, R>) -> Self
fn from(err: SdkError<PutPortfolioPreferencesError, R>) -> Self
source§impl<R> From<SdkError<StartAssessmentError, R>> for Error
impl<R> From<SdkError<StartAssessmentError, R>> for Error
source§fn from(err: SdkError<StartAssessmentError, R>) -> Self
fn from(err: SdkError<StartAssessmentError, R>) -> Self
source§impl<R> From<SdkError<StartImportFileTaskError, R>> for Error
impl<R> From<SdkError<StartImportFileTaskError, R>> for Error
source§fn from(err: SdkError<StartImportFileTaskError, R>) -> Self
fn from(err: SdkError<StartImportFileTaskError, R>) -> Self
source§impl<R> From<SdkError<StartRecommendationReportGenerationError, R>> for Error
impl<R> From<SdkError<StartRecommendationReportGenerationError, R>> for Error
source§fn from(err: SdkError<StartRecommendationReportGenerationError, R>) -> Self
fn from(err: SdkError<StartRecommendationReportGenerationError, R>) -> Self
source§impl<R> From<SdkError<StopAssessmentError, R>> for Error
impl<R> From<SdkError<StopAssessmentError, R>> for Error
source§fn from(err: SdkError<StopAssessmentError, R>) -> Self
fn from(err: SdkError<StopAssessmentError, R>) -> Self
source§impl<R> From<SdkError<UpdateApplicationComponentConfigError, R>> for Error
impl<R> From<SdkError<UpdateApplicationComponentConfigError, R>> for Error
source§fn from(err: SdkError<UpdateApplicationComponentConfigError, R>) -> Self
fn from(err: SdkError<UpdateApplicationComponentConfigError, R>) -> Self
source§impl<R> From<SdkError<UpdateServerConfigError, R>> for Error
impl<R> From<SdkError<UpdateServerConfigError, R>> for Error
source§fn from(err: SdkError<UpdateServerConfigError, R>) -> Self
fn from(err: SdkError<UpdateServerConfigError, R>) -> Self
source§impl From<StartAssessmentError> for Error
impl From<StartAssessmentError> for Error
source§fn from(err: StartAssessmentError) -> Self
fn from(err: StartAssessmentError) -> Self
source§impl From<StartImportFileTaskError> for Error
impl From<StartImportFileTaskError> for Error
source§fn from(err: StartImportFileTaskError) -> Self
fn from(err: StartImportFileTaskError) -> Self
source§impl From<StartRecommendationReportGenerationError> for Error
impl From<StartRecommendationReportGenerationError> for Error
source§fn from(err: StartRecommendationReportGenerationError) -> Self
fn from(err: StartRecommendationReportGenerationError) -> Self
source§impl From<StopAssessmentError> for Error
impl From<StopAssessmentError> for Error
source§fn from(err: StopAssessmentError) -> Self
fn from(err: StopAssessmentError) -> Self
source§impl From<UpdateApplicationComponentConfigError> for Error
impl From<UpdateApplicationComponentConfigError> for Error
source§fn from(err: UpdateApplicationComponentConfigError) -> Self
fn from(err: UpdateApplicationComponentConfigError) -> Self
source§impl From<UpdateServerConfigError> for Error
impl From<UpdateServerConfigError> for Error
source§fn from(err: UpdateServerConfigError) -> Self
fn from(err: UpdateServerConfigError) -> 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