-
Notifications
You must be signed in to change notification settings - Fork 597
/
enums.go
164 lines (139 loc) · 6.26 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
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
type AccessDeniedExceptionReason string
// Enum values for AccessDeniedExceptionReason
const (
AccessDeniedExceptionReasonUnauthorizedAccount AccessDeniedExceptionReason = "UNAUTHORIZED_ACCOUNT"
AccessDeniedExceptionReasonDependencyAccessDenied AccessDeniedExceptionReason = "DEPENDENCY_ACCESS_DENIED"
)
// Values returns all known values for AccessDeniedExceptionReason. 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 (AccessDeniedExceptionReason) Values() []AccessDeniedExceptionReason {
return []AccessDeniedExceptionReason{
"UNAUTHORIZED_ACCOUNT",
"DEPENDENCY_ACCESS_DENIED",
}
}
type ChecksumAggregationMethod string
// Enum values for ChecksumAggregationMethod
const (
ChecksumAggregationMethodChecksumAggregationLinear ChecksumAggregationMethod = "LINEAR"
)
// Values returns all known values for ChecksumAggregationMethod. 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 (ChecksumAggregationMethod) Values() []ChecksumAggregationMethod {
return []ChecksumAggregationMethod{
"LINEAR",
}
}
type ChecksumAlgorithm string
// Enum values for ChecksumAlgorithm
const (
ChecksumAlgorithmChecksumAlgorithmSha256 ChecksumAlgorithm = "SHA256"
)
// Values returns all known values for ChecksumAlgorithm. 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 (ChecksumAlgorithm) Values() []ChecksumAlgorithm {
return []ChecksumAlgorithm{
"SHA256",
}
}
type RequestThrottledExceptionReason string
// Enum values for RequestThrottledExceptionReason
const (
RequestThrottledExceptionReasonAccountThrottled RequestThrottledExceptionReason = "ACCOUNT_THROTTLED"
RequestThrottledExceptionReasonDependencyRequestThrottled RequestThrottledExceptionReason = "DEPENDENCY_REQUEST_THROTTLED"
)
// Values returns all known values for RequestThrottledExceptionReason. 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 (RequestThrottledExceptionReason) Values() []RequestThrottledExceptionReason {
return []RequestThrottledExceptionReason{
"ACCOUNT_THROTTLED",
"DEPENDENCY_REQUEST_THROTTLED",
}
}
type ResourceNotFoundExceptionReason string
// Enum values for ResourceNotFoundExceptionReason
const (
ResourceNotFoundExceptionReasonSnapshotNotFound ResourceNotFoundExceptionReason = "SNAPSHOT_NOT_FOUND"
ResourceNotFoundExceptionReasonDependencyResourceNotFound ResourceNotFoundExceptionReason = "DEPENDENCY_RESOURCE_NOT_FOUND"
)
// Values returns all known values for ResourceNotFoundExceptionReason. 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 (ResourceNotFoundExceptionReason) Values() []ResourceNotFoundExceptionReason {
return []ResourceNotFoundExceptionReason{
"SNAPSHOT_NOT_FOUND",
"DEPENDENCY_RESOURCE_NOT_FOUND",
}
}
type ServiceQuotaExceededExceptionReason string
// Enum values for ServiceQuotaExceededExceptionReason
const (
ServiceQuotaExceededExceptionReasonDependencyServiceQuotaExceeded ServiceQuotaExceededExceptionReason = "DEPENDENCY_SERVICE_QUOTA_EXCEEDED"
)
// Values returns all known values for ServiceQuotaExceededExceptionReason. 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 (ServiceQuotaExceededExceptionReason) Values() []ServiceQuotaExceededExceptionReason {
return []ServiceQuotaExceededExceptionReason{
"DEPENDENCY_SERVICE_QUOTA_EXCEEDED",
}
}
type Status string
// Enum values for Status
const (
StatusCompleted Status = "completed"
StatusPending Status = "pending"
StatusError Status = "error"
)
// Values returns all known values for Status. 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 (Status) Values() []Status {
return []Status{
"completed",
"pending",
"error",
}
}
type ValidationExceptionReason string
// Enum values for ValidationExceptionReason
const (
ValidationExceptionReasonInvalidCustomerKey ValidationExceptionReason = "INVALID_CUSTOMER_KEY"
ValidationExceptionReasonInvalidPageToken ValidationExceptionReason = "INVALID_PAGE_TOKEN"
ValidationExceptionReasonInvalidBlockToken ValidationExceptionReason = "INVALID_BLOCK_TOKEN"
ValidationExceptionReasonInvalidSnapshotId ValidationExceptionReason = "INVALID_SNAPSHOT_ID"
ValidationExceptionReasonUnrelatedSnapshots ValidationExceptionReason = "UNRELATED_SNAPSHOTS"
ValidationExceptionReasonInvalidBlock ValidationExceptionReason = "INVALID_BLOCK"
ValidationExceptionReasonInvalidContentEncoding ValidationExceptionReason = "INVALID_CONTENT_ENCODING"
ValidationExceptionReasonInvalidTag ValidationExceptionReason = "INVALID_TAG"
ValidationExceptionReasonInvalidDependencyRequest ValidationExceptionReason = "INVALID_DEPENDENCY_REQUEST"
ValidationExceptionReasonInvalidParameterValue ValidationExceptionReason = "INVALID_PARAMETER_VALUE"
ValidationExceptionReasonInvalidVolumeSize ValidationExceptionReason = "INVALID_VOLUME_SIZE"
)
// Values returns all known values for ValidationExceptionReason. 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 (ValidationExceptionReason) Values() []ValidationExceptionReason {
return []ValidationExceptionReason{
"INVALID_CUSTOMER_KEY",
"INVALID_PAGE_TOKEN",
"INVALID_BLOCK_TOKEN",
"INVALID_SNAPSHOT_ID",
"UNRELATED_SNAPSHOTS",
"INVALID_BLOCK",
"INVALID_CONTENT_ENCODING",
"INVALID_TAG",
"INVALID_DEPENDENCY_REQUEST",
"INVALID_PARAMETER_VALUE",
"INVALID_VOLUME_SIZE",
}
}