Enum aws_sdk_servicediscovery::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 15 variants
CustomHealthNotFound(CustomHealthNotFound),
DuplicateRequest(DuplicateRequest),
InstanceNotFound(InstanceNotFound),
InvalidInput(InvalidInput),
NamespaceAlreadyExists(NamespaceAlreadyExists),
NamespaceNotFound(NamespaceNotFound),
OperationNotFound(OperationNotFound),
RequestLimitExceeded(RequestLimitExceeded),
ResourceInUse(ResourceInUse),
ResourceLimitExceeded(ResourceLimitExceeded),
ResourceNotFoundException(ResourceNotFoundException),
ServiceAlreadyExists(ServiceAlreadyExists),
ServiceNotFound(ServiceNotFound),
TooManyTagsException(TooManyTagsException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
CustomHealthNotFound(CustomHealthNotFound)
The health check for the instance that's specified by ServiceId
and InstanceId
isn't a custom health check.
DuplicateRequest(DuplicateRequest)
The operation is already in progress.
InstanceNotFound(InstanceNotFound)
No instance exists with the specified ID, or the instance was recently registered, and information about the instance hasn't propagated yet.
InvalidInput(InvalidInput)
One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints.
NamespaceAlreadyExists(NamespaceAlreadyExists)
The namespace that you're trying to create already exists.
NamespaceNotFound(NamespaceNotFound)
No namespace exists with the specified ID.
OperationNotFound(OperationNotFound)
No operation exists with the specified ID.
RequestLimitExceeded(RequestLimitExceeded)
The operation can't be completed because you've reached the quota for the number of requests. For more information, see Cloud Map API request throttling quota in the Cloud Map Developer Guide.
ResourceInUse(ResourceInUse)
The specified resource can't be deleted because it contains other resources. For example, you can't delete a service that contains any instances.
ResourceLimitExceeded(ResourceLimitExceeded)
The resource can't be created because you've reached the quota on the number of resources.
ResourceNotFoundException(ResourceNotFoundException)
The operation can't be completed because the resource was not found.
ServiceAlreadyExists(ServiceAlreadyExists)
The service can't be created because a service with the same name already exists.
ServiceNotFound(ServiceNotFound)
No service exists with the specified ID.
TooManyTagsException(TooManyTagsException)
The list of tags on the resource is over the quota. The maximum number of tags that can be applied to a resource is 50.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<R> From<SdkError<CreateHttpNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateHttpNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateHttpNamespaceError, R>) -> Self
fn from(err: SdkError<CreateHttpNamespaceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreatePrivateDnsNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreatePrivateDnsNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreatePrivateDnsNamespaceError, R>) -> Self
fn from(err: SdkError<CreatePrivateDnsNamespaceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreatePublicDnsNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreatePublicDnsNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreatePublicDnsNamespaceError, R>) -> Self
fn from(err: SdkError<CreatePublicDnsNamespaceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<CreateServiceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<CreateServiceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<CreateServiceError, R>) -> Self
fn from(err: SdkError<CreateServiceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteNamespaceError, R>) -> Self
fn from(err: SdkError<DeleteNamespaceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeleteServiceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeleteServiceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeleteServiceError, R>) -> Self
fn from(err: SdkError<DeleteServiceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DeregisterInstanceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DeregisterInstanceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DeregisterInstanceError, R>) -> Self
fn from(err: SdkError<DeregisterInstanceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<DiscoverInstancesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<DiscoverInstancesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<DiscoverInstancesError, R>) -> Self
fn from(err: SdkError<DiscoverInstancesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetInstanceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetInstanceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetInstanceError, R>) -> Self
fn from(err: SdkError<GetInstanceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetInstancesHealthStatusError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetInstancesHealthStatusError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetInstancesHealthStatusError, R>) -> Self
fn from(err: SdkError<GetInstancesHealthStatusError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetNamespaceError, R>) -> Self
fn from(err: SdkError<GetNamespaceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetOperationError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetOperationError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetOperationError, R>) -> Self
fn from(err: SdkError<GetOperationError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<GetServiceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<GetServiceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<GetServiceError, R>) -> Self
fn from(err: SdkError<GetServiceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListInstancesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListInstancesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListInstancesError, R>) -> Self
fn from(err: SdkError<ListInstancesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListNamespacesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListNamespacesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListNamespacesError, R>) -> Self
fn from(err: SdkError<ListNamespacesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListOperationsError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListOperationsError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListOperationsError, R>) -> Self
fn from(err: SdkError<ListOperationsError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListServicesError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListServicesError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListServicesError, R>) -> Self
fn from(err: SdkError<ListServicesError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<RegisterInstanceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<RegisterInstanceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<RegisterInstanceError, R>) -> Self
fn from(err: SdkError<RegisterInstanceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<TagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UntagResourceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdateHttpNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateHttpNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateHttpNamespaceError, R>) -> Self
fn from(err: SdkError<UpdateHttpNamespaceError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdateInstanceCustomHealthStatusError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdateInstanceCustomHealthStatusError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdateInstanceCustomHealthStatusError, R>) -> Self
fn from(err: SdkError<UpdateInstanceCustomHealthStatusError, R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<SdkError<UpdatePrivateDnsNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
impl<R> From<SdkError<UpdatePrivateDnsNamespaceError, R>> for Error where
R: Send + Sync + Debug + 'static,
sourcefn from(err: SdkError<UpdatePrivateDnsNamespaceError, R>) -> Self
fn from(err: SdkError<UpdatePrivateDnsNamespaceError, R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more