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 requested operation would cause a conflict with the current state of a 11// service resource associated with the request. Resolve the conflict before 12// retrying this request. 13type ConflictException struct { 14 Message *string 15} 16 17func (e *ConflictException) Error() string { 18 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 19} 20func (e *ConflictException) ErrorMessage() string { 21 if e.Message == nil { 22 return "" 23 } 24 return *e.Message 25} 26func (e *ConflictException) ErrorCode() string { return "ConflictException" } 27func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 28 29// The specified fleet has no available instances to fulfill a CreateGameSession 30// request. Clients can retry such requests immediately or after a waiting period. 31type FleetCapacityExceededException struct { 32 Message *string 33} 34 35func (e *FleetCapacityExceededException) Error() string { 36 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 37} 38func (e *FleetCapacityExceededException) ErrorMessage() string { 39 if e.Message == nil { 40 return "" 41 } 42 return *e.Message 43} 44func (e *FleetCapacityExceededException) ErrorCode() string { return "FleetCapacityExceededException" } 45func (e *FleetCapacityExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 46 47// The game instance is currently full and cannot allow the requested player(s) to 48// join. Clients can retry such requests immediately or after a waiting period. 49type GameSessionFullException struct { 50 Message *string 51} 52 53func (e *GameSessionFullException) Error() string { 54 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 55} 56func (e *GameSessionFullException) ErrorMessage() string { 57 if e.Message == nil { 58 return "" 59 } 60 return *e.Message 61} 62func (e *GameSessionFullException) ErrorCode() string { return "GameSessionFullException" } 63func (e *GameSessionFullException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 64 65// A game session with this custom ID string already exists in this fleet. Resolve 66// this conflict before retrying this request. 67type IdempotentParameterMismatchException struct { 68 Message *string 69} 70 71func (e *IdempotentParameterMismatchException) Error() string { 72 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 73} 74func (e *IdempotentParameterMismatchException) ErrorMessage() string { 75 if e.Message == nil { 76 return "" 77 } 78 return *e.Message 79} 80func (e *IdempotentParameterMismatchException) ErrorCode() string { 81 return "IdempotentParameterMismatchException" 82} 83func (e *IdempotentParameterMismatchException) ErrorFault() smithy.ErrorFault { 84 return smithy.FaultClient 85} 86 87// The service encountered an unrecoverable internal failure while processing the 88// request. Clients can retry such requests immediately or after a waiting period. 89type InternalServiceException struct { 90 Message *string 91} 92 93func (e *InternalServiceException) Error() string { 94 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 95} 96func (e *InternalServiceException) ErrorMessage() string { 97 if e.Message == nil { 98 return "" 99 } 100 return *e.Message 101} 102func (e *InternalServiceException) ErrorCode() string { return "InternalServiceException" } 103func (e *InternalServiceException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 104 105// The requested operation would cause a conflict with the current state of a 106// resource associated with the request and/or the fleet. Resolve the conflict 107// before retrying. 108type InvalidFleetStatusException struct { 109 Message *string 110} 111 112func (e *InvalidFleetStatusException) Error() string { 113 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 114} 115func (e *InvalidFleetStatusException) ErrorMessage() string { 116 if e.Message == nil { 117 return "" 118 } 119 return *e.Message 120} 121func (e *InvalidFleetStatusException) ErrorCode() string { return "InvalidFleetStatusException" } 122func (e *InvalidFleetStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 123 124// The requested operation would cause a conflict with the current state of a 125// resource associated with the request and/or the game instance. Resolve the 126// conflict before retrying. 127type InvalidGameSessionStatusException struct { 128 Message *string 129} 130 131func (e *InvalidGameSessionStatusException) Error() string { 132 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 133} 134func (e *InvalidGameSessionStatusException) ErrorMessage() string { 135 if e.Message == nil { 136 return "" 137 } 138 return *e.Message 139} 140func (e *InvalidGameSessionStatusException) ErrorCode() string { 141 return "InvalidGameSessionStatusException" 142} 143func (e *InvalidGameSessionStatusException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 144 145// One or more parameter values in the request are invalid. Correct the invalid 146// parameter values before retrying. 147type InvalidRequestException struct { 148 Message *string 149} 150 151func (e *InvalidRequestException) Error() string { 152 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 153} 154func (e *InvalidRequestException) ErrorMessage() string { 155 if e.Message == nil { 156 return "" 157 } 158 return *e.Message 159} 160func (e *InvalidRequestException) ErrorCode() string { return "InvalidRequestException" } 161func (e *InvalidRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 162 163// The requested operation would cause the resource to exceed the allowed service 164// limit. Resolve the issue before retrying. 165type LimitExceededException struct { 166 Message *string 167} 168 169func (e *LimitExceededException) Error() string { 170 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 171} 172func (e *LimitExceededException) ErrorMessage() string { 173 if e.Message == nil { 174 return "" 175 } 176 return *e.Message 177} 178func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 179func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 180 181// A service resource associated with the request could not be found. Clients 182// should not retry such requests. 183type NotFoundException struct { 184 Message *string 185} 186 187func (e *NotFoundException) Error() string { 188 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 189} 190func (e *NotFoundException) ErrorMessage() string { 191 if e.Message == nil { 192 return "" 193 } 194 return *e.Message 195} 196func (e *NotFoundException) ErrorCode() string { return "NotFoundException" } 197func (e *NotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 198 199// The specified game server group has no available game servers to fulfill a 200// ClaimGameServer request. Clients can retry such requests immediately or after a 201// waiting period. 202type OutOfCapacityException struct { 203 Message *string 204} 205 206func (e *OutOfCapacityException) Error() string { 207 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 208} 209func (e *OutOfCapacityException) ErrorMessage() string { 210 if e.Message == nil { 211 return "" 212 } 213 return *e.Message 214} 215func (e *OutOfCapacityException) ErrorCode() string { return "OutOfCapacityException" } 216func (e *OutOfCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 217 218// The requested tagging operation did not succeed. This may be due to invalid tag 219// format or the maximum tag limit may have been exceeded. Resolve the issue before 220// retrying. 221type TaggingFailedException struct { 222 Message *string 223} 224 225func (e *TaggingFailedException) Error() string { 226 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 227} 228func (e *TaggingFailedException) ErrorMessage() string { 229 if e.Message == nil { 230 return "" 231 } 232 return *e.Message 233} 234func (e *TaggingFailedException) ErrorCode() string { return "TaggingFailedException" } 235func (e *TaggingFailedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 236 237// The service is unable to resolve the routing for a particular alias because it 238// has a terminal RoutingStrategy associated with it. The message returned in this 239// exception is the message defined in the routing strategy itself. Such requests 240// should only be retried if the routing strategy for the specified alias is 241// modified. 242type TerminalRoutingStrategyException struct { 243 Message *string 244} 245 246func (e *TerminalRoutingStrategyException) Error() string { 247 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 248} 249func (e *TerminalRoutingStrategyException) ErrorMessage() string { 250 if e.Message == nil { 251 return "" 252 } 253 return *e.Message 254} 255func (e *TerminalRoutingStrategyException) ErrorCode() string { 256 return "TerminalRoutingStrategyException" 257} 258func (e *TerminalRoutingStrategyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 259 260// The client failed authentication. Clients should not retry such requests. 261type UnauthorizedException struct { 262 Message *string 263} 264 265func (e *UnauthorizedException) Error() string { 266 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 267} 268func (e *UnauthorizedException) ErrorMessage() string { 269 if e.Message == nil { 270 return "" 271 } 272 return *e.Message 273} 274func (e *UnauthorizedException) ErrorCode() string { return "UnauthorizedException" } 275func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 276 277// The requested operation is not supported in the Region specified. 278type UnsupportedRegionException struct { 279 Message *string 280} 281 282func (e *UnsupportedRegionException) Error() string { 283 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 284} 285func (e *UnsupportedRegionException) ErrorMessage() string { 286 if e.Message == nil { 287 return "" 288 } 289 return *e.Message 290} 291func (e *UnsupportedRegionException) ErrorCode() string { return "UnsupportedRegionException" } 292func (e *UnsupportedRegionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 293