package smaws-clients

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

Source file types.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
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
open Smaws_Lib
let service =
  Service.{
    namespace = "cloudtrail";
    endpointPrefix = "cloudtrail";
    version = "2013-11-01";
    protocol = AwsJson_1_1
  };
type update_trail_response = {
  is_organization_trail: bool option;
  kms_key_id: string option;
  cloud_watch_logs_role_arn: string option;
  cloud_watch_logs_log_group_arn: string option;
  log_file_validation_enabled: bool option;
  trail_ar_n: string option;
  is_multi_region_trail: bool option;
  include_global_service_events: bool option;
  sns_topic_ar_n: string option;
  sns_topic_name: string option;
  s3_key_prefix: string option;
  s3_bucket_name: string option;
  name: string option
}

type update_trail_request = {
  is_organization_trail: bool option;
  kms_key_id: string option;
  cloud_watch_logs_role_arn: string option;
  cloud_watch_logs_log_group_arn: string option;
  enable_log_file_validation: bool option;
  is_multi_region_trail: bool option;
  include_global_service_events: bool option;
  sns_topic_name: string option;
  s3_key_prefix: string option;
  s3_bucket_name: string option;
  name: string
}

type unsupported_operation_exception = {
  message: string option
}

type trail_not_provided_exception = {
  message: string option
}

type trail_not_found_exception = {
  message: string option
}

type throttling_exception = {
  message: string option
}

type s3_bucket_does_not_exist_exception = {
  message: string option
}

type organizations_not_in_use_exception = {
  message: string option
}

type organization_not_in_all_features_mode_exception = {
  message: string option
}

type operation_not_permitted_exception = {
  message: string option
}

type not_organization_master_account_exception = {
  message: string option
}

type no_management_account_slr_exists_exception = {
  message: string option
}

type kms_key_not_found_exception = {
  message: string option
}

type kms_key_disabled_exception = {
  message: string option
}

type kms_exception = {
  message: string option
}

type invalid_trail_name_exception = {
  message: string option
}

type invalid_sns_topic_name_exception = {
  message: string option
}

type invalid_s3_prefix_exception = {
  message: string option
}

type invalid_s3_bucket_name_exception = {
  message: string option
}

type invalid_parameter_exception = {
  message: string option
}

type invalid_parameter_combination_exception = {
  message: string option
}

type invalid_kms_key_id_exception = {
  message: string option
}

type invalid_home_region_exception = {
  message: string option
}

type invalid_event_selectors_exception = {
  message: string option
}

type invalid_cloud_watch_logs_role_arn_exception = {
  message: string option
}

type invalid_cloud_watch_logs_log_group_arn_exception = {
  message: string option
}

type insufficient_sns_topic_policy_exception = {
  message: string option
}

type insufficient_s3_bucket_policy_exception = {
  message: string option
}

type insufficient_encryption_policy_exception = {
  message: string option
}

type insufficient_dependency_service_access_permission_exception = {
  message: string option
}

type conflict_exception = {
  message: string option
}

type cloud_watch_logs_delivery_unavailable_exception = {
  message: string option
}

type cloud_trail_invalid_client_token_id_exception = {
  message: string option
}

type cloud_trail_arn_invalid_exception = {
  message: string option
}

type cloud_trail_access_not_enabled_exception = {
  message: string option
}

type event_data_store_status = | STOPPED_INGESTION
  | STOPPING_INGESTION
  | STARTING_INGESTION
  | PENDING_DELETION
  | ENABLED
  | CREATED

type advanced_field_selector = {
  not_ends_with: string list option;
  not_starts_with: string list option;
  not_equals: string list option;
  ends_with: string list option;
  starts_with: string list option;
  equals: string list option;
  field: string
}

type advanced_event_selector = {
  field_selectors: advanced_field_selector list;
  name: string option
}

type billing_mode = | FIXED_RETENTION_PRICING
  | EXTENDABLE_RETENTION_PRICING

type federation_status = | DISABLED
  | DISABLING
  | ENABLED
  | ENABLING

