-
Notifications
You must be signed in to change notification settings - Fork 597
/
enums.go
397 lines (351 loc) · 13.2 KB
/
enums.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
type CertificateStatus string
// Enum values for CertificateStatus
const (
CertificateStatusPendingValidation CertificateStatus = "PENDING_VALIDATION"
CertificateStatusIssued CertificateStatus = "ISSUED"
CertificateStatusInactive CertificateStatus = "INACTIVE"
CertificateStatusExpired CertificateStatus = "EXPIRED"
CertificateStatusValidationTimedOut CertificateStatus = "VALIDATION_TIMED_OUT"
CertificateStatusRevoked CertificateStatus = "REVOKED"
CertificateStatusFailed CertificateStatus = "FAILED"
)
// Values returns all known values for CertificateStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (CertificateStatus) Values() []CertificateStatus {
return []CertificateStatus{
"PENDING_VALIDATION",
"ISSUED",
"INACTIVE",
"EXPIRED",
"VALIDATION_TIMED_OUT",
"REVOKED",
"FAILED",
}
}
type CertificateTransparencyLoggingPreference string
// Enum values for CertificateTransparencyLoggingPreference
const (
CertificateTransparencyLoggingPreferenceEnabled CertificateTransparencyLoggingPreference = "ENABLED"
CertificateTransparencyLoggingPreferenceDisabled CertificateTransparencyLoggingPreference = "DISABLED"
)
// Values returns all known values for CertificateTransparencyLoggingPreference.
// Note that this can be expanded in the future, and so it is only as up to date as
// the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (CertificateTransparencyLoggingPreference) Values() []CertificateTransparencyLoggingPreference {
return []CertificateTransparencyLoggingPreference{
"ENABLED",
"DISABLED",
}
}
type CertificateType string
// Enum values for CertificateType
const (
CertificateTypeImported CertificateType = "IMPORTED"
CertificateTypeAmazonIssued CertificateType = "AMAZON_ISSUED"
CertificateTypePrivate CertificateType = "PRIVATE"
)
// Values returns all known values for CertificateType. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (CertificateType) Values() []CertificateType {
return []CertificateType{
"IMPORTED",
"AMAZON_ISSUED",
"PRIVATE",
}
}
type DomainStatus string
// Enum values for DomainStatus
const (
DomainStatusPendingValidation DomainStatus = "PENDING_VALIDATION"
DomainStatusSuccess DomainStatus = "SUCCESS"
DomainStatusFailed DomainStatus = "FAILED"
)
// Values returns all known values for DomainStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (DomainStatus) Values() []DomainStatus {
return []DomainStatus{
"PENDING_VALIDATION",
"SUCCESS",
"FAILED",
}
}
type ExtendedKeyUsageName string
// Enum values for ExtendedKeyUsageName
const (
ExtendedKeyUsageNameTlsWebServerAuthentication ExtendedKeyUsageName = "TLS_WEB_SERVER_AUTHENTICATION"
ExtendedKeyUsageNameTlsWebClientAuthentication ExtendedKeyUsageName = "TLS_WEB_CLIENT_AUTHENTICATION"
ExtendedKeyUsageNameCodeSigning ExtendedKeyUsageName = "CODE_SIGNING"
ExtendedKeyUsageNameEmailProtection ExtendedKeyUsageName = "EMAIL_PROTECTION"
ExtendedKeyUsageNameTimeStamping ExtendedKeyUsageName = "TIME_STAMPING"
ExtendedKeyUsageNameOcspSigning ExtendedKeyUsageName = "OCSP_SIGNING"
ExtendedKeyUsageNameIpsecEndSystem ExtendedKeyUsageName = "IPSEC_END_SYSTEM"
ExtendedKeyUsageNameIpsecTunnel ExtendedKeyUsageName = "IPSEC_TUNNEL"
ExtendedKeyUsageNameIpsecUser ExtendedKeyUsageName = "IPSEC_USER"
ExtendedKeyUsageNameAny ExtendedKeyUsageName = "ANY"
ExtendedKeyUsageNameNone ExtendedKeyUsageName = "NONE"
ExtendedKeyUsageNameCustom ExtendedKeyUsageName = "CUSTOM"
)
// Values returns all known values for ExtendedKeyUsageName. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (ExtendedKeyUsageName) Values() []ExtendedKeyUsageName {
return []ExtendedKeyUsageName{
"TLS_WEB_SERVER_AUTHENTICATION",
"TLS_WEB_CLIENT_AUTHENTICATION",
"CODE_SIGNING",
"EMAIL_PROTECTION",
"TIME_STAMPING",
"OCSP_SIGNING",
"IPSEC_END_SYSTEM",
"IPSEC_TUNNEL",
"IPSEC_USER",
"ANY",
"NONE",
"CUSTOM",
}
}
type FailureReason string
// Enum values for FailureReason
const (
FailureReasonNoAvailableContacts FailureReason = "NO_AVAILABLE_CONTACTS"
FailureReasonAdditionalVerificationRequired FailureReason = "ADDITIONAL_VERIFICATION_REQUIRED"
FailureReasonDomainNotAllowed FailureReason = "DOMAIN_NOT_ALLOWED"
FailureReasonInvalidPublicDomain FailureReason = "INVALID_PUBLIC_DOMAIN"
FailureReasonDomainValidationDenied FailureReason = "DOMAIN_VALIDATION_DENIED"
FailureReasonCaaError FailureReason = "CAA_ERROR"
FailureReasonPcaLimitExceeded FailureReason = "PCA_LIMIT_EXCEEDED"
FailureReasonPcaInvalidArn FailureReason = "PCA_INVALID_ARN"
FailureReasonPcaInvalidState FailureReason = "PCA_INVALID_STATE"
FailureReasonPcaRequestFailed FailureReason = "PCA_REQUEST_FAILED"
FailureReasonPcaNameConstraintsValidation FailureReason = "PCA_NAME_CONSTRAINTS_VALIDATION"
FailureReasonPcaResourceNotFound FailureReason = "PCA_RESOURCE_NOT_FOUND"
FailureReasonPcaInvalidArgs FailureReason = "PCA_INVALID_ARGS"
FailureReasonPcaInvalidDuration FailureReason = "PCA_INVALID_DURATION"
FailureReasonPcaAccessDenied FailureReason = "PCA_ACCESS_DENIED"
FailureReasonSlrNotFound FailureReason = "SLR_NOT_FOUND"
FailureReasonOther FailureReason = "OTHER"
)
// Values returns all known values for FailureReason. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (FailureReason) Values() []FailureReason {
return []FailureReason{
"NO_AVAILABLE_CONTACTS",
"ADDITIONAL_VERIFICATION_REQUIRED",
"DOMAIN_NOT_ALLOWED",
"INVALID_PUBLIC_DOMAIN",
"DOMAIN_VALIDATION_DENIED",
"CAA_ERROR",
"PCA_LIMIT_EXCEEDED",
"PCA_INVALID_ARN",
"PCA_INVALID_STATE",
"PCA_REQUEST_FAILED",
"PCA_NAME_CONSTRAINTS_VALIDATION",
"PCA_RESOURCE_NOT_FOUND",
"PCA_INVALID_ARGS",
"PCA_INVALID_DURATION",
"PCA_ACCESS_DENIED",
"SLR_NOT_FOUND",
"OTHER",
}
}
type KeyAlgorithm string
// Enum values for KeyAlgorithm
const (
KeyAlgorithmRsa1024 KeyAlgorithm = "RSA_1024"
KeyAlgorithmRsa2048 KeyAlgorithm = "RSA_2048"
KeyAlgorithmRsa3072 KeyAlgorithm = "RSA_3072"
KeyAlgorithmRsa4096 KeyAlgorithm = "RSA_4096"
KeyAlgorithmEcPrime256v1 KeyAlgorithm = "EC_prime256v1"
KeyAlgorithmEcSecp384r1 KeyAlgorithm = "EC_secp384r1"
KeyAlgorithmEcSecp521r1 KeyAlgorithm = "EC_secp521r1"
)
// Values returns all known values for KeyAlgorithm. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (KeyAlgorithm) Values() []KeyAlgorithm {
return []KeyAlgorithm{
"RSA_1024",
"RSA_2048",
"RSA_3072",
"RSA_4096",
"EC_prime256v1",
"EC_secp384r1",
"EC_secp521r1",
}
}
type KeyUsageName string
// Enum values for KeyUsageName
const (
KeyUsageNameDigitalSignature KeyUsageName = "DIGITAL_SIGNATURE"
KeyUsageNameNonRepudation KeyUsageName = "NON_REPUDIATION"
KeyUsageNameKeyEncipherment KeyUsageName = "KEY_ENCIPHERMENT"
KeyUsageNameDataEncipherment KeyUsageName = "DATA_ENCIPHERMENT"
KeyUsageNameKeyAgreement KeyUsageName = "KEY_AGREEMENT"
KeyUsageNameCertificateSigning KeyUsageName = "CERTIFICATE_SIGNING"
KeyUsageNameCrlSigning KeyUsageName = "CRL_SIGNING"
KeyUsageNameEnchiperOnly KeyUsageName = "ENCIPHER_ONLY"
KeyUsageNameDecipherOnly KeyUsageName = "DECIPHER_ONLY"
KeyUsageNameAny KeyUsageName = "ANY"
KeyUsageNameCustom KeyUsageName = "CUSTOM"
)
// Values returns all known values for KeyUsageName. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (KeyUsageName) Values() []KeyUsageName {
return []KeyUsageName{
"DIGITAL_SIGNATURE",
"NON_REPUDIATION",
"KEY_ENCIPHERMENT",
"DATA_ENCIPHERMENT",
"KEY_AGREEMENT",
"CERTIFICATE_SIGNING",
"CRL_SIGNING",
"ENCIPHER_ONLY",
"DECIPHER_ONLY",
"ANY",
"CUSTOM",
}
}
type RecordType string
// Enum values for RecordType
const (
RecordTypeCname RecordType = "CNAME"
)
// Values returns all known values for RecordType. Note that this can be expanded
// in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (RecordType) Values() []RecordType {
return []RecordType{
"CNAME",
}
}
type RenewalEligibility string
// Enum values for RenewalEligibility
const (
RenewalEligibilityEligible RenewalEligibility = "ELIGIBLE"
RenewalEligibilityIneligible RenewalEligibility = "INELIGIBLE"
)
// Values returns all known values for RenewalEligibility. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (RenewalEligibility) Values() []RenewalEligibility {
return []RenewalEligibility{
"ELIGIBLE",
"INELIGIBLE",
}
}
type RenewalStatus string
// Enum values for RenewalStatus
const (
RenewalStatusPendingAutoRenewal RenewalStatus = "PENDING_AUTO_RENEWAL"
RenewalStatusPendingValidation RenewalStatus = "PENDING_VALIDATION"
RenewalStatusSuccess RenewalStatus = "SUCCESS"
RenewalStatusFailed RenewalStatus = "FAILED"
)
// Values returns all known values for RenewalStatus. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (RenewalStatus) Values() []RenewalStatus {
return []RenewalStatus{
"PENDING_AUTO_RENEWAL",
"PENDING_VALIDATION",
"SUCCESS",
"FAILED",
}
}
type RevocationReason string
// Enum values for RevocationReason
const (
RevocationReasonUnspecified RevocationReason = "UNSPECIFIED"
RevocationReasonKeyCompromise RevocationReason = "KEY_COMPROMISE"
RevocationReasonCaCompromise RevocationReason = "CA_COMPROMISE"
RevocationReasonAffiliationChanged RevocationReason = "AFFILIATION_CHANGED"
RevocationReasonSuperceded RevocationReason = "SUPERCEDED"
RevocationReasonCessationOfOperation RevocationReason = "CESSATION_OF_OPERATION"
RevocationReasonCertificateHold RevocationReason = "CERTIFICATE_HOLD"
RevocationReasonRemoveFromCrl RevocationReason = "REMOVE_FROM_CRL"
RevocationReasonPrivilegeWithdrawn RevocationReason = "PRIVILEGE_WITHDRAWN"
RevocationReasonAACompromise RevocationReason = "A_A_COMPROMISE"
)
// Values returns all known values for RevocationReason. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (RevocationReason) Values() []RevocationReason {
return []RevocationReason{
"UNSPECIFIED",
"KEY_COMPROMISE",
"CA_COMPROMISE",
"AFFILIATION_CHANGED",
"SUPERCEDED",
"CESSATION_OF_OPERATION",
"CERTIFICATE_HOLD",
"REMOVE_FROM_CRL",
"PRIVILEGE_WITHDRAWN",
"A_A_COMPROMISE",
}
}
type SortBy string
// Enum values for SortBy
const (
SortByCreatedAt SortBy = "CREATED_AT"
)
// Values returns all known values for SortBy. Note that this can be expanded in
// the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (SortBy) Values() []SortBy {
return []SortBy{
"CREATED_AT",
}
}
type SortOrder string
// Enum values for SortOrder
const (
SortOrderAscending SortOrder = "ASCENDING"
SortOrderDescending SortOrder = "DESCENDING"
)
// Values returns all known values for SortOrder. Note that this can be expanded
// in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (SortOrder) Values() []SortOrder {
return []SortOrder{
"ASCENDING",
"DESCENDING",
}
}
type ValidationMethod string
// Enum values for ValidationMethod
const (
ValidationMethodEmail ValidationMethod = "EMAIL"
ValidationMethodDns ValidationMethod = "DNS"
)
// Values returns all known values for ValidationMethod. Note that this can be
// expanded in the future, and so it is only as up to date as the client.
//
// The ordering of this slice is not guaranteed to be stable across updates.
func (ValidationMethod) Values() []ValidationMethod {
return []ValidationMethod{
"EMAIL",
"DNS",
}
}