github.com/aavshr/aws-sdk-go@v1.41.3/service/textract/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package textract 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 aren't authorized to perform the action. Use the Amazon Resource Name 15 // (ARN) of an authorized user or IAM role to perform the operation. 16 ErrCodeAccessDeniedException = "AccessDeniedException" 17 18 // ErrCodeBadDocumentException for service response error code 19 // "BadDocumentException". 20 // 21 // Amazon Textract isn't able to read the document. For more information on 22 // the document limits in Amazon Textract, see limits. 23 ErrCodeBadDocumentException = "BadDocumentException" 24 25 // ErrCodeDocumentTooLargeException for service response error code 26 // "DocumentTooLargeException". 27 // 28 // The document can't be processed because it's too large. The maximum document 29 // size for synchronous operations 10 MB. The maximum document size for asynchronous 30 // operations is 500 MB for PDF files. 31 ErrCodeDocumentTooLargeException = "DocumentTooLargeException" 32 33 // ErrCodeHumanLoopQuotaExceededException for service response error code 34 // "HumanLoopQuotaExceededException". 35 // 36 // Indicates you have exceeded the maximum number of active human in the loop 37 // workflows available 38 ErrCodeHumanLoopQuotaExceededException = "HumanLoopQuotaExceededException" 39 40 // ErrCodeIdempotentParameterMismatchException for service response error code 41 // "IdempotentParameterMismatchException". 42 // 43 // A ClientRequestToken input parameter was reused with an operation, but at 44 // least one of the other input parameters is different from the previous call 45 // to the operation. 46 ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" 47 48 // ErrCodeInternalServerError for service response error code 49 // "InternalServerError". 50 // 51 // Amazon Textract experienced a service issue. Try your call again. 52 ErrCodeInternalServerError = "InternalServerError" 53 54 // ErrCodeInvalidJobIdException for service response error code 55 // "InvalidJobIdException". 56 // 57 // An invalid job identifier was passed to GetDocumentAnalysis or to GetDocumentAnalysis. 58 ErrCodeInvalidJobIdException = "InvalidJobIdException" 59 60 // ErrCodeInvalidKMSKeyException for service response error code 61 // "InvalidKMSKeyException". 62 // 63 // Indicates you do not have decrypt permissions with the KMS key entered, or 64 // the KMS key was entered incorrectly. 65 ErrCodeInvalidKMSKeyException = "InvalidKMSKeyException" 66 67 // ErrCodeInvalidParameterException for service response error code 68 // "InvalidParameterException". 69 // 70 // An input parameter violated a constraint. For example, in synchronous operations, 71 // an InvalidParameterException exception occurs when neither of the S3Object 72 // or Bytes values are supplied in the Document request parameter. Validate 73 // your parameter before calling the API operation again. 74 ErrCodeInvalidParameterException = "InvalidParameterException" 75 76 // ErrCodeInvalidS3ObjectException for service response error code 77 // "InvalidS3ObjectException". 78 // 79 // Amazon Textract is unable to access the S3 object that's specified in the 80 // request. for more information, Configure Access to Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) 81 // For troubleshooting information, see Troubleshooting Amazon S3 (https://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html) 82 ErrCodeInvalidS3ObjectException = "InvalidS3ObjectException" 83 84 // ErrCodeLimitExceededException for service response error code 85 // "LimitExceededException". 86 // 87 // An Amazon Textract service limit was exceeded. For example, if you start 88 // too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, 89 // for example) raise a LimitExceededException exception (HTTP status code: 90 // 400) until the number of concurrently running jobs is below the Amazon Textract 91 // service limit. 92 ErrCodeLimitExceededException = "LimitExceededException" 93 94 // ErrCodeProvisionedThroughputExceededException for service response error code 95 // "ProvisionedThroughputExceededException". 96 // 97 // The number of requests exceeded your throughput limit. If you want to increase 98 // this limit, contact Amazon Textract. 99 ErrCodeProvisionedThroughputExceededException = "ProvisionedThroughputExceededException" 100 101 // ErrCodeThrottlingException for service response error code 102 // "ThrottlingException". 103 // 104 // Amazon Textract is temporarily unable to process the request. Try your call 105 // again. 106 ErrCodeThrottlingException = "ThrottlingException" 107 108 // ErrCodeUnsupportedDocumentException for service response error code 109 // "UnsupportedDocumentException". 110 // 111 // The format of the input document isn't supported. Documents for synchronous 112 // operations can be in PNG or JPEG format. Documents for asynchronous operations 113 // can also be in PDF format. 114 ErrCodeUnsupportedDocumentException = "UnsupportedDocumentException" 115 ) 116 117 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 118 "AccessDeniedException": newErrorAccessDeniedException, 119 "BadDocumentException": newErrorBadDocumentException, 120 "DocumentTooLargeException": newErrorDocumentTooLargeException, 121 "HumanLoopQuotaExceededException": newErrorHumanLoopQuotaExceededException, 122 "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, 123 "InternalServerError": newErrorInternalServerError, 124 "InvalidJobIdException": newErrorInvalidJobIdException, 125 "InvalidKMSKeyException": newErrorInvalidKMSKeyException, 126 "InvalidParameterException": newErrorInvalidParameterException, 127 "InvalidS3ObjectException": newErrorInvalidS3ObjectException, 128 "LimitExceededException": newErrorLimitExceededException, 129 "ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException, 130 "ThrottlingException": newErrorThrottlingException, 131 "UnsupportedDocumentException": newErrorUnsupportedDocumentException, 132 }