github.com/aavshr/aws-sdk-go@v1.41.3/service/ecrpublic/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package ecrpublic
     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  	// ErrCodeLayerAlreadyExistsException for service response error code
    74  	// "LayerAlreadyExistsException".
    75  	//
    76  	// The image layer already exists in the associated repository.
    77  	ErrCodeLayerAlreadyExistsException = "LayerAlreadyExistsException"
    78  
    79  	// ErrCodeLayerPartTooSmallException for service response error code
    80  	// "LayerPartTooSmallException".
    81  	//
    82  	// Layer parts must be at least 5 MiB in size.
    83  	ErrCodeLayerPartTooSmallException = "LayerPartTooSmallException"
    84  
    85  	// ErrCodeLayersNotFoundException for service response error code
    86  	// "LayersNotFoundException".
    87  	//
    88  	// The specified layers could not be found, or the specified layer is not valid
    89  	// for this repository.
    90  	ErrCodeLayersNotFoundException = "LayersNotFoundException"
    91  
    92  	// ErrCodeLimitExceededException for service response error code
    93  	// "LimitExceededException".
    94  	//
    95  	// The operation did not succeed because it would have exceeded a service limit
    96  	// for your account. For more information, see Amazon ECR Service Quotas (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service-quotas.html)
    97  	// in the Amazon Elastic Container Registry User Guide.
    98  	ErrCodeLimitExceededException = "LimitExceededException"
    99  
   100  	// ErrCodeReferencedImagesNotFoundException for service response error code
   101  	// "ReferencedImagesNotFoundException".
   102  	//
   103  	// The manifest list is referencing an image that does not exist.
   104  	ErrCodeReferencedImagesNotFoundException = "ReferencedImagesNotFoundException"
   105  
   106  	// ErrCodeRegistryNotFoundException for service response error code
   107  	// "RegistryNotFoundException".
   108  	//
   109  	// The registry does not exist.
   110  	ErrCodeRegistryNotFoundException = "RegistryNotFoundException"
   111  
   112  	// ErrCodeRepositoryAlreadyExistsException for service response error code
   113  	// "RepositoryAlreadyExistsException".
   114  	//
   115  	// The specified repository already exists in the specified registry.
   116  	ErrCodeRepositoryAlreadyExistsException = "RepositoryAlreadyExistsException"
   117  
   118  	// ErrCodeRepositoryNotEmptyException for service response error code
   119  	// "RepositoryNotEmptyException".
   120  	//
   121  	// The specified repository contains images. To delete a repository that contains
   122  	// images, you must force the deletion with the force parameter.
   123  	ErrCodeRepositoryNotEmptyException = "RepositoryNotEmptyException"
   124  
   125  	// ErrCodeRepositoryNotFoundException for service response error code
   126  	// "RepositoryNotFoundException".
   127  	//
   128  	// The specified repository could not be found. Check the spelling of the specified
   129  	// repository and ensure that you are performing operations on the correct registry.
   130  	ErrCodeRepositoryNotFoundException = "RepositoryNotFoundException"
   131  
   132  	// ErrCodeRepositoryPolicyNotFoundException for service response error code
   133  	// "RepositoryPolicyNotFoundException".
   134  	//
   135  	// The specified repository and registry combination does not have an associated
   136  	// repository policy.
   137  	ErrCodeRepositoryPolicyNotFoundException = "RepositoryPolicyNotFoundException"
   138  
   139  	// ErrCodeServerException for service response error code
   140  	// "ServerException".
   141  	//
   142  	// These errors are usually caused by a server-side issue.
   143  	ErrCodeServerException = "ServerException"
   144  
   145  	// ErrCodeTooManyTagsException for service response error code
   146  	// "TooManyTagsException".
   147  	//
   148  	// The list of tags on the repository is over the limit. The maximum number
   149  	// of tags that can be applied to a repository is 50.
   150  	ErrCodeTooManyTagsException = "TooManyTagsException"
   151  
   152  	// ErrCodeUnsupportedCommandException for service response error code
   153  	// "UnsupportedCommandException".
   154  	//
   155  	// The action is not supported in this Region.
   156  	ErrCodeUnsupportedCommandException = "UnsupportedCommandException"
   157  
   158  	// ErrCodeUploadNotFoundException for service response error code
   159  	// "UploadNotFoundException".
   160  	//
   161  	// The upload could not be found, or the specified upload ID is not valid for
   162  	// this repository.
   163  	ErrCodeUploadNotFoundException = "UploadNotFoundException"
   164  )
   165  
   166  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   167  	"EmptyUploadException":              newErrorEmptyUploadException,
   168  	"ImageAlreadyExistsException":       newErrorImageAlreadyExistsException,
   169  	"ImageDigestDoesNotMatchException":  newErrorImageDigestDoesNotMatchException,
   170  	"ImageNotFoundException":            newErrorImageNotFoundException,
   171  	"ImageTagAlreadyExistsException":    newErrorImageTagAlreadyExistsException,
   172  	"InvalidLayerException":             newErrorInvalidLayerException,
   173  	"InvalidLayerPartException":         newErrorInvalidLayerPartException,
   174  	"InvalidParameterException":         newErrorInvalidParameterException,
   175  	"InvalidTagParameterException":      newErrorInvalidTagParameterException,
   176  	"LayerAlreadyExistsException":       newErrorLayerAlreadyExistsException,
   177  	"LayerPartTooSmallException":        newErrorLayerPartTooSmallException,
   178  	"LayersNotFoundException":           newErrorLayersNotFoundException,
   179  	"LimitExceededException":            newErrorLimitExceededException,
   180  	"ReferencedImagesNotFoundException": newErrorReferencedImagesNotFoundException,
   181  	"RegistryNotFoundException":         newErrorRegistryNotFoundException,
   182  	"RepositoryAlreadyExistsException":  newErrorRepositoryAlreadyExistsException,
   183  	"RepositoryNotEmptyException":       newErrorRepositoryNotEmptyException,
   184  	"RepositoryNotFoundException":       newErrorRepositoryNotFoundException,
   185  	"RepositoryPolicyNotFoundException": newErrorRepositoryPolicyNotFoundException,
   186  	"ServerException":                   newErrorServerException,
   187  	"TooManyTagsException":              newErrorTooManyTagsException,
   188  	"UnsupportedCommandException":       newErrorUnsupportedCommandException,
   189  	"UploadNotFoundException":           newErrorUploadNotFoundException,
   190  }