Class EcrException
- Exception
- RuntimeException
- Aws\Exception\AwsException implements Aws\MonitoringEventsInterface, Aws\ResponseContainerInterface, ArrayAccess uses Aws\HasDataTrait, Aws\HasMonitoringEventsTrait
- Aws\Ecr\Exception\EcrException
- Namespace: Aws\Ecr\Exception
- Located at Ecr/Exception/EcrException.php
Represents an error interacting with the Amazon EC2 Container Registry service.
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
EmptyUploadException
[ 'message' => '<string>', ]
Description
The specified layer upload does not contain any layer parts.
Members
- message
-
- Type: string
The error message associated with the exception.
ImageAlreadyExistsException
[ 'message' => '<string>', ]
Description
The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.
Members
- message
-
- Type: string
The error message associated with the exception.
ImageDigestDoesNotMatchException
[ 'message' => '<string>', ]
Description
The specified image digest does not match the digest that Amazon ECR calculated for the image.
Members
- message
-
- Type: string
ImageNotFoundException
[ 'message' => '<string>', ]
Description
The image requested does not exist in the specified repository.
Members
- message
-
- Type: string
ImageTagAlreadyExistsException
[ 'message' => '<string>', ]
Description
The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.
Members
- message
-
- Type: string
InvalidLayerException
[ 'message' => '<string>', ]
Description
The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified.
Members
- message
-
- Type: string
The error message associated with the exception.
InvalidLayerPartException
[ 'lastValidByteReceived' => <integer>, 'message' => '<string>', 'registryId' => '<string>', 'repositoryName' => '<string>', 'uploadId' => '<string>', ]
Description
The layer part size is not valid, or the first byte specified is not consecutive to the last byte of a previous layer part upload.
Members
- lastValidByteReceived
-
- Type: long (int|float)
The last valid byte received from the layer part upload that is associated with the exception.
- message
-
- Type: string
The error message associated with the exception.
- registryId
-
- Type: string
The registry ID associated with the exception.
- repositoryName
-
- Type: string
The repository name associated with the exception.
- uploadId
-
- Type: string
The upload ID associated with the exception.
InvalidParameterException
[ 'message' => '<string>', ]
Description
The specified parameter is invalid. Review the available parameters for the API request.
Members
- message
-
- Type: string
The error message associated with the exception.
InvalidTagParameterException
[ 'message' => '<string>', ]
Description
An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Members
- message
-
- Type: string
KmsException
[ 'kmsError' => '<string>', 'message' => '<string>', ]
Description
The operation failed due to a KMS exception.
Members
- kmsError
-
- Type: string
The error code returned by KMS.
- message
-
- Type: string
LayerAlreadyExistsException
[ 'message' => '<string>', ]
Description
The image layer already exists in the associated repository.
Members
- message
-
- Type: string
The error message associated with the exception.
LayerInaccessibleException
[ 'message' => '<string>', ]
Description
The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time.
Members
- message
-
- Type: string
The error message associated with the exception.
LayerPartTooSmallException
[ 'message' => '<string>', ]
Description
Layer parts must be at least 5 MiB in size.
Members
- message
-
- Type: string
The error message associated with the exception.
LayersNotFoundException
[ 'message' => '<string>', ]
Description
The specified layers could not be found, or the specified layer is not valid for this repository.
Members
- message
-
- Type: string
The error message associated with the exception.
LifecyclePolicyNotFoundException
[ 'message' => '<string>', ]
Description
The lifecycle policy could not be found, and no policy is set to the repository.
Members
- message
-
- Type: string
LifecyclePolicyPreviewInProgressException
[ 'message' => '<string>', ]
Description
The previous lifecycle policy preview request has not completed. Wait and try again.
Members
- message
-
- Type: string
LifecyclePolicyPreviewNotFoundException
[ 'message' => '<string>', ]
Description
There is no dry run for this repository.
Members
- message
-
- Type: string
LimitExceededException
[ 'message' => '<string>', ]
Description
The operation did not succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR service quotas in the Amazon Elastic Container Registry User Guide.
Members
- message
-
- Type: string
The error message associated with the exception.
PullThroughCacheRuleAlreadyExistsException
[ 'message' => '<string>', ]
Description
A pull through cache rule with these settings already exists for the private registry.
Members
- message
-
- Type: string
PullThroughCacheRuleNotFoundException
[ 'message' => '<string>', ]
Description
The pull through cache rule was not found. Specify a valid pull through cache rule and try again.
Members
- message
-
- Type: string
ReferencedImagesNotFoundException
[ 'message' => '<string>', ]
Description
The manifest list is referencing an image that does not exist.
Members
- message
-
- Type: string
RegistryPolicyNotFoundException
[ 'message' => '<string>', ]
Description
The registry doesn't have an associated registry policy.
Members
- message
-
- Type: string
RepositoryAlreadyExistsException
[ 'message' => '<string>', ]
Description
The specified repository already exists in the specified registry.
Members
- message
-
- Type: string
The error message associated with the exception.
RepositoryNotEmptyException
[ 'message' => '<string>', ]
Description
The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force
parameter.
Members
- message
-
- Type: string
The error message associated with the exception.
RepositoryNotFoundException
[ 'message' => '<string>', ]
Description
The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.
Members
- message
-
- Type: string
The error message associated with the exception.
RepositoryPolicyNotFoundException
[ 'message' => '<string>', ]
Description
The specified repository and registry combination does not have an associated repository policy.
Members
- message
-
- Type: string
The error message associated with the exception.
ScanNotFoundException
[ 'message' => '<string>', ]
Description
The specified image scan could not be found. Ensure that image scanning is enabled on the repository and try again.
Members
- message
-
- Type: string
SecretNotFoundException
[ 'message' => '<string>', ]
Description
The ARN of the secret specified in the pull through cache rule was not found. Update the pull through cache rule with a valid secret ARN and try again.
Members
- message
-
- Type: string
ServerException
[ 'message' => '<string>', ]
Description
These errors are usually caused by a server-side issue.
Members
- message
-
- Type: string
The error message associated with the exception.
TooManyTagsException
[ 'message' => '<string>', ]
Description
The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.
Members
- message
-
- Type: string
UnableToAccessSecretException
[ 'message' => '<string>', ]
Description
The secret is unable to be accessed. Verify the resource permissions for the secret and try again.
Members
- message
-
- Type: string
UnableToDecryptSecretValueException
[ 'message' => '<string>', ]
Description
The secret is accessible but is unable to be decrypted. Verify the resource permisisons and try again.
Members
- message
-
- Type: string
UnableToGetUpstreamImageException
[ 'message' => '<string>', ]
Description
The image or images were unable to be pulled using the pull through cache rule. This is usually caused because of an issue with the Secrets Manager secret containing the credentials for the upstream registry.
Members
- message
-
- Type: string
UnableToGetUpstreamLayerException
[ 'message' => '<string>', ]
Description
There was an issue getting the upstream layer matching the pull through cache rule.
Members
- message
-
- Type: string
UnsupportedImageTypeException
[ 'message' => '<string>', ]
Description
The image is of a type that cannot be scanned.
Members
- message
-
- Type: string
UnsupportedUpstreamRegistryException
[ 'message' => '<string>', ]
Description
The specified upstream registry isn't supported.
Members
- message
-
- Type: string
UploadNotFoundException
[ 'message' => '<string>', ]
Description
The upload could not be found, or the specified upload ID is not valid for this repository.
Members
- message
-
- Type: string
The error message associated with the exception.
ValidationException
[ 'message' => '<string>', ]
Description
There was an exception validating this request.
Members
- message
-
- Type: string