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// Indicates that a problem occurred with the input to the request. For example, a 11// required parameter might be missing or out of range. 12type InvalidRequestException struct { 13 Message *string 14} 15 16func (e *InvalidRequestException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *InvalidRequestException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } 26func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 27 28// The specified resource doesn't exist. 29type ResourceNotFoundException struct { 30 Message *string 31} 32 33func (e *ResourceNotFoundException) Error() string { 34 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 35} 36func (e *ResourceNotFoundException) ErrorMessage() string { 37 if e.Message == nil { 38 return "" 39 } 40 return *e.Message 41} 42func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 43func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 44 45// Indicates that the request is being made too frequently and is more than what 46// the server can handle. 47type TooManyRequestsException struct { 48 Message *string 49} 50 51func (e *TooManyRequestsException) Error() string { 52 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 53} 54func (e *TooManyRequestsException) ErrorMessage() string { 55 if e.Message == nil { 56 return "" 57 } 58 return *e.Message 59} 60func (e *TooManyRequestsException) ErrorCode() string { return "TooManyRequestsException" } 61func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 62 63// Indicates that the request is not authorized. This can happen due to an invalid 64// access token in the request. 65type UnauthorizedException struct { 66 Message *string 67} 68 69func (e *UnauthorizedException) Error() string { 70 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 71} 72func (e *UnauthorizedException) ErrorMessage() string { 73 if e.Message == nil { 74 return "" 75 } 76 return *e.Message 77} 78func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } 79func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 80