1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "fmt" 7 smithy "github.com/aws/smithy-go" 8) 9 10// The request is not well formed. For example, a value is invalid or a required 11// field is missing. Check the field values, and try again. 12type BadRequestException struct { 13 Message *string 14} 15 16func (e *BadRequestException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *BadRequestException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } 26func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 27 28// There was a conflict processing the request. Try your request again. 29type ConflictException struct { 30 Message *string 31} 32 33func (e *ConflictException) Error() string { 34 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 35} 36func (e *ConflictException) ErrorMessage() string { 37 if e.Message == nil { 38 return "" 39 } 40 return *e.Message 41} 42func (e *ConflictException) ErrorCode() string { return "ConflictException" } 43func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 44 45// An internal Amazon Lex error occurred. Try your request again. 46type InternalFailureException struct { 47 Message *string 48} 49 50func (e *InternalFailureException) Error() string { 51 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 52} 53func (e *InternalFailureException) ErrorMessage() string { 54 if e.Message == nil { 55 return "" 56 } 57 return *e.Message 58} 59func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } 60func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 61 62// The request exceeded a limit. Try your request again. 63type LimitExceededException struct { 64 Message *string 65 66 RetryAfterSeconds *string 67} 68 69func (e *LimitExceededException) Error() string { 70 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 71} 72func (e *LimitExceededException) ErrorMessage() string { 73 if e.Message == nil { 74 return "" 75 } 76 return *e.Message 77} 78func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 79func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 80 81// The resource specified in the request was not found. Check the resource and try 82// again. 83type NotFoundException struct { 84 Message *string 85} 86 87func (e *NotFoundException) Error() string { 88 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 89} 90func (e *NotFoundException) ErrorMessage() string { 91 if e.Message == nil { 92 return "" 93 } 94 return *e.Message 95} 96func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } 97func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 98 99// The checksum of the resource that you are trying to change does not match the 100// checksum in the request. Check the resource's checksum and try again. 101type PreconditionFailedException struct { 102 Message *string 103} 104 105func (e *PreconditionFailedException) Error() string { 106 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 107} 108func (e *PreconditionFailedException) ErrorMessage() string { 109 if e.Message == nil { 110 return "" 111 } 112 return *e.Message 113} 114func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } 115func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 116 117// The resource that you are attempting to delete is referred to by another 118// resource. Use this information to remove references to the resource that you are 119// trying to delete. The body of the exception contains a JSON object that 120// describes the resource. { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT, 121// 122// "resourceReference": { 123// 124// "name": string, "version": string } } 125type ResourceInUseException struct { 126 Message *string 127 128 ReferenceType ReferenceType 129 ExampleReference *ResourceReference 130} 131 132func (e *ResourceInUseException) Error() string { 133 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 134} 135func (e *ResourceInUseException) ErrorMessage() string { 136 if e.Message == nil { 137 return "" 138 } 139 return *e.Message 140} 141func (e *ResourceInUseException) ErrorCode() string { return "ResourceInUseException" } 142func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 143