#[non_exhaustive]pub enum Error {
AuthorizationErrorException(AuthorizationErrorException),
ConflictErrorException(ConflictErrorException),
HomeRegionNotSetException(HomeRegionNotSetException),
InvalidParameterException(InvalidParameterException),
InvalidParameterValueException(InvalidParameterValueException),
LimitExceededException(LimitExceededException),
OperationNotPermittedException(OperationNotPermittedException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ServerInternalErrorException(ServerInternalErrorException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthorizationErrorException(AuthorizationErrorException)
The user does not have permission to perform the action. Check the IAM policy associated with this user.
ConflictErrorException(ConflictErrorException)
Conflict error.
HomeRegionNotSetException(HomeRegionNotSetException)
The home Region is not set. Set the home Region to continue.
InvalidParameterException(InvalidParameterException)
One or more parameters are not valid. Verify the parameters and try again.
InvalidParameterValueException(InvalidParameterValueException)
The value of one or more parameters are either invalid or out of range. Verify the parameter values and try again.
LimitExceededException(LimitExceededException)
The limit of 200 configuration IDs per request has been exceeded.
OperationNotPermittedException(OperationNotPermittedException)
This operation is not permitted.
ResourceInUseException(ResourceInUseException)
This issue occurs when the same clientRequestToken
is used with the StartImportTask
action, but with different parameters. For example, you use the same request token but have two different import URLs, you can encounter this issue. If the import tasks are meant to be different, use a different clientRequestToken
, and try again.
ResourceNotFoundException(ResourceNotFoundException)
The specified configuration ID was not located. Verify the configuration ID and try again.
ServerInternalErrorException(ServerInternalErrorException)
The server experienced an internal error. Try again.
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<AssociateConfigurationItemsToApplicationError> for Error
impl From<AssociateConfigurationItemsToApplicationError> for Error
source§fn from(err: AssociateConfigurationItemsToApplicationError) -> Self
fn from(err: AssociateConfigurationItemsToApplicationError) -> Self
source§impl From<BatchDeleteAgentsError> for Error
impl From<BatchDeleteAgentsError> for Error
source§fn from(err: BatchDeleteAgentsError) -> Self
fn from(err: BatchDeleteAgentsError) -> Self
source§impl From<BatchDeleteImportDataError> for Error
impl From<BatchDeleteImportDataError> for Error
source§fn from(err: BatchDeleteImportDataError) -> Self
fn from(err: BatchDeleteImportDataError) -> 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<CreateApplicationError> for Error
impl From<CreateApplicationError> for Error
source§fn from(err: CreateApplicationError) -> Self
fn from(err: CreateApplicationError) -> Self
source§impl From<CreateTagsError> for Error
impl From<CreateTagsError> for Error
source§fn from(err: CreateTagsError) -> Self
fn from(err: CreateTagsError) -> Self
source§impl From<DeleteApplicationsError> for Error
impl From<DeleteApplicationsError> for Error
source§fn from(err: DeleteApplicationsError) -> Self
fn from(err: DeleteApplicationsError) -> Self
source§impl From<DeleteTagsError> for Error
impl From<DeleteTagsError> for Error
source§fn from(err: DeleteTagsError) -> Self
fn from(err: DeleteTagsError) -> Self
source§impl From<DescribeAgentsError> for Error
impl From<DescribeAgentsError> for Error
source§fn from(err: DescribeAgentsError) -> Self
fn from(err: DescribeAgentsError) -> Self
source§impl From<DescribeBatchDeleteConfigurationTaskError> for Error
impl From<DescribeBatchDeleteConfigurationTaskError> for Error
source§fn from(err: DescribeBatchDeleteConfigurationTaskError) -> Self
fn from(err: DescribeBatchDeleteConfigurationTaskError) -> Self
source§impl From<DescribeConfigurationsError> for Error
impl From<DescribeConfigurationsError> for Error
source§fn from(err: DescribeConfigurationsError) -> Self
fn from(err: DescribeConfigurationsError) -> Self
source§impl From<DescribeContinuousExportsError> for Error
impl From<DescribeContinuousExportsError> for Error
source§fn from(err: DescribeContinuousExportsError) -> Self
fn from(err: DescribeContinuousExportsError) -> Self
source§impl From<DescribeExportConfigurationsError> for Error
impl From<DescribeExportConfigurationsError> for Error
source§fn from(err: DescribeExportConfigurationsError) -> Self
fn from(err: DescribeExportConfigurationsError) -> Self
source§impl From<DescribeExportTasksError> for Error
impl From<DescribeExportTasksError> for Error
source§fn from(err: DescribeExportTasksError) -> Self
fn from(err: DescribeExportTasksError) -> Self
source§impl From<DescribeImportTasksError> for Error
impl From<DescribeImportTasksError> for Error
source§fn from(err: DescribeImportTasksError) -> Self
fn from(err: DescribeImportTasksError) -> Self
source§impl From<DescribeTagsError> for Error
impl From<DescribeTagsError> for Error
source§fn from(err: DescribeTagsError) -> Self
fn from(err: DescribeTagsError) -> Self
source§impl From<DisassociateConfigurationItemsFromApplicationError> for Error
impl From<DisassociateConfigurationItemsFromApplicationError> for Error
source§fn from(err: DisassociateConfigurationItemsFromApplicationError) -> Self
fn from(err: DisassociateConfigurationItemsFromApplicationError) -> Self
source§impl From<ExportConfigurationsError> for Error
impl From<ExportConfigurationsError> for Error
source§fn from(err: ExportConfigurationsError) -> Self
fn from(err: ExportConfigurationsError) -> Self
source§impl From<GetDiscoverySummaryError> for Error
impl From<GetDiscoverySummaryError> for Error
source§fn from(err: GetDiscoverySummaryError) -> Self
fn from(err: GetDiscoverySummaryError) -> Self
source§impl From<ListConfigurationsError> for Error
impl From<ListConfigurationsError> for Error
source§fn from(err: ListConfigurationsError) -> Self
fn from(err: ListConfigurationsError) -> Self
source§impl From<ListServerNeighborsError> for Error
impl From<ListServerNeighborsError> for Error
source§fn from(err: ListServerNeighborsError) -> Self
fn from(err: ListServerNeighborsError) -> Self
source§impl<R> From<SdkError<AssociateConfigurationItemsToApplicationError, R>> for Error
impl<R> From<SdkError<AssociateConfigurationItemsToApplicationError, R>> for Error
source§fn from(err: SdkError<AssociateConfigurationItemsToApplicationError, R>) -> Self
fn from(err: SdkError<AssociateConfigurationItemsToApplicationError, R>) -> Self
source§impl<R> From<SdkError<BatchDeleteAgentsError, R>> for Error
impl<R> From<SdkError<BatchDeleteAgentsError, R>> for Error
source§fn from(err: SdkError<BatchDeleteAgentsError, R>) -> Self
fn from(err: SdkError<BatchDeleteAgentsError, R>) -> Self
source§impl<R> From<SdkError<BatchDeleteImportDataError, R>> for Error
impl<R> From<SdkError<BatchDeleteImportDataError, R>> for Error
source§fn from(err: SdkError<BatchDeleteImportDataError, R>) -> Self
fn from(err: SdkError<BatchDeleteImportDataError, R>) -> Self
source§impl<R> From<SdkError<CreateApplicationError, R>> for Error
impl<R> From<SdkError<CreateApplicationError, R>> for Error
source§fn from(err: SdkError<CreateApplicationError, R>) -> Self
fn from(err: SdkError<CreateApplicationError, R>) -> Self
source§impl<R> From<SdkError<CreateTagsError, R>> for Error
impl<R> From<SdkError<CreateTagsError, R>> for Error
source§fn from(err: SdkError<CreateTagsError, R>) -> Self
fn from(err: SdkError<CreateTagsError, R>) -> Self
source§impl<R> From<SdkError<DeleteApplicationsError, R>> for Error
impl<R> From<SdkError<DeleteApplicationsError, R>> for Error
source§fn from(err: SdkError<DeleteApplicationsError, R>) -> Self
fn from(err: SdkError<DeleteApplicationsError, R>) -> Self
source§impl<R> From<SdkError<DeleteTagsError, R>> for Error
impl<R> From<SdkError<DeleteTagsError, R>> for Error
source§fn from(err: SdkError<DeleteTagsError, R>) -> Self
fn from(err: SdkError<DeleteTagsError, R>) -> Self
source§impl<R> From<SdkError<DescribeAgentsError, R>> for Error
impl<R> From<SdkError<DescribeAgentsError, R>> for Error
source§fn from(err: SdkError<DescribeAgentsError, R>) -> Self
fn from(err: SdkError<DescribeAgentsError, R>) -> Self
source§impl<R> From<SdkError<DescribeBatchDeleteConfigurationTaskError, R>> for Error
impl<R> From<SdkError<DescribeBatchDeleteConfigurationTaskError, R>> for Error
source§fn from(err: SdkError<DescribeBatchDeleteConfigurationTaskError, R>) -> Self
fn from(err: SdkError<DescribeBatchDeleteConfigurationTaskError, R>) -> Self
source§impl<R> From<SdkError<DescribeConfigurationsError, R>> for Error
impl<R> From<SdkError<DescribeConfigurationsError, R>> for Error
source§fn from(err: SdkError<DescribeConfigurationsError, R>) -> Self
fn from(err: SdkError<DescribeConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<DescribeContinuousExportsError, R>> for Error
impl<R> From<SdkError<DescribeContinuousExportsError, R>> for Error
source§fn from(err: SdkError<DescribeContinuousExportsError, R>) -> Self
fn from(err: SdkError<DescribeContinuousExportsError, R>) -> Self
source§impl<R> From<SdkError<DescribeExportConfigurationsError, R>> for Error
impl<R> From<SdkError<DescribeExportConfigurationsError, R>> for Error
source§fn from(err: SdkError<DescribeExportConfigurationsError, R>) -> Self
fn from(err: SdkError<DescribeExportConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<DescribeExportTasksError, R>> for Error
impl<R> From<SdkError<DescribeExportTasksError, R>> for Error
source§fn from(err: SdkError<DescribeExportTasksError, R>) -> Self
fn from(err: SdkError<DescribeExportTasksError, R>) -> Self
source§impl<R> From<SdkError<DescribeImportTasksError, R>> for Error
impl<R> From<SdkError<DescribeImportTasksError, R>> for Error
source§fn from(err: SdkError<DescribeImportTasksError, R>) -> Self
fn from(err: SdkError<DescribeImportTasksError, R>) -> Self
source§impl<R> From<SdkError<DescribeTagsError, R>> for Error
impl<R> From<SdkError<DescribeTagsError, R>> for Error
source§fn from(err: SdkError<DescribeTagsError, R>) -> Self
fn from(err: SdkError<DescribeTagsError, R>) -> Self
source§impl<R> From<SdkError<DisassociateConfigurationItemsFromApplicationError, R>> for Error
impl<R> From<SdkError<DisassociateConfigurationItemsFromApplicationError, R>> for Error
source§fn from(
err: SdkError<DisassociateConfigurationItemsFromApplicationError, R>
) -> Self
fn from( err: SdkError<DisassociateConfigurationItemsFromApplicationError, R> ) -> Self
source§impl<R> From<SdkError<ExportConfigurationsError, R>> for Error
impl<R> From<SdkError<ExportConfigurationsError, R>> for Error
source§fn from(err: SdkError<ExportConfigurationsError, R>) -> Self
fn from(err: SdkError<ExportConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<GetDiscoverySummaryError, R>> for Error
impl<R> From<SdkError<GetDiscoverySummaryError, R>> for Error
source§fn from(err: SdkError<GetDiscoverySummaryError, R>) -> Self
fn from(err: SdkError<GetDiscoverySummaryError, R>) -> Self
source§impl<R> From<SdkError<ListConfigurationsError, R>> for Error
impl<R> From<SdkError<ListConfigurationsError, R>> for Error
source§fn from(err: SdkError<ListConfigurationsError, R>) -> Self
fn from(err: SdkError<ListConfigurationsError, R>) -> Self
source§impl<R> From<SdkError<ListServerNeighborsError, R>> for Error
impl<R> From<SdkError<ListServerNeighborsError, R>> for Error
source§fn from(err: SdkError<ListServerNeighborsError, R>) -> Self
fn from(err: SdkError<ListServerNeighborsError, R>) -> Self
source§impl<R> From<SdkError<StartBatchDeleteConfigurationTaskError, R>> for Error
impl<R> From<SdkError<StartBatchDeleteConfigurationTaskError, R>> for Error
source§fn from(err: SdkError<StartBatchDeleteConfigurationTaskError, R>) -> Self
fn from(err: SdkError<StartBatchDeleteConfigurationTaskError, R>) -> Self
source§impl<R> From<SdkError<StartContinuousExportError, R>> for Error
impl<R> From<SdkError<StartContinuousExportError, R>> for Error
source§fn from(err: SdkError<StartContinuousExportError, R>) -> Self
fn from(err: SdkError<StartContinuousExportError, R>) -> Self
source§impl<R> From<SdkError<StartDataCollectionByAgentIdsError, R>> for Error
impl<R> From<SdkError<StartDataCollectionByAgentIdsError, R>> for Error
source§fn from(err: SdkError<StartDataCollectionByAgentIdsError, R>) -> Self
fn from(err: SdkError<StartDataCollectionByAgentIdsError, R>) -> Self
source§impl<R> From<SdkError<StartExportTaskError, R>> for Error
impl<R> From<SdkError<StartExportTaskError, R>> for Error
source§fn from(err: SdkError<StartExportTaskError, R>) -> Self
fn from(err: SdkError<StartExportTaskError, R>) -> Self
source§impl<R> From<SdkError<StartImportTaskError, R>> for Error
impl<R> From<SdkError<StartImportTaskError, R>> for Error
source§fn from(err: SdkError<StartImportTaskError, R>) -> Self
fn from(err: SdkError<StartImportTaskError, R>) -> Self
source§impl<R> From<SdkError<StopContinuousExportError, R>> for Error
impl<R> From<SdkError<StopContinuousExportError, R>> for Error
source§fn from(err: SdkError<StopContinuousExportError, R>) -> Self
fn from(err: SdkError<StopContinuousExportError, R>) -> Self
source§impl<R> From<SdkError<StopDataCollectionByAgentIdsError, R>> for Error
impl<R> From<SdkError<StopDataCollectionByAgentIdsError, R>> for Error
source§fn from(err: SdkError<StopDataCollectionByAgentIdsError, R>) -> Self
fn from(err: SdkError<StopDataCollectionByAgentIdsError, R>) -> Self
source§impl<R> From<SdkError<UpdateApplicationError, R>> for Error
impl<R> From<SdkError<UpdateApplicationError, R>> for Error
source§fn from(err: SdkError<UpdateApplicationError, R>) -> Self
fn from(err: SdkError<UpdateApplicationError, R>) -> Self
source§impl From<StartBatchDeleteConfigurationTaskError> for Error
impl From<StartBatchDeleteConfigurationTaskError> for Error
source§fn from(err: StartBatchDeleteConfigurationTaskError) -> Self
fn from(err: StartBatchDeleteConfigurationTaskError) -> Self
source§impl From<StartContinuousExportError> for Error
impl From<StartContinuousExportError> for Error
source§fn from(err: StartContinuousExportError) -> Self
fn from(err: StartContinuousExportError) -> Self
source§impl From<StartDataCollectionByAgentIdsError> for Error
impl From<StartDataCollectionByAgentIdsError> for Error
source§fn from(err: StartDataCollectionByAgentIdsError) -> Self
fn from(err: StartDataCollectionByAgentIdsError) -> Self
source§impl From<StartExportTaskError> for Error
impl From<StartExportTaskError> for Error
source§fn from(err: StartExportTaskError) -> Self
fn from(err: StartExportTaskError) -> Self
source§impl From<StartImportTaskError> for Error
impl From<StartImportTaskError> for Error
source§fn from(err: StartImportTaskError) -> Self
fn from(err: StartImportTaskError) -> Self
source§impl From<StopContinuousExportError> for Error
impl From<StopContinuousExportError> for Error
source§fn from(err: StopContinuousExportError) -> Self
fn from(err: StopContinuousExportError) -> Self
source§impl From<StopDataCollectionByAgentIdsError> for Error
impl From<StopDataCollectionByAgentIdsError> for Error
source§fn from(err: StopDataCollectionByAgentIdsError) -> Self
fn from(err: StopDataCollectionByAgentIdsError) -> Self
source§impl From<UpdateApplicationError> for Error
impl From<UpdateApplicationError> for Error
source§fn from(err: UpdateApplicationError) -> Self
fn from(err: UpdateApplicationError) -> 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