Enum aws_sdk_devopsguru::Error
source · #[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
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 don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
ConflictException(ConflictException)
An exception that is thrown when a conflict occurs.
InternalServerException(InternalServerException)
An internal failure in an Amazon service occurred.
ResourceNotFoundException(ResourceNotFoundException)
A requested resource could not be found
ServiceQuotaExceededException(ServiceQuotaExceededException)
The request contains a value that exceeds a maximum quota.
ThrottlingException(ThrottlingException)
The request was denied due to a request throttling.
ValidationException(ValidationException)
Contains information about data passed in to a field during a request that is not valid.
Unhandled(Unhandled)
👎Deprecated: Matching
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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<AddNotificationChannelError> for Error
impl From<AddNotificationChannelError> for Error
source§fn from(err: AddNotificationChannelError) -> Self
fn from(err: AddNotificationChannelError) -> Self
Converts to this type from the input type.
source§impl From<BuildError> for Error
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl From<DeleteInsightError> for Error
impl From<DeleteInsightError> for Error
source§fn from(err: DeleteInsightError) -> Self
fn from(err: DeleteInsightError) -> Self
Converts to this type from the input type.
source§impl From<DescribeAccountHealthError> for Error
impl From<DescribeAccountHealthError> for Error
source§fn from(err: DescribeAccountHealthError) -> Self
fn from(err: DescribeAccountHealthError) -> Self
Converts to this type from the input type.
source§impl From<DescribeAccountOverviewError> for Error
impl From<DescribeAccountOverviewError> for Error
source§fn from(err: DescribeAccountOverviewError) -> Self
fn from(err: DescribeAccountOverviewError) -> Self
Converts to this type from the input type.
source§impl From<DescribeAnomalyError> for Error
impl From<DescribeAnomalyError> for Error
source§fn from(err: DescribeAnomalyError) -> Self
fn from(err: DescribeAnomalyError) -> Self
Converts to this type from the input type.
source§impl From<DescribeEventSourcesConfigError> for Error
impl From<DescribeEventSourcesConfigError> for Error
source§fn from(err: DescribeEventSourcesConfigError) -> Self
fn from(err: DescribeEventSourcesConfigError) -> Self
Converts to this type from the input type.
source§impl From<DescribeFeedbackError> for Error
impl From<DescribeFeedbackError> for Error
source§fn from(err: DescribeFeedbackError) -> Self
fn from(err: DescribeFeedbackError) -> Self
Converts to this type from the input type.
source§impl From<DescribeInsightError> for Error
impl From<DescribeInsightError> for Error
source§fn from(err: DescribeInsightError) -> Self
fn from(err: DescribeInsightError) -> Self
Converts to this type from the input type.
source§impl From<DescribeOrganizationHealthError> for Error
impl From<DescribeOrganizationHealthError> for Error
source§fn from(err: DescribeOrganizationHealthError) -> Self
fn from(err: DescribeOrganizationHealthError) -> Self
Converts to this type from the input type.
source§impl From<DescribeOrganizationOverviewError> for Error
impl From<DescribeOrganizationOverviewError> for Error
source§fn from(err: DescribeOrganizationOverviewError) -> Self
fn from(err: DescribeOrganizationOverviewError) -> Self
Converts to this type from the input type.
source§impl From<DescribeOrganizationResourceCollectionHealthError> for Error
impl From<DescribeOrganizationResourceCollectionHealthError> for Error
source§fn from(err: DescribeOrganizationResourceCollectionHealthError) -> Self
fn from(err: DescribeOrganizationResourceCollectionHealthError) -> Self
Converts to this type from the input type.
source§impl From<DescribeResourceCollectionHealthError> for Error
impl From<DescribeResourceCollectionHealthError> for Error
source§fn from(err: DescribeResourceCollectionHealthError) -> Self
fn from(err: DescribeResourceCollectionHealthError) -> Self
Converts to this type from the input type.
source§impl From<DescribeServiceIntegrationError> for Error
impl From<DescribeServiceIntegrationError> for Error
source§fn from(err: DescribeServiceIntegrationError) -> Self
fn from(err: DescribeServiceIntegrationError) -> Self
Converts to this type from the input type.
source§impl From<GetCostEstimationError> for Error
impl From<GetCostEstimationError> for Error
source§fn from(err: GetCostEstimationError) -> Self
fn from(err: GetCostEstimationError) -> Self
Converts to this type from the input type.
source§impl From<GetResourceCollectionError> for Error
impl From<GetResourceCollectionError> for Error
source§fn from(err: GetResourceCollectionError) -> Self
fn from(err: GetResourceCollectionError) -> Self
Converts to this type from the input type.
source§impl From<ListAnomaliesForInsightError> for Error
impl From<ListAnomaliesForInsightError> for Error
source§fn from(err: ListAnomaliesForInsightError) -> Self
fn from(err: ListAnomaliesForInsightError) -> Self
Converts to this type from the input type.
source§impl From<ListAnomalousLogGroupsError> for Error
impl From<ListAnomalousLogGroupsError> for Error
source§fn from(err: ListAnomalousLogGroupsError) -> Self
fn from(err: ListAnomalousLogGroupsError) -> Self
Converts to this type from the input type.
source§impl From<ListEventsError> for Error
impl From<ListEventsError> for Error
source§fn from(err: ListEventsError) -> Self
fn from(err: ListEventsError) -> Self
Converts to this type from the input type.
source§impl From<ListInsightsError> for Error
impl From<ListInsightsError> for Error
source§fn from(err: ListInsightsError) -> Self
fn from(err: ListInsightsError) -> Self
Converts to this type from the input type.
source§impl From<ListMonitoredResourcesError> for Error
impl From<ListMonitoredResourcesError> for Error
source§fn from(err: ListMonitoredResourcesError) -> Self
fn from(err: ListMonitoredResourcesError) -> Self
Converts to this type from the input type.
source§impl From<ListNotificationChannelsError> for Error
impl From<ListNotificationChannelsError> for Error
source§fn from(err: ListNotificationChannelsError) -> Self
fn from(err: ListNotificationChannelsError) -> Self
Converts to this type from the input type.
source§impl From<ListOrganizationInsightsError> for Error
impl From<ListOrganizationInsightsError> for Error
source§fn from(err: ListOrganizationInsightsError) -> Self
fn from(err: ListOrganizationInsightsError) -> Self
Converts to this type from the input type.
source§impl From<ListRecommendationsError> for Error
impl From<ListRecommendationsError> for Error
source§fn from(err: ListRecommendationsError) -> Self
fn from(err: ListRecommendationsError) -> Self
Converts to this type from the input type.
source§impl From<PutFeedbackError> for Error
impl From<PutFeedbackError> for Error
source§fn from(err: PutFeedbackError) -> Self
fn from(err: PutFeedbackError) -> Self
Converts to this type from the input type.
source§impl From<RemoveNotificationChannelError> for Error
impl From<RemoveNotificationChannelError> for Error
source§fn from(err: RemoveNotificationChannelError) -> Self
fn from(err: RemoveNotificationChannelError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<AddNotificationChannelError, R>> for Error
impl<R> From<SdkError<AddNotificationChannelError, R>> for Error
source§fn from(err: SdkError<AddNotificationChannelError, R>) -> Self
fn from(err: SdkError<AddNotificationChannelError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteInsightError, R>> for Error
impl<R> From<SdkError<DeleteInsightError, R>> for Error
source§fn from(err: SdkError<DeleteInsightError, R>) -> Self
fn from(err: SdkError<DeleteInsightError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeAccountHealthError, R>> for Error
impl<R> From<SdkError<DescribeAccountHealthError, R>> for Error
source§fn from(err: SdkError<DescribeAccountHealthError, R>) -> Self
fn from(err: SdkError<DescribeAccountHealthError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeAccountOverviewError, R>> for Error
impl<R> From<SdkError<DescribeAccountOverviewError, R>> for Error
source§fn from(err: SdkError<DescribeAccountOverviewError, R>) -> Self
fn from(err: SdkError<DescribeAccountOverviewError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeAnomalyError, R>> for Error
impl<R> From<SdkError<DescribeAnomalyError, R>> for Error
source§fn from(err: SdkError<DescribeAnomalyError, R>) -> Self
fn from(err: SdkError<DescribeAnomalyError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeEventSourcesConfigError, R>> for Error
impl<R> From<SdkError<DescribeEventSourcesConfigError, R>> for Error
source§fn from(err: SdkError<DescribeEventSourcesConfigError, R>) -> Self
fn from(err: SdkError<DescribeEventSourcesConfigError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeFeedbackError, R>> for Error
impl<R> From<SdkError<DescribeFeedbackError, R>> for Error
source§fn from(err: SdkError<DescribeFeedbackError, R>) -> Self
fn from(err: SdkError<DescribeFeedbackError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeInsightError, R>> for Error
impl<R> From<SdkError<DescribeInsightError, R>> for Error
source§fn from(err: SdkError<DescribeInsightError, R>) -> Self
fn from(err: SdkError<DescribeInsightError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeOrganizationHealthError, R>> for Error
impl<R> From<SdkError<DescribeOrganizationHealthError, R>> for Error
source§fn from(err: SdkError<DescribeOrganizationHealthError, R>) -> Self
fn from(err: SdkError<DescribeOrganizationHealthError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeOrganizationOverviewError, R>> for Error
impl<R> From<SdkError<DescribeOrganizationOverviewError, R>> for Error
source§fn from(err: SdkError<DescribeOrganizationOverviewError, R>) -> Self
fn from(err: SdkError<DescribeOrganizationOverviewError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeOrganizationResourceCollectionHealthError, R>> for Error
impl<R> From<SdkError<DescribeOrganizationResourceCollectionHealthError, R>> for Error
source§fn from(
err: SdkError<DescribeOrganizationResourceCollectionHealthError, R>
) -> Self
fn from( err: SdkError<DescribeOrganizationResourceCollectionHealthError, R> ) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeResourceCollectionHealthError, R>> for Error
impl<R> From<SdkError<DescribeResourceCollectionHealthError, R>> for Error
source§fn from(err: SdkError<DescribeResourceCollectionHealthError, R>) -> Self
fn from(err: SdkError<DescribeResourceCollectionHealthError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeServiceIntegrationError, R>> for Error
impl<R> From<SdkError<DescribeServiceIntegrationError, R>> for Error
source§fn from(err: SdkError<DescribeServiceIntegrationError, R>) -> Self
fn from(err: SdkError<DescribeServiceIntegrationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetCostEstimationError, R>> for Error
impl<R> From<SdkError<GetCostEstimationError, R>> for Error
source§fn from(err: SdkError<GetCostEstimationError, R>) -> Self
fn from(err: SdkError<GetCostEstimationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<GetResourceCollectionError, R>> for Error
impl<R> From<SdkError<GetResourceCollectionError, R>> for Error
source§fn from(err: SdkError<GetResourceCollectionError, R>) -> Self
fn from(err: SdkError<GetResourceCollectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListAnomaliesForInsightError, R>> for Error
impl<R> From<SdkError<ListAnomaliesForInsightError, R>> for Error
source§fn from(err: SdkError<ListAnomaliesForInsightError, R>) -> Self
fn from(err: SdkError<ListAnomaliesForInsightError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListAnomalousLogGroupsError, R>> for Error
impl<R> From<SdkError<ListAnomalousLogGroupsError, R>> for Error
source§fn from(err: SdkError<ListAnomalousLogGroupsError, R>) -> Self
fn from(err: SdkError<ListAnomalousLogGroupsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListEventsError, R>> for Error
impl<R> From<SdkError<ListEventsError, R>> for Error
source§fn from(err: SdkError<ListEventsError, R>) -> Self
fn from(err: SdkError<ListEventsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListInsightsError, R>> for Error
impl<R> From<SdkError<ListInsightsError, R>> for Error
source§fn from(err: SdkError<ListInsightsError, R>) -> Self
fn from(err: SdkError<ListInsightsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListMonitoredResourcesError, R>> for Error
impl<R> From<SdkError<ListMonitoredResourcesError, R>> for Error
source§fn from(err: SdkError<ListMonitoredResourcesError, R>) -> Self
fn from(err: SdkError<ListMonitoredResourcesError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListNotificationChannelsError, R>> for Error
impl<R> From<SdkError<ListNotificationChannelsError, R>> for Error
source§fn from(err: SdkError<ListNotificationChannelsError, R>) -> Self
fn from(err: SdkError<ListNotificationChannelsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListOrganizationInsightsError, R>> for Error
impl<R> From<SdkError<ListOrganizationInsightsError, R>> for Error
source§fn from(err: SdkError<ListOrganizationInsightsError, R>) -> Self
fn from(err: SdkError<ListOrganizationInsightsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListRecommendationsError, R>> for Error
impl<R> From<SdkError<ListRecommendationsError, R>> for Error
source§fn from(err: SdkError<ListRecommendationsError, R>) -> Self
fn from(err: SdkError<ListRecommendationsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<PutFeedbackError, R>> for Error
impl<R> From<SdkError<PutFeedbackError, R>> for Error
source§fn from(err: SdkError<PutFeedbackError, R>) -> Self
fn from(err: SdkError<PutFeedbackError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<RemoveNotificationChannelError, R>> for Error
impl<R> From<SdkError<RemoveNotificationChannelError, R>> for Error
source§fn from(err: SdkError<RemoveNotificationChannelError, R>) -> Self
fn from(err: SdkError<RemoveNotificationChannelError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<SearchInsightsError, R>> for Error
impl<R> From<SdkError<SearchInsightsError, R>> for Error
source§fn from(err: SdkError<SearchInsightsError, R>) -> Self
fn from(err: SdkError<SearchInsightsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<SearchOrganizationInsightsError, R>> for Error
impl<R> From<SdkError<SearchOrganizationInsightsError, R>> for Error
source§fn from(err: SdkError<SearchOrganizationInsightsError, R>) -> Self
fn from(err: SdkError<SearchOrganizationInsightsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<StartCostEstimationError, R>> for Error
impl<R> From<SdkError<StartCostEstimationError, R>> for Error
source§fn from(err: SdkError<StartCostEstimationError, R>) -> Self
fn from(err: SdkError<StartCostEstimationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateEventSourcesConfigError, R>> for Error
impl<R> From<SdkError<UpdateEventSourcesConfigError, R>> for Error
source§fn from(err: SdkError<UpdateEventSourcesConfigError, R>) -> Self
fn from(err: SdkError<UpdateEventSourcesConfigError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateResourceCollectionError, R>> for Error
impl<R> From<SdkError<UpdateResourceCollectionError, R>> for Error
source§fn from(err: SdkError<UpdateResourceCollectionError, R>) -> Self
fn from(err: SdkError<UpdateResourceCollectionError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateServiceIntegrationError, R>> for Error
impl<R> From<SdkError<UpdateServiceIntegrationError, R>> for Error
source§fn from(err: SdkError<UpdateServiceIntegrationError, R>) -> Self
fn from(err: SdkError<UpdateServiceIntegrationError, R>) -> Self
Converts to this type from the input type.
source§impl From<SearchInsightsError> for Error
impl From<SearchInsightsError> for Error
source§fn from(err: SearchInsightsError) -> Self
fn from(err: SearchInsightsError) -> Self
Converts to this type from the input type.
source§impl From<SearchOrganizationInsightsError> for Error
impl From<SearchOrganizationInsightsError> for Error
source§fn from(err: SearchOrganizationInsightsError) -> Self
fn from(err: SearchOrganizationInsightsError) -> Self
Converts to this type from the input type.
source§impl From<StartCostEstimationError> for Error
impl From<StartCostEstimationError> for Error
source§fn from(err: StartCostEstimationError) -> Self
fn from(err: StartCostEstimationError) -> Self
Converts to this type from the input type.
source§impl From<UpdateEventSourcesConfigError> for Error
impl From<UpdateEventSourcesConfigError> for Error
source§fn from(err: UpdateEventSourcesConfigError) -> Self
fn from(err: UpdateEventSourcesConfigError) -> Self
Converts to this type from the input type.
source§impl From<UpdateResourceCollectionError> for Error
impl From<UpdateResourceCollectionError> for Error
source§fn from(err: UpdateResourceCollectionError) -> Self
fn from(err: UpdateResourceCollectionError) -> Self
Converts to this type from the input type.
source§impl From<UpdateServiceIntegrationError> for Error
impl From<UpdateServiceIntegrationError> for Error
source§fn from(err: UpdateServiceIntegrationError) -> Self
fn from(err: UpdateServiceIntegrationError) -> Self
Converts to this type from the input type.
source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Returns error metadata, which includes the error code, message,
request ID, and potentially additional information.
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.