1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
open Awso_sqs
open Awso_sync
module Io = Http.Io
let eval ?endpoint_url ?cfg endpoint input =
Io.bind (Io.resolve_cfg cfg)
(fun cfg ->
let meth = Endpoints.method_of_endpoint endpoint in
let uri = Endpoints.uri_of_endpoint endpoint input in
Io.map
(Io.call ?endpoint_url ~cfg ~service:Values.service meth
(Endpoints.to_request endpoint input) uri)
(fun resp_result -> Endpoints.of_response endpoint resp_result))
let add_permission ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.AddPermission input
let cancel_message_move_task ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CancelMessageMoveTask input
let change_message_visibility ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ChangeMessageVisibility input
let change_message_visibility_batch ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ChangeMessageVisibilityBatch input
let create_queue ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateQueue input
let delete_message ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteMessage input
let delete_message_batch ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteMessageBatch input
let delete_queue ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteQueue input
let get_queue_attributes ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetQueueAttributes input
let get_queue_url ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetQueueUrl input
let list_dead_letter_source_queues ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListDeadLetterSourceQueues input
let list_message_move_tasks ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListMessageMoveTasks input
let list_queue_tags ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListQueueTags input
let list_queues ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListQueues input
let purge_queue ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PurgeQueue input
let receive_message ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ReceiveMessage input
let remove_permission ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RemovePermission input
let send_message ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.SendMessage input
let send_message_batch ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.SendMessageBatch input
let set_queue_attributes ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.SetQueueAttributes input
let start_message_move_task ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartMessageMoveTask input
let tag_queue ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.TagQueue input
let untag_queue ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UntagQueue input