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
open Awso_secretsmanager
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_secret_value ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchGetSecretValue input
let cancel_rotate_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CancelRotateSecret input
let create_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateSecret input
let delete_resource_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteResourcePolicy input
let delete_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteSecret input
let describe_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeSecret input
let get_random_password ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetRandomPassword input
let get_resource_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetResourcePolicy input
let get_secret_value ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetSecretValue input
let list_secret_version_ids ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListSecretVersionIds input
let list_secrets ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListSecrets input
let put_resource_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PutResourcePolicy input
let put_secret_value ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.PutSecretValue input
let remove_regions_from_replication ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RemoveRegionsFromReplication input
let replicate_secret_to_regions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ReplicateSecretToRegions input
let restore_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RestoreSecret input
let rotate_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RotateSecret input
let stop_replication_to_replica ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.StopReplicationToReplica 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_secret ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateSecret input
let update_secret_version_stage ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateSecretVersionStage input
let validate_resource_policy ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ValidateResourcePolicy input