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 10type ForbiddenException struct { 11 Message *string 12 13 Code *string 14} 15 16func (e *ForbiddenException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *ForbiddenException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *ForbiddenException) ErrorCode() string { return "ForbiddenException" } 26func (e *ForbiddenException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 27 28type InternalFailureException struct { 29 Message *string 30 31 Code *string 32} 33 34func (e *InternalFailureException) Error() string { 35 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 36} 37func (e *InternalFailureException) ErrorMessage() string { 38 if e.Message == nil { 39 return "" 40 } 41 return *e.Message 42} 43func (e *InternalFailureException) ErrorCode() string { return "InternalFailureException" } 44func (e *InternalFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 45 46type InvalidRequestException struct { 47 Message *string 48 49 Code *string 50} 51 52func (e *InvalidRequestException) Error() string { 53 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 54} 55func (e *InvalidRequestException) ErrorMessage() string { 56 if e.Message == nil { 57 return "" 58 } 59 return *e.Message 60} 61func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } 62func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 63 64type PreconditionFailedException struct { 65 Message *string 66 67 Code *string 68} 69 70func (e *PreconditionFailedException) Error() string { 71 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 72} 73func (e *PreconditionFailedException) ErrorMessage() string { 74 if e.Message == nil { 75 return "" 76 } 77 return *e.Message 78} 79func (e *PreconditionFailedException) ErrorCode() string { return "PreconditionFailedException" } 80func (e *PreconditionFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 81 82type RangeNotSatisfiableException struct { 83 Message *string 84 85 Code *string 86} 87 88func (e *RangeNotSatisfiableException) Error() string { 89 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 90} 91func (e *RangeNotSatisfiableException) ErrorMessage() string { 92 if e.Message == nil { 93 return "" 94 } 95 return *e.Message 96} 97func (e *RangeNotSatisfiableException) ErrorCode() string { return "RangeNotSatisfiableException" } 98func (e *RangeNotSatisfiableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 99 100type ResourceConflictException struct { 101 Message *string 102 103 Code *string 104} 105 106func (e *ResourceConflictException) Error() string { 107 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 108} 109func (e *ResourceConflictException) ErrorMessage() string { 110 if e.Message == nil { 111 return "" 112 } 113 return *e.Message 114} 115func (e *ResourceConflictException) ErrorCode() string { return "ResourceConflictException" } 116func (e *ResourceConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 117 118type ResourceNotFoundException struct { 119 Message *string 120 121 Code *string 122} 123 124func (e *ResourceNotFoundException) Error() string { 125 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 126} 127func (e *ResourceNotFoundException) ErrorMessage() string { 128 if e.Message == nil { 129 return "" 130 } 131 return *e.Message 132} 133func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 134func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 135