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
open Awso_detective
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 accept_invitation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.AcceptInvitation input
let batch_get_graph_member_datasources ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchGetGraphMemberDatasources input
let batch_get_membership_datasources ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchGetMembershipDatasources input
let create_graph ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateGraph input
let create_members ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateMembers input
let delete_graph ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteGraph input
let delete_members ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteMembers input
let describe_organization_configuration ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeOrganizationConfiguration input
let disable_organization_admin_account ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DisableOrganizationAdminAccount input
let disassociate_membership ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DisassociateMembership input
let enable_organization_admin_account ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.EnableOrganizationAdminAccount input
let get_investigation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetInvestigation input
let get_members ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetMembers input
let list_datasource_packages ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListDatasourcePackages input
let list_graphs ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListGraphs input
let list_indicators ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListIndicators input
let list_investigations ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListInvestigations input
let list_invitations ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListInvitations input
let list_members ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListMembers input
let list_organization_admin_accounts ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListOrganizationAdminAccounts input
let list_tags_for_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForResource input
let reject_invitation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RejectInvitation input
let start_investigation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartInvestigation input
let start_monitoring_member ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartMonitoringMember 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_datasource_packages ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateDatasourcePackages input
let update_investigation_state ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateInvestigationState input
let update_organization_configuration ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateOrganizationConfiguration input