aws-sdk-dynamodbstreams 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,246 +1,250 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module DynamoDBStreams
10
- # @api private
11
- module ClientApi
12
-
13
- include Seahorse::Model
14
-
15
- AttributeMap = Shapes::MapShape.new(name: 'AttributeMap')
16
- AttributeName = Shapes::StringShape.new(name: 'AttributeName')
17
- AttributeValue = Shapes::StructureShape.new(name: 'AttributeValue')
18
- BinaryAttributeValue = Shapes::BlobShape.new(name: 'BinaryAttributeValue')
19
- BinarySetAttributeValue = Shapes::ListShape.new(name: 'BinarySetAttributeValue')
20
- BooleanAttributeValue = Shapes::BooleanShape.new(name: 'BooleanAttributeValue')
21
- Date = Shapes::TimestampShape.new(name: 'Date')
22
- DescribeStreamInput = Shapes::StructureShape.new(name: 'DescribeStreamInput')
23
- DescribeStreamOutput = Shapes::StructureShape.new(name: 'DescribeStreamOutput')
24
- ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
25
- ExpiredIteratorException = Shapes::StructureShape.new(name: 'ExpiredIteratorException')
26
- GetRecordsInput = Shapes::StructureShape.new(name: 'GetRecordsInput')
27
- GetRecordsOutput = Shapes::StructureShape.new(name: 'GetRecordsOutput')
28
- GetShardIteratorInput = Shapes::StructureShape.new(name: 'GetShardIteratorInput')
29
- GetShardIteratorOutput = Shapes::StructureShape.new(name: 'GetShardIteratorOutput')
30
- InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
31
- KeySchema = Shapes::ListShape.new(name: 'KeySchema')
32
- KeySchemaAttributeName = Shapes::StringShape.new(name: 'KeySchemaAttributeName')
33
- KeySchemaElement = Shapes::StructureShape.new(name: 'KeySchemaElement')
34
- KeyType = Shapes::StringShape.new(name: 'KeyType')
35
- LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
36
- ListAttributeValue = Shapes::ListShape.new(name: 'ListAttributeValue')
37
- ListStreamsInput = Shapes::StructureShape.new(name: 'ListStreamsInput')
38
- ListStreamsOutput = Shapes::StructureShape.new(name: 'ListStreamsOutput')
39
- MapAttributeValue = Shapes::MapShape.new(name: 'MapAttributeValue')
40
- NullAttributeValue = Shapes::BooleanShape.new(name: 'NullAttributeValue')
41
- NumberAttributeValue = Shapes::StringShape.new(name: 'NumberAttributeValue')
42
- NumberSetAttributeValue = Shapes::ListShape.new(name: 'NumberSetAttributeValue')
43
- OperationType = Shapes::StringShape.new(name: 'OperationType')
44
- PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
45
- PositiveLongObject = Shapes::IntegerShape.new(name: 'PositiveLongObject')
46
- Record = Shapes::StructureShape.new(name: 'Record')
47
- RecordList = Shapes::ListShape.new(name: 'RecordList')
48
- ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
49
- SequenceNumber = Shapes::StringShape.new(name: 'SequenceNumber')
50
- SequenceNumberRange = Shapes::StructureShape.new(name: 'SequenceNumberRange')
51
- Shard = Shapes::StructureShape.new(name: 'Shard')
52
- ShardDescriptionList = Shapes::ListShape.new(name: 'ShardDescriptionList')
53
- ShardId = Shapes::StringShape.new(name: 'ShardId')
54
- ShardIterator = Shapes::StringShape.new(name: 'ShardIterator')
55
- ShardIteratorType = Shapes::StringShape.new(name: 'ShardIteratorType')
56
- Stream = Shapes::StructureShape.new(name: 'Stream')
57
- StreamArn = Shapes::StringShape.new(name: 'StreamArn')
58
- StreamDescription = Shapes::StructureShape.new(name: 'StreamDescription')
59
- StreamList = Shapes::ListShape.new(name: 'StreamList')
60
- StreamRecord = Shapes::StructureShape.new(name: 'StreamRecord')
61
- StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
62
- StreamViewType = Shapes::StringShape.new(name: 'StreamViewType')
63
- String = Shapes::StringShape.new(name: 'String')
64
- StringAttributeValue = Shapes::StringShape.new(name: 'StringAttributeValue')
65
- StringSetAttributeValue = Shapes::ListShape.new(name: 'StringSetAttributeValue')
66
- TableName = Shapes::StringShape.new(name: 'TableName')
67
- TrimmedDataAccessException = Shapes::StructureShape.new(name: 'TrimmedDataAccessException')
68
-
69
- AttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName)
70
- AttributeMap.value = Shapes::ShapeRef.new(shape: AttributeValue)
71
-
72
- AttributeValue.add_member(:s, Shapes::ShapeRef.new(shape: StringAttributeValue, location_name: "S"))
73
- AttributeValue.add_member(:n, Shapes::ShapeRef.new(shape: NumberAttributeValue, location_name: "N"))
74
- AttributeValue.add_member(:b, Shapes::ShapeRef.new(shape: BinaryAttributeValue, location_name: "B"))
75
- AttributeValue.add_member(:ss, Shapes::ShapeRef.new(shape: StringSetAttributeValue, location_name: "SS"))
76
- AttributeValue.add_member(:ns, Shapes::ShapeRef.new(shape: NumberSetAttributeValue, location_name: "NS"))
77
- AttributeValue.add_member(:bs, Shapes::ShapeRef.new(shape: BinarySetAttributeValue, location_name: "BS"))
78
- AttributeValue.add_member(:m, Shapes::ShapeRef.new(shape: MapAttributeValue, location_name: "M"))
79
- AttributeValue.add_member(:l, Shapes::ShapeRef.new(shape: ListAttributeValue, location_name: "L"))
80
- AttributeValue.add_member(:null, Shapes::ShapeRef.new(shape: NullAttributeValue, location_name: "NULL"))
81
- AttributeValue.add_member(:bool, Shapes::ShapeRef.new(shape: BooleanAttributeValue, location_name: "BOOL"))
82
- AttributeValue.struct_class = Types::AttributeValue
83
-
84
- BinarySetAttributeValue.member = Shapes::ShapeRef.new(shape: BinaryAttributeValue)
85
-
86
- DescribeStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
87
- DescribeStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
88
- DescribeStreamInput.add_member(:exclusive_start_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ExclusiveStartShardId"))
89
- DescribeStreamInput.struct_class = Types::DescribeStreamInput
90
-
91
- DescribeStreamOutput.add_member(:stream_description, Shapes::ShapeRef.new(shape: StreamDescription, location_name: "StreamDescription"))
92
- DescribeStreamOutput.struct_class = Types::DescribeStreamOutput
93
-
94
- GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "ShardIterator"))
95
- GetRecordsInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
96
- GetRecordsInput.struct_class = Types::GetRecordsInput
97
-
98
- GetRecordsOutput.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, location_name: "Records"))
99
- GetRecordsOutput.add_member(:next_shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "NextShardIterator"))
100
- GetRecordsOutput.struct_class = Types::GetRecordsOutput
101
-
102
- GetShardIteratorInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
103
- GetShardIteratorInput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
104
- GetShardIteratorInput.add_member(:shard_iterator_type, Shapes::ShapeRef.new(shape: ShardIteratorType, required: true, location_name: "ShardIteratorType"))
105
- GetShardIteratorInput.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumber"))
106
- GetShardIteratorInput.struct_class = Types::GetShardIteratorInput
107
-
108
- GetShardIteratorOutput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "ShardIterator"))
109
- GetShardIteratorOutput.struct_class = Types::GetShardIteratorOutput
110
-
111
- KeySchema.member = Shapes::ShapeRef.new(shape: KeySchemaElement)
112
-
113
- KeySchemaElement.add_member(:attribute_name, Shapes::ShapeRef.new(shape: KeySchemaAttributeName, required: true, location_name: "AttributeName"))
114
- KeySchemaElement.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, required: true, location_name: "KeyType"))
115
- KeySchemaElement.struct_class = Types::KeySchemaElement
116
-
117
- ListAttributeValue.member = Shapes::ShapeRef.new(shape: AttributeValue)
118
-
119
- ListStreamsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
120
- ListStreamsInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
121
- ListStreamsInput.add_member(:exclusive_start_stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "ExclusiveStartStreamArn"))
122
- ListStreamsInput.struct_class = Types::ListStreamsInput
123
-
124
- ListStreamsOutput.add_member(:streams, Shapes::ShapeRef.new(shape: StreamList, location_name: "Streams"))
125
- ListStreamsOutput.add_member(:last_evaluated_stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "LastEvaluatedStreamArn"))
126
- ListStreamsOutput.struct_class = Types::ListStreamsOutput
127
-
128
- MapAttributeValue.key = Shapes::ShapeRef.new(shape: AttributeName)
129
- MapAttributeValue.value = Shapes::ShapeRef.new(shape: AttributeValue)
130
-
131
- NumberSetAttributeValue.member = Shapes::ShapeRef.new(shape: NumberAttributeValue)
132
-
133
- Record.add_member(:event_id, Shapes::ShapeRef.new(shape: String, location_name: "eventID"))
134
- Record.add_member(:event_name, Shapes::ShapeRef.new(shape: OperationType, location_name: "eventName"))
135
- Record.add_member(:event_version, Shapes::ShapeRef.new(shape: String, location_name: "eventVersion"))
136
- Record.add_member(:event_source, Shapes::ShapeRef.new(shape: String, location_name: "eventSource"))
137
- Record.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, location_name: "awsRegion"))
138
- Record.add_member(:dynamodb, Shapes::ShapeRef.new(shape: StreamRecord, location_name: "dynamodb"))
139
- Record.struct_class = Types::Record
140
-
141
- RecordList.member = Shapes::ShapeRef.new(shape: Record)
142
-
143
- SequenceNumberRange.add_member(:starting_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "StartingSequenceNumber"))
144
- SequenceNumberRange.add_member(:ending_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "EndingSequenceNumber"))
145
- SequenceNumberRange.struct_class = Types::SequenceNumberRange
146
-
147
- Shard.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ShardId"))
148
- Shard.add_member(:sequence_number_range, Shapes::ShapeRef.new(shape: SequenceNumberRange, location_name: "SequenceNumberRange"))
149
- Shard.add_member(:parent_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ParentShardId"))
150
- Shard.struct_class = Types::Shard
151
-
152
- ShardDescriptionList.member = Shapes::ShapeRef.new(shape: Shard)
153
-
154
- Stream.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "StreamArn"))
155
- Stream.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
156
- Stream.add_member(:stream_label, Shapes::ShapeRef.new(shape: String, location_name: "StreamLabel"))
157
- Stream.struct_class = Types::Stream
158
-
159
- StreamDescription.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "StreamArn"))
160
- StreamDescription.add_member(:stream_label, Shapes::ShapeRef.new(shape: String, location_name: "StreamLabel"))
161
- StreamDescription.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, location_name: "StreamStatus"))
162
- StreamDescription.add_member(:stream_view_type, Shapes::ShapeRef.new(shape: StreamViewType, location_name: "StreamViewType"))
163
- StreamDescription.add_member(:creation_request_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationRequestDateTime"))
164
- StreamDescription.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
165
- StreamDescription.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
166
- StreamDescription.add_member(:shards, Shapes::ShapeRef.new(shape: ShardDescriptionList, location_name: "Shards"))
167
- StreamDescription.add_member(:last_evaluated_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "LastEvaluatedShardId"))
168
- StreamDescription.struct_class = Types::StreamDescription
169
-
170
- StreamList.member = Shapes::ShapeRef.new(shape: Stream)
171
-
172
- StreamRecord.add_member(:approximate_creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "ApproximateCreationDateTime"))
173
- StreamRecord.add_member(:keys, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Keys"))
174
- StreamRecord.add_member(:new_image, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "NewImage"))
175
- StreamRecord.add_member(:old_image, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "OldImage"))
176
- StreamRecord.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumber"))
177
- StreamRecord.add_member(:size_bytes, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "SizeBytes"))
178
- StreamRecord.add_member(:stream_view_type, Shapes::ShapeRef.new(shape: StreamViewType, location_name: "StreamViewType"))
179
- StreamRecord.struct_class = Types::StreamRecord
180
-
181
- StringSetAttributeValue.member = Shapes::ShapeRef.new(shape: StringAttributeValue)
182
-
183
-
184
- # @api private
185
- API = Seahorse::Model::Api.new.tap do |api|
186
-
187
- api.version = "2012-08-10"
188
-
189
- api.metadata = {
190
- "endpointPrefix" => "streams.dynamodb",
191
- "jsonVersion" => "1.0",
192
- "protocol" => "json",
193
- "serviceFullName" => "Amazon DynamoDB Streams",
194
- "signatureVersion" => "v4",
195
- "signingName" => "dynamodb",
196
- "targetPrefix" => "DynamoDBStreams_20120810",
197
- }
198
-
199
- api.add_operation(:describe_stream, Seahorse::Model::Operation.new.tap do |o|
200
- o.name = "DescribeStream"
201
- o.http_method = "POST"
202
- o.http_request_uri = "/"
203
- o.input = Shapes::ShapeRef.new(shape: DescribeStreamInput)
204
- o.output = Shapes::ShapeRef.new(shape: DescribeStreamOutput)
205
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
206
- o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
207
- end)
208
-
209
- api.add_operation(:get_records, Seahorse::Model::Operation.new.tap do |o|
210
- o.name = "GetRecords"
211
- o.http_method = "POST"
212
- o.http_request_uri = "/"
213
- o.input = Shapes::ShapeRef.new(shape: GetRecordsInput)
214
- o.output = Shapes::ShapeRef.new(shape: GetRecordsOutput)
215
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
216
- o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
217
- o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
218
- o.errors << Shapes::ShapeRef.new(shape: ExpiredIteratorException)
219
- o.errors << Shapes::ShapeRef.new(shape: TrimmedDataAccessException)
220
- end)
221
-
222
- api.add_operation(:get_shard_iterator, Seahorse::Model::Operation.new.tap do |o|
223
- o.name = "GetShardIterator"
224
- o.http_method = "POST"
225
- o.http_request_uri = "/"
226
- o.input = Shapes::ShapeRef.new(shape: GetShardIteratorInput)
227
- o.output = Shapes::ShapeRef.new(shape: GetShardIteratorOutput)
228
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
229
- o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
230
- o.errors << Shapes::ShapeRef.new(shape: TrimmedDataAccessException)
231
- end)
232
-
233
- api.add_operation(:list_streams, Seahorse::Model::Operation.new.tap do |o|
234
- o.name = "ListStreams"
235
- o.http_method = "POST"
236
- o.http_request_uri = "/"
237
- o.input = Shapes::ShapeRef.new(shape: ListStreamsInput)
238
- o.output = Shapes::ShapeRef.new(shape: ListStreamsOutput)
239
- o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
240
- o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
241
- end)
242
- end
8
+ module Aws::DynamoDBStreams
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AttributeMap = Shapes::MapShape.new(name: 'AttributeMap')
15
+ AttributeName = Shapes::StringShape.new(name: 'AttributeName')
16
+ AttributeValue = Shapes::StructureShape.new(name: 'AttributeValue')
17
+ BinaryAttributeValue = Shapes::BlobShape.new(name: 'BinaryAttributeValue')
18
+ BinarySetAttributeValue = Shapes::ListShape.new(name: 'BinarySetAttributeValue')
19
+ BooleanAttributeValue = Shapes::BooleanShape.new(name: 'BooleanAttributeValue')
20
+ Date = Shapes::TimestampShape.new(name: 'Date')
21
+ DescribeStreamInput = Shapes::StructureShape.new(name: 'DescribeStreamInput')
22
+ DescribeStreamOutput = Shapes::StructureShape.new(name: 'DescribeStreamOutput')
23
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
24
+ ExpiredIteratorException = Shapes::StructureShape.new(name: 'ExpiredIteratorException')
25
+ GetRecordsInput = Shapes::StructureShape.new(name: 'GetRecordsInput')
26
+ GetRecordsOutput = Shapes::StructureShape.new(name: 'GetRecordsOutput')
27
+ GetShardIteratorInput = Shapes::StructureShape.new(name: 'GetShardIteratorInput')
28
+ GetShardIteratorOutput = Shapes::StructureShape.new(name: 'GetShardIteratorOutput')
29
+ Identity = Shapes::StructureShape.new(name: 'Identity')
30
+ InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
31
+ KeySchema = Shapes::ListShape.new(name: 'KeySchema')
32
+ KeySchemaAttributeName = Shapes::StringShape.new(name: 'KeySchemaAttributeName')
33
+ KeySchemaElement = Shapes::StructureShape.new(name: 'KeySchemaElement')
34
+ KeyType = Shapes::StringShape.new(name: 'KeyType')
35
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
36
+ ListAttributeValue = Shapes::ListShape.new(name: 'ListAttributeValue')
37
+ ListStreamsInput = Shapes::StructureShape.new(name: 'ListStreamsInput')
38
+ ListStreamsOutput = Shapes::StructureShape.new(name: 'ListStreamsOutput')
39
+ MapAttributeValue = Shapes::MapShape.new(name: 'MapAttributeValue')
40
+ NullAttributeValue = Shapes::BooleanShape.new(name: 'NullAttributeValue')
41
+ NumberAttributeValue = Shapes::StringShape.new(name: 'NumberAttributeValue')
42
+ NumberSetAttributeValue = Shapes::ListShape.new(name: 'NumberSetAttributeValue')
43
+ OperationType = Shapes::StringShape.new(name: 'OperationType')
44
+ PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
45
+ PositiveLongObject = Shapes::IntegerShape.new(name: 'PositiveLongObject')
46
+ Record = Shapes::StructureShape.new(name: 'Record')
47
+ RecordList = Shapes::ListShape.new(name: 'RecordList')
48
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
49
+ SequenceNumber = Shapes::StringShape.new(name: 'SequenceNumber')
50
+ SequenceNumberRange = Shapes::StructureShape.new(name: 'SequenceNumberRange')
51
+ Shard = Shapes::StructureShape.new(name: 'Shard')
52
+ ShardDescriptionList = Shapes::ListShape.new(name: 'ShardDescriptionList')
53
+ ShardId = Shapes::StringShape.new(name: 'ShardId')
54
+ ShardIterator = Shapes::StringShape.new(name: 'ShardIterator')
55
+ ShardIteratorType = Shapes::StringShape.new(name: 'ShardIteratorType')
56
+ Stream = Shapes::StructureShape.new(name: 'Stream')
57
+ StreamArn = Shapes::StringShape.new(name: 'StreamArn')
58
+ StreamDescription = Shapes::StructureShape.new(name: 'StreamDescription')
59
+ StreamList = Shapes::ListShape.new(name: 'StreamList')
60
+ StreamRecord = Shapes::StructureShape.new(name: 'StreamRecord')
61
+ StreamStatus = Shapes::StringShape.new(name: 'StreamStatus')
62
+ StreamViewType = Shapes::StringShape.new(name: 'StreamViewType')
63
+ String = Shapes::StringShape.new(name: 'String')
64
+ StringAttributeValue = Shapes::StringShape.new(name: 'StringAttributeValue')
65
+ StringSetAttributeValue = Shapes::ListShape.new(name: 'StringSetAttributeValue')
66
+ TableName = Shapes::StringShape.new(name: 'TableName')
67
+ TrimmedDataAccessException = Shapes::StructureShape.new(name: 'TrimmedDataAccessException')
68
+
69
+ AttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName)
70
+ AttributeMap.value = Shapes::ShapeRef.new(shape: AttributeValue)
71
+
72
+ AttributeValue.add_member(:s, Shapes::ShapeRef.new(shape: StringAttributeValue, location_name: "S"))
73
+ AttributeValue.add_member(:n, Shapes::ShapeRef.new(shape: NumberAttributeValue, location_name: "N"))
74
+ AttributeValue.add_member(:b, Shapes::ShapeRef.new(shape: BinaryAttributeValue, location_name: "B"))
75
+ AttributeValue.add_member(:ss, Shapes::ShapeRef.new(shape: StringSetAttributeValue, location_name: "SS"))
76
+ AttributeValue.add_member(:ns, Shapes::ShapeRef.new(shape: NumberSetAttributeValue, location_name: "NS"))
77
+ AttributeValue.add_member(:bs, Shapes::ShapeRef.new(shape: BinarySetAttributeValue, location_name: "BS"))
78
+ AttributeValue.add_member(:m, Shapes::ShapeRef.new(shape: MapAttributeValue, location_name: "M"))
79
+ AttributeValue.add_member(:l, Shapes::ShapeRef.new(shape: ListAttributeValue, location_name: "L"))
80
+ AttributeValue.add_member(:null, Shapes::ShapeRef.new(shape: NullAttributeValue, location_name: "NULL"))
81
+ AttributeValue.add_member(:bool, Shapes::ShapeRef.new(shape: BooleanAttributeValue, location_name: "BOOL"))
82
+ AttributeValue.struct_class = Types::AttributeValue
83
+
84
+ BinarySetAttributeValue.member = Shapes::ShapeRef.new(shape: BinaryAttributeValue)
85
+
86
+ DescribeStreamInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
87
+ DescribeStreamInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
88
+ DescribeStreamInput.add_member(:exclusive_start_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ExclusiveStartShardId"))
89
+ DescribeStreamInput.struct_class = Types::DescribeStreamInput
90
+
91
+ DescribeStreamOutput.add_member(:stream_description, Shapes::ShapeRef.new(shape: StreamDescription, location_name: "StreamDescription"))
92
+ DescribeStreamOutput.struct_class = Types::DescribeStreamOutput
93
+
94
+ GetRecordsInput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, required: true, location_name: "ShardIterator"))
95
+ GetRecordsInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
96
+ GetRecordsInput.struct_class = Types::GetRecordsInput
97
+
98
+ GetRecordsOutput.add_member(:records, Shapes::ShapeRef.new(shape: RecordList, location_name: "Records"))
99
+ GetRecordsOutput.add_member(:next_shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "NextShardIterator"))
100
+ GetRecordsOutput.struct_class = Types::GetRecordsOutput
101
+
102
+ GetShardIteratorInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
103
+ GetShardIteratorInput.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, required: true, location_name: "ShardId"))
104
+ GetShardIteratorInput.add_member(:shard_iterator_type, Shapes::ShapeRef.new(shape: ShardIteratorType, required: true, location_name: "ShardIteratorType"))
105
+ GetShardIteratorInput.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumber"))
106
+ GetShardIteratorInput.struct_class = Types::GetShardIteratorInput
107
+
108
+ GetShardIteratorOutput.add_member(:shard_iterator, Shapes::ShapeRef.new(shape: ShardIterator, location_name: "ShardIterator"))
109
+ GetShardIteratorOutput.struct_class = Types::GetShardIteratorOutput
110
+
111
+ Identity.add_member(:principal_id, Shapes::ShapeRef.new(shape: String, location_name: "PrincipalId"))
112
+ Identity.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
113
+ Identity.struct_class = Types::Identity
114
+
115
+ KeySchema.member = Shapes::ShapeRef.new(shape: KeySchemaElement)
116
+
117
+ KeySchemaElement.add_member(:attribute_name, Shapes::ShapeRef.new(shape: KeySchemaAttributeName, required: true, location_name: "AttributeName"))
118
+ KeySchemaElement.add_member(:key_type, Shapes::ShapeRef.new(shape: KeyType, required: true, location_name: "KeyType"))
119
+ KeySchemaElement.struct_class = Types::KeySchemaElement
120
+
121
+ ListAttributeValue.member = Shapes::ShapeRef.new(shape: AttributeValue)
122
+
123
+ ListStreamsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
124
+ ListStreamsInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
125
+ ListStreamsInput.add_member(:exclusive_start_stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "ExclusiveStartStreamArn"))
126
+ ListStreamsInput.struct_class = Types::ListStreamsInput
127
+
128
+ ListStreamsOutput.add_member(:streams, Shapes::ShapeRef.new(shape: StreamList, location_name: "Streams"))
129
+ ListStreamsOutput.add_member(:last_evaluated_stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "LastEvaluatedStreamArn"))
130
+ ListStreamsOutput.struct_class = Types::ListStreamsOutput
131
+
132
+ MapAttributeValue.key = Shapes::ShapeRef.new(shape: AttributeName)
133
+ MapAttributeValue.value = Shapes::ShapeRef.new(shape: AttributeValue)
134
+
135
+ NumberSetAttributeValue.member = Shapes::ShapeRef.new(shape: NumberAttributeValue)
136
+
137
+ Record.add_member(:event_id, Shapes::ShapeRef.new(shape: String, location_name: "eventID"))
138
+ Record.add_member(:event_name, Shapes::ShapeRef.new(shape: OperationType, location_name: "eventName"))
139
+ Record.add_member(:event_version, Shapes::ShapeRef.new(shape: String, location_name: "eventVersion"))
140
+ Record.add_member(:event_source, Shapes::ShapeRef.new(shape: String, location_name: "eventSource"))
141
+ Record.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, location_name: "awsRegion"))
142
+ Record.add_member(:dynamodb, Shapes::ShapeRef.new(shape: StreamRecord, location_name: "dynamodb"))
143
+ Record.add_member(:user_identity, Shapes::ShapeRef.new(shape: Identity, location_name: "userIdentity"))
144
+ Record.struct_class = Types::Record
145
+
146
+ RecordList.member = Shapes::ShapeRef.new(shape: Record)
147
+
148
+ SequenceNumberRange.add_member(:starting_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "StartingSequenceNumber"))
149
+ SequenceNumberRange.add_member(:ending_sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "EndingSequenceNumber"))
150
+ SequenceNumberRange.struct_class = Types::SequenceNumberRange
151
+
152
+ Shard.add_member(:shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ShardId"))
153
+ Shard.add_member(:sequence_number_range, Shapes::ShapeRef.new(shape: SequenceNumberRange, location_name: "SequenceNumberRange"))
154
+ Shard.add_member(:parent_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "ParentShardId"))
155
+ Shard.struct_class = Types::Shard
156
+
157
+ ShardDescriptionList.member = Shapes::ShapeRef.new(shape: Shard)
158
+
159
+ Stream.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "StreamArn"))
160
+ Stream.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
161
+ Stream.add_member(:stream_label, Shapes::ShapeRef.new(shape: String, location_name: "StreamLabel"))
162
+ Stream.struct_class = Types::Stream
163
+
164
+ StreamDescription.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, location_name: "StreamArn"))
165
+ StreamDescription.add_member(:stream_label, Shapes::ShapeRef.new(shape: String, location_name: "StreamLabel"))
166
+ StreamDescription.add_member(:stream_status, Shapes::ShapeRef.new(shape: StreamStatus, location_name: "StreamStatus"))
167
+ StreamDescription.add_member(:stream_view_type, Shapes::ShapeRef.new(shape: StreamViewType, location_name: "StreamViewType"))
168
+ StreamDescription.add_member(:creation_request_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationRequestDateTime"))
169
+ StreamDescription.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
170
+ StreamDescription.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
171
+ StreamDescription.add_member(:shards, Shapes::ShapeRef.new(shape: ShardDescriptionList, location_name: "Shards"))
172
+ StreamDescription.add_member(:last_evaluated_shard_id, Shapes::ShapeRef.new(shape: ShardId, location_name: "LastEvaluatedShardId"))
173
+ StreamDescription.struct_class = Types::StreamDescription
174
+
175
+ StreamList.member = Shapes::ShapeRef.new(shape: Stream)
176
+
177
+ StreamRecord.add_member(:approximate_creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "ApproximateCreationDateTime"))
178
+ StreamRecord.add_member(:keys, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Keys"))
179
+ StreamRecord.add_member(:new_image, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "NewImage"))
180
+ StreamRecord.add_member(:old_image, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "OldImage"))
181
+ StreamRecord.add_member(:sequence_number, Shapes::ShapeRef.new(shape: SequenceNumber, location_name: "SequenceNumber"))
182
+ StreamRecord.add_member(:size_bytes, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "SizeBytes"))
183
+ StreamRecord.add_member(:stream_view_type, Shapes::ShapeRef.new(shape: StreamViewType, location_name: "StreamViewType"))
184
+ StreamRecord.struct_class = Types::StreamRecord
185
+
186
+ StringSetAttributeValue.member = Shapes::ShapeRef.new(shape: StringAttributeValue)
187
+
243
188
 
