package aws-cloudtrail

  1. Overview
  2. Docs
Amazon Web Services SDK bindings to AWS CloudTrail

Install

Dune Dependency

Authors

Maintainers

Sources

v1.2.tar.gz
md5=38c7319a8abb38a5ecac43b66c8798a9
sha512=298e2c01dfb284df67dea55314ce2913be06709780e01a54695fdf4023447d43f4b61c2b3515309ed0fb606e98fe25ea1ff0e9d973b57bff43ad888588796d3c

doc/src/aws-cloudtrail/stopLogging.ml.html

Source file stopLogging.ml

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
open Types
open Aws
type input = StopLoggingRequest.t
type output = unit
type error = Errors_internal.t
let service = "cloudtrail"
let signature_version = Request.V4
let to_http service region req =
  let uri =
    Uri.add_query_params
      (Uri.of_string
         (Aws.Util.of_option_exn (Endpoints.url_of service region)))
      (List.append [("Version", ["2013-11-01"]); ("Action", ["StopLogging"])]
         (Util.drop_empty
            (Uri.query_of_encoded
               (Query.render (StopLoggingRequest.to_query req))))) in
  (`POST, uri, [])
let of_http body = `Ok ()
let parse_error code err =
  let errors = [] @ Errors_internal.common in
  match Errors_internal.of_string err with
  | Some var ->
      if
        (List.mem var errors) &&
          ((match Errors_internal.to_http_code var with
            | Some var -> var = code
            | None -> true))
      then Some var
      else None
  | None -> None
OCaml

Innovation. Community. Security.