github.com/aavshr/aws-sdk-go@v1.41.3/service/costandusagereportservice/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package costandusagereportservice 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeDuplicateReportNameException for service response error code 12 // "DuplicateReportNameException". 13 // 14 // A report with the specified name already exists in the account. Specify a 15 // different report name. 16 ErrCodeDuplicateReportNameException = "DuplicateReportNameException" 17 18 // ErrCodeInternalErrorException for service response error code 19 // "InternalErrorException". 20 // 21 // An error on the server occurred during the processing of your request. Try 22 // again later. 23 ErrCodeInternalErrorException = "InternalErrorException" 24 25 // ErrCodeReportLimitReachedException for service response error code 26 // "ReportLimitReachedException". 27 // 28 // This account already has five reports defined. To define a new report, you 29 // must delete an existing report. 30 ErrCodeReportLimitReachedException = "ReportLimitReachedException" 31 32 // ErrCodeValidationException for service response error code 33 // "ValidationException". 34 // 35 // The input fails to satisfy the constraints specified by an AWS service. 36 ErrCodeValidationException = "ValidationException" 37 ) 38 39 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 40 "DuplicateReportNameException": newErrorDuplicateReportNameException, 41 "InternalErrorException": newErrorInternalErrorException, 42 "ReportLimitReachedException": newErrorReportLimitReachedException, 43 "ValidationException": newErrorValidationException, 44 }