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
81
82
83
84
85
86
open Awso_accessanalyzer
open Awso_async
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 apply_archive_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ApplyArchiveRule input
let cancel_policy_generation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CancelPolicyGeneration input
let check_access_not_granted ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CheckAccessNotGranted input
let check_no_new_access ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CheckNoNewAccess input
let check_no_public_access ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CheckNoPublicAccess input
let create_access_preview ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateAccessPreview input
let create_analyzer ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateAnalyzer input
let create_archive_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateArchiveRule input
let delete_analyzer ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteAnalyzer input
let delete_archive_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteArchiveRule input
let generate_finding_recommendation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GenerateFindingRecommendation input
let get_access_preview ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetAccessPreview input
let get_analyzed_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetAnalyzedResource input
let get_analyzer ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetAnalyzer input
let get_archive_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetArchiveRule input
let get_finding ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFinding input
let get_finding_recommendation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFindingRecommendation input
let get_finding_v2 ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFindingV2 input
let get_findings_statistics ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFindingsStatistics input
let get_generated_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetGeneratedPolicy input
let list_access_preview_findings ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListAccessPreviewFindings input
let list_access_previews ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListAccessPreviews input
let list_analyzed_resources ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListAnalyzedResources input
let list_analyzers ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListAnalyzers input
let list_archive_rules ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListArchiveRules input
let list_findings ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListFindings input
let list_findings_v2 ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListFindingsV2 input
let list_policy_generations ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPolicyGenerations input
let list_tags_for_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForResource input
let start_policy_generation ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartPolicyGeneration input
let start_resource_scan ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StartResourceScan 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_analyzer ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateAnalyzer input
let update_archive_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateArchiveRule input
let update_findings ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateFindings input
let validate_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ValidatePolicy input