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 service can't process your request because of a problem in the request. 11// Please check your request form and syntax. 12type BadRequestException struct { 13 Message *string 14 15 noSmithyDocumentSerde 16} 17 18func (e *BadRequestException) Error() string { 19 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 20} 21func (e *BadRequestException) ErrorMessage() string { 22 if e.Message == nil { 23 return "" 24 } 25 return *e.Message 26} 27func (e *BadRequestException) ErrorCode() string { return "BadRequestException" } 28func (e *BadRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 29 30// The service couldn't complete your request because there is a conflict with the 31// current state of the resource. 32type ConflictException struct { 33 Message *string 34 35 noSmithyDocumentSerde 36} 37 38func (e *ConflictException) Error() string { 39 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 40} 41func (e *ConflictException) ErrorMessage() string { 42 if e.Message == nil { 43 return "" 44 } 45 return *e.Message 46} 47func (e *ConflictException) ErrorCode() string { return "ConflictException" } 48func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 49 50// You don't have permissions for this action with the credentials you sent. 51type ForbiddenException struct { 52 Message *string 53 54 noSmithyDocumentSerde 55} 56 57func (e *ForbiddenException) Error() string { 58 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 59} 60func (e *ForbiddenException) ErrorMessage() string { 61 if e.Message == nil { 62 return "" 63 } 64 return *e.Message 65} 66func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } 67func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 68 69// The service encountered an unexpected condition and can't fulfill your request. 70type InternalServerErrorException struct { 71 Message *string 72 73 noSmithyDocumentSerde 74} 75 76func (e *InternalServerErrorException) Error() string { 77 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 78} 79func (e *InternalServerErrorException) ErrorMessage() string { 80 if e.Message == nil { 81 return "" 82 } 83 return *e.Message 84} 85func (e *InternalServerErrorException) ErrorCode() string { return "InternalServerErrorException" } 86func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 87 88// The resource you requested doesn't exist. 89type NotFoundException struct { 90 Message *string 91 92 noSmithyDocumentSerde 93} 94 95func (e *NotFoundException) Error() string { 96 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 97} 98func (e *NotFoundException) ErrorMessage() string { 99 if e.Message == nil { 100 return "" 101 } 102 return *e.Message 103} 104func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } 105func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 106 107// Too many requests have been sent in too short of a time. The service limits the 108// rate at which it will accept requests. 109type TooManyRequestsException struct { 110 Message *string 111 112 noSmithyDocumentSerde 113} 114 115func (e *TooManyRequestsException) Error() string { 116 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 117} 118func (e *TooManyRequestsException) ErrorMessage() string { 119 if e.Message == nil { 120 return "" 121 } 122 return *e.Message 123} 124func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } 125func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 126