github.com/aavshr/aws-sdk-go@v1.41.3/service/guardduty/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package guardduty 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeBadRequestException for service response error code 12 // "BadRequestException". 13 // 14 // A bad request exception object. 15 ErrCodeBadRequestException = "BadRequestException" 16 17 // ErrCodeInternalServerErrorException for service response error code 18 // "InternalServerErrorException". 19 // 20 // An internal server error exception object. 21 ErrCodeInternalServerErrorException = "InternalServerErrorException" 22 ) 23 24 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 25 "BadRequestException": newErrorBadRequestException, 26 "InternalServerErrorException": newErrorInternalServerErrorException, 27 }