github.com/aavshr/aws-sdk-go@v1.41.3/service/fms/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package fms 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeInternalErrorException for service response error code 12 // "InternalErrorException". 13 // 14 // The operation failed because of a system problem, even though the request 15 // was valid. Retry your request. 16 ErrCodeInternalErrorException = "InternalErrorException" 17 18 // ErrCodeInvalidInputException for service response error code 19 // "InvalidInputException". 20 // 21 // The parameters of the request were invalid. 22 ErrCodeInvalidInputException = "InvalidInputException" 23 24 // ErrCodeInvalidOperationException for service response error code 25 // "InvalidOperationException". 26 // 27 // The operation failed because there was nothing to do or the operation wasn't 28 // possible. For example, you might have submitted an AssociateAdminAccount 29 // request for an account ID that was already set as the Firewall Manager administrator. 30 // Or you might have tried to access a Region that's disabled by default, and 31 // that you need to enable for the Firewall Manager administrator account and 32 // for Organizations before you can access it. 33 ErrCodeInvalidOperationException = "InvalidOperationException" 34 35 // ErrCodeInvalidTypeException for service response error code 36 // "InvalidTypeException". 37 // 38 // The value of the Type parameter is invalid. 39 ErrCodeInvalidTypeException = "InvalidTypeException" 40 41 // ErrCodeLimitExceededException for service response error code 42 // "LimitExceededException". 43 // 44 // The operation exceeds a resource limit, for example, the maximum number of 45 // policy objects that you can create for an Amazon Web Services account. For 46 // more information, see Firewall Manager Limits (https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html) 47 // in the WAF Developer Guide. 48 ErrCodeLimitExceededException = "LimitExceededException" 49 50 // ErrCodeResourceNotFoundException for service response error code 51 // "ResourceNotFoundException". 52 // 53 // The specified resource was not found. 54 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 55 ) 56 57 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 58 "InternalErrorException": newErrorInternalErrorException, 59 "InvalidInputException": newErrorInvalidInputException, 60 "InvalidOperationException": newErrorInvalidOperationException, 61 "InvalidTypeException": newErrorInvalidTypeException, 62 "LimitExceededException": newErrorLimitExceededException, 63 "ResourceNotFoundException": newErrorResourceNotFoundException, 64 }