package smaws-clients

  1. Overview
  2. Docs
Amazon Web Services SDK clients using EIO

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.preview1.tar.gz
md5=18fb70dbc45e8d81a341b9bed6871bab
sha512=7607dc98acaeed5803b44c9ca32d90c88e7813d4b3e3ae4ec661a0bad16c88dc1476bc780877527ea4cd5a4b7398453c1bb600ce0db14d39afa05dc4762b5ba5

doc/src/smaws-clients.resource-groups-tagging-api/serializers.ml.html

Source file serializers.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
open Smaws_Lib.Json.SerializeHelpers

open Types

let status_code_to_yojson = int_to_yojson

let base_unit_to_yojson = unit_to_yojson

let error_code_to_yojson = 
  fun (x: error_code) -> match x with 
 
| INVALID_PARAMETER_EXCEPTION -> `String "InvalidParameterException"
  | INTERNAL_SERVICE_EXCEPTION -> `String "InternalServiceException"
   

let error_message_to_yojson = string_to_yojson

let failure_info_to_yojson = 
  fun (x: failure_info) -> assoc_to_yojson(
    [(
         "ErrorMessage",
         (option_to_yojson error_message_to_yojson x.error_message));
       (
         "ErrorCode",
         (option_to_yojson error_code_to_yojson x.error_code));
       (
         "StatusCode",
         (option_to_yojson status_code_to_yojson x.status_code));
       
  ])

let resource_ar_n_to_yojson = string_to_yojson

let failed_resources_map_to_yojson = 
  fun tree -> map_to_yojson failure_info_to_yojson tree

let untag_resources_output_to_yojson = 
  fun (x: untag_resources_output) -> assoc_to_yojson(
    [(
         "FailedResourcesMap",
         (option_to_yojson failed_resources_map_to_yojson x.failed_resources_map));
       
  ])

let resource_arn_list_for_tag_untag_to_yojson = 
  fun tree -> list_to_yojson resource_ar_n_to_yojson tree

let tag_key_to_yojson = string_to_yojson

let tag_key_list_for_untag_to_yojson = 
  fun tree -> list_to_yojson tag_key_to_yojson tree

let untag_resources_input_to_yojson = 
  fun (x: untag_resources_input) -> assoc_to_yojson(
    [(
         "TagKeys",
         (Some (tag_key_list_for_untag_to_yojson x.tag_keys)));
       (
         "ResourceARNList",
         (Some (resource_arn_list_for_tag_untag_to_yojson x.resource_arn_list)));
       
  ])

let exception_message_to_yojson = string_to_yojson

let throttled_exception_to_yojson = 
  fun (x: throttled_exception) -> assoc_to_yojson(
    [(
         "Message",
         (option_to_yojson exception_message_to_yojson x.message));
       
  ])

let invalid_parameter_exception_to_yojson = 
  fun (x: invalid_parameter_exception) -> assoc_to_yojson(
    [(
         "Message",
         (option_to_yojson exception_message_to_yojson x.message));
       
  ])

let internal_service_exception_to_yojson = 
  fun (x: internal_service_exception) -> assoc_to_yojson(
    [(
         "Message",
         (option_to_yojson exception_message_to_yojson x.message));
       
  ])

let target_id_type_to_yojson = 
  fun (x: target_id_type) -> match x with 
 
