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
75
76
77
78
79
80
open Awso_verifiedpermissions
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 batch_get_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchGetPolicy input
let batch_is_authorized ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchIsAuthorized input
let batch_is_authorized_with_token ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchIsAuthorizedWithToken input
let create_identity_source ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateIdentitySource input
let create_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePolicy input
let create_policy_store ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePolicyStore input
let create_policy_store_alias ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePolicyStoreAlias input
let create_policy_template ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePolicyTemplate input
let delete_identity_source ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteIdentitySource input
let delete_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePolicy input
let delete_policy_store ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePolicyStore input
let delete_policy_store_alias ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePolicyStoreAlias input
let delete_policy_template ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePolicyTemplate input
let get_identity_source ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetIdentitySource input
let get_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetPolicy input
let get_policy_store ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetPolicyStore input
let get_policy_store_alias ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetPolicyStoreAlias input
let get_policy_template ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetPolicyTemplate input
let get_schema ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetSchema input
let is_authorized ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.IsAuthorized input
let is_authorized_with_token ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.IsAuthorizedWithToken input
let list_identity_sources ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListIdentitySources input
let list_policies ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPolicies input
let list_policy_store_aliases ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPolicyStoreAliases input
let list_policy_stores ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPolicyStores input
let list_policy_templates ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPolicyTemplates input
let list_tags_for_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForResource input
let put_schema ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PutSchema input
let tag_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.TagResource input
let untag_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UntagResource input
let update_identity_source ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateIdentitySource input
let update_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdatePolicy input
let update_policy_store ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdatePolicyStore input
let update_policy_template ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdatePolicyTemplate input