aws-sdk-keyspacesstreams 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,340 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::KeyspacesStreams
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ Blob = Shapes::BlobShape.new(name: 'Blob')
19
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
20
+ Date = Shapes::TimestampShape.new(name: 'Date')
21
+ GetRecordsInput = Shapes::StructureShape.new(name: 'GetRecordsInput')
22
+ GetRecordsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'GetRecordsInputMaxResultsInteger')
23
+ GetRecordsOutput = Shapes::StructureShape.new(name: 'GetRecordsOutput')
24
+ GetShardIteratorInput = Shapes::StructureShape.new(name: 'GetShardIteratorInput')
25
+ GetShardIteratorOutput = Shapes::StructureShape.new(name: 'GetShardIteratorOutput')
26
+ GetStreamInput = Shapes::StructureShape.new(name: 'GetStreamInput')
27
+ GetStreamInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'GetStreamInputMaxResultsInteger')
28
+ GetStreamOutput = Shapes::StructureShape.new(name: 'GetStreamOutput')
29
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
30
+ KeyspaceName = Shapes::StringShape.new(name: 'KeyspaceName')
31
+ KeyspacesCell = Shapes::StructureShape.new(name: 'KeyspacesCell')
32
+ KeyspacesCellList = Shapes::ListShape.new(name: 'KeyspacesCellList')
33
+ KeyspacesCellMap = Shapes::ListShape.new(name: 'KeyspacesCellMap')
34
+ KeyspacesCellMapDefinition = Shapes::StructureShape.new(name: 'KeyspacesCellMapDefinition')
35
+ KeyspacesCellValue = Shapes::UnionShape.new(name: 'KeyspacesCellValue')
36
+ KeyspacesCells = Shapes::MapShape.new(name: 'KeyspacesCells')
37
+ KeyspacesKeysMap = Shapes::MapShape.new(name: 'KeyspacesKeysMap')
38
+ KeyspacesMetadata = Shapes::StructureShape.new(name: 'KeyspacesMetadata')
39
+ KeyspacesRow = Shapes::StructureShape.new(name: 'KeyspacesRow')
40
+ KeyspacesUdtMap = Shapes::MapShape.new(name: 'KeyspacesUdtMap')
41
+ ListStreamsInput = Shapes::StructureShape.new(name: 'ListStreamsInput')
42
+ ListStreamsInputMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListStreamsInputMaxResultsInteger')
43
+ ListStreamsOutput = Shapes::StructureShape.new(name: 'ListStreamsOutput')
44
+ OriginType = Shapes::StringShape.new(name: 'OriginType')
45
+ Record = Shapes::StructureShape.new(name: 'Record')
46
+ RecordList = Shapes::ListShape.new(name: 'RecordList')
47
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
48
+ SequenceNumber = Shapes::StringShape.new(name: 'SequenceNumber')
49
+ SequenceNumberRange = Shapes::StructureShape.new(name: 'SequenceNumberRange')
50
+ Shard = Shapes::StructureShape.new(name: 'Shard')
51
+ ShardDescriptionList = Shapes::ListShape.new(name: 'ShardDescriptionList')
52
+ ShardFilter = Shapes::StructureShape.new(name: 'ShardFilter')
53
+ ShardFilterType = Shapes::StringShape.new(name: 'ShardFilterType')
54
+ ShardId = Shapes::StringShape.new(name: 'ShardId')
55
+ ShardIdList = Shapes::ListShape.new(name: 'ShardIdList')
56
+ ShardIdToken = Shapes::StringShape.new(name: 'ShardIdToken')
57
+ ShardIterator = Shapes::StringShape.new(name: 'ShardIterator')
58
+ ShardIteratorType = Shapes::StringShape.new(name: 'ShardIteratorType')
59
+ Stream = Shapes::StructureShape.new(name: 'Stream')
60
+ StreamArn = Shapes::StringShape.new(name: 'StreamArn')
61
+ StreamArnToken = Shapes::StringShape.new(name: 'StreamArnToken')
62
+ StreamList = Shapes::ListShape.new(name: 'StreamList')
63
+ StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
64
+ StreamViewType = Shapes::StringShape.new(name: 'StreamViewType')
65
+ String = Shapes::StringShape.new(name: 'String')
66
+ TableName = Shapes::StringShape.new(name: 'TableName')
67
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
68
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
69
+ ValidationExceptionType = Shapes::StringShape.new(name: 'ValidationExceptionType')
70
+
71
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
72
+ AccessDeniedException.struct_class = Types::AccessDeniedException
73
+
74
+ GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "shardIterator"))
75
+ GetRecordsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: GetRecordsInputMaxResultsInteger, location_name: "maxResults"))
76
+ GetRecordsInput.struct_class = Types::GetRecordsInput
77
+
78
+ GetRecordsOutput.add_member(:change_records, Shapes::ShapeRef.new(shape: RecordList, location_name: "changeRecords"))
79
+ GetRecordsOutput.add_member(:next_shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "nextShardIterator"))
80
+ GetRecordsOutput.struct_class = Types::GetRecordsOutput
81
+
82
+ GetShardIteratorInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "streamArn"))
83
+ GetShardIteratorInput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "shardId"))
84
+ GetShardIteratorInput.add_member(:shard_iterator_type, Shapes::ShapeRef.new(shape: ShardIteratorType, required: true, location_name: "shardIteratorType"))
85
+ GetShardIteratorInput.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "sequenceNumber"))
86
+ GetShardIteratorInput.struct_class = Types::GetShardIteratorInput
87
+
88
+ GetShardIteratorOutput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "shardIterator"))
89
+ GetShardIteratorOutput.struct_class = Types::GetShardIteratorOutput
90
+
91
+ GetStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "streamArn"))
92
+ GetStreamInput.add_member(:max_results, Shapes::ShapeRef.new(shape: GetStreamInputMaxResultsInteger, location_name: "maxResults"))
93
+ GetStreamInput.add_member(:shard_filter, Shapes::ShapeRef.new(shape: ShardFilter, location_name: "shardFilter"))
94
+ GetStreamInput.add_member(:next_token, Shapes::ShapeRef.new(shape: ShardIdToken, location_name: "nextToken"))
95
+ GetStreamInput.struct_class = Types::GetStreamInput
96
+
97
+ GetStreamOutput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "streamArn"))
98
+ GetStreamOutput.add_member(:stream_label, Shapes::ShapeRef.new(shape: String, required: true, location_name: "streamLabel"))
99
+ GetStreamOutput.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, required: true, location_name: "streamStatus"))
100
+ GetStreamOutput.add_member(:stream_view_type, Shapes::ShapeRef.new(shape: StreamViewType, required: true, location_name: "streamViewType"))
101
+ GetStreamOutput.add_member(:creation_request_date_time, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "creationRequestDateTime"))
102
+ GetStreamOutput.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
103
+ GetStreamOutput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
104
+ GetStreamOutput.add_member(:shards, Shapes::ShapeRef.new(shape: ShardDescriptionList, location_name: "shards"))
105
+ GetStreamOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: ShardIdToken, location_name: "nextToken"))
106
+ GetStreamOutput.struct_class = Types::GetStreamOutput
107
+
108
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
109
+ InternalServerException.struct_class = Types::InternalServerException
110
+
111
+ KeyspacesCell.add_member(:value, Shapes::ShapeRef.new(shape: KeyspacesCellValue, location_name: "value"))
112
+ KeyspacesCell.add_member(:metadata, Shapes::ShapeRef.new(shape: KeyspacesMetadata, location_name: "metadata"))
113
+ KeyspacesCell.struct_class = Types::KeyspacesCell
114
+
115
+ KeyspacesCellList.member = Shapes::ShapeRef.new(shape: KeyspacesCell)
116
+
117
+ KeyspacesCellMap.member = Shapes::ShapeRef.new(shape: KeyspacesCellMapDefinition)
118
+
119
+ KeyspacesCellMapDefinition.add_member(:key, Shapes::ShapeRef.new(shape: KeyspacesCellValue, location_name: "key"))
120
+ KeyspacesCellMapDefinition.add_member(:value, Shapes::ShapeRef.new(shape: KeyspacesCellValue, location_name: "value"))
121
+ KeyspacesCellMapDefinition.add_member(:metadata, Shapes::ShapeRef.new(shape: KeyspacesMetadata, location_name: "metadata"))
122
+ KeyspacesCellMapDefinition.struct_class = Types::KeyspacesCellMapDefinition
123
+
124
+ KeyspacesCellValue.add_member(:ascii_t, Shapes::ShapeRef.new(shape: String, location_name: "asciiT"))
125
+ KeyspacesCellValue.add_member(:bigint_t, Shapes::ShapeRef.new(shape: String, location_name: "bigintT"))
126
+ KeyspacesCellValue.add_member(:blob_t, Shapes::ShapeRef.new(shape: Blob, location_name: "blobT"))
127
+ KeyspacesCellValue.add_member(:bool_t, Shapes::ShapeRef.new(shape: Boolean, location_name: "boolT"))
128
+ KeyspacesCellValue.add_member(:counter_t, Shapes::ShapeRef.new(shape: String, location_name: "counterT"))
129
+ KeyspacesCellValue.add_member(:date_t, Shapes::ShapeRef.new(shape: String, location_name: "dateT"))
130
+ KeyspacesCellValue.add_member(:decimal_t, Shapes::ShapeRef.new(shape: String, location_name: "decimalT"))
131
+ KeyspacesCellValue.add_member(:double_t, Shapes::ShapeRef.new(shape: String, location_name: "doubleT"))
132
+ KeyspacesCellValue.add_member(:float_t, Shapes::ShapeRef.new(shape: String, location_name: "floatT"))
133
+ KeyspacesCellValue.add_member(:inet_t, Shapes::ShapeRef.new(shape: String, location_name: "inetT"))
134
+ KeyspacesCellValue.add_member(:int_t, Shapes::ShapeRef.new(shape: String, location_name: "intT"))
135
+ KeyspacesCellValue.add_member(:list_t, Shapes::ShapeRef.new(shape: KeyspacesCellList, location_name: "listT"))
136
+ KeyspacesCellValue.add_member(:map_t, Shapes::ShapeRef.new(shape: KeyspacesCellMap, location_name: "mapT"))
137
+ KeyspacesCellValue.add_member(:set_t, Shapes::ShapeRef.new(shape: KeyspacesCellList, location_name: "setT"))
138
+ KeyspacesCellValue.add_member(:smallint_t, Shapes::ShapeRef.new(shape: String, location_name: "smallintT"))
139
+ KeyspacesCellValue.add_member(:text_t, Shapes::ShapeRef.new(shape: String, location_name: "textT"))
140
+ KeyspacesCellValue.add_member(:time_t, Shapes::ShapeRef.new(shape: String, location_name: "timeT"))
141
+ KeyspacesCellValue.add_member(:timestamp_t, Shapes::ShapeRef.new(shape: String, location_name: "timestampT"))
142
+ KeyspacesCellValue.add_member(:timeuuid_t, Shapes::ShapeRef.new(shape: String, location_name: "timeuuidT"))
143
+ KeyspacesCellValue.add_member(:tinyint_t, Shapes::ShapeRef.new(shape: String, location_name: "tinyintT"))
144
+ KeyspacesCellValue.add_member(:tuple_t, Shapes::ShapeRef.new(shape: KeyspacesCellList, location_name: "tupleT"))
145
+ KeyspacesCellValue.add_member(:uuid_t, Shapes::ShapeRef.new(shape: String, location_name: "uuidT"))
146
+ KeyspacesCellValue.add_member(:varchar_t, Shapes::ShapeRef.new(shape: String, location_name: "varcharT"))
147
+ KeyspacesCellValue.add_member(:varint_t, Shapes::ShapeRef.new(shape: String, location_name: "varintT"))
148
+ KeyspacesCellValue.add_member(:udt_t, Shapes::ShapeRef.new(shape: KeyspacesUdtMap, location_name: "udtT"))
149
+ KeyspacesCellValue.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
150
+ KeyspacesCellValue.add_member_subclass(:ascii_t, Types::KeyspacesCellValue::AsciiT)
151
+ KeyspacesCellValue.add_member_subclass(:bigint_t, Types::KeyspacesCellValue::BigintT)
152
+ KeyspacesCellValue.add_member_subclass(:blob_t, Types::KeyspacesCellValue::BlobT)
153
+ KeyspacesCellValue.add_member_subclass(:bool_t, Types::KeyspacesCellValue::BoolT)
154
+ KeyspacesCellValue.add_member_subclass(:counter_t, Types::KeyspacesCellValue::CounterT)
155
+ KeyspacesCellValue.add_member_subclass(:date_t, Types::KeyspacesCellValue::DateT)
156
+ KeyspacesCellValue.add_member_subclass(:decimal_t, Types::KeyspacesCellValue::DecimalT)
157
+ KeyspacesCellValue.add_member_subclass(:double_t, Types::KeyspacesCellValue::DoubleT)
158
+ KeyspacesCellValue.add_member_subclass(:float_t, Types::KeyspacesCellValue::FloatT)
159
+ KeyspacesCellValue.add_member_subclass(:inet_t, Types::KeyspacesCellValue::InetT)
160
+ KeyspacesCellValue.add_member_subclass(:int_t, Types::KeyspacesCellValue::IntT)
161
+ KeyspacesCellValue.add_member_subclass(:list_t, Types::KeyspacesCellValue::ListT)
162
+ KeyspacesCellValue.add_member_subclass(:map_t, Types::KeyspacesCellValue::MapT)
163
+ KeyspacesCellValue.add_member_subclass(:set_t, Types::KeyspacesCellValue::SetT)
164
+ KeyspacesCellValue.add_member_subclass(:smallint_t, Types::KeyspacesCellValue::SmallintT)
165
+ KeyspacesCellValue.add_member_subclass(:text_t, Types::KeyspacesCellValue::TextT)
166
+ KeyspacesCellValue.add_member_subclass(:time_t, Types::KeyspacesCellValue::TimeT)
167
+ KeyspacesCellValue.add_member_subclass(:timestamp_t, Types::KeyspacesCellValue::TimestampT)
168
+ KeyspacesCellValue.add_member_subclass(:timeuuid_t, Types::KeyspacesCellValue::TimeuuidT)
169
+ KeyspacesCellValue.add_member_subclass(:tinyint_t, Types::KeyspacesCellValue::TinyintT)
170
+ KeyspacesCellValue.add_member_subclass(:tuple_t, Types::KeyspacesCellValue::TupleT)
171
+ KeyspacesCellValue.add_member_subclass(:uuid_t, Types::KeyspacesCellValue::UuidT)
172
+ KeyspacesCellValue.add_member_subclass(:varchar_t, Types::KeyspacesCellValue::VarcharT)
173
+ KeyspacesCellValue.add_member_subclass(:varint_t, Types::KeyspacesCellValue::VarintT)
174
+ KeyspacesCellValue.add_member_subclass(:udt_t, Types::KeyspacesCellValue::UdtT)
175
+ KeyspacesCellValue.add_member_subclass(:unknown, Types::KeyspacesCellValue::Unknown)
176
+ KeyspacesCellValue.struct_class = Types::KeyspacesCellValue
177
+
178
+ KeyspacesCells.key = Shapes::ShapeRef.new(shape: String)
179
+ KeyspacesCells.value = Shapes::ShapeRef.new(shape: KeyspacesCell)
180
+
181
+ KeyspacesKeysMap.key = Shapes::ShapeRef.new(shape: String)
182
+ KeyspacesKeysMap.value = Shapes::ShapeRef.new(shape: KeyspacesCellValue)
183
+
184
+ KeyspacesMetadata.add_member(:expiration_time, Shapes::ShapeRef.new(shape: String, location_name: "expirationTime"))
185
+ KeyspacesMetadata.add_member(:write_time, Shapes::ShapeRef.new(shape: String, location_name: "writeTime"))
186
+ KeyspacesMetadata.struct_class = Types::KeyspacesMetadata
187
+
188
+ KeyspacesRow.add_member(:value_cells, Shapes::ShapeRef.new(shape: KeyspacesCells, location_name: "valueCells"))
189
+ KeyspacesRow.add_member(:static_cells, Shapes::ShapeRef.new(shape: KeyspacesCells, location_name: "staticCells"))
190
+ KeyspacesRow.add_member(:row_metadata, Shapes::ShapeRef.new(shape: KeyspacesMetadata, location_name: "rowMetadata"))
191
+ KeyspacesRow.struct_class = Types::KeyspacesRow
192
+
193
+ KeyspacesUdtMap.key = Shapes::ShapeRef.new(shape: String)
194
+ KeyspacesUdtMap.value = Shapes::ShapeRef.new(shape: KeyspacesCell)
195
+
196
+ ListStreamsInput.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, location_name: "keyspaceName"))
197
+ ListStreamsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "tableName"))
198
+ ListStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListStreamsInputMaxResultsInteger, location_name: "maxResults"))
199
+ ListStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: StreamArnToken, location_name: "nextToken"))
200
+ ListStreamsInput.struct_class = Types::ListStreamsInput
201
+
202
+ ListStreamsOutput.add_member(:streams, Shapes::ShapeRef.new(shape: StreamList, location_name: "streams"))
203
+ ListStreamsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: StreamArnToken, location_name: "nextToken"))
204
+ ListStreamsOutput.struct_class = Types::ListStreamsOutput
205
+
206
+ Record.add_member(:event_version, Shapes::ShapeRef.new(shape: String, location_name: "eventVersion"))
207
+ Record.add_member(:created_at, Shapes::ShapeRef.new(shape: Date, location_name: "createdAt"))
208
+ Record.add_member(:origin, Shapes::ShapeRef.new(shape: OriginType, location_name: "origin"))
209
+ Record.add_member(:partition_keys, Shapes::ShapeRef.new(shape: KeyspacesKeysMap, location_name: "partitionKeys"))
210
+ Record.add_member(:clustering_keys, Shapes::ShapeRef.new(shape: KeyspacesKeysMap, location_name: "clusteringKeys"))
211
+ Record.add_member(:new_image, Shapes::ShapeRef.new(shape: KeyspacesRow, location_name: "newImage"))
212
+ Record.add_member(:old_image, Shapes::ShapeRef.new(shape: KeyspacesRow, location_name: "oldImage"))
213
+ Record.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "sequenceNumber"))
214
+ Record.struct_class = Types::Record
215
+
216
+ RecordList.member = Shapes::ShapeRef.new(shape: Record)
217
+
218
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
219
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
220
+
221
+ SequenceNumberRange.add_member(:starting_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "startingSequenceNumber"))
222
+ SequenceNumberRange.add_member(:ending_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "endingSequenceNumber"))
223
+ SequenceNumberRange.struct_class = Types::SequenceNumberRange
224
+
225
+ Shard.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "shardId"))
226
+ Shard.add_member(:sequence_number_range, Shapes::ShapeRef.new(shape: SequenceNumberRange, location_name: "sequenceNumberRange"))
227
+ Shard.add_member(:parent_shard_ids, Shapes::ShapeRef.new(shape: ShardIdList, location_name: "parentShardIds"))
228
+ Shard.struct_class = Types::Shard
229
+
230
+ ShardDescriptionList.member = Shapes::ShapeRef.new(shape: Shard)
231
+
232
+ ShardFilter.add_member(:type, Shapes::ShapeRef.new(shape: ShardFilterType, location_name: "type"))
233
+ ShardFilter.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "shardId"))
234
+ ShardFilter.struct_class = Types::ShardFilter
235
+
236
+ ShardIdList.member = Shapes::ShapeRef.new(shape: ShardId)
237
+
238
+ Stream.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "streamArn"))
239
+ Stream.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
240
+ Stream.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
241
+ Stream.add_member(:stream_label, Shapes::ShapeRef.new(shape: String, required: true, location_name: "streamLabel"))
242
+ Stream.struct_class = Types::Stream
243
+
244
+ StreamList.member = Shapes::ShapeRef.new(shape: Stream)
245
+
246
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
247
+ ThrottlingException.struct_class = Types::ThrottlingException
248
+
249
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
250
+ ValidationException.add_member(:error_code, Shapes::ShapeRef.new(shape: ValidationExceptionType, location_name: "errorCode"))
251
+ ValidationException.struct_class = Types::ValidationException
252
+
253
+
254
+ # @api private
255
+ API = Seahorse::Model::Api.new.tap do |api|
256
+
257
+ api.version = "2024-09-09"
258
+
259
+ api.metadata = {
260
+ "apiVersion" => "2024-09-09",
261
+ "auth" => ["aws.auth#sigv4"],
262
+ "endpointPrefix" => "cassandra-streams",
263
+ "jsonVersion" => "1.0",
264
+ "protocol" => "json",
265
+ "protocols" => ["json"],
266
+ "serviceFullName" => "Amazon Keyspaces Streams",
267
+ "serviceId" => "KeyspacesStreams",
268
+ "signatureVersion" => "v4",
269
+ "signingName" => "cassandra",
270
+ "targetPrefix" => "KeyspacesStreams",
271
+ "uid" => "keyspacesstreams-2024-09-09",
272
+ }
273
+
274
+ api.add_operation(:get_records, Seahorse::Model::Operation.new.tap do |o|
275
+ o.name = "GetRecords"
276
+ o.http_method = "POST"
277
+ o.http_request_uri = "/"
278
+ o.input = Shapes::ShapeRef.new(shape: GetRecordsInput)
279
+ o.output = Shapes::ShapeRef.new(shape: GetRecordsOutput)
280
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
281
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
282
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
284
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
285
+ end)
286
+
287
+ api.add_operation(:get_shard_iterator, Seahorse::Model::Operation.new.tap do |o|
288
+ o.name = "GetShardIterator"
289
+ o.http_method = "POST"
290
+ o.http_request_uri = "/"
291
+ o.input = Shapes::ShapeRef.new(shape: GetShardIteratorInput)
292
+ o.output = Shapes::ShapeRef.new(shape: GetShardIteratorOutput)
293
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
294
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
295
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
296
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
297
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
298
+ end)
299
+
300
+ api.add_operation(:get_stream, Seahorse::Model::Operation.new.tap do |o|
301
+ o.name = "GetStream"
302
+ o.http_method = "POST"
303
+ o.http_request_uri = "/"
304
+ o.input = Shapes::ShapeRef.new(shape: GetStreamInput)
305
+ o.output = Shapes::ShapeRef.new(shape: GetStreamOutput)
306
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
307
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
308
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
309
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
310
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
311
+ o[:pager] = Aws::Pager.new(
312
+ limit_key: "max_results",
313
+ tokens: {
314
+ "next_token" => "next_token"
315
+ }
316
+ )
317
+ end)
318
+
319
+ api.add_operation(:list_streams, Seahorse::Model::Operation.new.tap do |o|
320
+ o.name = "ListStreams"
321
+ o.http_method = "POST"
322
+ o.http_request_uri = "/"
323
+ o.input = Shapes::ShapeRef.new(shape: ListStreamsInput)
324
+ o.output = Shapes::ShapeRef.new(shape: ListStreamsOutput)
325
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
326
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
327
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
328
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
329
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
330
+ o[:pager] = Aws::Pager.new(
331
+ limit_key: "max_results",
332
+ tokens: {
333
+ "next_token" => "next_token"
334
+ }
335
+ )
336
+ end)
337
+ end
338
+
339
+ end
340
+ end
File without changes
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::KeyspacesStreams
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute use_fips
14
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
15
+ #
16
+ # @return [Boolean]
17
+ #
18
+ # @!attribute endpoint
19
+ # Override the endpoint used to send this request
20
+ #
21
+ # @return [String]
22
+ #
23
+ # @!attribute region
24
+ # The AWS region used to dispatch the request.
25
+ #
26
+ # @return [String]
27
+ #
28
+ EndpointParameters = Struct.new(
29
+ :use_fips,
30
+ :endpoint,
31
+ :region,
32
+ ) do
33
+ include Aws::Structure
34
+
35
+ # @api private
36
+ class << self
37
+ PARAM_MAP = {
38
+ 'UseFIPS' => :use_fips,
39
+ 'Endpoint' => :endpoint,
40
+ 'Region' => :region,
41
+ }.freeze
42
+ end
43
+
44
+ def initialize(options = {})
45
+ self[:use_fips] = options[:use_fips]
46
+ self[:use_fips] = false if self[:use_fips].nil?
47
+ self[:endpoint] = options[:endpoint]
48
+ self[:region] = options[:region]
49
+ end
50
+
51
+ def self.create(config, options={})
52
+ new({
53
+ use_fips: config.use_fips_endpoint,
54
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
55
+ region: config.region,
56
+ }.merge(options))
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::KeyspacesStreams
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
18
+ end
19
+ if Aws::Endpoints::Matchers.set?(parameters.region)
20
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
21
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
22
+ return Aws::Endpoints::Endpoint.new(url: "https://cassandra-streams-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: "https://cassandra-streams.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
25
+ end
26
+ end
27
+ raise ArgumentError, "Invalid Configuration: Missing Region"
28
+ raise ArgumentError, 'No endpoint could be resolved'
29
+
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::KeyspacesStreams
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::KeyspacesStreams::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,123 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::KeyspacesStreams
11
+
12
+ # When KeyspacesStreams returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::KeyspacesStreams::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all KeyspacesStreams errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::KeyspacesStreams::Errors::ServiceError
20
+ # # rescues all KeyspacesStreams API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {InternalServerException}
32
+ # * {ResourceNotFoundException}
33
+ # * {ThrottlingException}
34
+ # * {ValidationException}
35
+ #
36
+ # Additionally, error classes are dynamically generated for service errors based on the error code
37
+ # if they are not defined above.
38
+ module Errors
39
+
40
+ extend Aws::Errors::DynamicErrors
41
+
42
+ class AccessDeniedException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::KeyspacesStreams::Types::AccessDeniedException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def message
53
+ @message || @data[:message]
54
+ end
55
+ end
56
+
57
+ class InternalServerException < ServiceError
58
+
59
+ # @param [Seahorse::Client::RequestContext] context
60
+ # @param [String] message
61
+ # @param [Aws::KeyspacesStreams::Types::InternalServerException] data
62
+ def initialize(context, message, data = Aws::EmptyStructure.new)
63
+ super(context, message, data)
64
+ end
65
+
66
+ # @return [String]
67
+ def message
68
+ @message || @data[:message]
69
+ end
70
+ end
71
+
72
+ class ResourceNotFoundException < ServiceError
73
+
74
+ # @param [Seahorse::Client::RequestContext] context
75
+ # @param [String] message
76
+ # @param [Aws::KeyspacesStreams::Types::ResourceNotFoundException] data
77
+ def initialize(context, message, data = Aws::EmptyStructure.new)
78
+ super(context, message, data)
79
+ end
80
+
81
+ # @return [String]
82
+ def message
83
+ @message || @data[:message]
84
+ end
85
+ end
86
+
87
+ class ThrottlingException < ServiceError
88
+
89
+ # @param [Seahorse::Client::RequestContext] context
90
+ # @param [String] message
91
+ # @param [Aws::KeyspacesStreams::Types::ThrottlingException] data
92
+ def initialize(context, message, data = Aws::EmptyStructure.new)
93
+ super(context, message, data)
94
+ end
95
+
96
+ # @return [String]
97
+ def message
98
+ @message || @data[:message]
99
+ end
100
+ end
101
+
102
+ class ValidationException < ServiceError
103
+
104
+ # @param [Seahorse::Client::RequestContext] context
105
+ # @param [String] message
106
+ # @param [Aws::KeyspacesStreams::Types::ValidationException] data
107
+ def initialize(context, message, data = Aws::EmptyStructure.new)
108
+ super(context, message, data)
109
+ end
110
+
111
+ # @return [String]
112
+ def message
113
+ @message || @data[:message]
114
+ end
115
+
116
+ # @return [String]
117
+ def error_code
118
+ @data[:error_code]
119
+ end
120
+ end
121
+
122
+ end
123
+ end
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::KeyspacesStreams
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::KeyspacesStreams::EndpointProvider',
17
+ rbs_type: 'untyped',
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::KeyspacesStreams::EndpointParameters`.
22
+ DOCS
23
+ Aws::KeyspacesStreams::EndpointProvider.new
24
+ end
25
+
26
+ # @api private
27
+ class Handler < Seahorse::Client::Handler
28
+ def call(context)
29
+ unless context[:discovered_endpoint]
30
+ params = Aws::KeyspacesStreams::Endpoints.parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+
36
+ context[:endpoint_params] = params
37
+ context[:endpoint_properties] = endpoint.properties
38
+ end
39
+
40
+ context[:auth_scheme] =
41
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
+
43
+ with_metrics(context) { @handler.call(context) }
44
+ end
45
+
46
+ private
47
+
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
57
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
58
+ end
59
+
60
+ def apply_endpoint_headers(context, headers)
61
+ headers.each do |key, values|
62
+ value = values
63
+ .compact
64
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
65
+ .join(',')
66
+
67
+ context.http_request.headers[key] = value
68
+ end
69
+ end
70
+ end
71
+
72
+ def add_handlers(handlers, _config)
73
+ handlers.add(Handler, step: :build, priority: 75)
74
+ end
75
+ end
76
+ end
77
+ end