| ROOT -> `String "ROOT"
  | OU -> `String "OU"
  | ACCOUNT -> `String "ACCOUNT"
   

let target_id_to_yojson = string_to_yojson

let target_id_filter_list_to_yojson = 
  fun tree -> list_to_yojson target_id_to_yojson tree

let tags_per_page_to_yojson = int_to_yojson

let tag_value_to_yojson = string_to_yojson

let tag_values_output_list_to_yojson = 
  fun tree -> list_to_yojson tag_value_to_yojson tree

let tag_value_list_to_yojson = 
  fun tree -> list_to_yojson tag_value_to_yojson tree

let tag_resources_output_to_yojson = 
  fun (x: tag_resources_output) -> assoc_to_yojson(
    [(
         "FailedResourcesMap",
         (option_to_yojson failed_resources_map_to_yojson x.failed_resources_map));
       
  ])

let tag_map_to_yojson = fun tree -> map_to_yojson tag_value_to_yojson tree

let tag_resources_input_to_yojson = 
  fun (x: tag_resources_input) -> assoc_to_yojson(
    [(
         "Tags",
         (Some (tag_map_to_yojson x.tags)));
       (
         "ResourceARNList",
         (Some (resource_arn_list_for_tag_untag_to_yojson x.resource_arn_list)));
       
  ])

let tag_to_yojson = 
  fun (x: tag) -> assoc_to_yojson(
    [(
         "Value",
         (Some (tag_value_to_yojson x.value)));
       (
         "Key",
         (Some (tag_key_to_yojson x.key)));
       
  ])

let tag_list_to_yojson = fun tree -> list_to_yojson tag_to_yojson tree

let tag_key_list_to_yojson = 
  fun tree -> list_to_yojson tag_key_to_yojson tree

let tag_key_filter_list_to_yojson = 
  fun tree -> list_to_yojson tag_key_to_yojson tree

let tag_filter_to_yojson = 
  fun (x: tag_filter) -> assoc_to_yojson(
    [(
         "Values",
         (option_to_yojson tag_value_list_to_yojson x.values));
       (
         "Key",
         (option_to_yojson tag_key_to_yojson x.key));
       
  ])

let tag_filter_list_to_yojson = 
  fun tree -> list_to_yojson tag_filter_to_yojson tree

let last_updated_to_yojson = string_to_yojson

let region_to_yojson = string_to_yojson

let amazon_resource_type_to_yojson = string_to_yojson

let non_compliant_resources_to_yojson = long_to_yojson

let summary_to_yojson = 
  fun (x: summary) -> assoc_to_yojson(
    [(
         "NonCompliantResources",
         (option_to_yojson non_compliant_resources_to_yojson x.non_compliant_resources));
       (
         "ResourceType",
         (option_to_yojson amazon_resource_type_to_yojson x.resource_type));
       (
         "Region",
         (option_to_yojson region_to_yojson x.region));
       (
         "TargetIdType",
         (option_to_yojson target_id_type_to_yojson x.target_id_type));
       (
         "TargetId",
         (option_to_yojson target_id_to_yojson x.target_id));
       (
         "LastUpdated",
         (option_to_yojson last_updated_to_yojson x.last_updated));
       
  ])

let summary_list_to_yojson = 
  fun tree -> list_to_yojson summary_to_yojson tree

let status_to_yojson = string_to_yojson

let start_report_creation_output_to_yojson = 
  fun (x: start_report_creation_output) -> assoc_to_yojson(
    [
  ])

let s3_bucket_to_yojson = string_to_yojson

let start_report_creation_input_to_yojson = 
  fun (x: start_report_creation_input) -> assoc_to_yojson(
    [(
         "S3Bucket",
         (Some (s3_bucket_to_yojson x.s3_bucket)));
       
  ])

let constraint_violation_exception_to_yojson = 
  fun (x: constraint_violation_exception) -> assoc_to_yojson(
    [(
         "Message",
         (option_to_yojson exception_message_to_yojson x.message));
       
  ])

let concurrent_modification_exception_to_yojson = 
  fun (x: concurrent_modification_exception) -> assoc_to_yojson(
    [(
         "Message",
         (option_to_yojson exception_message_to_yojson x.message));
       
  ])

let start_date_to_yojson = string_to_yojson

let s3_location_to_yojson = string_to_yojson

let resources_per_page_to_yojson = int_to_yojson

let resource_type_filter_list_to_yojson = 
  fun tree -> list_to_yojson amazon_resource_type_to_yojson tree

let compliance_status_to_yojson = bool_to_yojson

let compliance_details_to_yojson = 
  fun (x: compliance_details) -> assoc_to_yojson(
    [(
         "ComplianceStatus",
         (option_to_yojson compliance_status_to_yojson x.compliance_status));
       (
         "KeysWithNoncompliantValues",
         (option_to_yojson tag_key_list_to_yojson x.keys_with_noncompliant_values));
       (
         "NoncompliantKeys",
         (option_to_yojson tag_key_list_to_yojson x.noncompliant_keys));
       
  ])

let resource_tag_mapping_to_yojson = 
  fun (x: resource_tag_mapping) -> assoc_to_yojson(
    [(
         "ComplianceDetails",
         (option_to_yojson compliance_details_to_yojson x.compliance_details));
       (
         "Tags",
         (option_to_yojson tag_list_to_yojson x.tags));
       (
         "ResourceARN",
         (option_to_yojson resource_ar_n_to_yojson x.resource_ar_n));
       
  ])

let resource_tag_mapping_list_to_yojson = 
  fun tree -> list_to_yojson resource_tag_mapping_to_yojson tree

let pagination_token_expired_exception_to_yojson = 
  fun (x: pagination_token_expired_exception) -> assoc_to_yojson(
    [(
         "Message",
         (option_to_yojson exception_message_to_yojson x.message));
       
  ])

let pagination_token_to_yojson = string_to_yojson

let get_tag_values_output_to_yojson = 
  fun (x: get_tag_values_output) -> assoc_to_yojson(
    [(
         "TagValues",
         (option_to_yojson tag_values_output_list_to_yojson x.tag_values));
       (
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       
  ])

let get_tag_values_input_to_yojson = 
  fun (x: get_tag_values_input) -> assoc_to_yojson(
    [(
         "Key",
         (Some (tag_key_to_yojson x.key)));
       (
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       
  ])

let get_tag_keys_output_to_yojson = 
  fun (x: get_tag_keys_output) -> assoc_to_yojson(
    [(
         "TagKeys",
         (option_to_yojson tag_key_list_to_yojson x.tag_keys));
       (
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       
  ])

let get_tag_keys_input_to_yojson = 
  fun (x: get_tag_keys_input) -> assoc_to_yojson(
    [(
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       
  ])

let get_resources_output_to_yojson = 
  fun (x: get_resources_output) -> assoc_to_yojson(
    [(
         "ResourceTagMappingList",
         (option_to_yojson resource_tag_mapping_list_to_yojson x.resource_tag_mapping_list));
       (
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       
  ])

let include_compliance_details_to_yojson = bool_to_yojson

let exclude_compliant_resources_to_yojson = bool_to_yojson

let resource_arn_list_for_get_to_yojson = 
  fun tree -> list_to_yojson resource_ar_n_to_yojson tree

let get_resources_input_to_yojson = 
  fun (x: get_resources_input) -> assoc_to_yojson(
    [(
         "ResourceARNList",
         (option_to_yojson resource_arn_list_for_get_to_yojson x.resource_arn_list));
       (
         "ExcludeCompliantResources",
         (option_to_yojson exclude_compliant_resources_to_yojson x.exclude_compliant_resources));
       (
         "IncludeComplianceDetails",
         (option_to_yojson include_compliance_details_to_yojson x.include_compliance_details));
       (
         "ResourceTypeFilters",
         (option_to_yojson resource_type_filter_list_to_yojson x.resource_type_filters));
       (
         "TagsPerPage",
         (option_to_yojson tags_per_page_to_yojson x.tags_per_page));
       (
         "ResourcesPerPage",
         (option_to_yojson resources_per_page_to_yojson x.resources_per_page));
       (
         "TagFilters",
         (option_to_yojson tag_filter_list_to_yojson x.tag_filters));
       (
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       
  ])

let get_compliance_summary_output_to_yojson = 
  fun (x: get_compliance_summary_output) -> assoc_to_yojson(
    [(
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       (
         "SummaryList",
         (option_to_yojson summary_list_to_yojson x.summary_list));
       
  ])

let region_filter_list_to_yojson = 
  fun tree -> list_to_yojson region_to_yojson tree

let group_by_attribute_to_yojson = 
  fun (x: group_by_attribute) -> match x with 
 
| RESOURCE_TYPE -> `String "RESOURCE_TYPE"
  | REGION -> `String "REGION"
  | TARGET_ID -> `String "TARGET_ID"
   

