#[non_exhaustive]pub enum Error {
ConcurrentUpdateException(ConcurrentUpdateException),
FailedResourceAccessException(FailedResourceAccessException),
InternalServiceException(InternalServiceException),
InvalidNextTokenException(InvalidNextTokenException),
LimitExceededException(LimitExceededException),
ObjectNotFoundException(ObjectNotFoundException),
ResourceNotFoundException(ResourceNotFoundException),
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
ConcurrentUpdateException(ConcurrentUpdateException)
Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update.
FailedResourceAccessException(FailedResourceAccessException)
Failed access to resources caused an exception. This exception is thrown when Application Auto Scaling is unable to retrieve the alarms associated with a scaling policy due to a client error, for example, if the role ARN specified for a scalable target does not have permission to call the CloudWatch DescribeAlarms on your behalf.
InternalServiceException(InternalServiceException)
The service encountered an internal error.
InvalidNextTokenException(InvalidNextTokenException)
The next token supplied was invalid.
LimitExceededException(LimitExceededException)
A per-account resource limit is exceeded. For more information, see Application Auto Scaling service quotas.
ObjectNotFoundException(ObjectNotFoundException)
The specified object could not be found. For any operation that depends on the existence of a scalable target, this exception is thrown if the scalable target with the specified service namespace, resource ID, and scalable dimension does not exist. For any operation that deletes or deregisters a resource, this exception is thrown if the resource cannot be found.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource doesn't exist.
TooManyTagsException(TooManyTagsException)
The request contains too many tags. Try the request again with fewer tags.
ValidationException(ValidationException)
An exception was thrown for a validation issue. Review the available parameters for the API request.
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<DeleteScalingPolicyError> for Error
impl From<DeleteScalingPolicyError> for Error
source§fn from(err: DeleteScalingPolicyError) -> Self
fn from(err: DeleteScalingPolicyError) -> Self
source§impl From<DeleteScheduledActionError> for Error
impl From<DeleteScheduledActionError> for Error
source§fn from(err: DeleteScheduledActionError) -> Self
fn from(err: DeleteScheduledActionError) -> Self
source§impl From<DeregisterScalableTargetError> for Error
impl From<DeregisterScalableTargetError> for Error
source§fn from(err: DeregisterScalableTargetError) -> Self
fn from(err: DeregisterScalableTargetError) -> Self
source§impl From<DescribeScalableTargetsError> for Error
impl From<DescribeScalableTargetsError> for Error
source§fn from(err: DescribeScalableTargetsError) -> Self
fn from(err: DescribeScalableTargetsError) -> Self
source§impl From<DescribeScalingActivitiesError> for Error
impl From<DescribeScalingActivitiesError> for Error
source§fn from(err: DescribeScalingActivitiesError) -> Self
fn from(err: DescribeScalingActivitiesError) -> Self
source§impl From<DescribeScalingPoliciesError> for Error
impl From<DescribeScalingPoliciesError> for Error
source§fn from(err: DescribeScalingPoliciesError) -> Self
fn from(err: DescribeScalingPoliciesError) -> Self
source§impl From<DescribeScheduledActionsError> for Error
impl From<DescribeScheduledActionsError> for Error
source§fn from(err: DescribeScheduledActionsError) -> Self
fn from(err: DescribeScheduledActionsError) -> Self
source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
source§impl From<PutScalingPolicyError> for Error
impl From<PutScalingPolicyError> for Error
source§fn from(err: PutScalingPolicyError) -> Self
fn from(err: PutScalingPolicyError) -> Self
source§impl From<PutScheduledActionError> for Error
impl From<PutScheduledActionError> for Error
source§fn from(err: PutScheduledActionError) -> Self
fn from(err: PutScheduledActionError) -> Self
source§impl From<RegisterScalableTargetError> for Error
impl From<RegisterScalableTargetError> for Error
source§fn from(err: RegisterScalableTargetError) -> Self
fn from(err: RegisterScalableTargetError) -> Self
source§impl<R> From<SdkError<DeleteScalingPolicyError, R>> for Error
impl<R> From<SdkError<DeleteScalingPolicyError, R>> for Error
source§fn from(err: SdkError<DeleteScalingPolicyError, R>) -> Self
fn from(err: SdkError<DeleteScalingPolicyError, R>) -> Self
source§impl<R> From<SdkError<DeleteScheduledActionError, R>> for Error
impl<R> From<SdkError<DeleteScheduledActionError, R>> for Error
source§fn from(err: SdkError<DeleteScheduledActionError, R>) -> Self
fn from(err: SdkError<DeleteScheduledActionError, R>) -> Self
source§impl<R> From<SdkError<DeregisterScalableTargetError, R>> for Error
impl<R> From<SdkError<DeregisterScalableTargetError, R>> for Error
source§fn from(err: SdkError<DeregisterScalableTargetError, R>) -> Self
fn from(err: SdkError<DeregisterScalableTargetError, R>) -> Self
source§impl<R> From<SdkError<DescribeScalableTargetsError, R>> for Error
impl<R> From<SdkError<DescribeScalableTargetsError, R>> for Error
source§fn from(err: SdkError<DescribeScalableTargetsError, R>) -> Self
fn from(err: SdkError<DescribeScalableTargetsError, R>) -> Self
source§impl<R> From<SdkError<DescribeScalingActivitiesError, R>> for Error
impl<R> From<SdkError<DescribeScalingActivitiesError, R>> for Error
source§fn from(err: SdkError<DescribeScalingActivitiesError, R>) -> Self
fn from(err: SdkError<DescribeScalingActivitiesError, R>) -> Self
source§impl<R> From<SdkError<DescribeScalingPoliciesError, R>> for Error
impl<R> From<SdkError<DescribeScalingPoliciesError, R>> for Error
source§fn from(err: SdkError<DescribeScalingPoliciesError, R>) -> Self
fn from(err: SdkError<DescribeScalingPoliciesError, R>) -> Self
source§impl<R> From<SdkError<DescribeScheduledActionsError, R>> for Error
impl<R> From<SdkError<DescribeScheduledActionsError, R>> for Error
source§fn from(err: SdkError<DescribeScheduledActionsError, R>) -> Self
fn from(err: SdkError<DescribeScheduledActionsError, R>) -> Self
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
source§impl<R> From<SdkError<PutScalingPolicyError, R>> for Error
impl<R> From<SdkError<PutScalingPolicyError, R>> for Error
source§fn from(err: SdkError<PutScalingPolicyError, R>) -> Self
fn from(err: SdkError<PutScalingPolicyError, R>) -> Self
source§impl<R> From<SdkError<PutScheduledActionError, R>> for Error
impl<R> From<SdkError<PutScheduledActionError, R>> for Error
source§fn from(err: SdkError<PutScheduledActionError, R>) -> Self
fn from(err: SdkError<PutScheduledActionError, R>) -> Self
source§impl<R> From<SdkError<RegisterScalableTargetError, R>> for Error
impl<R> From<SdkError<RegisterScalableTargetError, R>> for Error
source§fn from(err: SdkError<RegisterScalableTargetError, R>) -> Self
fn from(err: SdkError<RegisterScalableTargetError, R>) -> Self
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
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
source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> 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