forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
156 lines (133 loc) · 6.61 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acmpca
import (
"github.com/aavshr/aws-sdk-go/private/protocol"
)
const (
// ErrCodeCertificateMismatchException for service response error code
// "CertificateMismatchException".
//
// The certificate authority certificate you are importing does not comply with
// conditions specified in the certificate that signed it.
ErrCodeCertificateMismatchException = "CertificateMismatchException"
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// A previous update to your private CA is still ongoing.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeInvalidArgsException for service response error code
// "InvalidArgsException".
//
// One or more of the specified arguments was not valid.
ErrCodeInvalidArgsException = "InvalidArgsException"
// ErrCodeInvalidArnException for service response error code
// "InvalidArnException".
//
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
ErrCodeInvalidArnException = "InvalidArnException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The token specified in the NextToken argument is not valid. Use the token
// returned from your previous call to ListCertificateAuthorities (https://docs.aws.amazon.com/acm-pca/latest/APIReference/API_ListCertificateAuthorities.html).
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidPolicyException for service response error code
// "InvalidPolicyException".
//
// The resource policy is invalid or is missing a required statement. For general
// information about IAM policy and statement structure, see Overview of JSON
// Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json).
ErrCodeInvalidPolicyException = "InvalidPolicyException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request action cannot be performed or is prohibited.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// The state of the private CA does not allow this action to occur.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
// "InvalidTagException".
//
// The tag associated with the CA is not valid. The invalid argument is contained
// in the message field.
ErrCodeInvalidTagException = "InvalidTagException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM Private CA quota has been exceeded. See the exception message returned
// to determine the quota that was exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeLockoutPreventedException for service response error code
// "LockoutPreventedException".
//
// The current action was prevented because it would lock the caller out from
// performing subsequent actions. Verify that the specified parameters would
// not result in the caller being denied access to the resource.
ErrCodeLockoutPreventedException = "LockoutPreventedException"
// ErrCodeMalformedCSRException for service response error code
// "MalformedCSRException".
//
// The certificate signing request is invalid.
ErrCodeMalformedCSRException = "MalformedCSRException"
// ErrCodeMalformedCertificateException for service response error code
// "MalformedCertificateException".
//
// One or more fields in the certificate are invalid.
ErrCodeMalformedCertificateException = "MalformedCertificateException"
// ErrCodePermissionAlreadyExistsException for service response error code
// "PermissionAlreadyExistsException".
//
// The designated permission has already been given to the user.
ErrCodePermissionAlreadyExistsException = "PermissionAlreadyExistsException"
// ErrCodeRequestAlreadyProcessedException for service response error code
// "RequestAlreadyProcessedException".
//
// Your request has already been completed.
ErrCodeRequestAlreadyProcessedException = "RequestAlreadyProcessedException"
// ErrCodeRequestFailedException for service response error code
// "RequestFailedException".
//
// The request has failed for an unspecified reason.
ErrCodeRequestFailedException = "RequestFailedException"
// ErrCodeRequestInProgressException for service response error code
// "RequestInProgressException".
//
// Your request is already in progress.
ErrCodeRequestInProgressException = "RequestInProgressException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// A resource such as a private CA, S3 bucket, certificate, audit report, or
// policy cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// You can associate up to 50 tags with a private CA. Exception information
// is contained in the exception message field.
ErrCodeTooManyTagsException = "TooManyTagsException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"CertificateMismatchException": newErrorCertificateMismatchException,
"ConcurrentModificationException": newErrorConcurrentModificationException,
"InvalidArgsException": newErrorInvalidArgsException,
"InvalidArnException": newErrorInvalidArnException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidPolicyException": newErrorInvalidPolicyException,
"InvalidRequestException": newErrorInvalidRequestException,
"InvalidStateException": newErrorInvalidStateException,
"InvalidTagException": newErrorInvalidTagException,
"LimitExceededException": newErrorLimitExceededException,
"LockoutPreventedException": newErrorLockoutPreventedException,
"MalformedCSRException": newErrorMalformedCSRException,
"MalformedCertificateException": newErrorMalformedCertificateException,
"PermissionAlreadyExistsException": newErrorPermissionAlreadyExistsException,
"RequestAlreadyProcessedException": newErrorRequestAlreadyProcessedException,
"RequestFailedException": newErrorRequestFailedException,
"RequestInProgressException": newErrorRequestInProgressException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"TooManyTagsException": newErrorTooManyTagsException,
}