let group_by_to_yojson = 
  fun tree -> list_to_yojson group_by_attribute_to_yojson tree

let max_results_get_compliance_summary_to_yojson = int_to_yojson

let get_compliance_summary_input_to_yojson = 
  fun (x: get_compliance_summary_input) -> assoc_to_yojson(
    [(
         "PaginationToken",
         (option_to_yojson pagination_token_to_yojson x.pagination_token));
       (
         "MaxResults",
         (option_to_yojson max_results_get_compliance_summary_to_yojson x.max_results));
       (
         "GroupBy",
         (option_to_yojson group_by_to_yojson x.group_by));
       (
         "TagKeyFilters",
         (option_to_yojson tag_key_filter_list_to_yojson x.tag_key_filters));
       (
         "ResourceTypeFilters",
         (option_to_yojson resource_type_filter_list_to_yojson x.resource_type_filters));
       (
         "RegionFilters",
         (option_to_yojson region_filter_list_to_yojson x.region_filters));
       (
         "TargetIdFilters",
         (option_to_yojson target_id_filter_list_to_yojson x.target_id_filters));
       
  ])

let describe_report_creation_output_to_yojson = 
  fun (x: describe_report_creation_output) -> assoc_to_yojson(
    [(
         "ErrorMessage",
         (option_to_yojson error_message_to_yojson x.error_message));
       (
         "StartDate",
         (option_to_yojson start_date_to_yojson x.start_date));
       (
         "S3Location",
         (option_to_yojson s3_location_to_yojson x.s3_location));
       (
         "Status",
         (option_to_yojson status_to_yojson x.status));
       
  ])

let describe_report_creation_input_to_yojson = 
  fun (x: describe_report_creation_input) -> assoc_to_yojson(
    [
  ])

let base_string_to_yojson = string_to_yojson

let base_boolean_to_yojson = bool_to_yojson

let base_integer_to_yojson = int_to_yojson

let base_timestamp_to_yojson = timestamp_to_yojson

let base_long_to_yojson = long_to_yojson

let base_document_to_yojson = 
  json_to_yojson

OCaml

Innovation. Community. Security.