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 request was rejected because multiple requests to change this object were 11// submitted simultaneously. Wait a few minutes and submit your request again. 12type ConcurrentModificationException struct { 13 Message *string 14} 15 16func (e *ConcurrentModificationException) Error() string { 17 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 18} 19func (e *ConcurrentModificationException) ErrorMessage() string { 20 if e.Message == nil { 21 return "" 22 } 23 return *e.Message 24} 25func (e *ConcurrentModificationException) ErrorCode() string { 26 return "ConcurrentModificationException" 27} 28func (e *ConcurrentModificationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 29 30// The request was rejected because the most recent credential report has expired. 31// To generate a new credential report, use GenerateCredentialReport. For more 32// information about credential report expiration, see Getting credential reports 33// (https://docs.aws.amazon.com/IAM/latest/UserGuide/credential-reports.html) in 34// the IAM User Guide. 35type CredentialReportExpiredException struct { 36 Message *string 37} 38 39func (e *CredentialReportExpiredException) Error() string { 40 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 41} 42func (e *CredentialReportExpiredException) ErrorMessage() string { 43 if e.Message == nil { 44 return "" 45 } 46 return *e.Message 47} 48func (e *CredentialReportExpiredException) ErrorCode() string { 49 return "CredentialReportExpiredException" 50} 51func (e *CredentialReportExpiredException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 52 53// The request was rejected because the credential report does not exist. To 54// generate a credential report, use GenerateCredentialReport. 55type CredentialReportNotPresentException struct { 56 Message *string 57} 58 59func (e *CredentialReportNotPresentException) Error() string { 60 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 61} 62func (e *CredentialReportNotPresentException) ErrorMessage() string { 63 if e.Message == nil { 64 return "" 65 } 66 return *e.Message 67} 68func (e *CredentialReportNotPresentException) ErrorCode() string { 69 return "CredentialReportNotPresentException" 70} 71func (e *CredentialReportNotPresentException) ErrorFault() smithy.ErrorFault { 72 return smithy.FaultClient 73} 74 75// The request was rejected because the credential report is still being generated. 76type CredentialReportNotReadyException struct { 77 Message *string 78} 79 80func (e *CredentialReportNotReadyException) Error() string { 81 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 82} 83func (e *CredentialReportNotReadyException) ErrorMessage() string { 84 if e.Message == nil { 85 return "" 86 } 87 return *e.Message 88} 89func (e *CredentialReportNotReadyException) ErrorCode() string { 90 return "CredentialReportNotReadyException" 91} 92func (e *CredentialReportNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 93 94// The request was rejected because it attempted to delete a resource that has 95// attached subordinate entities. The error message describes these entities. 96type DeleteConflictException struct { 97 Message *string 98} 99 100func (e *DeleteConflictException) Error() string { 101 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 102} 103func (e *DeleteConflictException) ErrorMessage() string { 104 if e.Message == nil { 105 return "" 106 } 107 return *e.Message 108} 109func (e *DeleteConflictException) ErrorCode() string { return "DeleteConflictException" } 110func (e *DeleteConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 111 112// The request was rejected because the same certificate is associated with an IAM 113// user in the account. 114type DuplicateCertificateException struct { 115 Message *string 116} 117 118func (e *DuplicateCertificateException) Error() string { 119 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 120} 121func (e *DuplicateCertificateException) ErrorMessage() string { 122 if e.Message == nil { 123 return "" 124 } 125 return *e.Message 126} 127func (e *DuplicateCertificateException) ErrorCode() string { return "DuplicateCertificateException" } 128func (e *DuplicateCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 129 130// The request was rejected because the SSH public key is already associated with 131// the specified IAM user. 132type DuplicateSSHPublicKeyException struct { 133 Message *string 134} 135 136func (e *DuplicateSSHPublicKeyException) Error() string { 137 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 138} 139func (e *DuplicateSSHPublicKeyException) ErrorMessage() string { 140 if e.Message == nil { 141 return "" 142 } 143 return *e.Message 144} 145func (e *DuplicateSSHPublicKeyException) ErrorCode() string { return "DuplicateSSHPublicKeyException" } 146func (e *DuplicateSSHPublicKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 147 148// The request was rejected because it attempted to create a resource that already 149// exists. 150type EntityAlreadyExistsException struct { 151 Message *string 152} 153 154func (e *EntityAlreadyExistsException) Error() string { 155 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 156} 157func (e *EntityAlreadyExistsException) ErrorMessage() string { 158 if e.Message == nil { 159 return "" 160 } 161 return *e.Message 162} 163func (e *EntityAlreadyExistsException) ErrorCode() string { return "EntityAlreadyExistsException" } 164func (e *EntityAlreadyExistsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 165 166// The request was rejected because it referenced an entity that is temporarily 167// unmodifiable, such as a user name that was deleted and then recreated. The error 168// indicates that the request is likely to succeed if you try again after waiting 169// several minutes. The error message describes the entity. 170type EntityTemporarilyUnmodifiableException struct { 171 Message *string 172} 173 174func (e *EntityTemporarilyUnmodifiableException) Error() string { 175 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 176} 177func (e *EntityTemporarilyUnmodifiableException) ErrorMessage() string { 178 if e.Message == nil { 179 return "" 180 } 181 return *e.Message 182} 183func (e *EntityTemporarilyUnmodifiableException) ErrorCode() string { 184 return "EntityTemporarilyUnmodifiableException" 185} 186func (e *EntityTemporarilyUnmodifiableException) ErrorFault() smithy.ErrorFault { 187 return smithy.FaultClient 188} 189 190// The request was rejected because the authentication code was not recognized. The 191// error message describes the specific error. 192type InvalidAuthenticationCodeException struct { 193 Message *string 194} 195 196func (e *InvalidAuthenticationCodeException) Error() string { 197 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 198} 199func (e *InvalidAuthenticationCodeException) ErrorMessage() string { 200 if e.Message == nil { 201 return "" 202 } 203 return *e.Message 204} 205func (e *InvalidAuthenticationCodeException) ErrorCode() string { 206 return "InvalidAuthenticationCodeException" 207} 208func (e *InvalidAuthenticationCodeException) ErrorFault() smithy.ErrorFault { 209 return smithy.FaultClient 210} 211 212// The request was rejected because the certificate is invalid. 213type InvalidCertificateException struct { 214 Message *string 215} 216 217func (e *InvalidCertificateException) Error() string { 218 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 219} 220func (e *InvalidCertificateException) ErrorMessage() string { 221 if e.Message == nil { 222 return "" 223 } 224 return *e.Message 225} 226func (e *InvalidCertificateException) ErrorCode() string { return "InvalidCertificateException" } 227func (e *InvalidCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 228 229// The request was rejected because an invalid or out-of-range value was supplied 230// for an input parameter. 231type InvalidInputException struct { 232 Message *string 233} 234 235func (e *InvalidInputException) Error() string { 236 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 237} 238func (e *InvalidInputException) ErrorMessage() string { 239 if e.Message == nil { 240 return "" 241 } 242 return *e.Message 243} 244func (e *InvalidInputException) ErrorCode() string { return "InvalidInputException" } 245func (e *InvalidInputException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 246 247// The request was rejected because the public key is malformed or otherwise 248// invalid. 249type InvalidPublicKeyException struct { 250 Message *string 251} 252 253func (e *InvalidPublicKeyException) Error() string { 254 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 255} 256func (e *InvalidPublicKeyException) ErrorMessage() string { 257 if e.Message == nil { 258 return "" 259 } 260 return *e.Message 261} 262func (e *InvalidPublicKeyException) ErrorCode() string { return "InvalidPublicKeyException" } 263func (e *InvalidPublicKeyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 264 265// The request was rejected because the type of user for the transaction was 266// incorrect. 267type InvalidUserTypeException struct { 268 Message *string 269} 270 271func (e *InvalidUserTypeException) Error() string { 272 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 273} 274func (e *InvalidUserTypeException) ErrorMessage() string { 275 if e.Message == nil { 276 return "" 277 } 278 return *e.Message 279} 280func (e *InvalidUserTypeException) ErrorCode() string { return "InvalidUserTypeException" } 281func (e *InvalidUserTypeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 282 283// The request was rejected because the public key certificate and the private key 284// do not match. 285type KeyPairMismatchException struct { 286 Message *string 287} 288 289func (e *KeyPairMismatchException) Error() string { 290 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 291} 292func (e *KeyPairMismatchException) ErrorMessage() string { 293 if e.Message == nil { 294 return "" 295 } 296 return *e.Message 297} 298func (e *KeyPairMismatchException) ErrorCode() string { return "KeyPairMismatchException" } 299func (e *KeyPairMismatchException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 300 301// The request was rejected because it attempted to create resources beyond the 302// current AWS account limits. The error message describes the limit exceeded. 303type LimitExceededException struct { 304 Message *string 305} 306 307func (e *LimitExceededException) Error() string { 308 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 309} 310func (e *LimitExceededException) ErrorMessage() string { 311 if e.Message == nil { 312 return "" 313 } 314 return *e.Message 315} 316func (e *LimitExceededException) ErrorCode() string { return "LimitExceededException" } 317func (e *LimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 318 319// The request was rejected because the certificate was malformed or expired. The 320// error message describes the specific error. 321type MalformedCertificateException struct { 322 Message *string 323} 324 325func (e *MalformedCertificateException) Error() string { 326 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 327} 328func (e *MalformedCertificateException) ErrorMessage() string { 329 if e.Message == nil { 330 return "" 331 } 332 return *e.Message 333} 334func (e *MalformedCertificateException) ErrorCode() string { return "MalformedCertificateException" } 335func (e *MalformedCertificateException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 336 337// The request was rejected because the policy document was malformed. The error 338// message describes the specific error. 339type MalformedPolicyDocumentException struct { 340 Message *string 341} 342 343func (e *MalformedPolicyDocumentException) Error() string { 344 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 345} 346func (e *MalformedPolicyDocumentException) ErrorMessage() string { 347 if e.Message == nil { 348 return "" 349 } 350 return *e.Message 351} 352func (e *MalformedPolicyDocumentException) ErrorCode() string { 353 return "MalformedPolicyDocumentException" 354} 355func (e *MalformedPolicyDocumentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 356 357// The request was rejected because it referenced a resource entity that does not 358// exist. The error message describes the resource. 359type NoSuchEntityException struct { 360 Message *string 361} 362 363func (e *NoSuchEntityException) Error() string { 364 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 365} 366func (e *NoSuchEntityException) ErrorMessage() string { 367 if e.Message == nil { 368 return "" 369 } 370 return *e.Message 371} 372func (e *NoSuchEntityException) ErrorCode() string { return "NoSuchEntityException" } 373func (e *NoSuchEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 374 375// The request was rejected because the provided password did not meet the 376// requirements imposed by the account password policy. 377type PasswordPolicyViolationException struct { 378 Message *string 379} 380 381func (e *PasswordPolicyViolationException) Error() string { 382 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 383} 384func (e *PasswordPolicyViolationException) ErrorMessage() string { 385 if e.Message == nil { 386 return "" 387 } 388 return *e.Message 389} 390func (e *PasswordPolicyViolationException) ErrorCode() string { 391 return "PasswordPolicyViolationException" 392} 393func (e *PasswordPolicyViolationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 394 395// The request failed because a provided policy could not be successfully 396// evaluated. An additional detailed message indicates the source of the failure. 397type PolicyEvaluationException struct { 398 Message *string 399} 400 401func (e *PolicyEvaluationException) Error() string { 402 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 403} 404func (e *PolicyEvaluationException) ErrorMessage() string { 405 if e.Message == nil { 406 return "" 407 } 408 return *e.Message 409} 410func (e *PolicyEvaluationException) ErrorCode() string { return "PolicyEvaluationException" } 411func (e *PolicyEvaluationException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 412 413// The request failed because AWS service role policies can only be attached to the 414// service-linked role for that service. 415type PolicyNotAttachableException struct { 416 Message *string 417} 418 419func (e *PolicyNotAttachableException) Error() string { 420 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 421} 422func (e *PolicyNotAttachableException) ErrorMessage() string { 423 if e.Message == nil { 424 return "" 425 } 426 return *e.Message 427} 428func (e *PolicyNotAttachableException) ErrorCode() string { return "PolicyNotAttachableException" } 429func (e *PolicyNotAttachableException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 430 431// The request failed because the maximum number of concurrent requests for this 432// account are already running. 433type ReportGenerationLimitExceededException struct { 434 Message *string 435} 436 437func (e *ReportGenerationLimitExceededException) Error() string { 438 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 439} 440func (e *ReportGenerationLimitExceededException) ErrorMessage() string { 441 if e.Message == nil { 442 return "" 443 } 444 return *e.Message 445} 446func (e *ReportGenerationLimitExceededException) ErrorCode() string { 447 return "ReportGenerationLimitExceededException" 448} 449func (e *ReportGenerationLimitExceededException) ErrorFault() smithy.ErrorFault { 450 return smithy.FaultClient 451} 452 453// The request processing has failed because of an unknown error, exception or 454// failure. 455type ServiceFailureException struct { 456 Message *string 457} 458 459func (e *ServiceFailureException) Error() string { 460 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 461} 462func (e *ServiceFailureException) ErrorMessage() string { 463 if e.Message == nil { 464 return "" 465 } 466 return *e.Message 467} 468func (e *ServiceFailureException) ErrorCode() string { return "ServiceFailureException" } 469func (e *ServiceFailureException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } 470 471// The specified service does not support service-specific credentials. 472type ServiceNotSupportedException struct { 473 Message *string 474} 475 476func (e *ServiceNotSupportedException) Error() string { 477 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 478} 479func (e *ServiceNotSupportedException) ErrorMessage() string { 480 if e.Message == nil { 481 return "" 482 } 483 return *e.Message 484} 485func (e *ServiceNotSupportedException) ErrorCode() string { return "ServiceNotSupportedException" } 486func (e *ServiceNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 487 488// The request was rejected because only the service that depends on the 489// service-linked role can modify or delete the role on your behalf. The error 490// message includes the name of the service that depends on this service-linked 491// role. You must request the change through that service. 492type UnmodifiableEntityException struct { 493 Message *string 494} 495 496func (e *UnmodifiableEntityException) Error() string { 497 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 498} 499func (e *UnmodifiableEntityException) ErrorMessage() string { 500 if e.Message == nil { 501 return "" 502 } 503 return *e.Message 504} 505func (e *UnmodifiableEntityException) ErrorCode() string { return "UnmodifiableEntityException" } 506func (e *UnmodifiableEntityException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } 507 508// The request was rejected because the public key encoding format is unsupported 509// or unrecognized. 510type UnrecognizedPublicKeyEncodingException struct { 511 Message *string 512} 513 514func (e *UnrecognizedPublicKeyEncodingException) Error() string { 515 return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage()) 516} 517func (e *UnrecognizedPublicKeyEncodingException) ErrorMessage() string { 518 if e.Message == nil { 519 return "" 520 } 521 return *e.Message 522} 523func (e *UnrecognizedPublicKeyEncodingException) ErrorCode() string { 524 return "UnrecognizedPublicKeyEncodingException" 525} 526func (e *UnrecognizedPublicKeyEncodingException) ErrorFault() smithy.ErrorFault { 527 return smithy.FaultClient 528} 529