package smaws-clients

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file operations.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
open Types 
let (let+) res map = Result.map map res
module UpdateRoutingControlStates = struct
  let error_deserializer tree path = 
    let open Deserializers in
    let handler = fun handler tree path -> function
      | "com.amazonaws.route53recoverycluster", "AccessDeniedException" ->
         (`AccessDeniedException (access_denied_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ConflictException" ->
         (`ConflictException (conflict_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "EndpointTemporarilyUnavailableException" ->
         (`EndpointTemporarilyUnavailableException (endpoint_temporarily_unavailable_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "InternalServerException" ->
         (`InternalServerException (internal_server_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ResourceNotFoundException" ->
         (`ResourceNotFoundException (resource_not_found_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ServiceLimitExceededException" ->
         (`ServiceLimitExceededException (service_limit_exceeded_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ThrottlingException" ->
         (`ThrottlingException (throttling_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ValidationException" ->
         (`ValidationException (validation_exception_of_yojson tree path))
      | _type -> handler tree path _type
      
    in
    Smaws_Lib.Protocols.AwsJson.(error_deserializer (handler Smaws_Lib.Protocols.AwsJson.Errors.default_handler) tree path)
    
  let request = fun context (request: update_routing_control_states_request) ->
    let input = Serializers.update_routing_control_states_request_to_yojson request in
    Smaws_Lib.Protocols.AwsJson.request 
      ~shape_name:"ToggleCustomerAPI.UpdateRoutingControlStates" 
      ~service 
      ~config:Smaws_Lib.Context.(context.config) 
      ~http:Smaws_Lib.Context.(context.http) 
      ~input
      ~output_deserializer:Deserializers.update_routing_control_states_response_of_yojson
      ~error_deserializer
      
end

module UpdateRoutingControlState = struct
  let error_deserializer tree path = 
    let open Deserializers in
    let handler = fun handler tree path -> function
      | "com.amazonaws.route53recoverycluster", "AccessDeniedException" ->
         (`AccessDeniedException (access_denied_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ConflictException" ->
         (`ConflictException (conflict_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "EndpointTemporarilyUnavailableException" ->
         (`EndpointTemporarilyUnavailableException (endpoint_temporarily_unavailable_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "InternalServerException" ->
         (`InternalServerException (internal_server_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ResourceNotFoundException" ->
         (`ResourceNotFoundException (resource_not_found_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ThrottlingException" ->
         (`ThrottlingException (throttling_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ValidationException" ->
         (`ValidationException (validation_exception_of_yojson tree path))
      | _type -> handler tree path _type
      
    in
    Smaws_Lib.Protocols.AwsJson.(error_deserializer (handler Smaws_Lib.Protocols.AwsJson.Errors.default_handler) tree path)
    
  let request = fun context (request: update_routing_control_state_request) ->
    let input = Serializers.update_routing_control_state_request_to_yojson request in
    Smaws_Lib.Protocols.AwsJson.request 
      ~shape_name:"ToggleCustomerAPI.UpdateRoutingControlState" 
      ~service 
      ~config:Smaws_Lib.Context.(context.config) 
      ~http:Smaws_Lib.Context.(context.http) 
      ~input
      ~output_deserializer:Deserializers.update_routing_control_state_response_of_yojson
      ~error_deserializer
      
end

module ListRoutingControls = struct
  let error_deserializer tree path = 
    let open Deserializers in
    let handler = fun handler tree path -> function
      | "com.amazonaws.route53recoverycluster", "AccessDeniedException" ->
         (`AccessDeniedException (access_denied_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "EndpointTemporarilyUnavailableException" ->
         (`EndpointTemporarilyUnavailableException (endpoint_temporarily_unavailable_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "InternalServerException" ->
         (`InternalServerException (internal_server_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ResourceNotFoundException" ->
         (`ResourceNotFoundException (resource_not_found_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ThrottlingException" ->
         (`ThrottlingException (throttling_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ValidationException" ->
         (`ValidationException (validation_exception_of_yojson tree path))
      | _type -> handler tree path _type
      
    in
    Smaws_Lib.Protocols.AwsJson.(error_deserializer (handler Smaws_Lib.Protocols.AwsJson.Errors.default_handler) tree path)
    
  let request = fun context (request: list_routing_controls_request) ->
    let input = Serializers.list_routing_controls_request_to_yojson request in
    Smaws_Lib.Protocols.AwsJson.request 
      ~shape_name:"ToggleCustomerAPI.ListRoutingControls" 
      ~service 
      ~config:Smaws_Lib.Context.(context.config) 
      ~http:Smaws_Lib.Context.(context.http) 
      ~input
      ~output_deserializer:Deserializers.list_routing_controls_response_of_yojson
      ~error_deserializer
      
end

module GetRoutingControlState = struct
  let error_deserializer tree path = 
    let open Deserializers in
    let handler = fun handler tree path -> function
      | "com.amazonaws.route53recoverycluster", "AccessDeniedException" ->
         (`AccessDeniedException (access_denied_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "EndpointTemporarilyUnavailableException" ->
         (`EndpointTemporarilyUnavailableException (endpoint_temporarily_unavailable_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "InternalServerException" ->
         (`InternalServerException (internal_server_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ResourceNotFoundException" ->
         (`ResourceNotFoundException (resource_not_found_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ThrottlingException" ->
         (`ThrottlingException (throttling_exception_of_yojson tree path))
      | "com.amazonaws.route53recoverycluster", "ValidationException" ->
         (`ValidationException (validation_exception_of_yojson tree path))
      | _type -> handler tree path _type
      
    in
    Smaws_Lib.Protocols.AwsJson.(error_deserializer (handler Smaws_Lib.Protocols.AwsJson.Errors.default_handler) tree path)
    
  let request = fun context (request: get_routing_control_state_request) ->
    let input = Serializers.get_routing_control_state_request_to_yojson request in
    Smaws_Lib.Protocols.AwsJson.request 
      ~shape_name:"ToggleCustomerAPI.GetRoutingControlState" 
      ~service 
      ~config:Smaws_Lib.Context.(context.config) 
      ~http:Smaws_Lib.Context.(context.http) 
      ~input
      ~output_deserializer:Deserializers.get_routing_control_state_response_of_yojson
      ~error_deserializer
      
end

OCaml

Innovation. Community. Security.