-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_enums.go
138 lines (109 loc) · 4.67 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package fms
type AccountRoleStatus string
// Enum values for AccountRoleStatus
const (
AccountRoleStatusReady AccountRoleStatus = "READY"
AccountRoleStatusCreating AccountRoleStatus = "CREATING"
AccountRoleStatusPendingDeletion AccountRoleStatus = "PENDING_DELETION"
AccountRoleStatusDeleting AccountRoleStatus = "DELETING"
AccountRoleStatusDeleted AccountRoleStatus = "DELETED"
)
func (enum AccountRoleStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum AccountRoleStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type CustomerPolicyScopeIdType string
// Enum values for CustomerPolicyScopeIdType
const (
CustomerPolicyScopeIdTypeAccount CustomerPolicyScopeIdType = "ACCOUNT"
CustomerPolicyScopeIdTypeOrgUnit CustomerPolicyScopeIdType = "ORG_UNIT"
)
func (enum CustomerPolicyScopeIdType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum CustomerPolicyScopeIdType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type DependentServiceName string
// Enum values for DependentServiceName
const (
DependentServiceNameAwsconfig DependentServiceName = "AWSCONFIG"
DependentServiceNameAwswaf DependentServiceName = "AWSWAF"
DependentServiceNameAwsshieldAdvanced DependentServiceName = "AWSSHIELD_ADVANCED"
DependentServiceNameAwsvpc DependentServiceName = "AWSVPC"
)
func (enum DependentServiceName) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum DependentServiceName) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type PolicyComplianceStatusType string
// Enum values for PolicyComplianceStatusType
const (
PolicyComplianceStatusTypeCompliant PolicyComplianceStatusType = "COMPLIANT"
PolicyComplianceStatusTypeNonCompliant PolicyComplianceStatusType = "NON_COMPLIANT"
)
func (enum PolicyComplianceStatusType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum PolicyComplianceStatusType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type RemediationActionType string
// Enum values for RemediationActionType
const (
RemediationActionTypeRemove RemediationActionType = "REMOVE"
RemediationActionTypeModify RemediationActionType = "MODIFY"
)
func (enum RemediationActionType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum RemediationActionType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type SecurityServiceType string
// Enum values for SecurityServiceType
const (
SecurityServiceTypeWaf SecurityServiceType = "WAF"
SecurityServiceTypeWafv2 SecurityServiceType = "WAFV2"
SecurityServiceTypeShieldAdvanced SecurityServiceType = "SHIELD_ADVANCED"
SecurityServiceTypeSecurityGroupsCommon SecurityServiceType = "SECURITY_GROUPS_COMMON"
SecurityServiceTypeSecurityGroupsContentAudit SecurityServiceType = "SECURITY_GROUPS_CONTENT_AUDIT"
SecurityServiceTypeSecurityGroupsUsageAudit SecurityServiceType = "SECURITY_GROUPS_USAGE_AUDIT"
)
func (enum SecurityServiceType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum SecurityServiceType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ViolationReason string
// Enum values for ViolationReason
const (
ViolationReasonWebAclMissingRuleGroup ViolationReason = "WEB_ACL_MISSING_RULE_GROUP"
ViolationReasonResourceMissingWebAcl ViolationReason = "RESOURCE_MISSING_WEB_ACL"
ViolationReasonResourceIncorrectWebAcl ViolationReason = "RESOURCE_INCORRECT_WEB_ACL"
ViolationReasonResourceMissingShieldProtection ViolationReason = "RESOURCE_MISSING_SHIELD_PROTECTION"
ViolationReasonResourceMissingWebAclOrShieldProtection ViolationReason = "RESOURCE_MISSING_WEB_ACL_OR_SHIELD_PROTECTION"
ViolationReasonResourceMissingSecurityGroup ViolationReason = "RESOURCE_MISSING_SECURITY_GROUP"
ViolationReasonResourceViolatesAuditSecurityGroup ViolationReason = "RESOURCE_VIOLATES_AUDIT_SECURITY_GROUP"
ViolationReasonSecurityGroupUnused ViolationReason = "SECURITY_GROUP_UNUSED"
ViolationReasonSecurityGroupRedundant ViolationReason = "SECURITY_GROUP_REDUNDANT"
)
func (enum ViolationReason) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ViolationReason) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}