github.com/aavshr/aws-sdk-go@v1.41.3/service/voiceid/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package voiceid 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 do not have sufficient permissions to perform this action. Check the 15 // error message and try again. 16 ErrCodeAccessDeniedException = "AccessDeniedException" 17 18 // ErrCodeConflictException for service response error code 19 // "ConflictException". 20 // 21 // The request failed due to a conflict. Check the ConflictType and error message 22 // for more details. 23 ErrCodeConflictException = "ConflictException" 24 25 // ErrCodeInternalServerException for service response error code 26 // "InternalServerException". 27 // 28 // The request failed due to an unknown error on the server side. 29 ErrCodeInternalServerException = "InternalServerException" 30 31 // ErrCodeResourceNotFoundException for service response error code 32 // "ResourceNotFoundException". 33 // 34 // The specified resource cannot be found. Check the ResourceType and error 35 // message for more details. 36 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 37 38 // ErrCodeServiceQuotaExceededException for service response error code 39 // "ServiceQuotaExceededException". 40 // 41 // The request exceeded the service quota. Refer to Voice ID Service Quotas 42 // (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#voiceid-quotas) 43 // and try your request again. 44 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 45 46 // ErrCodeThrottlingException for service response error code 47 // "ThrottlingException". 48 // 49 // The request was denied due to request throttling. Please slow down your request 50 // rate. Refer to Amazon Connect Voice ID Service API throttling quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas) 51 // and try your request again. 52 ErrCodeThrottlingException = "ThrottlingException" 53 54 // ErrCodeValidationException for service response error code 55 // "ValidationException". 56 // 57 // The request failed one or more validations; check the error message for more 58 // details. 59 ErrCodeValidationException = "ValidationException" 60 ) 61 62 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 63 "AccessDeniedException": newErrorAccessDeniedException, 64 "ConflictException": newErrorConflictException, 65 "InternalServerException": newErrorInternalServerException, 66 "ResourceNotFoundException": newErrorResourceNotFoundException, 67 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 68 "ThrottlingException": newErrorThrottlingException, 69 "ValidationException": newErrorValidationException, 70 }