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// Access to resource denied. 11type AccessDeniedException struct { 12 Message *string 13} 14 15func (e *AccessDeniedException) Error() string { 16 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 17} 18func (e *AccessDeniedException) ErrorMessage() string { 19 if e.Message == nil { 20 return "" 21 } 22 return *e.Message 23} 24func (e *AccessDeniedException) ErrorCode() string { return "AccessDeniedException" } 25func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 26 27// The AWS user account does not have permission to perform the action. Check the 28// IAM policy associated with this account. 29type AuthorizationException struct { 30 Message *string 31} 32 33func (e *AuthorizationException) Error() string { 34 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 35} 36func (e *AuthorizationException) ErrorMessage() string { 37 if e.Message == nil { 38 return "" 39 } 40 return *e.Message 41} 42func (e *AuthorizationException) ErrorCode() string { return "AuthorizationException" } 43func (e *AuthorizationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 44 45// There was a conflict processing the request. Try your request again. 46type ConflictException struct { 47 Message *string 48} 49 50func (e *ConflictException) Error() string { 51 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 52} 53func (e *ConflictException) ErrorMessage() string { 54 if e.Message == nil { 55 return "" 56 } 57 return *e.Message 58} 59func (e *ConflictException) ErrorCode() string { return "ConflictException" } 60func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 61 62// The entitlement is not allowed. 63type EntitlementNotAllowedException struct { 64 Message *string 65} 66 67func (e *EntitlementNotAllowedException) Error() string { 68 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 69} 70func (e *EntitlementNotAllowedException) ErrorMessage() string { 71 if e.Message == nil { 72 return "" 73 } 74 return *e.Message 75} 76func (e *EntitlementNotAllowedException) ErrorCode() string { return "EntitlementNotAllowedException" } 77func (e *EntitlementNotAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 78 79// A dependency required to run the API is missing. 80type FailedDependencyException struct { 81 Message *string 82 83 ErrorCode_ *string 84} 85 86func (e *FailedDependencyException) Error() string { 87 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 88} 89func (e *FailedDependencyException) ErrorMessage() string { 90 if e.Message == nil { 91 return "" 92 } 93 return *e.Message 94} 95func (e *FailedDependencyException) ErrorCode() string { return "FailedDependencyException" } 96func (e *FailedDependencyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 97 98// The request uses too many filters or too many filter values. 99type FilterLimitExceededException struct { 100 Message *string 101} 102 103func (e *FilterLimitExceededException) Error() string { 104 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 105} 106func (e *FilterLimitExceededException) ErrorMessage() string { 107 if e.Message == nil { 108 return "" 109 } 110 return *e.Message 111} 112func (e *FilterLimitExceededException) ErrorCode() string { return "FilterLimitExceededException" } 113func (e *FilterLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 114 115// One or more parameter values are not valid. 116type InvalidParameterValueException struct { 117 Message *string 118} 119 120func (e *InvalidParameterValueException) Error() string { 121 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 122} 123func (e *InvalidParameterValueException) ErrorMessage() string { 124 if e.Message == nil { 125 return "" 126 } 127 return *e.Message 128} 129func (e *InvalidParameterValueException) ErrorCode() string { return "InvalidParameterValueException" } 130func (e *InvalidParameterValueException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 131 132// License Manager cannot allocate a license to a resource because of its state. 133// For example, you cannot allocate a license to an instance in the process of 134// shutting down. 135type InvalidResourceStateException struct { 136 Message *string 137} 138 139func (e *InvalidResourceStateException) Error() string { 140 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 141} 142func (e *InvalidResourceStateException) ErrorMessage() string { 143 if e.Message == nil { 144 return "" 145 } 146 return *e.Message 147} 148func (e *InvalidResourceStateException) ErrorCode() string { return "InvalidResourceStateException" } 149func (e *InvalidResourceStateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 150 151// You do not have enough licenses available to support a new resource launch. 152type LicenseUsageException struct { 153 Message *string 154} 155 156func (e *LicenseUsageException) Error() string { 157 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 158} 159func (e *LicenseUsageException) ErrorMessage() string { 160 if e.Message == nil { 161 return "" 162 } 163 return *e.Message 164} 165func (e *LicenseUsageException) ErrorCode() string { return "LicenseUsageException" } 166func (e *LicenseUsageException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 167 168// There are no entitlements found for this license, or the entitlement maximum 169// count is reached. 170type NoEntitlementsAllowedException struct { 171 Message *string 172} 173 174func (e *NoEntitlementsAllowedException) Error() string { 175 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 176} 177func (e *NoEntitlementsAllowedException) ErrorMessage() string { 178 if e.Message == nil { 179 return "" 180 } 181 return *e.Message 182} 183func (e *NoEntitlementsAllowedException) ErrorCode() string { return "NoEntitlementsAllowedException" } 184func (e *NoEntitlementsAllowedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 185 186// Too many requests have been submitted. Try again after a brief wait. 187type RateLimitExceededException struct { 188 Message *string 189} 190 191func (e *RateLimitExceededException) Error() string { 192 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 193} 194func (e *RateLimitExceededException) ErrorMessage() string { 195 if e.Message == nil { 196 return "" 197 } 198 return *e.Message 199} 200func (e *RateLimitExceededException) ErrorCode() string { return "RateLimitExceededException" } 201func (e *RateLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 202 203// This is not the correct Region for the resource. Try again. 204type RedirectException struct { 205 Message *string 206 207 Location *string 208} 209 210func (e *RedirectException) Error() string { 211 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 212} 213func (e *RedirectException) ErrorMessage() string { 214 if e.Message == nil { 215 return "" 216 } 217 return *e.Message 218} 219func (e *RedirectException) ErrorCode() string { return "RedirectException" } 220func (e *RedirectException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 221 222// Your resource limits have been exceeded. 223type ResourceLimitExceededException struct { 224 Message *string 225} 226 227func (e *ResourceLimitExceededException) Error() string { 228 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 229} 230func (e *ResourceLimitExceededException) ErrorMessage() string { 231 if e.Message == nil { 232 return "" 233 } 234 return *e.Message 235} 236func (e *ResourceLimitExceededException) ErrorCode() string { return "ResourceLimitExceededException" } 237func (e *ResourceLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 238 239// The resource cannot be found. 240type ResourceNotFoundException struct { 241 Message *string 242} 243 244func (e *ResourceNotFoundException) Error() string { 245 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 246} 247func (e *ResourceNotFoundException) ErrorMessage() string { 248 if e.Message == nil { 249 return "" 250 } 251 return *e.Message 252} 253func (e *ResourceNotFoundException) ErrorCode() string { return "ResourceNotFoundException" } 254func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 255 256// The server experienced an internal error. Try again. 257type ServerInternalException struct { 258 Message *string 259} 260 261func (e *ServerInternalException) Error() string { 262 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 263} 264func (e *ServerInternalException) ErrorMessage() string { 265 if e.Message == nil { 266 return "" 267 } 268 return *e.Message 269} 270func (e *ServerInternalException) ErrorCode() string { return "ServerInternalException" } 271func (e *ServerInternalException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 272 273// The digital signature method is unsupported. Try your request again. 274type UnsupportedDigitalSignatureMethodException struct { 275 Message *string 276} 277 278func (e *UnsupportedDigitalSignatureMethodException) Error() string { 279 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 280} 281func (e *UnsupportedDigitalSignatureMethodException) ErrorMessage() string { 282 if e.Message == nil { 283 return "" 284 } 285 return *e.Message 286} 287func (e *UnsupportedDigitalSignatureMethodException) ErrorCode() string { 288 return "UnsupportedDigitalSignatureMethodException" 289} 290func (e *UnsupportedDigitalSignatureMethodException) ErrorFault() smithy.ErrorFault { 291 return smithy.FaultClient 292} 293 294// The provided input is not valid. Try your request again. 295type ValidationException struct { 296 Message *string 297} 298 299func (e *ValidationException) Error() string { 300 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 301} 302func (e *ValidationException) ErrorMessage() string { 303 if e.Message == nil { 304 return "" 305 } 306 return *e.Message 307} 308func (e *ValidationException) ErrorCode() string { return "ValidationException" } 309func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 310