type update_event_data_store_response = {
  federation_role_arn: string option;
  federation_status: federation_status option;
  billing_mode: billing_mode option;
  kms_key_id: string option;
  updated_timestamp: float option;
  created_timestamp: float option;
  termination_protection_enabled: bool option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  status: event_data_store_status option;
  name: string option;
  event_data_store_arn: string option
}

type update_event_data_store_request = {
  billing_mode: billing_mode option;
  kms_key_id: string option;
  termination_protection_enabled: bool option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  name: string option;
  event_data_store: string
}

type invalid_insight_selectors_exception = {
  message: string option
}

type inactive_event_data_store_exception = {
  message: string option
}

type event_data_store_not_found_exception = {
  message: string option
}

type event_data_store_has_ongoing_import_exception = {
  message: string option
}

type event_data_store_arn_invalid_exception = {
  message: string option
}

type event_data_store_already_exists_exception = {
  message: string option
}

type destination_type = | AWS_SERVICE
  | EVENT_DATA_STORE

type destination = {
  location: string;
  type_: destination_type
}

type update_channel_response = {
  destinations: destination list option;
  source: string option;
  name: string option;
  channel_arn: string option
}

type update_channel_request = {
  name: string option;
  destinations: destination list option;
  channel: string
}

type invalid_event_data_store_category_exception = {
  message: string option
}

type channel_not_found_exception = {
  message: string option
}

type channel_arn_invalid_exception = {
  message: string option
}

type channel_already_exists_exception = {
  message: string option
}

type trail_info = {
  home_region: string option;
  name: string option;
  trail_ar_n: string option
}

type trail = {
  is_organization_trail: bool option;
  has_insight_selectors: bool option;
  has_custom_event_selectors: bool option;
  kms_key_id: string option;
  cloud_watch_logs_role_arn: string option;
  cloud_watch_logs_log_group_arn: string option;
  log_file_validation_enabled: bool option;
  trail_ar_n: string option;
  home_region: string option;
  is_multi_region_trail: bool option;
  include_global_service_events: bool option;
  sns_topic_ar_n: string option;
  sns_topic_name: string option;
  s3_key_prefix: string option;
  s3_bucket_name: string option;
  name: string option
}

type trail_already_exists_exception = {
  message: string option
}

type tag = {
  value: string option;
  key: string
}

type tags_limit_exceeded_exception = {
  message: string option
}

type stop_logging_response = unit

type stop_logging_request = {
  name: string
}

type s3_import_source = {
  s3_bucket_access_role_arn: string;
  s3_bucket_region: string;
  s3_location_uri: string
}

type import_source = {
  s3: s3_import_source
}

type import_status = | COMPLETED
  | STOPPED
  | FAILED
  | IN_PROGRESS
  | INITIALIZING

type import_statistics = {
  failed_entries: int option;
  events_completed: int option;
  files_completed: int option;
  prefixes_completed: int option;
  prefixes_found: int option
}

type stop_import_response = {
  import_statistics: import_statistics option;
  end_event_time: float option;
  start_event_time: float option;
  updated_timestamp: float option;
  created_timestamp: float option;
  import_status: import_status option;
  destinations: string list option;
  import_source: import_source option;
  import_id: string option
}

type stop_import_request = {
  import_id: string
}

type import_not_found_exception = {
  message: string option
}

type stop_event_data_store_ingestion_response = unit

type stop_event_data_store_ingestion_request = {
  event_data_store: string
}

type invalid_event_data_store_status_exception = {
  message: string option
}

type start_query_response = {
  query_id: string option
}

type start_query_request = {
  query_parameters: string list option;
  query_alias: string option;
  delivery_s3_uri: string option;
  query_statement: string option
}

type max_concurrent_queries_exception = {
  message: string option
}

type invalid_query_statement_exception = {
  message: string option
}

type start_logging_response = unit

type start_logging_request = {
  name: string
}

type start_import_response = {
  updated_timestamp: float option;
  created_timestamp: float option;
  import_status: import_status option;
  end_event_time: float option;
  start_event_time: float option;
  import_source: import_source option;
  destinations: string list option;
  import_id: string option
}

type start_import_request = {
  import_id: string option;
  end_event_time: float option;
  start_event_time: float option;
  import_source: import_source option;
  destinations: string list option
}

type invalid_import_source_exception = {
  message: string option
}

type account_has_ongoing_import_exception = {
  message: string option
}

type start_event_data_store_ingestion_response = unit

type start_event_data_store_ingestion_request = {
  event_data_store: string
}

type source_config = {
  advanced_event_selectors: advanced_event_selector list option;
  apply_to_all_regions: bool option
}

type restore_event_data_store_response = {
  billing_mode: billing_mode option;
  kms_key_id: string option;
  updated_timestamp: float option;
  created_timestamp: float option;
  termination_protection_enabled: bool option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  status: event_data_store_status option;
  name: string option;
  event_data_store_arn: string option
}

type restore_event_data_store_request = {
  event_data_store: string
}

type event_data_store_max_limit_exceeded_exception = {
  message: string option
}

type resource_type_not_supported_exception = {
  message: string option
}

type resource_tag = {
  tags_list: tag list option;
  resource_id: string option
}

type resource_policy_not_valid_exception = {
  message: string option
}

type resource_policy_not_found_exception = {
  message: string option
}

type resource_not_found_exception = {
  message: string option
}

type resource = {
  resource_name: string option;
  resource_type: string option
}

type resource_arn_not_valid_exception = {
  message: string option
}

type remove_tags_response = unit

type remove_tags_request = {
  tags_list: tag list;
  resource_id: string
}

type invalid_tag_parameter_exception = {
  message: string option
}

type register_organization_delegated_admin_response = unit

type register_organization_delegated_admin_request = {
  member_account_id: string
}

type not_organization_management_account_exception = {
  message: string option
}

type delegated_admin_account_limit_exceeded_exception = {
  message: string option
}

type cannot_delegate_management_account_exception = {
  message: string option
}

type account_registered_exception = {
  message: string option
}

type account_not_found_exception = {
  message: string option
}

type read_write_type = | All
  | WriteOnly
  | ReadOnly

type query_status = | TIMED_OUT
  | CANCELLED
  | FAILED
  | FINISHED
  | RUNNING
  | QUEUED

type query_statistics_for_describe_query = {
  creation_time: float option;
  execution_time_in_millis: int option;
  bytes_scanned: int option;
  events_scanned: int option;
  events_matched: int option
}

type query_statistics = {
  bytes_scanned: int option;
  total_results_count: int option;
  results_count: int option
}

type query_id_not_found_exception = {
  message: string option
}

type query = {
  creation_time: float option;
  query_status: query_status option;
  query_id: string option
}

type put_resource_policy_response = {
  resource_policy: string option;
  resource_arn: string option
}

type put_resource_policy_request = {
  resource_policy: string;
  resource_arn: string
}

type insight_type = | ApiErrorRateInsight
  | ApiCallRateInsight

type insight_selector = {
  insight_type: insight_type option
}

type put_insight_selectors_response = {
  insights_destination: string option;
  event_data_store_arn: string option;
  insight_selectors: insight_selector list option;
  trail_ar_n: string option
}

type put_insight_selectors_request = {
  insights_destination: string option;
  event_data_store: string option;
  insight_selectors: insight_selector list;
  trail_name: string option
}

type data_resource = {
  values: string list option;
  type_: string option
}

type event_selector = {
  exclude_management_event_sources: string list option;
  data_resources: data_resource list option;
  include_management_events: bool option;
  read_write_type: read_write_type option
}

type put_event_selectors_response = {
  advanced_event_selectors: advanced_event_selector list option;
  event_selectors: event_selector list option;
  trail_ar_n: string option
}

type put_event_selectors_request = {
  advanced_event_selectors: advanced_event_selector list option;
  event_selectors: event_selector list option;
  trail_name: string
}

