github.com/aavshr/aws-sdk-go@v1.41.3/service/lexmodelbuildingservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package lexmodelbuildingservice 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 // Your IAM user or role does not have permission to call the Amazon Lex V2 15 // APIs required to migrate your bot. 16 ErrCodeAccessDeniedException = "AccessDeniedException" 17 18 // ErrCodeBadRequestException for service response error code 19 // "BadRequestException". 20 // 21 // The request is not well formed. For example, a value is invalid or a required 22 // field is missing. Check the field values, and try again. 23 ErrCodeBadRequestException = "BadRequestException" 24 25 // ErrCodeConflictException for service response error code 26 // "ConflictException". 27 // 28 // There was a conflict processing the request. Try your request again. 29 ErrCodeConflictException = "ConflictException" 30 31 // ErrCodeInternalFailureException for service response error code 32 // "InternalFailureException". 33 // 34 // An internal Amazon Lex error occurred. Try your request again. 35 ErrCodeInternalFailureException = "InternalFailureException" 36 37 // ErrCodeLimitExceededException for service response error code 38 // "LimitExceededException". 39 // 40 // The request exceeded a limit. Try your request again. 41 ErrCodeLimitExceededException = "LimitExceededException" 42 43 // ErrCodeNotFoundException for service response error code 44 // "NotFoundException". 45 // 46 // The resource specified in the request was not found. Check the resource and 47 // try again. 48 ErrCodeNotFoundException = "NotFoundException" 49 50 // ErrCodePreconditionFailedException for service response error code 51 // "PreconditionFailedException". 52 // 53 // The checksum of the resource that you are trying to change does not match 54 // the checksum in the request. Check the resource's checksum and try again. 55 ErrCodePreconditionFailedException = "PreconditionFailedException" 56 57 // ErrCodeResourceInUseException for service response error code 58 // "ResourceInUseException". 59 // 60 // The resource that you are attempting to delete is referred to by another 61 // resource. Use this information to remove references to the resource that 62 // you are trying to delete. 63 // 64 // The body of the exception contains a JSON object that describes the resource. 65 // 66 // { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT, 67 // 68 // "resourceReference": { 69 // 70 // "name": string, "version": string } } 71 ErrCodeResourceInUseException = "ResourceInUseException" 72 ) 73 74 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 75 "AccessDeniedException": newErrorAccessDeniedException, 76 "BadRequestException": newErrorBadRequestException, 77 "ConflictException": newErrorConflictException, 78 "InternalFailureException": newErrorInternalFailureException, 79 "LimitExceededException": newErrorLimitExceededException, 80 "NotFoundException": newErrorNotFoundException, 81 "PreconditionFailedException": newErrorPreconditionFailedException, 82 "ResourceInUseException": newErrorResourceInUseException, 83 }