#[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 don't have authorization to perform the requested action.

AttributeLimitExceededException(AttributeLimitExceededException)

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

BlockedException(BlockedException)

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

ClientException(ClientException)

These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource,. Or, it might be specifying an identifier that isn't valid.

ClusterContainsContainerInstancesException(ClusterContainsContainerInstancesException)

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

ClusterContainsServicesException(ClusterContainsServicesException)

You can't 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.

ClusterContainsTasksException(ClusterContainsTasksException)

You can't delete a cluster that has active tasks.

ClusterNotFoundException(ClusterNotFoundException)

The specified cluster wasn't found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region specific.

InvalidParameterException(InvalidParameterException)

The specified parameter isn't valid. Review the available parameters for the API request.

LimitExceededException(LimitExceededException)

The limit for the resource was exceeded.

MissingVersionException(MissingVersionException)

Amazon ECS can't determine the current version of the Amazon ECS container agent on the container instance and doesn't have enough information to proceed with an update. This could be because the agent running on the container instance is a previous or custom version that doesn't use our version information.

NoUpdateAvailableException(NoUpdateAvailableException)

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

PlatformTaskDefinitionIncompatibilityException(PlatformTaskDefinitionIncompatibilityException)

The specified platform version doesn't satisfy the required capabilities of the task definition.

PlatformUnknownException(PlatformUnknownException)

The specified platform version doesn't exist.

ResourceInUseException(ResourceInUseException)

The specified resource is in-use and can't be removed.

ResourceNotFoundException(ResourceNotFoundException)

The specified resource wasn't found.

ServerException(ServerException)

These errors are usually caused by a server issue.

ServiceNotActiveException(ServiceNotActiveException)

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

ServiceNotFoundException(ServiceNotFoundException)

The specified service wasn't found. You can view your available services with ListServices. Amazon ECS services are cluster specific and Region specific.

TargetNotConnectedException(TargetNotConnectedException)

The execute command cannot run. This error can be caused by any of the following configuration issues:

  • Incorrect IAM permissions

  • The SSM agent is not installed or is not running

  • There is an interface Amazon VPC endpoint for Amazon ECS, but there is not one for for Systems Manager Session Manager

For information about how to troubleshoot the issues, see Troubleshooting issues with ECS Exec in the Amazon Elastic Container Service Developer Guide.

TargetNotFoundException(TargetNotFoundException)

The specified target wasn't found. You can view your available container instances with ListContainerInstances. Amazon ECS container instances are cluster-specific and Region-specific.

TaskSetNotFoundException(TaskSetNotFoundException)

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

UnsupportedFeatureException(UnsupportedFeatureException)

The specified task isn't supported in this Region.

UpdateInProgressException(UpdateInProgressException)

There's already a current Amazon ECS container agent update in progress on the container instance that's specified. If the container agent becomes disconnected while it's 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.

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

An unhandled error occurred.

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

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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