type public_key = {
  fingerprint: string option;
  validity_end_time: float option;
  validity_start_time: float option;
  value: bytes option
}

type partition_key = {
  type_: string;
  name: string
}

type maximum_number_of_trails_exceeded_exception = {
  message: string option
}

type event = {
  cloud_trail_event: string option;
  resources: resource list option;
  username: string option;
  event_source: string option;
  event_time: float option;
  access_key_id: string option;
  read_only: string option;
  event_name: string option;
  event_id: string option
}

type lookup_events_response = {
  next_token: string option;
  events: event list option
}

type lookup_attribute_key = | ACCESS_KEY_ID
  | EVENT_SOURCE
  | RESOURCE_NAME
  | RESOURCE_TYPE
  | USERNAME
  | READ_ONLY
  | EVENT_NAME
  | EVENT_ID

type lookup_attribute = {
  attribute_value: string;
  attribute_key: lookup_attribute_key
}

type event_category = | Insight

type lookup_events_request = {
  next_token: string option;
  max_results: int option;
  event_category: event_category option;
  end_time: float option;
  start_time: float option;
  lookup_attributes: lookup_attribute list option
}

type invalid_time_range_exception = {
  message: string option
}

type invalid_next_token_exception = {
  message: string option
}

type invalid_max_results_exception = {
  message: string option
}

type invalid_lookup_attributes_exception = {
  message: string option
}

type invalid_event_category_exception = {
  message: string option
}

type list_trails_response = {
  next_token: string option;
  trails: trail_info list option
}

type list_trails_request = {
  next_token: string option
}

type list_tags_response = {
  next_token: string option;
  resource_tag_list: resource_tag list option
}

type list_tags_request = {
  next_token: string option;
  resource_id_list: string list
}

type invalid_token_exception = {
  message: string option
}

type list_queries_response = {
  next_token: string option;
  queries: query list option
}

type list_queries_request = {
  query_status: query_status option;
  end_time: float option;
  start_time: float option;
  max_results: int option;
  next_token: string option;
  event_data_store: string
}

type invalid_query_status_exception = {
  message: string option
}

type invalid_date_range_exception = {
  message: string option
}

type list_public_keys_response = {
  next_token: string option;
  public_key_list: public_key list option
}

type list_public_keys_request = {
  next_token: string option;
  end_time: float option;
  start_time: float option
}

type list_insights_metric_data_response = {
  next_token: string option;
  values: float list option;
  timestamps: float list option;
  error_code: string option;
  insight_type: insight_type option;
  event_name: string option;
  event_source: string option
}

type insights_metric_data_type = | NON_ZERO_DATA
  | FILL_WITH_ZEROS

type list_insights_metric_data_request = {
  next_token: string option;
  max_results: int option;
  data_type: insights_metric_data_type option;
  period: int option;
  end_time: float option;
  start_time: float option;
  error_code: string option;
  insight_type: insight_type;
  event_name: string;
  event_source: string
}

type imports_list_item = {
  updated_timestamp: float option;
  created_timestamp: float option;
  destinations: string list option;
  import_status: import_status option;
  import_id: string option
}

type list_imports_response = {
  next_token: string option;
  imports: imports_list_item list option
}

type list_imports_request = {
  next_token: string option;
  import_status: import_status option;
  destination: string option;
  max_results: int option
}

type import_failure_status = | SUCCEEDED
  | RETRY
  | FAILED

type import_failure_list_item = {
  last_updated_time: float option;
  error_message: string option;
  error_type: string option;
  status: import_failure_status option;
  location: string option
}

type list_import_failures_response = {
  next_token: string option;
  failures: import_failure_list_item list option
}

type list_import_failures_request = {
  next_token: string option;
  max_results: int option;
  import_id: string
}

type event_data_store = {
  updated_timestamp: float option;
  created_timestamp: float option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  status: event_data_store_status option;
  termination_protection_enabled: bool option;
  name: string option;
  event_data_store_arn: string option
}

