-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_enums.go
243 lines (190 loc) · 6.36 KB
/
api_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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package guardduty
type AdminStatus string
// Enum values for AdminStatus
const (
AdminStatusEnabled AdminStatus = "ENABLED"
AdminStatusDisableInProgress AdminStatus = "DISABLE_IN_PROGRESS"
)
func (enum AdminStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum AdminStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type DestinationType string
// Enum values for DestinationType
const (
DestinationTypeS3 DestinationType = "S3"
)
func (enum DestinationType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum DestinationType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type DetectorStatus string
// Enum values for DetectorStatus
const (
DetectorStatusEnabled DetectorStatus = "ENABLED"
DetectorStatusDisabled DetectorStatus = "DISABLED"
)
func (enum DetectorStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum DetectorStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type Feedback string
// Enum values for Feedback
const (
FeedbackUseful Feedback = "USEFUL"
FeedbackNotUseful Feedback = "NOT_USEFUL"
)
func (enum Feedback) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum Feedback) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type FilterAction string
// Enum values for FilterAction
const (
FilterActionNoop FilterAction = "NOOP"
FilterActionArchive FilterAction = "ARCHIVE"
)
func (enum FilterAction) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum FilterAction) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type FindingPublishingFrequency string
// Enum values for FindingPublishingFrequency
const (
FindingPublishingFrequencyFifteenMinutes FindingPublishingFrequency = "FIFTEEN_MINUTES"
FindingPublishingFrequencyOneHour FindingPublishingFrequency = "ONE_HOUR"
FindingPublishingFrequencySixHours FindingPublishingFrequency = "SIX_HOURS"
)
func (enum FindingPublishingFrequency) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum FindingPublishingFrequency) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type FindingStatisticType string
// Enum values for FindingStatisticType
const (
FindingStatisticTypeCountBySeverity FindingStatisticType = "COUNT_BY_SEVERITY"
)
func (enum FindingStatisticType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum FindingStatisticType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type IpSetFormat string
// Enum values for IpSetFormat
const (
IpSetFormatTxt IpSetFormat = "TXT"
IpSetFormatStix IpSetFormat = "STIX"
IpSetFormatOtxCsv IpSetFormat = "OTX_CSV"
IpSetFormatAlienVault IpSetFormat = "ALIEN_VAULT"
IpSetFormatProofPoint IpSetFormat = "PROOF_POINT"
IpSetFormatFireEye IpSetFormat = "FIRE_EYE"
)
func (enum IpSetFormat) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum IpSetFormat) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type IpSetStatus string
// Enum values for IpSetStatus
const (
IpSetStatusInactive IpSetStatus = "INACTIVE"
IpSetStatusActivating IpSetStatus = "ACTIVATING"
IpSetStatusActive IpSetStatus = "ACTIVE"
IpSetStatusDeactivating IpSetStatus = "DEACTIVATING"
IpSetStatusError IpSetStatus = "ERROR"
IpSetStatusDeletePending IpSetStatus = "DELETE_PENDING"
IpSetStatusDeleted IpSetStatus = "DELETED"
)
func (enum IpSetStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum IpSetStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type OrderBy string
// Enum values for OrderBy
const (
OrderByAsc OrderBy = "ASC"
OrderByDesc OrderBy = "DESC"
)
func (enum OrderBy) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum OrderBy) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type PublishingStatus string
// Enum values for PublishingStatus
const (
PublishingStatusPendingVerification PublishingStatus = "PENDING_VERIFICATION"
PublishingStatusPublishing PublishingStatus = "PUBLISHING"
PublishingStatusUnableToPublishFixDestinationProperty PublishingStatus = "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY"
PublishingStatusStopped PublishingStatus = "STOPPED"
)
func (enum PublishingStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum PublishingStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ThreatIntelSetFormat string
// Enum values for ThreatIntelSetFormat
const (
ThreatIntelSetFormatTxt ThreatIntelSetFormat = "TXT"
ThreatIntelSetFormatStix ThreatIntelSetFormat = "STIX"
ThreatIntelSetFormatOtxCsv ThreatIntelSetFormat = "OTX_CSV"
ThreatIntelSetFormatAlienVault ThreatIntelSetFormat = "ALIEN_VAULT"
ThreatIntelSetFormatProofPoint ThreatIntelSetFormat = "PROOF_POINT"
ThreatIntelSetFormatFireEye ThreatIntelSetFormat = "FIRE_EYE"
)
func (enum ThreatIntelSetFormat) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ThreatIntelSetFormat) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ThreatIntelSetStatus string
// Enum values for ThreatIntelSetStatus
const (
ThreatIntelSetStatusInactive ThreatIntelSetStatus = "INACTIVE"
ThreatIntelSetStatusActivating ThreatIntelSetStatus = "ACTIVATING"
ThreatIntelSetStatusActive ThreatIntelSetStatus = "ACTIVE"
ThreatIntelSetStatusDeactivating ThreatIntelSetStatus = "DEACTIVATING"
ThreatIntelSetStatusError ThreatIntelSetStatus = "ERROR"
ThreatIntelSetStatusDeletePending ThreatIntelSetStatus = "DELETE_PENDING"
ThreatIntelSetStatusDeleted ThreatIntelSetStatus = "DELETED"
)
func (enum ThreatIntelSetStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ThreatIntelSetStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}