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