type list_event_data_stores_response = {
  next_token: string option;
  event_data_stores: event_data_store list option
}

type list_event_data_stores_request = {
  max_results: int option;
  next_token: string option
}

type channel = {
  name: string option;
  channel_arn: string option
}

type list_channels_response = {
  next_token: string option;
  channels: channel list option
}

type list_channels_request = {
  next_token: string option;
  max_results: int option
}

type invalid_source_exception = {
  message: string option
}

type insight_not_enabled_exception = {
  message: string option
}

type ingestion_status = {
  latest_ingestion_attempt_event_i_d: string option;
  latest_ingestion_attempt_time: float option;
  latest_ingestion_error_code: string option;
  latest_ingestion_success_event_i_d: string option;
  latest_ingestion_success_time: float option
}

type inactive_query_exception = {
  message: string option
}

type get_trail_status_response = {
  time_logging_stopped: string option;
  time_logging_started: string option;
  latest_delivery_attempt_succeeded: string option;
  latest_notification_attempt_succeeded: string option;
  latest_notification_attempt_time: string option;
  latest_delivery_attempt_time: string option;
  latest_digest_delivery_error: string option;
  latest_digest_delivery_time: float option;
  latest_cloud_watch_logs_delivery_time: float option;
  latest_cloud_watch_logs_delivery_error: string option;
  stop_logging_time: float option;
  start_logging_time: float option;
  latest_notification_time: float option;
  latest_delivery_time: float option;
  latest_notification_error: string option;
  latest_delivery_error: string option;
  is_logging: bool option
}

type get_trail_status_request = {
  name: string
}

type get_trail_response = {
  trail: trail option
}

type get_trail_request = {
  name: string
}

type get_resource_policy_response = {
  resource_policy: string option;
  resource_arn: string option
}

type get_resource_policy_request = {
  resource_arn: string
}

type get_query_results_response = {
  error_message: string option;
  next_token: string option;
  query_result_rows: (string * string) list list list option;
  query_statistics: query_statistics option;
  query_status: query_status option
}

type get_query_results_request = {
  max_query_results: int option;
  next_token: string option;
  query_id: string;
  event_data_store: string option
}

type get_insight_selectors_response = {
  insights_destination: string option;
  event_data_store_arn: string option;
  insight_selectors: insight_selector list option;
  trail_ar_n: string option
}

type get_insight_selectors_request = {
  event_data_store: string option;
  trail_name: string option
}

type get_import_response = {
  import_statistics: import_statistics option;
  updated_timestamp: float option;
  created_timestamp: float option;
  import_status: import_status option;
  end_event_time: float option;
  start_event_time: float option;
  import_source: import_source option;
  destinations: string list option;
  import_id: string option
}

type get_import_request = {
  import_id: string
}

type get_event_selectors_response = {
  advanced_event_selectors: advanced_event_selector list option;
  event_selectors: event_selector list option;
  trail_ar_n: string option
}

type get_event_selectors_request = {
  trail_name: string
}

type get_event_data_store_response = {
  partition_keys: partition_key list option;
  federation_role_arn: string option;
  federation_status: federation_status option;
  billing_mode: billing_mode option;
  kms_key_id: string option;
  updated_timestamp: float option;
  created_timestamp: float option;
  termination_protection_enabled: bool option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  status: event_data_store_status option;
  name: string option;
  event_data_store_arn: string option
}

type get_event_data_store_request = {
  event_data_store: string
}

type get_channel_response = {
  ingestion_status: ingestion_status option;
  destinations: destination list option;
  source_config: source_config option;
  source: string option;
  name: string option;
  channel_arn: string option
}

type get_channel_request = {
  channel: string
}

type event_data_store_termination_protected_exception = {
  message: string option
}

type event_data_store_federation_enabled_exception = {
  message: string option
}

type enable_federation_response = {
  federation_role_arn: string option;
  federation_status: federation_status option;
  event_data_store_arn: string option
}

type enable_federation_request = {
  federation_role_arn: string;
  event_data_store: string
}

