Class EcsException
- Exception
- RuntimeException
- Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
- Aws\Ecs\Exception\EcsException
- Namespace: Aws\Ecs\Exception
- Located at Ecs/Exception/EcsException.php
Amazon ECS exception.
Methods Summary
Methods inherited from Aws\Exception\AwsException
__construct()
,
__toString()
,
get()
,
getAwsErrorCode()
,
getAwsErrorMessage()
,
getAwsErrorShape()
,
getAwsErrorType()
,
getAwsRequestId()
,
getCommand()
,
getRequest()
,
getResponse()
,
getResult()
,
getStatusCode()
,
getTransferInfo()
,
hasKey()
,
isConnectionError()
,
isMaxRetriesExceeded()
,
search()
,
setMaxRetriesExceeded()
,
setTransferInfo()
Methods inherited from Exception
__wakeup()
,
getCode()
,
getFile()
,
getLine()
,
getMessage()
,
getPrevious()
,
getTrace()
,
getTraceAsString()
Methods inherited from ArrayAccess
offsetExists()
,
offsetGet()
,
offsetSet()
,
offsetUnset()
Methods inherited from Aws\MonitoringEventsInterface
Methods used from Aws\HasDataTrait
Methods used from Aws\HasMonitoringEventsTrait
Expected Exception Codes
AccessDeniedException
[ ]
Description
You don't have authorization to perform the requested action.
Members
AttributeLimitExceededException
[ ]
Description
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.
Members
BlockedException
[ ]
Description
Your Amazon Web Services account was blocked. For more information, contact Amazon Web Services Support.
Members
ClientException
[ 'message' => '<string>', ]
Description
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.
Members
- message
-
- Type: string
Message that describes the cause of the exception.
ClusterContainsContainerInstancesException
[ ]
Description
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.
Members
ClusterContainsServicesException
[ ]
Description
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.
Members
ClusterContainsTasksException
[ ]
Description
You can't delete a cluster that has active tasks.
Members
ClusterNotFoundException
[ ]
Description
The specified cluster wasn't found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region specific.
Members
ConflictException
[ 'resourceIds' => ['<string>', ...], ]
Description
The RunTask
request could not be processed due to conflicts. The provided clientToken
is already in use with a different RunTask
request. The resourceIds
are the existing task ARNs which are already associated with the clientToken
.
To fix this issue:
-
Run
RunTask
with a uniqueclientToken
. -
Run
RunTask
with theclientToken
and the original set of parameters
Members
- resourceIds
-
- Type: Array of strings
The existing task ARNs which are already associated with the
clientToken
.
InvalidParameterException
[ ]
Description
The specified parameter isn't valid. Review the available parameters for the API request.
Members
LimitExceededException
[ ]
Description
The limit for the resource was exceeded.
Members
MissingVersionException
[ ]
Description
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.
Members
NamespaceNotFoundException
[ ]
Description
The specified namespace wasn't found.
Members
NoUpdateAvailableException
[ ]
Description
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.
Members
PlatformTaskDefinitionIncompatibilityException
[ ]
Description
The specified platform version doesn't satisfy the required capabilities of the task definition.
Members
PlatformUnknownException
[ ]
Description
The specified platform version doesn't exist.
Members
ResourceInUseException
[ ]
Description
The specified resource is in-use and can't be removed.
Members
ResourceNotFoundException
[ ]
Description
The specified resource wasn't found.
Members
ServerException
[ 'message' => '<string>', ]
Description
These errors are usually caused by a server issue.
Members
- message
-
- Type: string
Message that describes the cause of the exception.
ServiceNotActiveException
[ ]
Description
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.
Members
ServiceNotFoundException
[ ]
Description
The specified service wasn't found. You can view your available services with ListServices. Amazon ECS services are cluster specific and Region specific.
Members
TargetNotConnectedException
[ ]
Description
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 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.
Members
TargetNotFoundException
[ ]
Description
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.
Members
TaskSetNotFoundException
[ ]
Description
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.
Members
UnsupportedFeatureException
[ ]
Description
The specified task isn't supported in this Region.
Members
UpdateInProgressException
[ ]
Description
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.