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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package rekognition
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAccessDeniedException for service response error code
    12  	// "AccessDeniedException".
    13  	//
    14  	// You are not authorized to perform the action.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeHumanLoopQuotaExceededException for service response error code
    18  	// "HumanLoopQuotaExceededException".
    19  	//
    20  	// The number of in-progress human reviews you have has exceeded the number
    21  	// allowed.
    22  	ErrCodeHumanLoopQuotaExceededException = "HumanLoopQuotaExceededException"
    23  
    24  	// ErrCodeIdempotentParameterMismatchException for service response error code
    25  	// "IdempotentParameterMismatchException".
    26  	//
    27  	// A ClientRequestToken input parameter was reused with an operation, but at
    28  	// least one of the other input parameters is different from the previous call
    29  	// to the operation.
    30  	ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException"
    31  
    32  	// ErrCodeImageTooLargeException for service response error code
    33  	// "ImageTooLargeException".
    34  	//
    35  	// The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment,
    36  	// the image size or resolution exceeds the allowed limit. For more information,
    37  	// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
    38  	ErrCodeImageTooLargeException = "ImageTooLargeException"
    39  
    40  	// ErrCodeInternalServerError for service response error code
    41  	// "InternalServerError".
    42  	//
    43  	// Amazon Rekognition experienced a service issue. Try your call again.
    44  	ErrCodeInternalServerError = "InternalServerError"
    45  
    46  	// ErrCodeInvalidImageFormatException for service response error code
    47  	// "InvalidImageFormatException".
    48  	//
    49  	// The provided image format is not supported.
    50  	ErrCodeInvalidImageFormatException = "InvalidImageFormatException"
    51  
    52  	// ErrCodeInvalidPaginationTokenException for service response error code
    53  	// "InvalidPaginationTokenException".
    54  	//
    55  	// Pagination token in the request is not valid.
    56  	ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException"
    57  
    58  	// ErrCodeInvalidParameterException for service response error code
    59  	// "InvalidParameterException".
    60  	//
    61  	// Input parameter violated a constraint. Validate your parameter before calling
    62  	// the API operation again.
    63  	ErrCodeInvalidParameterException = "InvalidParameterException"
    64  
    65  	// ErrCodeInvalidS3ObjectException for service response error code
    66  	// "InvalidS3ObjectException".
    67  	//
    68  	// Amazon Rekognition is unable to access the S3 object specified in the request.
    69  	ErrCodeInvalidS3ObjectException = "InvalidS3ObjectException"
    70  
    71  	// ErrCodeLimitExceededException for service response error code
    72  	// "LimitExceededException".
    73  	//
    74  	// An Amazon Rekognition service limit was exceeded. For example, if you start
    75  	// too many Amazon Rekognition Video jobs concurrently, calls to start operations
    76  	// (StartLabelDetection, for example) will raise a LimitExceededException exception
    77  	// (HTTP status code: 400) until the number of concurrently running jobs is
    78  	// below the Amazon Rekognition service limit.
    79  	ErrCodeLimitExceededException = "LimitExceededException"
    80  
    81  	// ErrCodeProvisionedThroughputExceededException for service response error code
    82  	// "ProvisionedThroughputExceededException".
    83  	//
    84  	// The number of requests exceeded your throughput limit. If you want to increase
    85  	// this limit, contact Amazon Rekognition.
    86  	ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException"
    87  
    88  	// ErrCodeResourceAlreadyExistsException for service response error code
    89  	// "ResourceAlreadyExistsException".
    90  	//
    91  	// A resource with the specified ID already exists.
    92  	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
    93  
    94  	// ErrCodeResourceInUseException for service response error code
    95  	// "ResourceInUseException".
    96  	//
    97  	// The specified resource is already being used.
    98  	ErrCodeResourceInUseException = "ResourceInUseException"
    99  
   100  	// ErrCodeResourceNotFoundException for service response error code
   101  	// "ResourceNotFoundException".
   102  	//
   103  	// The resource specified in the request cannot be found.
   104  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
   105  
   106  	// ErrCodeResourceNotReadyException for service response error code
   107  	// "ResourceNotReadyException".
   108  	//
   109  	// The requested resource isn't ready. For example, this exception occurs when
   110  	// you call DetectCustomLabels with a model version that isn't deployed.
   111  	ErrCodeResourceNotReadyException = "ResourceNotReadyException"
   112  
   113  	// ErrCodeServiceQuotaExceededException for service response error code
   114  	// "ServiceQuotaExceededException".
   115  	//
   116  	// The size of the collection exceeds the allowed limit. For more information,
   117  	// see Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide.
   118  	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
   119  
   120  	// ErrCodeThrottlingException for service response error code
   121  	// "ThrottlingException".
   122  	//
   123  	// Amazon Rekognition is temporarily unable to process the request. Try your
   124  	// call again.
   125  	ErrCodeThrottlingException = "ThrottlingException"
   126  
   127  	// ErrCodeVideoTooLargeException for service response error code
   128  	// "VideoTooLargeException".
   129  	//
   130  	// The file size or duration of the supplied media is too large. The maximum
   131  	// file size is 10GB. The maximum duration is 6 hours.
   132  	ErrCodeVideoTooLargeException = "VideoTooLargeException"
   133  )
   134  
   135  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   136  	"AccessDeniedException":                  newErrorAccessDeniedException,
   137  	"HumanLoopQuotaExceededException":        newErrorHumanLoopQuotaExceededException,
   138  	"IdempotentParameterMismatchException":   newErrorIdempotentParameterMismatchException,
   139  	"ImageTooLargeException":                 newErrorImageTooLargeException,
   140  	"InternalServerError":                    newErrorInternalServerError,
   141  	"InvalidImageFormatException":            newErrorInvalidImageFormatException,
   142  	"InvalidPaginationTokenException":        newErrorInvalidPaginationTokenException,
   143  	"InvalidParameterException":              newErrorInvalidParameterException,
   144  	"InvalidS3ObjectException":               newErrorInvalidS3ObjectException,
   145  	"LimitExceededException":                 newErrorLimitExceededException,
   146  	"ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException,
   147  	"ResourceAlreadyExistsException":         newErrorResourceAlreadyExistsException,
   148  	"ResourceInUseException":                 newErrorResourceInUseException,
   149  	"ResourceNotFoundException":              newErrorResourceNotFoundException,
   150  	"ResourceNotReadyException":              newErrorResourceNotReadyException,
   151  	"ServiceQuotaExceededException":          newErrorServiceQuotaExceededException,
   152  	"ThrottlingException":                    newErrorThrottlingException,
   153  	"VideoTooLargeException":                 newErrorVideoTooLargeException,
   154  }