189
+ # @api private
190
+ API = Seahorse::Model::Api.new.tap do |api|
191
+
192
+ api.version = "2012-08-10"
193
+
194
+ api.metadata = {
195
+ "endpointPrefix" => "streams.dynamodb",
196
+ "jsonVersion" => "1.0",
197
+ "protocol" => "json",
198
+ "serviceFullName" => "Amazon DynamoDB Streams",
199
+ "signatureVersion" => "v4",
200
+ "signingName" => "dynamodb",
201
+ "targetPrefix" => "DynamoDBStreams_20120810",
202
+ }
203
+
204
+ api.add_operation(:describe_stream, Seahorse::Model::Operation.new.tap do |o|
205
+ o.name = "DescribeStream"
206
+ o.http_method = "POST"
207
+ o.http_request_uri = "/"
208
+ o.input = Shapes::ShapeRef.new(shape: DescribeStreamInput)
209
+ o.output = Shapes::ShapeRef.new(shape: DescribeStreamOutput)
210
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
211
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
212
+ end)
213
+
214
+ api.add_operation(:get_records, Seahorse::Model::Operation.new.tap do |o|
215
+ o.name = "GetRecords"
216
+ o.http_method = "POST"
217
+ o.http_request_uri = "/"
218
+ o.input = Shapes::ShapeRef.new(shape: GetRecordsInput)
219
+ o.output = Shapes::ShapeRef.new(shape: GetRecordsOutput)
220
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
221
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
222
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
223
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredIteratorException)
224
+ o.errors << Shapes::ShapeRef.new(shape: TrimmedDataAccessException)
225
+ end)
226
+
227
+ api.add_operation(:get_shard_iterator, Seahorse::Model::Operation.new.tap do |o|
228
+ o.name = "GetShardIterator"
229
+ o.http_method = "POST"
230
+ o.http_request_uri = "/"
231
+ o.input = Shapes::ShapeRef.new(shape: GetShardIteratorInput)
232
+ o.output = Shapes::ShapeRef.new(shape: GetShardIteratorOutput)
233
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
234
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
235
+ o.errors << Shapes::ShapeRef.new(shape: TrimmedDataAccessException)
236
+ end)
237
+
238
+ api.add_operation(:list_streams, Seahorse::Model::Operation.new.tap do |o|
239
+ o.name = "ListStreams"
240
+ o.http_method = "POST"
241
+ o.http_request_uri = "/"
242
+ o.input = Shapes::ShapeRef.new(shape: ListStreamsInput)
243
+ o.output = Shapes::ShapeRef.new(shape: ListStreamsOutput)
244
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
245
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
246
+ end)
244
247
  end
248
+
245
249
  end
246
250
  end