Enum aws_sdk_ecs::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 25 variants AccessDeniedException(AccessDeniedException), AttributeLimitExceededException(AttributeLimitExceededException), BlockedException(BlockedException), ClientException(ClientException), ClusterContainsContainerInstancesException(ClusterContainsContainerInstancesException), ClusterContainsServicesException(ClusterContainsServicesException), ClusterContainsTasksException(ClusterContainsTasksException), ClusterNotFoundException(ClusterNotFoundException), InvalidParameterException(InvalidParameterException), LimitExceededException(LimitExceededException), MissingVersionException(MissingVersionException), NoUpdateAvailableException(NoUpdateAvailableException), PlatformTaskDefinitionIncompatibilityException(PlatformTaskDefinitionIncompatibilityException), PlatformUnknownException(PlatformUnknownException), ResourceInUseException(ResourceInUseException), ResourceNotFoundException(ResourceNotFoundException), ServerException(ServerException), ServiceNotActiveException(ServiceNotActiveException), ServiceNotFoundException(ServiceNotFoundException), TargetNotConnectedException(TargetNotConnectedException), TargetNotFoundException(TargetNotFoundException), TaskSetNotFoundException(TaskSetNotFoundException), UnsupportedFeatureException(UnsupportedFeatureException), UpdateInProgressException(UpdateInProgressException), 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
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 do not have authorization to perform the requested action.

Tuple Fields of AccessDeniedException

0: AccessDeniedException
AttributeLimitExceededException(AttributeLimitExceededException)

You can apply up to 10 custom attributes per resource. You can view the attributes of a resource with ListAttributes. You can remove existing attributes on a resource with DeleteAttributes.

Tuple Fields of AttributeLimitExceededException

0: AttributeLimitExceededException
BlockedException(BlockedException)

Your Amazon Web Services account has been blocked. For more information, contact Amazon Web Services Support.

Tuple Fields of BlockedException

0: BlockedException
ClientException(ClientException)

These errors are usually caused by a client action, such as using an action or resource on behalf of a user that doesn't have permissions to use the action or resource, or specifying an identifier that is not valid.

Tuple Fields of ClientException

0: ClientException
ClusterContainsContainerInstancesException(ClusterContainsContainerInstancesException)

You cannot delete a cluster that has registered container instances. First, deregister the container instances before you can delete the cluster. For more information, see DeregisterContainerInstance.

Tuple Fields of ClusterContainsContainerInstancesException

0: ClusterContainsContainerInstancesException
ClusterContainsServicesException(ClusterContainsServicesException)

You cannot delete a cluster that contains services. First, update the service to reduce its desired task count to 0 and then delete the service. For more information, see UpdateService and DeleteService.

Tuple Fields of ClusterContainsServicesException

0: ClusterContainsServicesException
ClusterContainsTasksException(ClusterContainsTasksException)

You cannot delete a cluster that has active tasks.

Tuple Fields of ClusterContainsTasksException

0: ClusterContainsTasksException
ClusterNotFoundException(ClusterNotFoundException)

The specified cluster could not be found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region-specific.

Tuple Fields of ClusterNotFoundException

0: ClusterNotFoundException
InvalidParameterException(InvalidParameterException)

The specified parameter is invalid. Review the available parameters for the API request.

Tuple Fields of InvalidParameterException

0: InvalidParameterException
LimitExceededException(LimitExceededException)

The limit for the resource has been exceeded.

Tuple Fields of LimitExceededException

0: LimitExceededException
MissingVersionException(MissingVersionException)

Amazon ECS is unable to determine the current version of the Amazon ECS container agent on the container instance and does not have enough information to proceed with an update. This could be because the agent running on the container instance is an older or custom version that does not use our version information.

Tuple Fields of MissingVersionException

0: MissingVersionException
NoUpdateAvailableException(NoUpdateAvailableException)

There is no update available for this Amazon ECS container agent. This could be because the agent is already running the latest version, or it is so old that there is no update path to the current version.

Tuple Fields of NoUpdateAvailableException

0: NoUpdateAvailableException
PlatformTaskDefinitionIncompatibilityException(PlatformTaskDefinitionIncompatibilityException)

The specified platform version does not satisfy the task definition's required capabilities.

Tuple Fields of PlatformTaskDefinitionIncompatibilityException

0: PlatformTaskDefinitionIncompatibilityException
PlatformUnknownException(PlatformUnknownException)

The specified platform version does not exist.

Tuple Fields of PlatformUnknownException

0: PlatformUnknownException
ResourceInUseException(ResourceInUseException)

The specified resource is in-use and cannot be removed.

Tuple Fields of ResourceInUseException

0: ResourceInUseException
ResourceNotFoundException(ResourceNotFoundException)

The specified resource could not be found.

Tuple Fields of ResourceNotFoundException

0: ResourceNotFoundException
ServerException(ServerException)

These errors are usually caused by a server issue.

Tuple Fields of ServerException

0: ServerException
ServiceNotActiveException(ServiceNotActiveException)

The specified service is not active. You can't update a service that is inactive. If you have previously deleted a service, you can re-create it with CreateService.

Tuple Fields of ServiceNotActiveException

0: ServiceNotActiveException
ServiceNotFoundException(ServiceNotFoundException)

The specified service could not be found. You can view your available services with ListServices. Amazon ECS services are cluster-specific and Region-specific.

Tuple Fields of ServiceNotFoundException

0: ServiceNotFoundException
TargetNotConnectedException(TargetNotConnectedException)

The target container is not properly configured with the execute command agent or the container is no longer active or running.

Tuple Fields of TargetNotConnectedException

0: TargetNotConnectedException
TargetNotFoundException(TargetNotFoundException)

The specified target could not be found. You can view your available container instances with ListContainerInstances. Amazon ECS container instances are cluster-specific and Region-specific.

Tuple Fields of TargetNotFoundException

0: TargetNotFoundException
TaskSetNotFoundException(TaskSetNotFoundException)

The specified task set could not be found. You can view your available task sets with DescribeTaskSets. Task sets are specific to each cluster, service and Region.

Tuple Fields of TaskSetNotFoundException

0: TaskSetNotFoundException
UnsupportedFeatureException(UnsupportedFeatureException)

The specified task is not supported in this Region.

Tuple Fields of UnsupportedFeatureException

0: UnsupportedFeatureException
UpdateInProgressException(UpdateInProgressException)

There is already a current Amazon ECS container agent update in progress on the specified container instance. If the container agent becomes disconnected while it is in a transitional stage, such as PENDING or STAGING, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously.

Tuple Fields of UpdateInProgressException

0: UpdateInProgressException
Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Tuple Fields of Unhandled

0: Box<dyn Error + Send + Sync + 'static>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more