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
open Awso_firehose
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 create_delivery_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateDeliveryStream input
let delete_delivery_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteDeliveryStream input
let describe_delivery_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeDeliveryStream input
let list_delivery_streams ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListDeliveryStreams input
let list_tags_for_delivery_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForDeliveryStream input
let put_record ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PutRecord input
let put_record_batch ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PutRecordBatch input
let start_delivery_stream_encryption ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartDeliveryStreamEncryption input
let stop_delivery_stream_encryption ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StopDeliveryStreamEncryption input
let tag_delivery_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.TagDeliveryStream input
let untag_delivery_stream ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UntagDeliveryStream input
let update_destination ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateDestination input