Source file io.ml

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *)
open Awso_amplifybackend
open Awso_lwt
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 clone_backend ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CloneBackend input
let create_backend ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateBackend input
let create_backend_a_p_i ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateBackendAPI input
let create_backend_auth ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateBackendAuth input
let create_backend_config ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateBackendConfig input
let create_backend_storage ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateBackendStorage input
let create_token ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateToken input
let delete_backend ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteBackend input
let delete_backend_a_p_i ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteBackendAPI input
let delete_backend_auth ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteBackendAuth input
let delete_backend_storage ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteBackendStorage input
let delete_token ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteToken input
let generate_backend_a_p_i_models ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GenerateBackendAPIModels input
let get_backend ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetBackend input
let get_backend_a_p_i ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetBackendAPI input
let get_backend_a_p_i_models ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetBackendAPIModels input
let get_backend_auth ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetBackendAuth input
let get_backend_job ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetBackendJob input
let get_backend_storage ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetBackendStorage input
let get_token ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetToken input
let import_backend_auth ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ImportBackendAuth input
let import_backend_storage ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ImportBackendStorage input
let list_backend_jobs ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListBackendJobs input
let list_s3_buckets ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListS3Buckets input
let remove_all_backends ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.RemoveAllBackends input
let remove_backend_config ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.RemoveBackendConfig input
let update_backend_a_p_i ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateBackendAPI input
let update_backend_auth ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateBackendAuth input
let update_backend_config ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateBackendConfig input
let update_backend_job ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateBackendJob input
let update_backend_storage ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateBackendStorage input