github.com/aavshr/aws-sdk-go@v1.41.3/service/ecr/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package ecr 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeEmptyUploadException for service response error code 12 // "EmptyUploadException". 13 // 14 // The specified layer upload does not contain any layer parts. 15 ErrCodeEmptyUploadException = "EmptyUploadException" 16 17 // ErrCodeImageAlreadyExistsException for service response error code 18 // "ImageAlreadyExistsException". 19 // 20 // The specified image has already been pushed, and there were no changes to 21 // the manifest or image tag after the last push. 22 ErrCodeImageAlreadyExistsException = "ImageAlreadyExistsException" 23 24 // ErrCodeImageDigestDoesNotMatchException for service response error code 25 // "ImageDigestDoesNotMatchException". 26 // 27 // The specified image digest does not match the digest that Amazon ECR calculated 28 // for the image. 29 ErrCodeImageDigestDoesNotMatchException = "ImageDigestDoesNotMatchException" 30 31 // ErrCodeImageNotFoundException for service response error code 32 // "ImageNotFoundException". 33 // 34 // The image requested does not exist in the specified repository. 35 ErrCodeImageNotFoundException = "ImageNotFoundException" 36 37 // ErrCodeImageTagAlreadyExistsException for service response error code 38 // "ImageTagAlreadyExistsException". 39 // 40 // The specified image is tagged with a tag that already exists. The repository 41 // is configured for tag immutability. 42 ErrCodeImageTagAlreadyExistsException = "ImageTagAlreadyExistsException" 43 44 // ErrCodeInvalidLayerException for service response error code 45 // "InvalidLayerException". 46 // 47 // The layer digest calculation performed by Amazon ECR upon receipt of the 48 // image layer does not match the digest specified. 49 ErrCodeInvalidLayerException = "InvalidLayerException" 50 51 // ErrCodeInvalidLayerPartException for service response error code 52 // "InvalidLayerPartException". 53 // 54 // The layer part size is not valid, or the first byte specified is not consecutive 55 // to the last byte of a previous layer part upload. 56 ErrCodeInvalidLayerPartException = "InvalidLayerPartException" 57 58 // ErrCodeInvalidParameterException for service response error code 59 // "InvalidParameterException". 60 // 61 // The specified parameter is invalid. Review the available parameters for the 62 // API request. 63 ErrCodeInvalidParameterException = "InvalidParameterException" 64 65 // ErrCodeInvalidTagParameterException for service response error code 66 // "InvalidTagParameterException". 67 // 68 // An invalid parameter has been specified. Tag keys can have a maximum character 69 // length of 128 characters, and tag values can have a maximum length of 256 70 // characters. 71 ErrCodeInvalidTagParameterException = "InvalidTagParameterException" 72 73 // ErrCodeKmsException for service response error code 74 // "KmsException". 75 // 76 // The operation failed due to a KMS exception. 77 ErrCodeKmsException = "KmsException" 78 79 // ErrCodeLayerAlreadyExistsException for service response error code 80 // "LayerAlreadyExistsException". 81 // 82 // The image layer already exists in the associated repository. 83 ErrCodeLayerAlreadyExistsException = "LayerAlreadyExistsException" 84 85 // ErrCodeLayerInaccessibleException for service response error code 86 // "LayerInaccessibleException". 87 // 88 // The specified layer is not available because it is not associated with an 89 // image. Unassociated image layers may be cleaned up at any time. 90 ErrCodeLayerInaccessibleException = "LayerInaccessibleException" 91 92 // ErrCodeLayerPartTooSmallException for service response error code 93 // "LayerPartTooSmallException". 94 // 95 // Layer parts must be at least 5 MiB in size. 96 ErrCodeLayerPartTooSmallException = "LayerPartTooSmallException" 97 98 // ErrCodeLayersNotFoundException for service response error code 99 // "LayersNotFoundException". 100 // 101 // The specified layers could not be found, or the specified layer is not valid 102 // for this repository. 103 ErrCodeLayersNotFoundException = "LayersNotFoundException" 104 105 // ErrCodeLifecyclePolicyNotFoundException for service response error code 106 // "LifecyclePolicyNotFoundException". 107 // 108 // The lifecycle policy could not be found, and no policy is set to the repository. 109 ErrCodeLifecyclePolicyNotFoundException = "LifecyclePolicyNotFoundException" 110 111 // ErrCodeLifecyclePolicyPreviewInProgressException for service response error code 112 // "LifecyclePolicyPreviewInProgressException". 113 // 114 // The previous lifecycle policy preview request has not completed. Wait and 115 // try again. 116 ErrCodeLifecyclePolicyPreviewInProgressException = "LifecyclePolicyPreviewInProgressException" 117 118 // ErrCodeLifecyclePolicyPreviewNotFoundException for service response error code 119 // "LifecyclePolicyPreviewNotFoundException". 120 // 121 // There is no dry run for this repository. 122 ErrCodeLifecyclePolicyPreviewNotFoundException = "LifecyclePolicyPreviewNotFoundException" 123 124 // ErrCodeLimitExceededException for service response error code 125 // "LimitExceededException". 126 // 127 // The operation did not succeed because it would have exceeded a service limit 128 // for your account. For more information, see Amazon ECR service quotas (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html) 129 // in the Amazon Elastic Container Registry User Guide. 130 ErrCodeLimitExceededException = "LimitExceededException" 131 132 // ErrCodeReferencedImagesNotFoundException for service response error code 133 // "ReferencedImagesNotFoundException". 134 // 135 // The manifest list is referencing an image that does not exist. 136 ErrCodeReferencedImagesNotFoundException = "ReferencedImagesNotFoundException" 137 138 // ErrCodeRegistryPolicyNotFoundException for service response error code 139 // "RegistryPolicyNotFoundException". 140 // 141 // The registry doesn't have an associated registry policy. 142 ErrCodeRegistryPolicyNotFoundException = "RegistryPolicyNotFoundException" 143 144 // ErrCodeRepositoryAlreadyExistsException for service response error code 145 // "RepositoryAlreadyExistsException". 146 // 147 // The specified repository already exists in the specified registry. 148 ErrCodeRepositoryAlreadyExistsException = "RepositoryAlreadyExistsException" 149 150 // ErrCodeRepositoryNotEmptyException for service response error code 151 // "RepositoryNotEmptyException". 152 // 153 // The specified repository contains images. To delete a repository that contains 154 // images, you must force the deletion with the force parameter. 155 ErrCodeRepositoryNotEmptyException = "RepositoryNotEmptyException" 156 157 // ErrCodeRepositoryNotFoundException for service response error code 158 // "RepositoryNotFoundException". 159 // 160 // The specified repository could not be found. Check the spelling of the specified 161 // repository and ensure that you are performing operations on the correct registry. 162 ErrCodeRepositoryNotFoundException = "RepositoryNotFoundException" 163 164 // ErrCodeRepositoryPolicyNotFoundException for service response error code 165 // "RepositoryPolicyNotFoundException". 166 // 167 // The specified repository and registry combination does not have an associated 168 // repository policy. 169 ErrCodeRepositoryPolicyNotFoundException = "RepositoryPolicyNotFoundException" 170 171 // ErrCodeScanNotFoundException for service response error code 172 // "ScanNotFoundException". 173 // 174 // The specified image scan could not be found. Ensure that image scanning is 175 // enabled on the repository and try again. 176 ErrCodeScanNotFoundException = "ScanNotFoundException" 177 178 // ErrCodeServerException for service response error code 179 // "ServerException". 180 // 181 // These errors are usually caused by a server-side issue. 182 ErrCodeServerException = "ServerException" 183 184 // ErrCodeTooManyTagsException for service response error code 185 // "TooManyTagsException". 186 // 187 // The list of tags on the repository is over the limit. The maximum number 188 // of tags that can be applied to a repository is 50. 189 ErrCodeTooManyTagsException = "TooManyTagsException" 190 191 // ErrCodeUnsupportedImageTypeException for service response error code 192 // "UnsupportedImageTypeException". 193 // 194 // The image is of a type that cannot be scanned. 195 ErrCodeUnsupportedImageTypeException = "UnsupportedImageTypeException" 196 197 // ErrCodeUploadNotFoundException for service response error code 198 // "UploadNotFoundException". 199 // 200 // The upload could not be found, or the specified upload ID is not valid for 201 // this repository. 202 ErrCodeUploadNotFoundException = "UploadNotFoundException" 203 204 // ErrCodeValidationException for service response error code 205 // "ValidationException". 206 // 207 // There was an exception validating this request. 208 ErrCodeValidationException = "ValidationException" 209 ) 210 211 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 212 "EmptyUploadException": newErrorEmptyUploadException, 213 "ImageAlreadyExistsException": newErrorImageAlreadyExistsException, 214 "ImageDigestDoesNotMatchException": newErrorImageDigestDoesNotMatchException, 215 "ImageNotFoundException": newErrorImageNotFoundException, 216 "ImageTagAlreadyExistsException": newErrorImageTagAlreadyExistsException, 217 "InvalidLayerException": newErrorInvalidLayerException, 218 "InvalidLayerPartException": newErrorInvalidLayerPartException, 219 "InvalidParameterException": newErrorInvalidParameterException, 220 "InvalidTagParameterException": newErrorInvalidTagParameterException, 221 "KmsException": newErrorKmsException, 222 "LayerAlreadyExistsException": newErrorLayerAlreadyExistsException, 223 "LayerInaccessibleException": newErrorLayerInaccessibleException, 224 "LayerPartTooSmallException": newErrorLayerPartTooSmallException, 225 "LayersNotFoundException": newErrorLayersNotFoundException, 226 "LifecyclePolicyNotFoundException": newErrorLifecyclePolicyNotFoundException, 227 "LifecyclePolicyPreviewInProgressException": newErrorLifecyclePolicyPreviewInProgressException, 228 "LifecyclePolicyPreviewNotFoundException": newErrorLifecyclePolicyPreviewNotFoundException, 229 "LimitExceededException": newErrorLimitExceededException, 230 "ReferencedImagesNotFoundException": newErrorReferencedImagesNotFoundException, 231 "RegistryPolicyNotFoundException": newErrorRegistryPolicyNotFoundException, 232 "RepositoryAlreadyExistsException": newErrorRepositoryAlreadyExistsException, 233 "RepositoryNotEmptyException": newErrorRepositoryNotEmptyException, 234 "RepositoryNotFoundException": newErrorRepositoryNotFoundException, 235 "RepositoryPolicyNotFoundException": newErrorRepositoryPolicyNotFoundException, 236 "ScanNotFoundException": newErrorScanNotFoundException, 237 "ServerException": newErrorServerException, 238 "TooManyTagsException": newErrorTooManyTagsException, 239 "UnsupportedImageTypeException": newErrorUnsupportedImageTypeException, 240 "UploadNotFoundException": newErrorUploadNotFoundException, 241 "ValidationException": newErrorValidationException, 242 }