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