github.com/aavshr/aws-sdk-go@v1.41.3/service/ssoadmin/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package ssoadmin 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // You do not have sufficient access to perform this action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // Occurs when a conflict with a previous successful write is detected. This 21 // generally occurs when the previous write did not have time to propagate to 22 // the host serving the current request. A retry (with appropriate backoff logic) 23 // is the recommended response to this exception. 24 ErrCodeConflictException = "ConflictException" 25 26 // ErrCodeInternalServerException for service response error code 27 // "InternalServerException". 28 // 29 // The request processing has failed because of an unknown error, exception, 30 // or failure with an internal server. 31 ErrCodeInternalServerException = "InternalServerException" 32 33 // ErrCodeResourceNotFoundException for service response error code 34 // "ResourceNotFoundException". 35 // 36 // Indicates that a requested resource is not found. 37 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 38 39 // ErrCodeServiceQuotaExceededException for service response error code 40 // "ServiceQuotaExceededException". 41 // 42 // Indicates that the principal has crossed the permitted number of resources 43 // that can be created. 44 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 45 46 // ErrCodeThrottlingException for service response error code 47 // "ThrottlingException". 48 // 49 // Indicates that the principal has crossed the throttling limits of the API 50 // operations. 51 ErrCodeThrottlingException = "ThrottlingException" 52 53 // ErrCodeValidationException for service response error code 54 // "ValidationException". 55 // 56 // The request failed because it contains a syntax error. 57 ErrCodeValidationException = "ValidationException" 58 ) 59 60 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 61 "AccessDeniedException": newErrorAccessDeniedException, 62 "ConflictException": newErrorConflictException, 63 "InternalServerException": newErrorInternalServerException, 64 "ResourceNotFoundException": newErrorResourceNotFoundException, 65 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 66 "ThrottlingException": newErrorThrottlingException, 67 "ValidationException": newErrorValidationException, 68 }