-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_enums.go
116 lines (91 loc) · 3.19 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package kinesis
type ConsumerStatus string
// Enum values for ConsumerStatus
const (
ConsumerStatusCreating ConsumerStatus = "CREATING"
ConsumerStatusDeleting ConsumerStatus = "DELETING"
ConsumerStatusActive ConsumerStatus = "ACTIVE"
)
func (enum ConsumerStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ConsumerStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type EncryptionType string
// Enum values for EncryptionType
const (
EncryptionTypeNone EncryptionType = "NONE"
EncryptionTypeKms EncryptionType = "KMS"
)
func (enum EncryptionType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum EncryptionType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type MetricsName string
// Enum values for MetricsName
const (
MetricsNameIncomingBytes MetricsName = "IncomingBytes"
MetricsNameIncomingRecords MetricsName = "IncomingRecords"
MetricsNameOutgoingBytes MetricsName = "OutgoingBytes"
MetricsNameOutgoingRecords MetricsName = "OutgoingRecords"
MetricsNameWriteProvisionedThroughputExceeded MetricsName = "WriteProvisionedThroughputExceeded"
MetricsNameReadProvisionedThroughputExceeded MetricsName = "ReadProvisionedThroughputExceeded"
MetricsNameIteratorAgeMilliseconds MetricsName = "IteratorAgeMilliseconds"
MetricsNameAll MetricsName = "ALL"
)
func (enum MetricsName) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum MetricsName) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ScalingType string
// Enum values for ScalingType
const (
ScalingTypeUniformScaling ScalingType = "UNIFORM_SCALING"
)
func (enum ScalingType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ScalingType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ShardIteratorType string
// Enum values for ShardIteratorType
const (
ShardIteratorTypeAtSequenceNumber ShardIteratorType = "AT_SEQUENCE_NUMBER"
ShardIteratorTypeAfterSequenceNumber ShardIteratorType = "AFTER_SEQUENCE_NUMBER"
ShardIteratorTypeTrimHorizon ShardIteratorType = "TRIM_HORIZON"
ShardIteratorTypeLatest ShardIteratorType = "LATEST"
ShardIteratorTypeAtTimestamp ShardIteratorType = "AT_TIMESTAMP"
)
func (enum ShardIteratorType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ShardIteratorType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type StreamStatus string
// Enum values for StreamStatus
const (
StreamStatusCreating StreamStatus = "CREATING"
StreamStatusDeleting StreamStatus = "DELETING"
StreamStatusActive StreamStatus = "ACTIVE"
StreamStatusUpdating StreamStatus = "UPDATING"
)
func (enum StreamStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum StreamStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}