1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package frauddetector 4 5import ( 6 "github.com/aws/aws-sdk-go/private/protocol" 7) 8 9const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // An exception indicating Amazon Fraud Detector does not have the needed permissions. 15 // This can occur if you submit a request, such as PutExternalModel, that specifies 16 // a role that is not in your account. 17 ErrCodeAccessDeniedException = "AccessDeniedException" 18 19 // ErrCodeConflictException for service response error code 20 // "ConflictException". 21 // 22 // An exception indicating there was a conflict during a delete operation. The 23 // following delete operations can cause a conflict exception: 24 // 25 // * DeleteDetector: A conflict exception will occur if the detector has 26 // associated Rules or DetectorVersions. You can only delete a detector if 27 // it has no Rules or DetectorVersions. 28 // 29 // * DeleteDetectorVersion: A conflict exception will occur if the DetectorVersion 30 // status is ACTIVE. 31 // 32 // * DeleteRule: A conflict exception will occur if the RuleVersion is in 33 // use by an associated ACTIVE or INACTIVE DetectorVersion. 34 ErrCodeConflictException = "ConflictException" 35 36 // ErrCodeInternalServerException for service response error code 37 // "InternalServerException". 38 // 39 // An exception indicating an internal server error. 40 ErrCodeInternalServerException = "InternalServerException" 41 42 // ErrCodeResourceNotFoundException for service response error code 43 // "ResourceNotFoundException". 44 // 45 // An exception indicating the specified resource was not found. 46 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 47 48 // ErrCodeThrottlingException for service response error code 49 // "ThrottlingException". 50 // 51 // An exception indicating a throttling error. 52 ErrCodeThrottlingException = "ThrottlingException" 53 54 // ErrCodeValidationException for service response error code 55 // "ValidationException". 56 // 57 // An exception indicating a specified value is not allowed. 58 ErrCodeValidationException = "ValidationException" 59) 60 61var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 62 "AccessDeniedException": newErrorAccessDeniedException, 63 "ConflictException": newErrorConflictException, 64 "InternalServerException": newErrorInternalServerException, 65 "ResourceNotFoundException": newErrorResourceNotFoundException, 66 "ThrottlingException": newErrorThrottlingException, 67 "ValidationException": newErrorValidationException, 68} 69