Enum aws_sdk_servicequotas::Error
source · #[non_exhaustive]pub enum Error {
Show 18 variants
AwsServiceAccessNotEnabledException(AwsServiceAccessNotEnabledException),
AccessDeniedException(AccessDeniedException),
DependencyAccessDeniedException(DependencyAccessDeniedException),
IllegalArgumentException(IllegalArgumentException),
InvalidPaginationTokenException(InvalidPaginationTokenException),
InvalidResourceStateException(InvalidResourceStateException),
NoAvailableOrganizationException(NoAvailableOrganizationException),
NoSuchResourceException(NoSuchResourceException),
OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException),
QuotaExceededException(QuotaExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ServiceException(ServiceException),
ServiceQuotaTemplateNotInUseException(ServiceQuotaTemplateNotInUseException),
TagPolicyViolationException(TagPolicyViolationException),
TemplatesNotAvailableInRegionException(TemplatesNotAvailableInRegionException),
TooManyRequestsException(TooManyRequestsException),
TooManyTagsException(TooManyTagsException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AwsServiceAccessNotEnabledException(AwsServiceAccessNotEnabledException)
The action you attempted is not allowed unless Service Access with Service Quotas is enabled in your organization.
AccessDeniedException(AccessDeniedException)
You do not have sufficient permission to perform this action.
DependencyAccessDeniedException(DependencyAccessDeniedException)
You can't perform this action because a dependency does not have access.
IllegalArgumentException(IllegalArgumentException)
Invalid input was provided.
InvalidPaginationTokenException(InvalidPaginationTokenException)
Invalid input was provided.
InvalidResourceStateException(InvalidResourceStateException)
The resource is in an invalid state.
NoAvailableOrganizationException(NoAvailableOrganizationException)
The Amazon Web Services account making this call is not a member of an organization.
NoSuchResourceException(NoSuchResourceException)
The specified resource does not exist.
OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException)
The organization that your Amazon Web Services account belongs to is not in All Features mode.
QuotaExceededException(QuotaExceededException)
You have exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use Service Quotas to request a service quota increase.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
The specified resource already exists.
ServiceException(ServiceException)
Something went wrong.
ServiceQuotaTemplateNotInUseException(ServiceQuotaTemplateNotInUseException)
The quota request template is not associated with your organization.
TagPolicyViolationException(TagPolicyViolationException)
The specified tag is a reserved word and cannot be used.
TemplatesNotAvailableInRegionException(TemplatesNotAvailableInRegionException)
The Service Quotas template is not available in this Amazon Web Services Region.
TooManyRequestsException(TooManyRequestsException)
Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.
TooManyTagsException(TooManyTagsException)
You've exceeded the number of tags allowed for a resource. For more information, see Tag restrictions in the Service Quotas User Guide.
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<AssociateServiceQuotaTemplateError> for Error
impl From<AssociateServiceQuotaTemplateError> for Error
source§fn from(err: AssociateServiceQuotaTemplateError) -> Self
fn from(err: AssociateServiceQuotaTemplateError) -> 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<DeleteServiceQuotaIncreaseRequestFromTemplateError> for Error
impl From<DeleteServiceQuotaIncreaseRequestFromTemplateError> for Error
source§fn from(err: DeleteServiceQuotaIncreaseRequestFromTemplateError) -> Self
fn from(err: DeleteServiceQuotaIncreaseRequestFromTemplateError) -> Self
source§impl From<DisassociateServiceQuotaTemplateError> for Error
impl From<DisassociateServiceQuotaTemplateError> for Error
source§fn from(err: DisassociateServiceQuotaTemplateError) -> Self
fn from(err: DisassociateServiceQuotaTemplateError) -> Self
source§impl From<GetAWSDefaultServiceQuotaError> for Error
impl From<GetAWSDefaultServiceQuotaError> for Error
source§fn from(err: GetAWSDefaultServiceQuotaError) -> Self
fn from(err: GetAWSDefaultServiceQuotaError) -> Self
source§impl From<GetAssociationForServiceQuotaTemplateError> for Error
impl From<GetAssociationForServiceQuotaTemplateError> for Error
source§fn from(err: GetAssociationForServiceQuotaTemplateError) -> Self
fn from(err: GetAssociationForServiceQuotaTemplateError) -> Self
source§impl From<GetRequestedServiceQuotaChangeError> for Error
impl From<GetRequestedServiceQuotaChangeError> for Error
source§fn from(err: GetRequestedServiceQuotaChangeError) -> Self
fn from(err: GetRequestedServiceQuotaChangeError) -> Self
source§impl From<GetServiceQuotaError> for Error
impl From<GetServiceQuotaError> for Error
source§fn from(err: GetServiceQuotaError) -> Self
fn from(err: GetServiceQuotaError) -> Self
source§impl From<GetServiceQuotaIncreaseRequestFromTemplateError> for Error
impl From<GetServiceQuotaIncreaseRequestFromTemplateError> for Error
source§fn from(err: GetServiceQuotaIncreaseRequestFromTemplateError) -> Self
fn from(err: GetServiceQuotaIncreaseRequestFromTemplateError) -> Self
source§impl From<ListAWSDefaultServiceQuotasError> for Error
impl From<ListAWSDefaultServiceQuotasError> for Error
source§fn from(err: ListAWSDefaultServiceQuotasError) -> Self
fn from(err: ListAWSDefaultServiceQuotasError) -> Self
source§impl From<ListRequestedServiceQuotaChangeHistoryByQuotaError> for Error
impl From<ListRequestedServiceQuotaChangeHistoryByQuotaError> for Error
source§fn from(err: ListRequestedServiceQuotaChangeHistoryByQuotaError) -> Self
fn from(err: ListRequestedServiceQuotaChangeHistoryByQuotaError) -> Self
source§impl From<ListRequestedServiceQuotaChangeHistoryError> for Error
impl From<ListRequestedServiceQuotaChangeHistoryError> for Error
source§fn from(err: ListRequestedServiceQuotaChangeHistoryError) -> Self
fn from(err: ListRequestedServiceQuotaChangeHistoryError) -> Self
source§impl From<ListServiceQuotaIncreaseRequestsInTemplateError> for Error
impl From<ListServiceQuotaIncreaseRequestsInTemplateError> for Error
source§fn from(err: ListServiceQuotaIncreaseRequestsInTemplateError) -> Self
fn from(err: ListServiceQuotaIncreaseRequestsInTemplateError) -> Self
source§impl From<ListServiceQuotasError> for Error
impl From<ListServiceQuotasError> for Error
source§fn from(err: ListServiceQuotasError) -> Self
fn from(err: ListServiceQuotasError) -> Self
source§impl From<ListServicesError> for Error
impl From<ListServicesError> for Error
source§fn from(err: ListServicesError) -> Self
fn from(err: ListServicesError) -> 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<PutServiceQuotaIncreaseRequestIntoTemplateError> for Error
impl From<PutServiceQuotaIncreaseRequestIntoTemplateError> for Error
source§fn from(err: PutServiceQuotaIncreaseRequestIntoTemplateError) -> Self
fn from(err: PutServiceQuotaIncreaseRequestIntoTemplateError) -> Self
source§impl From<RequestServiceQuotaIncreaseError> for Error
impl From<RequestServiceQuotaIncreaseError> for Error
source§fn from(err: RequestServiceQuotaIncreaseError) -> Self
fn from(err: RequestServiceQuotaIncreaseError) -> Self
source§impl<R> From<SdkError<AssociateServiceQuotaTemplateError, R>> for Error
impl<R> From<SdkError<AssociateServiceQuotaTemplateError, R>> for Error
source§fn from(err: SdkError<AssociateServiceQuotaTemplateError, R>) -> Self
fn from(err: SdkError<AssociateServiceQuotaTemplateError, R>) -> Self
source§impl<R> From<SdkError<DeleteServiceQuotaIncreaseRequestFromTemplateError, R>> for Error
impl<R> From<SdkError<DeleteServiceQuotaIncreaseRequestFromTemplateError, R>> for Error
source§fn from(
err: SdkError<DeleteServiceQuotaIncreaseRequestFromTemplateError, R>
) -> Self
fn from( err: SdkError<DeleteServiceQuotaIncreaseRequestFromTemplateError, R> ) -> Self
source§impl<R> From<SdkError<DisassociateServiceQuotaTemplateError, R>> for Error
impl<R> From<SdkError<DisassociateServiceQuotaTemplateError, R>> for Error
source§fn from(err: SdkError<DisassociateServiceQuotaTemplateError, R>) -> Self
fn from(err: SdkError<DisassociateServiceQuotaTemplateError, R>) -> Self
source§impl<R> From<SdkError<GetAWSDefaultServiceQuotaError, R>> for Error
impl<R> From<SdkError<GetAWSDefaultServiceQuotaError, R>> for Error
source§fn from(err: SdkError<GetAWSDefaultServiceQuotaError, R>) -> Self
fn from(err: SdkError<GetAWSDefaultServiceQuotaError, R>) -> Self
source§impl<R> From<SdkError<GetAssociationForServiceQuotaTemplateError, R>> for Error
impl<R> From<SdkError<GetAssociationForServiceQuotaTemplateError, R>> for Error
source§fn from(err: SdkError<GetAssociationForServiceQuotaTemplateError, R>) -> Self
fn from(err: SdkError<GetAssociationForServiceQuotaTemplateError, R>) -> Self
source§impl<R> From<SdkError<GetRequestedServiceQuotaChangeError, R>> for Error
impl<R> From<SdkError<GetRequestedServiceQuotaChangeError, R>> for Error
source§fn from(err: SdkError<GetRequestedServiceQuotaChangeError, R>) -> Self
fn from(err: SdkError<GetRequestedServiceQuotaChangeError, R>) -> Self
source§impl<R> From<SdkError<GetServiceQuotaError, R>> for Error
impl<R> From<SdkError<GetServiceQuotaError, R>> for Error
source§fn from(err: SdkError<GetServiceQuotaError, R>) -> Self
fn from(err: SdkError<GetServiceQuotaError, R>) -> Self
source§impl<R> From<SdkError<GetServiceQuotaIncreaseRequestFromTemplateError, R>> for Error
impl<R> From<SdkError<GetServiceQuotaIncreaseRequestFromTemplateError, R>> for Error
source§fn from(
err: SdkError<GetServiceQuotaIncreaseRequestFromTemplateError, R>
) -> Self
fn from( err: SdkError<GetServiceQuotaIncreaseRequestFromTemplateError, R> ) -> Self
source§impl<R> From<SdkError<ListAWSDefaultServiceQuotasError, R>> for Error
impl<R> From<SdkError<ListAWSDefaultServiceQuotasError, R>> for Error
source§fn from(err: SdkError<ListAWSDefaultServiceQuotasError, R>) -> Self
fn from(err: SdkError<ListAWSDefaultServiceQuotasError, R>) -> Self
source§impl<R> From<SdkError<ListRequestedServiceQuotaChangeHistoryByQuotaError, R>> for Error
impl<R> From<SdkError<ListRequestedServiceQuotaChangeHistoryByQuotaError, R>> for Error
source§fn from(
err: SdkError<ListRequestedServiceQuotaChangeHistoryByQuotaError, R>
) -> Self
fn from( err: SdkError<ListRequestedServiceQuotaChangeHistoryByQuotaError, R> ) -> Self
source§impl<R> From<SdkError<ListRequestedServiceQuotaChangeHistoryError, R>> for Error
impl<R> From<SdkError<ListRequestedServiceQuotaChangeHistoryError, R>> for Error
source§fn from(err: SdkError<ListRequestedServiceQuotaChangeHistoryError, R>) -> Self
fn from(err: SdkError<ListRequestedServiceQuotaChangeHistoryError, R>) -> Self
source§impl<R> From<SdkError<ListServiceQuotaIncreaseRequestsInTemplateError, R>> for Error
impl<R> From<SdkError<ListServiceQuotaIncreaseRequestsInTemplateError, R>> for Error
source§fn from(
err: SdkError<ListServiceQuotaIncreaseRequestsInTemplateError, R>
) -> Self
fn from( err: SdkError<ListServiceQuotaIncreaseRequestsInTemplateError, R> ) -> Self
source§impl<R> From<SdkError<ListServiceQuotasError, R>> for Error
impl<R> From<SdkError<ListServiceQuotasError, R>> for Error
source§fn from(err: SdkError<ListServiceQuotasError, R>) -> Self
fn from(err: SdkError<ListServiceQuotasError, R>) -> Self
source§impl<R> From<SdkError<ListServicesError, R>> for Error
impl<R> From<SdkError<ListServicesError, R>> for Error
source§fn from(err: SdkError<ListServicesError, R>) -> Self
fn from(err: SdkError<ListServicesError, 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<PutServiceQuotaIncreaseRequestIntoTemplateError, R>> for Error
impl<R> From<SdkError<PutServiceQuotaIncreaseRequestIntoTemplateError, R>> for Error
source§fn from(
err: SdkError<PutServiceQuotaIncreaseRequestIntoTemplateError, R>
) -> Self
fn from( err: SdkError<PutServiceQuotaIncreaseRequestIntoTemplateError, R> ) -> Self
source§impl<R> From<SdkError<RequestServiceQuotaIncreaseError, R>> for Error
impl<R> From<SdkError<RequestServiceQuotaIncreaseError, R>> for Error
source§fn from(err: SdkError<RequestServiceQuotaIncreaseError, R>) -> Self
fn from(err: SdkError<RequestServiceQuotaIncreaseError, 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