package smaws-clients

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

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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
open Smaws_Lib.Json.SerializeHelpers

open Types

let use_defaults_to_yojson = bool_to_yojson

let string__to_yojson = string_to_yojson

let too_many_requests_exception_to_yojson = 
  fun (x: too_many_requests_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let resource_not_found_exception_to_yojson = 
  fun (x: resource_not_found_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let resource_conflict_exception_to_yojson = 
  fun (x: resource_conflict_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let not_authorized_exception_to_yojson = 
  fun (x: not_authorized_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let limit_exceeded_exception_to_yojson = 
  fun (x: limit_exceeded_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

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

let internal_error_exception_to_yojson = 
  fun (x: internal_error_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

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

let identity_pool_id_to_yojson = string_to_yojson

let identity_pool_name_to_yojson = string_to_yojson

let identity_pool_unauthenticated_to_yojson = bool_to_yojson

let classic_flow_to_yojson = bool_to_yojson

let identity_provider_id_to_yojson = string_to_yojson

let identity_provider_name_to_yojson = string_to_yojson

let identity_providers_to_yojson = 
  fun tree -> map_to_yojson identity_provider_id_to_yojson tree

let developer_provider_name_to_yojson = string_to_yojson

let arn_string_to_yojson = string_to_yojson

let oidc_provider_list_to_yojson = 
  fun tree -> list_to_yojson arn_string_to_yojson tree

let cognito_identity_provider_name_to_yojson = string_to_yojson

let cognito_identity_provider_client_id_to_yojson = string_to_yojson

let cognito_identity_provider_token_check_to_yojson = bool_to_yojson

let cognito_identity_provider_to_yojson = 
  fun (x: cognito_identity_provider) -> assoc_to_yojson(
    [(
         "ServerSideTokenCheck",
         (option_to_yojson cognito_identity_provider_token_check_to_yojson x.server_side_token_check));
       (
         "ClientId",
         (option_to_yojson cognito_identity_provider_client_id_to_yojson x.client_id));
       (
         "ProviderName",
         (option_to_yojson cognito_identity_provider_name_to_yojson x.provider_name));
       
  ])

let cognito_identity_provider_list_to_yojson = 
  fun tree -> list_to_yojson cognito_identity_provider_to_yojson tree

let saml_provider_list_to_yojson = 
  fun tree -> list_to_yojson arn_string_to_yojson tree

let tag_value_type_to_yojson = string_to_yojson

let tag_keys_type_to_yojson = string_to_yojson

let identity_pool_tags_type_to_yojson = 
  fun tree -> map_to_yojson tag_value_type_to_yojson tree

let identity_pool_to_yojson = 
  fun (x: identity_pool) -> assoc_to_yojson(
    [(
         "IdentityPoolTags",
         (option_to_yojson identity_pool_tags_type_to_yojson x.identity_pool_tags));
       (
         "SamlProviderARNs",
         (option_to_yojson saml_provider_list_to_yojson x.saml_provider_ar_ns));
       (
         "CognitoIdentityProviders",
         (option_to_yojson cognito_identity_provider_list_to_yojson x.cognito_identity_providers));
       (
         "OpenIdConnectProviderARNs",
         (option_to_yojson oidc_provider_list_to_yojson x.open_id_connect_provider_ar_ns));
       (
         "DeveloperProviderName",
         (option_to_yojson developer_provider_name_to_yojson x.developer_provider_name));
       (
         "SupportedLoginProviders",
         (option_to_yojson identity_providers_to_yojson x.supported_login_providers));
       (
         "AllowClassicFlow",
         (option_to_yojson classic_flow_to_yojson x.allow_classic_flow));
       (
         "AllowUnauthenticatedIdentities",
         (Some (identity_pool_unauthenticated_to_yojson x.allow_unauthenticated_identities)));
       (
         "IdentityPoolName",
         (Some (identity_pool_name_to_yojson x.identity_pool_name)));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let untag_resource_response_to_yojson = 
  fun (x: untag_resource_response) -> assoc_to_yojson(
    [
  ])

let identity_pool_tags_list_type_to_yojson = 
  fun tree -> list_to_yojson tag_keys_type_to_yojson tree

let untag_resource_input_to_yojson = 
  fun (x: untag_resource_input) -> assoc_to_yojson(
    [(
         "TagKeys",
         (Some (identity_pool_tags_list_type_to_yojson x.tag_keys)));
       (
         "ResourceArn",
         (Some (arn_string_to_yojson x.resource_arn)));
       
  ])

let identity_id_to_yojson = string_to_yojson

let base_unit_to_yojson = unit_to_yojson

let error_code_to_yojson = 
  fun (x: error_code) -> match x with 
 
| INTERNAL_SERVER_ERROR -> `String "InternalServerError"
  | ACCESS_DENIED -> `String "AccessDenied"
   

let unprocessed_identity_id_to_yojson = 
  fun (x: unprocessed_identity_id) -> assoc_to_yojson(
    [(
         "ErrorCode",
         (option_to_yojson error_code_to_yojson x.error_code));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let unprocessed_identity_id_list_to_yojson = 
  fun tree -> list_to_yojson unprocessed_identity_id_to_yojson tree

let identity_provider_token_to_yojson = string_to_yojson

let logins_map_to_yojson = 
  fun tree -> map_to_yojson identity_provider_token_to_yojson tree

let logins_list_to_yojson = 
  fun tree -> list_to_yojson identity_provider_name_to_yojson tree

let unlink_identity_input_to_yojson = 
  fun (x: unlink_identity_input) -> assoc_to_yojson(
    [(
         "LoginsToRemove",
         (Some (logins_list_to_yojson x.logins_to_remove)));
       (
         "Logins",
         (Some (logins_map_to_yojson x.logins)));
       (
         "IdentityId",
         (Some (identity_id_to_yojson x.identity_id)));
       
  ])

let external_service_exception_to_yojson = 
  fun (x: external_service_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let developer_user_identifier_to_yojson = string_to_yojson

let unlink_developer_identity_input_to_yojson = 
  fun (x: unlink_developer_identity_input) -> assoc_to_yojson(
    [(
         "DeveloperUserIdentifier",
         (Some (developer_user_identifier_to_yojson x.developer_user_identifier)));
       (
         "DeveloperProviderName",
         (Some (developer_provider_name_to_yojson x.developer_provider_name)));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       (
         "IdentityId",
         (Some (identity_id_to_yojson x.identity_id)));
       
  ])

let token_duration_to_yojson = long_to_yojson

let tag_resource_response_to_yojson = 
  fun (x: tag_resource_response) -> assoc_to_yojson(
    [
  ])

let tag_resource_input_to_yojson = 
  fun (x: tag_resource_input) -> assoc_to_yojson(
    [(
         "Tags",
         (Some (identity_pool_tags_type_to_yojson x.tags)));
       (
         "ResourceArn",
         (Some (arn_string_to_yojson x.resource_arn)));
       
  ])

let principal_tag_value_to_yojson = string_to_yojson

let principal_tag_i_d_to_yojson = string_to_yojson

let principal_tags_to_yojson = 
  fun tree -> map_to_yojson principal_tag_value_to_yojson tree

let set_principal_tag_attribute_map_response_to_yojson = 
  fun (x: set_principal_tag_attribute_map_response) -> assoc_to_yojson(
    [(
         "PrincipalTags",
         (option_to_yojson principal_tags_to_yojson x.principal_tags));
       (
         "UseDefaults",
         (option_to_yojson use_defaults_to_yojson x.use_defaults));
       (
         "IdentityProviderName",
         (option_to_yojson identity_provider_name_to_yojson x.identity_provider_name));
       (
         "IdentityPoolId",
         (option_to_yojson identity_pool_id_to_yojson x.identity_pool_id));
       
  ])

let set_principal_tag_attribute_map_input_to_yojson = 
  fun (x: set_principal_tag_attribute_map_input) -> assoc_to_yojson(
    [(
         "PrincipalTags",
         (option_to_yojson principal_tags_to_yojson x.principal_tags));
       (
         "UseDefaults",
         (option_to_yojson use_defaults_to_yojson x.use_defaults));
       (
         "IdentityProviderName",
         (Some (identity_provider_name_to_yojson x.identity_provider_name)));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let role_type_to_yojson = string_to_yojson

let roles_map_to_yojson = 
  fun tree -> map_to_yojson arn_string_to_yojson tree

let role_mapping_type_to_yojson = 
  fun (x: role_mapping_type) -> match x with 
  | RULES -> `String "Rules"
    | TOKEN -> `String "Token"
     

let ambiguous_role_resolution_type_to_yojson = 
  fun (x: ambiguous_role_resolution_type) -> match x with 
 
| DENY -> `String "Deny"
  | AUTHENTICATED_ROLE -> `String "AuthenticatedRole"
   

let claim_name_to_yojson = string_to_yojson

let mapping_rule_match_type_to_yojson = 
  fun (x: mapping_rule_match_type) -> match x with 
 
| NOT_EQUAL -> `String "NotEqual"
  | STARTS_WITH -> `String "StartsWith"
  | CONTAINS -> `String "Contains"
  | EQUALS -> `String "Equals"
   

let claim_value_to_yojson = string_to_yojson

let mapping_rule_to_yojson = 
  fun (x: mapping_rule) -> assoc_to_yojson(
    [(
         "RoleARN",
         (Some (arn_string_to_yojson x.role_ar_n)));
       (
         "Value",
         (Some (claim_value_to_yojson x.value)));
       (
         "MatchType",
         (Some (mapping_rule_match_type_to_yojson x.match_type)));
       (
         "Claim",
         (Some (claim_name_to_yojson x.claim)));
       
  ])

let mapping_rules_list_to_yojson = 
  fun tree -> list_to_yojson mapping_rule_to_yojson tree

let rules_configuration_type_to_yojson = 
  fun (x: rules_configuration_type) -> assoc_to_yojson(
    [(
         "Rules",
         (Some (mapping_rules_list_to_yojson x.rules)));
       
  ])

let role_mapping_to_yojson = 
  fun (x: role_mapping) -> assoc_to_yojson(
    [(
         "RulesConfiguration",
         (option_to_yojson rules_configuration_type_to_yojson x.rules_configuration));
       (
         "AmbiguousRoleResolution",
         (option_to_yojson ambiguous_role_resolution_type_to_yojson x.ambiguous_role_resolution));
       (
         "Type",
         (Some (role_mapping_type_to_yojson x.type_)));
       
  ])

let role_mapping_map_to_yojson = 
  fun tree -> map_to_yojson role_mapping_to_yojson tree

let set_identity_pool_roles_input_to_yojson = 
  fun (x: set_identity_pool_roles_input) -> assoc_to_yojson(
    [(
         "RoleMappings",
         (option_to_yojson role_mapping_map_to_yojson x.role_mappings));
       (
         "Roles",
         (Some (roles_map_to_yojson x.roles)));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let session_token_string_to_yojson = string_to_yojson

let secret_key_string_to_yojson = string_to_yojson

let query_limit_to_yojson = int_to_yojson

let pagination_key_to_yojson = string_to_yojson

let oidc_token_to_yojson = string_to_yojson

let merge_developer_identities_response_to_yojson = 
  fun (x: merge_developer_identities_response) -> assoc_to_yojson(
    [(
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let merge_developer_identities_input_to_yojson = 
  fun (x: merge_developer_identities_input) -> assoc_to_yojson(
    [(
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       (
         "DeveloperProviderName",
         (Some (developer_provider_name_to_yojson x.developer_provider_name)));
       (
         "DestinationUserIdentifier",
         (Some (developer_user_identifier_to_yojson x.destination_user_identifier)));
       (
         "SourceUserIdentifier",
         (Some (developer_user_identifier_to_yojson x.source_user_identifier)));
       
  ])

let developer_user_identifier_list_to_yojson = 
  fun tree -> list_to_yojson developer_user_identifier_to_yojson tree

let lookup_developer_identity_response_to_yojson = 
  fun (x: lookup_developer_identity_response) -> assoc_to_yojson(
    [(
         "NextToken",
         (option_to_yojson pagination_key_to_yojson x.next_token));
       (
         "DeveloperUserIdentifierList",
         (option_to_yojson developer_user_identifier_list_to_yojson x.developer_user_identifier_list));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let lookup_developer_identity_input_to_yojson = 
  fun (x: lookup_developer_identity_input) -> assoc_to_yojson(
    [(
         "NextToken",
         (option_to_yojson pagination_key_to_yojson x.next_token));
       (
         "MaxResults",
         (option_to_yojson query_limit_to_yojson x.max_results));
       (
         "DeveloperUserIdentifier",
         (option_to_yojson developer_user_identifier_to_yojson x.developer_user_identifier));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let list_tags_for_resource_response_to_yojson = 
  fun (x: list_tags_for_resource_response) -> assoc_to_yojson(
    [(
         "Tags",
         (option_to_yojson identity_pool_tags_type_to_yojson x.tags));
       
  ])

let list_tags_for_resource_input_to_yojson = 
  fun (x: list_tags_for_resource_input) -> assoc_to_yojson(
    [(
         "ResourceArn",
         (Some (arn_string_to_yojson x.resource_arn)));
       
  ])

let identity_pool_short_description_to_yojson = 
  fun (x: identity_pool_short_description) -> assoc_to_yojson(
    [(
         "IdentityPoolName",
         (option_to_yojson identity_pool_name_to_yojson x.identity_pool_name));
       (
         "IdentityPoolId",
         (option_to_yojson identity_pool_id_to_yojson x.identity_pool_id));
       
  ])

let identity_pools_list_to_yojson = 
  fun tree -> list_to_yojson identity_pool_short_description_to_yojson tree

let list_identity_pools_response_to_yojson = 
  fun (x: list_identity_pools_response) -> assoc_to_yojson(
    [(
         "NextToken",
         (option_to_yojson pagination_key_to_yojson x.next_token));
       (
         "IdentityPools",
         (option_to_yojson identity_pools_list_to_yojson x.identity_pools));
       
  ])

let list_identity_pools_input_to_yojson = 
  fun (x: list_identity_pools_input) -> assoc_to_yojson(
    [(
         "NextToken",
         (option_to_yojson pagination_key_to_yojson x.next_token));
       (
         "MaxResults",
         (Some (query_limit_to_yojson x.max_results)));
       
  ])

let date_type_to_yojson = timestamp_to_yojson

let identity_description_to_yojson = 
  fun (x: identity_description) -> assoc_to_yojson(
    [(
         "LastModifiedDate",
         (option_to_yojson date_type_to_yojson x.last_modified_date));
       (
         "CreationDate",
         (option_to_yojson date_type_to_yojson x.creation_date));
       (
         "Logins",
         (option_to_yojson logins_list_to_yojson x.logins));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let identities_list_to_yojson = 
  fun tree -> list_to_yojson identity_description_to_yojson tree

let list_identities_response_to_yojson = 
  fun (x: list_identities_response) -> assoc_to_yojson(
    [(
         "NextToken",
         (option_to_yojson pagination_key_to_yojson x.next_token));
       (
         "Identities",
         (option_to_yojson identities_list_to_yojson x.identities));
       (
         "IdentityPoolId",
         (option_to_yojson identity_pool_id_to_yojson x.identity_pool_id));
       
  ])

let hide_disabled_to_yojson = bool_to_yojson

let list_identities_input_to_yojson = 
  fun (x: list_identities_input) -> assoc_to_yojson(
    [(
         "HideDisabled",
         (option_to_yojson hide_disabled_to_yojson x.hide_disabled));
       (
         "NextToken",
         (option_to_yojson pagination_key_to_yojson x.next_token));
       (
         "MaxResults",
         (Some (query_limit_to_yojson x.max_results)));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let invalid_identity_pool_configuration_exception_to_yojson = 
  fun (x: invalid_identity_pool_configuration_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let identity_id_list_to_yojson = 
  fun tree -> list_to_yojson identity_id_to_yojson tree

let get_principal_tag_attribute_map_response_to_yojson = 
  fun (x: get_principal_tag_attribute_map_response) -> assoc_to_yojson(
    [(
         "PrincipalTags",
         (option_to_yojson principal_tags_to_yojson x.principal_tags));
       (
         "UseDefaults",
         (option_to_yojson use_defaults_to_yojson x.use_defaults));
       (
         "IdentityProviderName",
         (option_to_yojson identity_provider_name_to_yojson x.identity_provider_name));
       (
         "IdentityPoolId",
         (option_to_yojson identity_pool_id_to_yojson x.identity_pool_id));
       
  ])

let get_principal_tag_attribute_map_input_to_yojson = 
  fun (x: get_principal_tag_attribute_map_input) -> assoc_to_yojson(
    [(
         "IdentityProviderName",
         (Some (identity_provider_name_to_yojson x.identity_provider_name)));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let get_open_id_token_response_to_yojson = 
  fun (x: get_open_id_token_response) -> assoc_to_yojson(
    [(
         "Token",
         (option_to_yojson oidc_token_to_yojson x.token));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let get_open_id_token_input_to_yojson = 
  fun (x: get_open_id_token_input) -> assoc_to_yojson(
    [(
         "Logins",
         (option_to_yojson logins_map_to_yojson x.logins));
       (
         "IdentityId",
         (Some (identity_id_to_yojson x.identity_id)));
       
  ])

let get_open_id_token_for_developer_identity_response_to_yojson = 
  fun (x: get_open_id_token_for_developer_identity_response) -> assoc_to_yojson(
    [(
         "Token",
         (option_to_yojson oidc_token_to_yojson x.token));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let get_open_id_token_for_developer_identity_input_to_yojson = 
  fun (x: get_open_id_token_for_developer_identity_input) -> assoc_to_yojson(
    [(
         "TokenDuration",
         (option_to_yojson token_duration_to_yojson x.token_duration));
       (
         "PrincipalTags",
         (option_to_yojson principal_tags_to_yojson x.principal_tags));
       (
         "Logins",
         (Some (logins_map_to_yojson x.logins)));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let developer_user_already_registered_exception_to_yojson = 
  fun (x: developer_user_already_registered_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson string__to_yojson x.message));
       
  ])

let get_identity_pool_roles_response_to_yojson = 
  fun (x: get_identity_pool_roles_response) -> assoc_to_yojson(
    [(
         "RoleMappings",
         (option_to_yojson role_mapping_map_to_yojson x.role_mappings));
       (
         "Roles",
         (option_to_yojson roles_map_to_yojson x.roles));
       (
         "IdentityPoolId",
         (option_to_yojson identity_pool_id_to_yojson x.identity_pool_id));
       
  ])

let get_identity_pool_roles_input_to_yojson = 
  fun (x: get_identity_pool_roles_input) -> assoc_to_yojson(
    [(
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let get_id_response_to_yojson = 
  fun (x: get_id_response) -> assoc_to_yojson(
    [(
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let account_id_to_yojson = string_to_yojson

let get_id_input_to_yojson = 
  fun (x: get_id_input) -> assoc_to_yojson(
    [(
         "Logins",
         (option_to_yojson logins_map_to_yojson x.logins));
       (
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       (
         "AccountId",
         (option_to_yojson account_id_to_yojson x.account_id));
       
  ])

let access_key_string_to_yojson = string_to_yojson

let credentials_to_yojson = 
  fun (x: credentials) -> assoc_to_yojson(
    [(
         "Expiration",
         (option_to_yojson date_type_to_yojson x.expiration));
       (
         "SessionToken",
         (option_to_yojson session_token_string_to_yojson x.session_token));
       (
         "SecretKey",
         (option_to_yojson secret_key_string_to_yojson x.secret_key));
       (
         "AccessKeyId",
         (option_to_yojson access_key_string_to_yojson x.access_key_id));
       
  ])

let get_credentials_for_identity_response_to_yojson = 
  fun (x: get_credentials_for_identity_response) -> assoc_to_yojson(
    [(
         "Credentials",
         (option_to_yojson credentials_to_yojson x.credentials));
       (
         "IdentityId",
         (option_to_yojson identity_id_to_yojson x.identity_id));
       
  ])

let get_credentials_for_identity_input_to_yojson = 
  fun (x: get_credentials_for_identity_input) -> assoc_to_yojson(
    [(
         "CustomRoleArn",
         (option_to_yojson arn_string_to_yojson x.custom_role_arn));
       (
         "Logins",
         (option_to_yojson logins_map_to_yojson x.logins));
       (
         "IdentityId",
         (Some (identity_id_to_yojson x.identity_id)));
       
  ])

let describe_identity_pool_input_to_yojson = 
  fun (x: describe_identity_pool_input) -> assoc_to_yojson(
    [(
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let describe_identity_input_to_yojson = 
  fun (x: describe_identity_input) -> assoc_to_yojson(
    [(
         "IdentityId",
         (Some (identity_id_to_yojson x.identity_id)));
       
  ])

let delete_identity_pool_input_to_yojson = 
  fun (x: delete_identity_pool_input) -> assoc_to_yojson(
    [(
         "IdentityPoolId",
         (Some (identity_pool_id_to_yojson x.identity_pool_id)));
       
  ])

let delete_identities_response_to_yojson = 
  fun (x: delete_identities_response) -> assoc_to_yojson(
    [(
         "UnprocessedIdentityIds",
         (option_to_yojson unprocessed_identity_id_list_to_yojson x.unprocessed_identity_ids));
       
  ])

let delete_identities_input_to_yojson = 
  fun (x: delete_identities_input) -> assoc_to_yojson(
    [(
         "IdentityIdsToDelete",
         (Some (identity_id_list_to_yojson x.identity_ids_to_delete)));
       
  ])

let create_identity_pool_input_to_yojson = 
  fun (x: create_identity_pool_input) -> assoc_to_yojson(
    [(
         "IdentityPoolTags",
         (option_to_yojson identity_pool_tags_type_to_yojson x.identity_pool_tags));
       (
         "SamlProviderARNs",
         (option_to_yojson saml_provider_list_to_yojson x.saml_provider_ar_ns));
       (
         "CognitoIdentityProviders",
         (option_to_yojson cognito_identity_provider_list_to_yojson x.cognito_identity_providers));
       (
         "OpenIdConnectProviderARNs",
         (option_to_yojson oidc_provider_list_to_yojson x.open_id_connect_provider_ar_ns));
       (
         "DeveloperProviderName",
         (option_to_yojson developer_provider_name_to_yojson x.developer_provider_name));
       (
         "SupportedLoginProviders",
         (option_to_yojson identity_providers_to_yojson x.supported_login_providers));
       (
         "AllowClassicFlow",
         (option_to_yojson classic_flow_to_yojson x.allow_classic_flow));
       (
         "AllowUnauthenticatedIdentities",
         (Some (identity_pool_unauthenticated_to_yojson x.allow_unauthenticated_identities)));
       (
         "IdentityPoolName",
         (Some (identity_pool_name_to_yojson x.identity_pool_name)));
       
  ])

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.