@@ -193,6 +193,58 @@ pub type EventBridgeEvent {
193
193
)
194
194
}
195
195
196
+ // --- SQS --------------------------------------------------------------------
197
+
198
+ pub type SqsEvent {
199
+ SqsEvent ( records : List ( SqsRecord ) )
200
+ }
201
+
202
+ pub type SqsRecord {
203
+ SqsRecord (
204
+ message_id : String ,
205
+ receipt_handle : String ,
206
+ body : String ,
207
+ attributes : SqsRecordAttributes ,
208
+ message_attributes : Dict ( String , SqsMessageAttribute ) ,
209
+ md5_of_body : String ,
210
+ event_source : String ,
211
+ event_source_arn : String ,
212
+ aws_region : String ,
213
+ )
214
+ }
215
+
216
+ pub type SqsRecordAttributes {
217
+ SqsRecordAttributes (
218
+ aws_trace_header : Option ( String ) ,
219
+ approximate_receive_count : String ,
220
+ sent_timestamp : String ,
221
+ sender_id : String ,
222
+ approximate_first_receive_timestamp : String ,
223
+ sequence_number : Option ( String ) ,
224
+ message_group_id : Option ( String ) ,
225
+ message_deduplication_id : Option ( String ) ,
226
+ dead_letter_queue_source_arn : Option ( String ) ,
227
+ )
228
+ }
229
+
230
+ pub type SqsMessageAttribute {
231
+ SqsMessageAttribute (
232
+ string_value : Option ( String ) ,
233
+ binary_value : Option ( String ) ,
234
+ string_list_values : Option ( List ( String ) ) ,
235
+ binary_list_values : Option ( List ( String ) ) ,
236
+ data_type : String ,
237
+ )
238
+ }
239
+
240
+ pub type SqsBatchResponse {
241
+ SqsBatchResponse ( batch_item_failures : List ( SqsBatchItemFailure ) )
242
+ }
243
+
244
+ pub type SqsBatchItemFailure {
245
+ SqsBatchItemFailure ( item_identifier : String )
246
+ }
247
+
196
248
// --- Adapters ---------------------------------------------------------------
197
249
198
250
pub fn http_handler (
0 commit comments