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
open Awso_health
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 describe_affected_accounts_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeAffectedAccountsForOrganization
input
let describe_affected_entities ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeAffectedEntities input
let describe_affected_entities_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeAffectedEntitiesForOrganization
input
let describe_entity_aggregates ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEntityAggregates input
let describe_entity_aggregates_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEntityAggregatesForOrganization
input
let describe_event_aggregates ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEventAggregates input
let describe_event_details ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEventDetails input
let describe_event_details_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEventDetailsForOrganization input
let describe_event_types ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEventTypes input
let describe_events ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEvents input
let describe_events_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeEventsForOrganization input
let describe_health_service_status_for_organization ?endpoint_url ?cfg input
=
eval ?endpoint_url ?cfg
Endpoints.DescribeHealthServiceStatusForOrganization input
let disable_health_service_access_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DisableHealthServiceAccessForOrganization
input
let enable_health_service_access_for_organization ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.EnableHealthServiceAccessForOrganization
input