aws-sdk-kinesis 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,533 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module Kinesis
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ AddTagsToStreamInput = Shapes::StructureShape.new(name: 'AddTagsToStreamInput')
16
+ BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
17
+ CreateStreamInput = Shapes::StructureShape.new(name: 'CreateStreamInput')
18
+ Data = Shapes::BlobShape.new(name: 'Data')
19
+ DecreaseStreamRetentionPeriodInput = Shapes::StructureShape.new(name: 'DecreaseStreamRetentionPeriodInput')
20
+ DeleteStreamInput = Shapes::StructureShape.new(name: 'DeleteStreamInput')
21
+ DescribeLimitsInput = Shapes::StructureShape.new(name: 'DescribeLimitsInput')
22
+ DescribeLimitsOutput = Shapes::StructureShape.new(name: 'DescribeLimitsOutput')
23
+ DescribeStreamInput = Shapes::StructureShape.new(name: 'DescribeStreamInput')
24
+ DescribeStreamInputLimit = Shapes::IntegerShape.new(name: 'DescribeStreamInputLimit')
25
+ DescribeStreamOutput = Shapes::StructureShape.new(name: 'DescribeStreamOutput')
26
+ DisableEnhancedMonitoringInput = Shapes::StructureShape.new(name: 'DisableEnhancedMonitoringInput')
27
+ EnableEnhancedMonitoringInput = Shapes::StructureShape.new(name: 'EnableEnhancedMonitoringInput')
28
+ EnhancedMetrics = Shapes::StructureShape.new(name: 'EnhancedMetrics')
29
+ EnhancedMonitoringList = Shapes::ListShape.new(name: 'EnhancedMonitoringList')
30
+ EnhancedMonitoringOutput = Shapes::StructureShape.new(name: 'EnhancedMonitoringOutput')
31
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
32
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
33
+ ExpiredIteratorException = Shapes::StructureShape.new(name: 'ExpiredIteratorException')
34
+ GetRecordsInput = Shapes::StructureShape.new(name: 'GetRecordsInput')
35
+ GetRecordsInputLimit = Shapes::IntegerShape.new(name: 'GetRecordsInputLimit')
36
+ GetRecordsOutput = Shapes::StructureShape.new(name: 'GetRecordsOutput')
37
+ GetShardIteratorInput = Shapes::StructureShape.new(name: 'GetShardIteratorInput')
38
+ GetShardIteratorOutput = Shapes::StructureShape.new(name: 'GetShardIteratorOutput')
39
+ HashKey = Shapes::StringShape.new(name: 'HashKey')
40
+ HashKeyRange = Shapes::StructureShape.new(name: 'HashKeyRange')
41
+ IncreaseStreamRetentionPeriodInput = Shapes::StructureShape.new(name: 'IncreaseStreamRetentionPeriodInput')
42
+ InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException')
43
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
44
+ ListStreamsInput = Shapes::StructureShape.new(name: 'ListStreamsInput')
45
+ ListStreamsInputLimit = Shapes::IntegerShape.new(name: 'ListStreamsInputLimit')
46
+ ListStreamsOutput = Shapes::StructureShape.new(name: 'ListStreamsOutput')
47
+ ListTagsForStreamInput = Shapes::StructureShape.new(name: 'ListTagsForStreamInput')
48
+ ListTagsForStreamInputLimit = Shapes::IntegerShape.new(name: 'ListTagsForStreamInputLimit')
49
+ ListTagsForStreamOutput = Shapes::StructureShape.new(name: 'ListTagsForStreamOutput')
50
+ MergeShardsInput = Shapes::StructureShape.new(name: 'MergeShardsInput')
51
+ MetricsName = Shapes::StringShape.new(name: 'MetricsName')
52
+ MetricsNameList = Shapes::ListShape.new(name: 'MetricsNameList')
53
+ MillisBehindLatest = Shapes::IntegerShape.new(name: 'MillisBehindLatest')
54
+ PartitionKey = Shapes::StringShape.new(name: 'PartitionKey')
55
+ PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
56
+ ProvisionedThroughputExceededException = Shapes::StructureShape.new(name: 'ProvisionedThroughputExceededException')
57
+ PutRecordInput = Shapes::StructureShape.new(name: 'PutRecordInput')
58
+ PutRecordOutput = Shapes::StructureShape.new(name: 'PutRecordOutput')
59
+ PutRecordsInput = Shapes::StructureShape.new(name: 'PutRecordsInput')
60
+ PutRecordsOutput = Shapes::StructureShape.new(name: 'PutRecordsOutput')
61
+ PutRecordsRequestEntry = Shapes::StructureShape.new(name: 'PutRecordsRequestEntry')
62
+ PutRecordsRequestEntryList = Shapes::ListShape.new(name: 'PutRecordsRequestEntryList')
63
+ PutRecordsResultEntry = Shapes::StructureShape.new(name: 'PutRecordsResultEntry')
64
+ PutRecordsResultEntryList = Shapes::ListShape.new(name: 'PutRecordsResultEntryList')
65
+ Record = Shapes::StructureShape.new(name: 'Record')
66
+ RecordList = Shapes::ListShape.new(name: 'RecordList')
67
+ RemoveTagsFromStreamInput = Shapes::StructureShape.new(name: 'RemoveTagsFromStreamInput')
68
+ ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
69
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
70
+ ScalingType = Shapes::StringShape.new(name: 'ScalingType')
71
+ SequenceNumber = Shapes::StringShape.new(name: 'SequenceNumber')
72
+ SequenceNumberRange = Shapes::StructureShape.new(name: 'SequenceNumberRange')
73
+ Shard = Shapes::StructureShape.new(name: 'Shard')
74
+ ShardCountObject = Shapes::IntegerShape.new(name: 'ShardCountObject')
75
+ ShardId = Shapes::StringShape.new(name: 'ShardId')
76
+ ShardIterator = Shapes::StringShape.new(name: 'ShardIterator')
77
+ ShardIteratorType = Shapes::StringShape.new(name: 'ShardIteratorType')
78
+ ShardList = Shapes::ListShape.new(name: 'ShardList')
79
+ SplitShardInput = Shapes::StructureShape.new(name: 'SplitShardInput')
80
+ StreamARN = Shapes::StringShape.new(name: 'StreamARN')
81
+ StreamDescription = Shapes::StructureShape.new(name: 'StreamDescription')
82
+ StreamName = Shapes::StringShape.new(name: 'StreamName')
83
+ StreamNameList = Shapes::ListShape.new(name: 'StreamNameList')
84
+ StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
85
+ Tag = Shapes::StructureShape.new(name: 'Tag')
86
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
87
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
88
+ TagList = Shapes::ListShape.new(name: 'TagList')
89
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
90
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
91
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
92
+ UpdateShardCountInput = Shapes::StructureShape.new(name: 'UpdateShardCountInput')
93
+ UpdateShardCountOutput = Shapes::StructureShape.new(name: 'UpdateShardCountOutput')
94
+
95
+ AddTagsToStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
96
+ AddTagsToStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "Tags"))
97
+ AddTagsToStreamInput.struct_class = Types::AddTagsToStreamInput
98
+
99
+ CreateStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
100
+ CreateStreamInput.add_member(:shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "ShardCount"))
101
+ CreateStreamInput.struct_class = Types::CreateStreamInput
102
+
103
+ DecreaseStreamRetentionPeriodInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
104
+ DecreaseStreamRetentionPeriodInput.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "RetentionPeriodHours"))
105
+ DecreaseStreamRetentionPeriodInput.struct_class = Types::DecreaseStreamRetentionPeriodInput
106
+
107
+ DeleteStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
108
+ DeleteStreamInput.struct_class = Types::DeleteStreamInput
109
+
110
+ DescribeLimitsInput.struct_class = Types::DescribeLimitsInput
111
+
112
+ DescribeLimitsOutput.add_member(:shard_limit, Shapes::ShapeRef.new(shape: ShardCountObject, required: true, location_name: "ShardLimit"))
113
+ DescribeLimitsOutput.add_member(:open_shard_count, Shapes::ShapeRef.new(shape: ShardCountObject, required: true, location_name: "OpenShardCount"))
114
+ DescribeLimitsOutput.struct_class = Types::DescribeLimitsOutput
115
+
116
+ DescribeStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
117
+ DescribeStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeStreamInputLimit, location_name: "Limit"))
118
+ DescribeStreamInput.add_member(:exclusive_start_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ExclusiveStartShardId"))
119
+ DescribeStreamInput.struct_class = Types::DescribeStreamInput
120
+
121
+ DescribeStreamOutput.add_member(:stream_description, Shapes::ShapeRef.new(shape: StreamDescription, required: true, location_name: "StreamDescription"))
122
+ DescribeStreamOutput.struct_class = Types::DescribeStreamOutput
123
+
124
+ DisableEnhancedMonitoringInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
125
+ DisableEnhancedMonitoringInput.add_member(:shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, required: true, location_name: "ShardLevelMetrics"))
126
+ DisableEnhancedMonitoringInput.struct_class = Types::DisableEnhancedMonitoringInput
127
+
128
+ EnableEnhancedMonitoringInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
129
+ EnableEnhancedMonitoringInput.add_member(:shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, required: true, location_name: "ShardLevelMetrics"))
130
+ EnableEnhancedMonitoringInput.struct_class = Types::EnableEnhancedMonitoringInput
131
+
132
+ EnhancedMetrics.add_member(:shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, location_name: "ShardLevelMetrics"))
133
+ EnhancedMetrics.struct_class = Types::EnhancedMetrics
134
+
135
+ EnhancedMonitoringList.member = Shapes::ShapeRef.new(shape: EnhancedMetrics)
136
+
137
+ EnhancedMonitoringOutput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
138
+ EnhancedMonitoringOutput.add_member(:current_shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, location_name: "CurrentShardLevelMetrics"))
139
+ EnhancedMonitoringOutput.add_member(:desired_shard_level_metrics, Shapes::ShapeRef.new(shape: MetricsNameList, location_name: "DesiredShardLevelMetrics"))
140
+ EnhancedMonitoringOutput.struct_class = Types::EnhancedMonitoringOutput
141
+
142
+ GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "ShardIterator"))
143
+ GetRecordsInput.add_member(:limit, Shapes::ShapeRef.new(shape: GetRecordsInputLimit, location_name: "Limit"))
144
+ GetRecordsInput.struct_class = Types::GetRecordsInput
145
+
146
+ GetRecordsOutput.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, required: true, location_name: "Records"))
147
+ GetRecordsOutput.add_member(:next_shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "NextShardIterator"))
148
+ GetRecordsOutput.add_member(:millis_behind_latest, Shapes::ShapeRef.new(shape: MillisBehindLatest, location_name: "MillisBehindLatest"))
149
+ GetRecordsOutput.struct_class = Types::GetRecordsOutput
150
+
151
+ GetShardIteratorInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
152
+ GetShardIteratorInput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
153
+ GetShardIteratorInput.add_member(:shard_iterator_type, Shapes::ShapeRef.new(shape: ShardIteratorType, required: true, location_name: "ShardIteratorType"))
154
+ GetShardIteratorInput.add_member(:starting_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "StartingSequenceNumber"))
155
+ GetShardIteratorInput.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Timestamp"))
156
+ GetShardIteratorInput.struct_class = Types::GetShardIteratorInput
157
+
158
+ GetShardIteratorOutput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "ShardIterator"))
159
+ GetShardIteratorOutput.struct_class = Types::GetShardIteratorOutput
160
+
161
+ HashKeyRange.add_member(:starting_hash_key, Shapes::ShapeRef.new(shape: HashKey, required: true, location_name: "StartingHashKey"))
162
+ HashKeyRange.add_member(:ending_hash_key, Shapes::ShapeRef.new(shape: HashKey, required: true, location_name: "EndingHashKey"))
163
+ HashKeyRange.struct_class = Types::HashKeyRange
164
+
165
+ IncreaseStreamRetentionPeriodInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
166
+ IncreaseStreamRetentionPeriodInput.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "RetentionPeriodHours"))
167
+ IncreaseStreamRetentionPeriodInput.struct_class = Types::IncreaseStreamRetentionPeriodInput
168
+
169
+ ListStreamsInput.add_member(:limit, Shapes::ShapeRef.new(shape: ListStreamsInputLimit, location_name: "Limit"))
170
+ ListStreamsInput.add_member(:exclusive_start_stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "ExclusiveStartStreamName"))
171
+ ListStreamsInput.struct_class = Types::ListStreamsInput
172
+
173
+ ListStreamsOutput.add_member(:stream_names, Shapes::ShapeRef.new(shape: StreamNameList, required: true, location_name: "StreamNames"))
174
+ ListStreamsOutput.add_member(:has_more_streams, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "HasMoreStreams"))
175
+ ListStreamsOutput.struct_class = Types::ListStreamsOutput
176
+
177
+ ListTagsForStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
178
+ ListTagsForStreamInput.add_member(:exclusive_start_tag_key, Shapes::ShapeRef.new(shape: TagKey, location_name: "ExclusiveStartTagKey"))
179
+ ListTagsForStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: ListTagsForStreamInputLimit, location_name: "Limit"))
180
+ ListTagsForStreamInput.struct_class = Types::ListTagsForStreamInput
181
+
182
+ ListTagsForStreamOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
183
+ ListTagsForStreamOutput.add_member(:has_more_tags, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "HasMoreTags"))
184
+ ListTagsForStreamOutput.struct_class = Types::ListTagsForStreamOutput
185
+
186
+ MergeShardsInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
187
+ MergeShardsInput.add_member(:shard_to_merge, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardToMerge"))
188
+ MergeShardsInput.add_member(:adjacent_shard_to_merge, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "AdjacentShardToMerge"))
189
+ MergeShardsInput.struct_class = Types::MergeShardsInput
190
+
191
+ MetricsNameList.member = Shapes::ShapeRef.new(shape: MetricsName)
192
+
193
+ PutRecordInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
194
+ PutRecordInput.add_member(:data, Shapes::ShapeRef.new(shape: Data, required: true, location_name: "Data"))
195
+ PutRecordInput.add_member(:partition_key, Shapes::ShapeRef.new(shape: PartitionKey, required: true, location_name: "PartitionKey"))
196
+ PutRecordInput.add_member(:explicit_hash_key, Shapes::ShapeRef.new(shape: HashKey, location_name: "ExplicitHashKey"))
197
+ PutRecordInput.add_member(:sequence_number_for_ordering, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumberForOrdering"))
198
+ PutRecordInput.struct_class = Types::PutRecordInput
199
+
200
+ PutRecordOutput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
201
+ PutRecordOutput.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, required: true, location_name: "SequenceNumber"))
202
+ PutRecordOutput.struct_class = Types::PutRecordOutput
203
+
204
+ PutRecordsInput.add_member(:records, Shapes::ShapeRef.new(shape: PutRecordsRequestEntryList, required: true, location_name: "Records"))
205
+ PutRecordsInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
206
+ PutRecordsInput.struct_class = Types::PutRecordsInput
207
+
208
+ PutRecordsOutput.add_member(:failed_record_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "FailedRecordCount"))
209
+ PutRecordsOutput.add_member(:records, Shapes::ShapeRef.new(shape: PutRecordsResultEntryList, required: true, location_name: "Records"))
210
+ PutRecordsOutput.struct_class = Types::PutRecordsOutput
211
+
212
+ PutRecordsRequestEntry.add_member(:data, Shapes::ShapeRef.new(shape: Data, required: true, location_name: "Data"))
213
+ PutRecordsRequestEntry.add_member(:explicit_hash_key, Shapes::ShapeRef.new(shape: HashKey, location_name: "ExplicitHashKey"))
214
+ PutRecordsRequestEntry.add_member(:partition_key, Shapes::ShapeRef.new(shape: PartitionKey, required: true, location_name: "PartitionKey"))
215
+ PutRecordsRequestEntry.struct_class = Types::PutRecordsRequestEntry
216
+
217
+ PutRecordsRequestEntryList.member = Shapes::ShapeRef.new(shape: PutRecordsRequestEntry)
218
+
219
+ PutRecordsResultEntry.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumber"))
220
+ PutRecordsResultEntry.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ShardId"))
221
+ PutRecordsResultEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
222
+ PutRecordsResultEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
223
+ PutRecordsResultEntry.struct_class = Types::PutRecordsResultEntry
224
+
225
+ PutRecordsResultEntryList.member = Shapes::ShapeRef.new(shape: PutRecordsResultEntry)
226
+
227
+ Record.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, required: true, location_name: "SequenceNumber"))
228
+ Record.add_member(:approximate_arrival_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ApproximateArrivalTimestamp"))
229
+ Record.add_member(:data, Shapes::ShapeRef.new(shape: Data, required: true, location_name: "Data"))
230
+ Record.add_member(:partition_key, Shapes::ShapeRef.new(shape: PartitionKey, required: true, location_name: "PartitionKey"))
231
+ Record.struct_class = Types::Record
232
+
233
+ RecordList.member = Shapes::ShapeRef.new(shape: Record)
234
+
235
+ RemoveTagsFromStreamInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
236
+ RemoveTagsFromStreamInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
237
+ RemoveTagsFromStreamInput.struct_class = Types::RemoveTagsFromStreamInput
238
+
239
+ SequenceNumberRange.add_member(:starting_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, required: true, location_name: "StartingSequenceNumber"))
240
+ SequenceNumberRange.add_member(:ending_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "EndingSequenceNumber"))
241
+ SequenceNumberRange.struct_class = Types::SequenceNumberRange
242
+
243
+ Shard.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
244
+ Shard.add_member(:parent_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ParentShardId"))
245
+ Shard.add_member(:adjacent_parent_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "AdjacentParentShardId"))
246
+ Shard.add_member(:hash_key_range, Shapes::ShapeRef.new(shape: HashKeyRange, required: true, location_name: "HashKeyRange"))
247
+ Shard.add_member(:sequence_number_range, Shapes::ShapeRef.new(shape: SequenceNumberRange, required: true, location_name: "SequenceNumberRange"))
248
+ Shard.struct_class = Types::Shard
249
+
250
+ ShardList.member = Shapes::ShapeRef.new(shape: Shard)
251
+
252
+ SplitShardInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
253
+ SplitShardInput.add_member(:shard_to_split, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardToSplit"))
254
+ SplitShardInput.add_member(:new_starting_hash_key, Shapes::ShapeRef.new(shape: HashKey, required: true, location_name: "NewStartingHashKey"))
255
+ SplitShardInput.struct_class = Types::SplitShardInput
256
+
257
+ StreamDescription.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
258
+ StreamDescription.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamARN, required: true, location_name: "StreamARN"))
259
+ StreamDescription.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "StreamStatus"))
260
+ StreamDescription.add_member(:shards, Shapes::ShapeRef.new(shape: ShardList, required: true, location_name: "Shards"))
261
+ StreamDescription.add_member(:has_more_shards, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "HasMoreShards"))
262
+ StreamDescription.add_member(:retention_period_hours, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "RetentionPeriodHours"))
263
+ StreamDescription.add_member(:stream_creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StreamCreationTimestamp"))
264
+ StreamDescription.add_member(:enhanced_monitoring, Shapes::ShapeRef.new(shape: EnhancedMonitoringList, required: true, location_name: "EnhancedMonitoring"))
265
+ StreamDescription.struct_class = Types::StreamDescription
266
+
267
+ StreamNameList.member = Shapes::ShapeRef.new(shape: StreamName)
268
+
269
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
270
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
271
+ Tag.struct_class = Types::Tag
272
+
273
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
274
+
275
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
276
+
277
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
278
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
279
+
280
+ UpdateShardCountInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName"))
281
+ UpdateShardCountInput.add_member(:target_shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, required: true, location_name: "TargetShardCount"))
282
+ UpdateShardCountInput.add_member(:scaling_type, Shapes::ShapeRef.new(shape: ScalingType, required: true, location_name: "ScalingType"))
283
+ UpdateShardCountInput.struct_class = Types::UpdateShardCountInput
284
+
285
+ UpdateShardCountOutput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName"))
286
+ UpdateShardCountOutput.add_member(:current_shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "CurrentShardCount"))
287
+ UpdateShardCountOutput.add_member(:target_shard_count, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "TargetShardCount"))
288
+ UpdateShardCountOutput.struct_class = Types::UpdateShardCountOutput
289
+
290
+
291
+ # @api private
292
+ API = Seahorse::Model::Api.new.tap do |api|
293
+
294
+ api.version = "2013-12-02"
295
+
296
+ api.metadata = {
297
+ "endpointPrefix" => "kinesis",
298
+ "jsonVersion" => "1.1",
299
+ "protocol" => "json",
300
+ "serviceFullName" => "Amazon Kinesis",
301
+ "signatureVersion" => "v4",
302
+ "targetPrefix" => "Kinesis_20131202",
303
+ }
304
+
305
+ api.add_operation(:add_tags_to_stream, Seahorse::Model::Operation.new.tap do |o|
306
+ o.name = "AddTagsToStream"
307
+ o.http_method = "POST"
308
+ o.http_request_uri = "/"
309
+ o.input = Shapes::ShapeRef.new(shape: AddTagsToStreamInput)
310
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
311
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
312
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
313
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
314
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
315
+ end)
316
+
317
+ api.add_operation(:create_stream, Seahorse::Model::Operation.new.tap do |o|
318
+ o.name = "CreateStream"
319
+ o.http_method = "POST"
320
+ o.http_request_uri = "/"
321
+ o.input = Shapes::ShapeRef.new(shape: CreateStreamInput)
322
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
323
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
324
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
325
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
326
+ end)
327
+
328
+ api.add_operation(:decrease_stream_retention_period, Seahorse::Model::Operation.new.tap do |o|
329
+ o.name = "DecreaseStreamRetentionPeriod"
330
+ o.http_method = "POST"
331
+ o.http_request_uri = "/"
332
+ o.input = Shapes::ShapeRef.new(shape: DecreaseStreamRetentionPeriodInput)
333
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
334
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
335
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
336
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
337
+ end)
338
+
339
+ api.add_operation(:delete_stream, Seahorse::Model::Operation.new.tap do |o|
340
+ o.name = "DeleteStream"
341
+ o.http_method = "POST"
342
+ o.http_request_uri = "/"
343
+ o.input = Shapes::ShapeRef.new(shape: DeleteStreamInput)
344
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
345
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
346
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
347
+ end)
348
+
349
+ api.add_operation(:describe_limits, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "DescribeLimits"
351
+ o.http_method = "POST"
352
+ o.http_request_uri = "/"
353
+ o.input = Shapes::ShapeRef.new(shape: DescribeLimitsInput)
354
+ o.output = Shapes::ShapeRef.new(shape: DescribeLimitsOutput)
355
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
356
+ end)
357
+
358
+ api.add_operation(:describe_stream, Seahorse::Model::Operation.new.tap do |o|
359
+ o.name = "DescribeStream"
360
+ o.http_method = "POST"
361
+ o.http_request_uri = "/"
362
+ o.input = Shapes::ShapeRef.new(shape: DescribeStreamInput)
363
+ o.output = Shapes::ShapeRef.new(shape: DescribeStreamOutput)
364
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
365
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
366
+ o[:pager] = Aws::Pager.new(
367
+ more_results: "stream_description.has_more_shards",
368
+ limit_key: "limit",
369
+ tokens: {
370
+ "stream_description.shards[-1].shard_id" => "exclusive_start_shard_id"
371
+ }
372
+ )
373
+ end)
374
+
375
+ api.add_operation(:disable_enhanced_monitoring, Seahorse::Model::Operation.new.tap do |o|
376
+ o.name = "DisableEnhancedMonitoring"
377
+ o.http_method = "POST"
378
+ o.http_request_uri = "/"
379
+ o.input = Shapes::ShapeRef.new(shape: DisableEnhancedMonitoringInput)
380
+ o.output = Shapes::ShapeRef.new(shape: EnhancedMonitoringOutput)
381
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
382
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
383
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
384
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
385
+ end)
386
+
387
+ api.add_operation(:enable_enhanced_monitoring, Seahorse::Model::Operation.new.tap do |o|
388
+ o.name = "EnableEnhancedMonitoring"
389
+ o.http_method = "POST"
390
+ o.http_request_uri = "/"
391
+ o.input = Shapes::ShapeRef.new(shape: EnableEnhancedMonitoringInput)
392
+ o.output = Shapes::ShapeRef.new(shape: EnhancedMonitoringOutput)
393
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
394
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
395
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
396
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
397
+ end)
398
+
399
+ api.add_operation(:get_records, Seahorse::Model::Operation.new.tap do |o|
400
+ o.name = "GetRecords"
401
+ o.http_method = "POST"
402
+ o.http_request_uri = "/"
403
+ o.input = Shapes::ShapeRef.new(shape: GetRecordsInput)
404
+ o.output = Shapes::ShapeRef.new(shape: GetRecordsOutput)
405
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
406
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
407
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
408
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredIteratorException)
409
+ end)
410
+
411
+ api.add_operation(:get_shard_iterator, Seahorse::Model::Operation.new.tap do |o|
412
+ o.name = "GetShardIterator"
413
+ o.http_method = "POST"
414
+ o.http_request_uri = "/"
415
+ o.input = Shapes::ShapeRef.new(shape: GetShardIteratorInput)
416
+ o.output = Shapes::ShapeRef.new(shape: GetShardIteratorOutput)
417
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
418
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
419
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
420
+ end)
421
+
422
+ api.add_operation(:increase_stream_retention_period, Seahorse::Model::Operation.new.tap do |o|
423
+ o.name = "IncreaseStreamRetentionPeriod"
424
+ o.http_method = "POST"
425
+ o.http_request_uri = "/"
426
+ o.input = Shapes::ShapeRef.new(shape: IncreaseStreamRetentionPeriodInput)
427
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
428
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
429
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
430
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
431
+ end)
432
+
433
+ api.add_operation(:list_streams, Seahorse::Model::Operation.new.tap do |o|
434
+ o.name = "ListStreams"
435
+ o.http_method = "POST"
436
+ o.http_request_uri = "/"
437
+ o.input = Shapes::ShapeRef.new(shape: ListStreamsInput)
438
+ o.output = Shapes::ShapeRef.new(shape: ListStreamsOutput)
439
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
440
+ o[:pager] = Aws::Pager.new(
441
+ more_results: "has_more_streams",
442
+ limit_key: "limit",
443
+ tokens: {
444
+ "stream_names[-1]" => "exclusive_start_stream_name"
445
+ }
446
+ )
447
+ end)
448
+
449
+ api.add_operation(:list_tags_for_stream, Seahorse::Model::Operation.new.tap do |o|
450
+ o.name = "ListTagsForStream"
451
+ o.http_method = "POST"
452
+ o.http_request_uri = "/"
453
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForStreamInput)
454
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForStreamOutput)
455
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
456
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
457
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
458
+ end)
459
+
460
+ api.add_operation(:merge_shards, Seahorse::Model::Operation.new.tap do |o|
461
+ o.name = "MergeShards"
462
+ o.http_method = "POST"
463
+ o.http_request_uri = "/"
464
+ o.input = Shapes::ShapeRef.new(shape: MergeShardsInput)
465
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
466
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
467
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
468
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
469
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
470
+ end)
471
+
472
+ api.add_operation(:put_record, Seahorse::Model::Operation.new.tap do |o|
473
+ o.name = "PutRecord"
474
+ o.http_method = "POST"
475
+ o.http_request_uri = "/"
476
+ o.input = Shapes::ShapeRef.new(shape: PutRecordInput)
477
+ o.output = Shapes::ShapeRef.new(shape: PutRecordOutput)
478
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
479
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
480
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
481
+ end)
482
+
483
+ api.add_operation(:put_records, Seahorse::Model::Operation.new.tap do |o|
484
+ o.name = "PutRecords"
485
+ o.http_method = "POST"
486
+ o.http_request_uri = "/"
487
+ o.input = Shapes::ShapeRef.new(shape: PutRecordsInput)
488
+ o.output = Shapes::ShapeRef.new(shape: PutRecordsOutput)
489
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
490
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
491
+ o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
492
+ end)
493
+
494
+ api.add_operation(:remove_tags_from_stream, Seahorse::Model::Operation.new.tap do |o|
495
+ o.name = "RemoveTagsFromStream"
496
+ o.http_method = "POST"
497
+ o.http_request_uri = "/"
498
+ o.input = Shapes::ShapeRef.new(shape: RemoveTagsFromStreamInput)
499
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
500
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
501
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
502
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
503
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
504
+ end)
505
+
506
+ api.add_operation(:split_shard, Seahorse::Model::Operation.new.tap do |o|
507
+ o.name = "SplitShard"
508
+ o.http_method = "POST"
509
+ o.http_request_uri = "/"
510
+ o.input = Shapes::ShapeRef.new(shape: SplitShardInput)
511
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
512
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
513
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
514
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
515
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
516
+ end)
517
+
518
+ api.add_operation(:update_shard_count, Seahorse::Model::Operation.new.tap do |o|
519
+ o.name = "UpdateShardCount"
520
+ o.http_method = "POST"
521
+ o.http_request_uri = "/"
522
+ o.input = Shapes::ShapeRef.new(shape: UpdateShardCountInput)
523
+ o.output = Shapes::ShapeRef.new(shape: UpdateShardCountOutput)
524
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException)
525
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
526
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
527
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
528
+ end)
529
+ end
530
+
531
+ end
532
+ end
533
+ end