type concurrent_modification_exception = {
  message: string option
}

type access_denied_exception = {
  message: string option
}

type disable_federation_response = {
  federation_status: federation_status option;
  event_data_store_arn: string option
}

type disable_federation_request = {
  event_data_store: string
}

type describe_trails_response = {
  trail_list: trail list option
}

type describe_trails_request = {
  include_shadow_trails: bool option;
  trail_name_list: string list option
}

type delivery_status = | UNKNOWN
  | CANCELLED
  | ACCESS_DENIED_SIGNING_FILE
  | ACCESS_DENIED
  | RESOURCE_NOT_FOUND
  | PENDING
  | FAILED_SIGNING_FILE
  | FAILED
  | SUCCESS

type describe_query_response = {
  delivery_status: delivery_status option;
  delivery_s3_uri: string option;
  error_message: string option;
  query_statistics: query_statistics_for_describe_query option;
  query_status: query_status option;
  query_string: string option;
  query_id: string option
}

type describe_query_request = {
  query_alias: string option;
  query_id: string option;
  event_data_store: string option
}

type deregister_organization_delegated_admin_response = unit

type deregister_organization_delegated_admin_request = {
  delegated_admin_account_id: string
}

type account_not_registered_exception = {
  message: string option
}

type delete_trail_response = unit

type delete_trail_request = {
  name: string
}

type delete_resource_policy_response = unit

type delete_resource_policy_request = {
  resource_arn: string
}

type delete_event_data_store_response = unit

type delete_event_data_store_request = {
  event_data_store: string
}

type channel_exists_for_eds_exception = {
  message: string option
}

type delete_channel_response = unit

type delete_channel_request = {
  channel: string
}

type create_trail_response = {
  is_organization_trail: bool option;
  kms_key_id: string option;
  cloud_watch_logs_role_arn: string option;
  cloud_watch_logs_log_group_arn: string option;
  log_file_validation_enabled: bool option;
  trail_ar_n: string option;
  is_multi_region_trail: bool option;
  include_global_service_events: bool option;
  sns_topic_ar_n: string option;
  sns_topic_name: string option;
  s3_key_prefix: string option;
  s3_bucket_name: string option;
  name: string option
}

type create_trail_request = {
  tags_list: tag list option;
  is_organization_trail: bool option;
  kms_key_id: string option;
  cloud_watch_logs_role_arn: string option;
  cloud_watch_logs_log_group_arn: string option;
  enable_log_file_validation: bool option;
  is_multi_region_trail: bool option;
  include_global_service_events: bool option;
  sns_topic_name: string option;
  s3_key_prefix: string option;
  s3_bucket_name: string;
  name: string
}

type create_event_data_store_response = {
  billing_mode: billing_mode option;
  kms_key_id: string option;
  updated_timestamp: float option;
  created_timestamp: float option;
  tags_list: tag list option;
  termination_protection_enabled: bool option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  status: event_data_store_status option;
  name: string option;
  event_data_store_arn: string option
}

type create_event_data_store_request = {
  billing_mode: billing_mode option;
  start_ingestion: bool option;
  kms_key_id: string option;
  tags_list: tag list option;
  termination_protection_enabled: bool option;
  retention_period: int option;
  organization_enabled: bool option;
  multi_region_enabled: bool option;
  advanced_event_selectors: advanced_event_selector list option;
  name: string
}

type create_channel_response = {
  tags: tag list option;
  destinations: destination list option;
  source: string option;
  name: string option;
  channel_arn: string option
}

type create_channel_request = {
  tags: tag list option;
  destinations: destination list;
  source: string;
  name: string
}

type channel_max_limit_exceeded_exception = {
  message: string option
}

type cancel_query_response = {
  query_status: query_status;
  query_id: string
}

type cancel_query_request = {
  query_id: string;
  event_data_store: string option
}

type add_tags_response = unit

type add_tags_request = {
  tags_list: tag list;
  resource_id: string
}



type base_document = Json.t

OCaml

Innovation. Community. Security.