#[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
BadRequestException(BadRequestException),
InternalServerException(InternalServerException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
TagsAlreadyExistException(TagsAlreadyExistException),
TooManyTagsException(TooManyTagsException),
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)
User does not have permissions to perform this action.
BadRequestException(BadRequestException)
The request is not understood by the server.
InternalServerException(InternalServerException)
The server encountered an internal error and is unable to complete the request.
ResourceInUseException(ResourceInUseException)
The resource is already created or in use.
ResourceNotFoundException(ResourceNotFoundException)
The resource does not exist in the customer account.
TagsAlreadyExistException(TagsAlreadyExistException)
Tags are already registered for the specified application ARN.
TooManyTagsException(TooManyTagsException)
The number of the provided tags is beyond the limit, or the number of total tags you are trying to attach to the specified resource exceeds the limit.
ValidationException(ValidationException)
The parameter 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<AddWorkloadError> for Error
impl From<AddWorkloadError> for Error
source§fn from(err: AddWorkloadError) -> Self
fn from(err: AddWorkloadError) -> 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<CreateApplicationError> for Error
impl From<CreateApplicationError> for Error
source§fn from(err: CreateApplicationError) -> Self
fn from(err: CreateApplicationError) -> Self
Converts to this type from the input type.
source§impl From<CreateComponentError> for Error
impl From<CreateComponentError> for Error
source§fn from(err: CreateComponentError) -> Self
fn from(err: CreateComponentError) -> Self
Converts to this type from the input type.
source§impl From<CreateLogPatternError> for Error
impl From<CreateLogPatternError> for Error
source§fn from(err: CreateLogPatternError) -> Self
fn from(err: CreateLogPatternError) -> Self
Converts to this type from the input type.
source§impl From<DeleteApplicationError> for Error
impl From<DeleteApplicationError> for Error
source§fn from(err: DeleteApplicationError) -> Self
fn from(err: DeleteApplicationError) -> Self
Converts to this type from the input type.
source§impl From<DeleteComponentError> for Error
impl From<DeleteComponentError> for Error
source§fn from(err: DeleteComponentError) -> Self
fn from(err: DeleteComponentError) -> Self
Converts to this type from the input type.
source§impl From<DeleteLogPatternError> for Error
impl From<DeleteLogPatternError> for Error
source§fn from(err: DeleteLogPatternError) -> Self
fn from(err: DeleteLogPatternError) -> Self
Converts to this type from the input type.
source§impl From<DescribeApplicationError> for Error
impl From<DescribeApplicationError> for Error
source§fn from(err: DescribeApplicationError) -> Self
fn from(err: DescribeApplicationError) -> Self
Converts to this type from the input type.
source§impl From<DescribeComponentConfigurationError> for Error
impl From<DescribeComponentConfigurationError> for Error
source§fn from(err: DescribeComponentConfigurationError) -> Self
fn from(err: DescribeComponentConfigurationError) -> Self
Converts to this type from the input type.
source§impl From<DescribeComponentConfigurationRecommendationError> for Error
impl From<DescribeComponentConfigurationRecommendationError> for Error
source§fn from(err: DescribeComponentConfigurationRecommendationError) -> Self
fn from(err: DescribeComponentConfigurationRecommendationError) -> Self
Converts to this type from the input type.
source§impl From<DescribeComponentError> for Error
impl From<DescribeComponentError> for Error
source§fn from(err: DescribeComponentError) -> Self
fn from(err: DescribeComponentError) -> Self
Converts to this type from the input type.
source§impl From<DescribeLogPatternError> for Error
impl From<DescribeLogPatternError> for Error
source§fn from(err: DescribeLogPatternError) -> Self
fn from(err: DescribeLogPatternError) -> Self
Converts to this type from the input type.
source§impl From<DescribeObservationError> for Error
impl From<DescribeObservationError> for Error
source§fn from(err: DescribeObservationError) -> Self
fn from(err: DescribeObservationError) -> Self
Converts to this type from the input type.
source§impl From<DescribeProblemError> for Error
impl From<DescribeProblemError> for Error
source§fn from(err: DescribeProblemError) -> Self
fn from(err: DescribeProblemError) -> Self
Converts to this type from the input type.
source§impl From<DescribeProblemObservationsError> for Error
impl From<DescribeProblemObservationsError> for Error
source§fn from(err: DescribeProblemObservationsError) -> Self
fn from(err: DescribeProblemObservationsError) -> Self
Converts to this type from the input type.
source§impl From<DescribeWorkloadError> for Error
impl From<DescribeWorkloadError> for Error
source§fn from(err: DescribeWorkloadError) -> Self
fn from(err: DescribeWorkloadError) -> Self
Converts to this type from the input type.
source§impl From<ListApplicationsError> for Error
impl From<ListApplicationsError> for Error
source§fn from(err: ListApplicationsError) -> Self
fn from(err: ListApplicationsError) -> Self
Converts to this type from the input type.
source§impl From<ListComponentsError> for Error
impl From<ListComponentsError> for Error
source§fn from(err: ListComponentsError) -> Self
fn from(err: ListComponentsError) -> Self
Converts to this type from the input type.
source§impl From<ListConfigurationHistoryError> for Error
impl From<ListConfigurationHistoryError> for Error
source§fn from(err: ListConfigurationHistoryError) -> Self
fn from(err: ListConfigurationHistoryError) -> Self
Converts to this type from the input type.
source§impl From<ListLogPatternSetsError> for Error
impl From<ListLogPatternSetsError> for Error
source§fn from(err: ListLogPatternSetsError) -> Self
fn from(err: ListLogPatternSetsError) -> Self
Converts to this type from the input type.
source§impl From<ListLogPatternsError> for Error
impl From<ListLogPatternsError> for Error
source§fn from(err: ListLogPatternsError) -> Self
fn from(err: ListLogPatternsError) -> Self
Converts to this type from the input type.
source§impl From<ListProblemsError> for Error
impl From<ListProblemsError> for Error
source§fn from(err: ListProblemsError) -> Self
fn from(err: ListProblemsError) -> Self
Converts to this type from the input type.
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Converts to this type from the input type.
source§impl From<ListWorkloadsError> for Error
impl From<ListWorkloadsError> for Error
source§fn from(err: ListWorkloadsError) -> Self
fn from(err: ListWorkloadsError) -> Self
Converts to this type from the input type.
source§impl From<RemoveWorkloadError> for Error
impl From<RemoveWorkloadError> for Error
source§fn from(err: RemoveWorkloadError) -> Self
fn from(err: RemoveWorkloadError) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<AddWorkloadError, R>> for Error
impl<R> From<SdkError<AddWorkloadError, R>> for Error
source§fn from(err: SdkError<AddWorkloadError, R>) -> Self
fn from(err: SdkError<AddWorkloadError, R>) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateComponentError, R>> for Error
impl<R> From<SdkError<CreateComponentError, R>> for Error
source§fn from(err: SdkError<CreateComponentError, R>) -> Self
fn from(err: SdkError<CreateComponentError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<CreateLogPatternError, R>> for Error
impl<R> From<SdkError<CreateLogPatternError, R>> for Error
source§fn from(err: SdkError<CreateLogPatternError, R>) -> Self
fn from(err: SdkError<CreateLogPatternError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteApplicationError, R>> for Error
impl<R> From<SdkError<DeleteApplicationError, R>> for Error
source§fn from(err: SdkError<DeleteApplicationError, R>) -> Self
fn from(err: SdkError<DeleteApplicationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteComponentError, R>> for Error
impl<R> From<SdkError<DeleteComponentError, R>> for Error
source§fn from(err: SdkError<DeleteComponentError, R>) -> Self
fn from(err: SdkError<DeleteComponentError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DeleteLogPatternError, R>> for Error
impl<R> From<SdkError<DeleteLogPatternError, R>> for Error
source§fn from(err: SdkError<DeleteLogPatternError, R>) -> Self
fn from(err: SdkError<DeleteLogPatternError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeApplicationError, R>> for Error
impl<R> From<SdkError<DescribeApplicationError, R>> for Error
source§fn from(err: SdkError<DescribeApplicationError, R>) -> Self
fn from(err: SdkError<DescribeApplicationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeComponentConfigurationError, R>> for Error
impl<R> From<SdkError<DescribeComponentConfigurationError, R>> for Error
source§fn from(err: SdkError<DescribeComponentConfigurationError, R>) -> Self
fn from(err: SdkError<DescribeComponentConfigurationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeComponentConfigurationRecommendationError, R>> for Error
impl<R> From<SdkError<DescribeComponentConfigurationRecommendationError, R>> for Error
source§fn from(
err: SdkError<DescribeComponentConfigurationRecommendationError, R>
) -> Self
fn from( err: SdkError<DescribeComponentConfigurationRecommendationError, R> ) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeComponentError, R>> for Error
impl<R> From<SdkError<DescribeComponentError, R>> for Error
source§fn from(err: SdkError<DescribeComponentError, R>) -> Self
fn from(err: SdkError<DescribeComponentError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeLogPatternError, R>> for Error
impl<R> From<SdkError<DescribeLogPatternError, R>> for Error
source§fn from(err: SdkError<DescribeLogPatternError, R>) -> Self
fn from(err: SdkError<DescribeLogPatternError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeObservationError, R>> for Error
impl<R> From<SdkError<DescribeObservationError, R>> for Error
source§fn from(err: SdkError<DescribeObservationError, R>) -> Self
fn from(err: SdkError<DescribeObservationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeProblemError, R>> for Error
impl<R> From<SdkError<DescribeProblemError, R>> for Error
source§fn from(err: SdkError<DescribeProblemError, R>) -> Self
fn from(err: SdkError<DescribeProblemError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeProblemObservationsError, R>> for Error
impl<R> From<SdkError<DescribeProblemObservationsError, R>> for Error
source§fn from(err: SdkError<DescribeProblemObservationsError, R>) -> Self
fn from(err: SdkError<DescribeProblemObservationsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<DescribeWorkloadError, R>> for Error
impl<R> From<SdkError<DescribeWorkloadError, R>> for Error
source§fn from(err: SdkError<DescribeWorkloadError, R>) -> Self
fn from(err: SdkError<DescribeWorkloadError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListApplicationsError, R>> for Error
impl<R> From<SdkError<ListApplicationsError, R>> for Error
source§fn from(err: SdkError<ListApplicationsError, R>) -> Self
fn from(err: SdkError<ListApplicationsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListComponentsError, R>> for Error
impl<R> From<SdkError<ListComponentsError, R>> for Error
source§fn from(err: SdkError<ListComponentsError, R>) -> Self
fn from(err: SdkError<ListComponentsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListConfigurationHistoryError, R>> for Error
impl<R> From<SdkError<ListConfigurationHistoryError, R>> for Error
source§fn from(err: SdkError<ListConfigurationHistoryError, R>) -> Self
fn from(err: SdkError<ListConfigurationHistoryError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListLogPatternSetsError, R>> for Error
impl<R> From<SdkError<ListLogPatternSetsError, R>> for Error
source§fn from(err: SdkError<ListLogPatternSetsError, R>) -> Self
fn from(err: SdkError<ListLogPatternSetsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListLogPatternsError, R>> for Error
impl<R> From<SdkError<ListLogPatternsError, R>> for Error
source§fn from(err: SdkError<ListLogPatternsError, R>) -> Self
fn from(err: SdkError<ListLogPatternsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListProblemsError, R>> for Error
impl<R> From<SdkError<ListProblemsError, R>> for Error
source§fn from(err: SdkError<ListProblemsError, R>) -> Self
fn from(err: SdkError<ListProblemsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<ListWorkloadsError, R>> for Error
impl<R> From<SdkError<ListWorkloadsError, R>> for Error
source§fn from(err: SdkError<ListWorkloadsError, R>) -> Self
fn from(err: SdkError<ListWorkloadsError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<RemoveWorkloadError, R>> for Error
impl<R> From<SdkError<RemoveWorkloadError, R>> for Error
source§fn from(err: SdkError<RemoveWorkloadError, R>) -> Self
fn from(err: SdkError<RemoveWorkloadError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
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
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateComponentConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateComponentConfigurationError, R>> for Error
source§fn from(err: SdkError<UpdateComponentConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateComponentConfigurationError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateComponentError, R>> for Error
impl<R> From<SdkError<UpdateComponentError, R>> for Error
source§fn from(err: SdkError<UpdateComponentError, R>) -> Self
fn from(err: SdkError<UpdateComponentError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateLogPatternError, R>> for Error
impl<R> From<SdkError<UpdateLogPatternError, R>> for Error
source§fn from(err: SdkError<UpdateLogPatternError, R>) -> Self
fn from(err: SdkError<UpdateLogPatternError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateProblemError, R>> for Error
impl<R> From<SdkError<UpdateProblemError, R>> for Error
source§fn from(err: SdkError<UpdateProblemError, R>) -> Self
fn from(err: SdkError<UpdateProblemError, R>) -> Self
Converts to this type from the input type.
source§impl<R> From<SdkError<UpdateWorkloadError, R>> for Error
impl<R> From<SdkError<UpdateWorkloadError, R>> for Error
source§fn from(err: SdkError<UpdateWorkloadError, R>) -> Self
fn from(err: SdkError<UpdateWorkloadError, R>) -> Self
Converts to this type from the input type.
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Converts to this type from the input type.
source§impl From<UpdateApplicationError> for Error
impl From<UpdateApplicationError> for Error
source§fn from(err: UpdateApplicationError) -> Self
fn from(err: UpdateApplicationError) -> Self
Converts to this type from the input type.
source§impl From<UpdateComponentConfigurationError> for Error
impl From<UpdateComponentConfigurationError> for Error
source§fn from(err: UpdateComponentConfigurationError) -> Self
fn from(err: UpdateComponentConfigurationError) -> Self
Converts to this type from the input type.
source§impl From<UpdateComponentError> for Error
impl From<UpdateComponentError> for Error
source§fn from(err: UpdateComponentError) -> Self
fn from(err: UpdateComponentError) -> Self
Converts to this type from the input type.
source§impl From<UpdateLogPatternError> for Error
impl From<UpdateLogPatternError> for Error
source§fn from(err: UpdateLogPatternError) -> Self
fn from(err: UpdateLogPatternError) -> Self
Converts to this type from the input type.
source§impl From<UpdateProblemError> for Error
impl From<UpdateProblemError> for Error
source§fn from(err: UpdateProblemError) -> Self
fn from(err: UpdateProblemError) -> Self
Converts to this type from the input type.
source§impl From<UpdateWorkloadError> for Error
impl From<UpdateWorkloadError> for Error
source§fn from(err: UpdateWorkloadError) -> Self
fn from(err: UpdateWorkloadError) -> 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.