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
open Smaws_Lib
let service =
  Service.{
    namespace = "kms";
    endpointPrefix = "kms";
    version = "2014-11-01";
    protocol = AwsJson_1_1
  };
type xks_proxy_vpc_endpoint_service_not_found_exception = {
  message: string option
}

type xks_proxy_vpc_endpoint_service_invalid_configuration_exception = {
  message: string option
}

type xks_proxy_vpc_endpoint_service_in_use_exception = {
  message: string option
}

type xks_proxy_uri_unreachable_exception = {
  message: string option
}

type xks_proxy_uri_in_use_exception = {
  message: string option
}

type xks_proxy_uri_endpoint_in_use_exception = {
  message: string option
}

type xks_proxy_invalid_response_exception = {
  message: string option
}

type xks_proxy_invalid_configuration_exception = {
  message: string option
}

type xks_proxy_incorrect_authentication_credential_exception = {
  message: string option
}

type xks_proxy_connectivity_type = | VPC_ENDPOINT_SERVICE
  | PUBLIC_ENDPOINT

type xks_proxy_configuration_type = {
  vpc_endpoint_service_name: string option;
  uri_path: string option;
  uri_endpoint: string option;
  access_key_id: string option;
  connectivity: xks_proxy_connectivity_type option
}

type xks_proxy_authentication_credential_type = {
  raw_secret_access_key: string;
  access_key_id: string
}

type xks_key_not_found_exception = {
  message: string option
}

type xks_key_invalid_configuration_exception = {
  message: string option
}

type xks_key_configuration_type = {
  id: string option
}

type xks_key_already_in_use_exception = {
  message: string option
}

type wrapping_key_spec = | SM2
  | RSA_4096
  | RSA_3072
  | RSA_2048

type signing_algorithm_spec = | SM2DSA
  | ECDSA_SHA_512
  | ECDSA_SHA_384
  | ECDSA_SHA_256
  | RSASSA_PKCS1_V1_5_SHA_512
  | RSASSA_PKCS1_V1_5_SHA_384
  | RSASSA_PKCS1_V1_5_SHA_256
  | RSASSA_PSS_SHA_512
  | RSASSA_PSS_SHA_384
  | RSASSA_PSS_SHA_256

type verify_response = {
  signing_algorithm: signing_algorithm_spec option;
  signature_valid: bool option;
  key_id: string option
}

type message_type = | DIGEST
  | RAW

type verify_request = {
  dry_run: bool option;
  grant_tokens: string list option;
  signing_algorithm: signing_algorithm_spec;
  signature: bytes;
  message_type: message_type option;
  message: bytes;
  key_id: string
}

type mac_algorithm_spec = | HMAC_SHA_512
  | HMAC_SHA_384
  | HMAC_SHA_256
  | HMAC_SHA_224

type verify_mac_response = {
  mac_algorithm: mac_algorithm_spec option;
  mac_valid: bool option;
  key_id: string option
}

type verify_mac_request = {
  dry_run: bool option;
  grant_tokens: string list option;
  mac: bytes;
  mac_algorithm: mac_algorithm_spec;
  key_id: string;
  message: bytes
}

type not_found_exception = {
  message: string option
}

type kms_invalid_state_exception = {
  message: string option
}

type kms_invalid_mac_exception = {
  message: string option
}

type kms_internal_exception = {
  message: string option
}

type key_unavailable_exception = {
  message: string option
}

type invalid_key_usage_exception = {
  message: string option
}

type invalid_grant_token_exception = {
  message: string option
}

type dry_run_operation_exception = {
  message: string option
}

type disabled_exception = {
  message: string option
}

type kms_invalid_signature_exception = {
  message: string option
}

type dependency_timeout_exception = {
  message: string option
}

type update_primary_region_request = {
  primary_region: string;
  key_id: string
}

type unsupported_operation_exception = {
  message: string option
}

type invalid_arn_exception = {
  message: string option
}

type update_key_description_request = {
  description: string;
  key_id: string
}

type update_custom_key_store_response = unit

type update_custom_key_store_request = {
  xks_proxy_connectivity: xks_proxy_connectivity_type option;
  xks_proxy_authentication_credential: xks_proxy_authentication_credential_type option;
  xks_proxy_vpc_endpoint_service_name: string option;
  xks_proxy_uri_path: string option;
  xks_proxy_uri_endpoint: string option;
  cloud_hsm_cluster_id: string option;
  key_store_password: string option;
  new_custom_key_store_name: string option;
  custom_key_store_id: string
}

type custom_key_store_not_found_exception = {
  message: string option
}

type custom_key_store_name_in_use_exception = {
  message: string option
}

type custom_key_store_invalid_state_exception = {
  message: string option
}

type cloud_hsm_cluster_not_related_exception = {
  message: string option
}

type cloud_hsm_cluster_not_found_exception = {
  message: string option
}

type cloud_hsm_cluster_not_active_exception = {
  message: string option
}

type cloud_hsm_cluster_invalid_configuration_exception = {
  message: string option
}

type update_alias_request = {
  target_key_id: string;
  alias_name: string
}

type limit_exceeded_exception = {
  message: string option
}

type untag_resource_request = {
  tag_keys: string list;
  key_id: string
}

type tag_exception = {
  message: string option
}

type tag = {
  tag_value: string;
  tag_key: string
}

type tag_resource_request = {
  tags: tag list;
  key_id: string
}

type sign_response = {
  signing_algorithm: signing_algorithm_spec option;
  signature: bytes option;
  key_id: string option
}

type sign_request = {
  dry_run: bool option;
  signing_algorithm: signing_algorithm_spec;
  grant_tokens: string list option;
  message_type: message_type option;
  message: bytes;
  key_id: string
}

type key_state = | Updating
  | Unavailable
  | PendingReplicaDeletion
  | PendingImport
  | PendingDeletion
  | Disabled
  | Enabled
  | Creating

type schedule_key_deletion_response = {
  pending_window_in_days: int option;
  key_state: key_state option;
  deletion_date: float option;
  key_id: string option
}

type schedule_key_deletion_request = {
  pending_window_in_days: int option;
  key_id: string
}

type conflict_exception = {
  message: string option
}

type rotate_key_on_demand_response = {
  key_id: string option
}

type rotate_key_on_demand_request = {
  key_id: string
}

type invalid_grant_id_exception = {
  message: string option
}

type revoke_grant_request = {
  dry_run: bool option;
  grant_id: string;
  key_id: string
}

type retire_grant_request = {
  dry_run: bool option;
  grant_id: string option;
  key_id: string option;
  grant_token: string option
}

type malformed_policy_document_exception = {
  message: string option
}

type already_exists_exception = {
  message: string option
}

type key_usage_type = | KEY_AGREEMENT
  | GENERATE_VERIFY_MAC
  | ENCRYPT_DECRYPT
  | SIGN_VERIFY

type origin_type = | EXTERNAL_KEY_STORE
  | AWS_CLOUDHSM
  | EXTERNAL
  | AWS_KMS

type expiration_model_type = | KEY_MATERIAL_DOES_NOT_EXPIRE
  | KEY_MATERIAL_EXPIRES

type key_manager_type = | CUSTOMER
  | AWS

type customer_master_key_spec = | SM2
  | HMAC_512
  | HMAC_384
  | HMAC_256
  | HMAC_224
  | SYMMETRIC_DEFAULT
  | ECC_SECG_P256K1
  | ECC_NIST_P521
  | ECC_NIST_P384
  | ECC_NIST_P256
  | RSA_4096
  | RSA_3072
  | RSA_2048

type key_spec = | SM2
  | HMAC_512
  | HMAC_384
  | HMAC_256
  | HMAC_224
  | SYMMETRIC_DEFAULT
  | ECC_SECG_P256K1
  | ECC_NIST_P521
  | ECC_NIST_P384
  | ECC_NIST_P256
  | RSA_4096
  | RSA_3072
  | RSA_2048

type encryption_algorithm_spec = | SM2PKE
  | RSAES_OAEP_SHA_256
  | RSAES_OAEP_SHA_1
  | SYMMETRIC_DEFAULT

type key_agreement_algorithm_spec = | ECDH

type multi_region_key_type = | REPLICA
  | PRIMARY

type multi_region_key = {
  region: string option;
  arn: string option
}

type multi_region_configuration = {
  replica_keys: multi_region_key list option;
  primary_key: multi_region_key option;
  multi_region_key_type: multi_region_key_type option
}

type key_metadata = {
  xks_key_configuration: xks_key_configuration_type option;
  mac_algorithms: mac_algorithm_spec list option;
  pending_deletion_window_in_days: int option;
  multi_region_configuration: multi_region_configuration option;
  multi_region: bool option;
  key_agreement_algorithms: key_agreement_algorithm_spec list option;
  signing_algorithms: signing_algorithm_spec list option;
  encryption_algorithms: encryption_algorithm_spec list option;
  key_spec: key_spec option;
  customer_master_key_spec: customer_master_key_spec option;
  key_manager: key_manager_type option;
  expiration_model: expiration_model_type option;
  cloud_hsm_cluster_id: string option;
  custom_key_store_id: string option;
  origin: origin_type option;
  valid_to: float option;
  deletion_date: float option;
  key_state: key_state option;
  key_usage: key_usage_type option;
  description: string option;
  enabled: bool option;
  creation_date: float option;
  arn: string option;
  key_id: string;
  aws_account_id: string option
}

type replicate_key_response = {
  replica_tags: tag list option;
  replica_policy: string option;
  replica_key_metadata: key_metadata option
}

type replicate_key_request = {
  tags: tag list option;
  description: string option;
  bypass_policy_lockout_safety_check: bool option;
  policy: string option;
  replica_region: string;
  key_id: string
}

type invalid_ciphertext_exception = {
  message: string option
}

type incorrect_key_exception = {
  message: string option
}

type re_encrypt_response = {
  destination_encryption_algorithm: encryption_algorithm_spec option;
  source_encryption_algorithm: encryption_algorithm_spec option;
  key_id: string option;
  source_key_id: string option;
  ciphertext_blob: bytes option
}

type re_encrypt_request = {
  dry_run: bool option;
  grant_tokens: string list option;
  destination_encryption_algorithm: encryption_algorithm_spec option;
  source_encryption_algorithm: encryption_algorithm_spec option;
  destination_encryption_context: (string * string) list option;
  destination_key_id: string;
  source_key_id: string option;
  source_encryption_context: (string * string) list option;
  ciphertext_blob: bytes
}

type put_key_policy_request = {
  bypass_policy_lockout_safety_check: bool option;
  policy: string;
  policy_name: string option;
  key_id: string
}

type invalid_marker_exception = {
  message: string option
}

type grant_operation = | DeriveSharedSecret
  | VerifyMac
  | GenerateMac
  | GenerateDataKeyPairWithoutPlaintext
  | GenerateDataKeyPair
  | DescribeKey
  | RetireGrant
  | CreateGrant
  | GetPublicKey
  | Verify
  | Sign
  | ReEncryptTo
  | ReEncryptFrom
  | GenerateDataKeyWithoutPlaintext
  | GenerateDataKey
  | Encrypt
  | Decrypt

type grant_constraints = {
  encryption_context_equals: (string * string) list option;
  encryption_context_subset: (string * string) list option
}

type grant_list_entry = {
  constraints: grant_constraints option;
  operations: grant_operation list option;
  issuing_account: string option;
  retiring_principal: string option;
  grantee_principal: string option;
  creation_date: float option;
  name: string option;
  grant_id: string option;
  key_id: string option
}

type list_grants_response = {
  truncated: bool option;
  next_marker: string option;
  grants: grant_list_entry list option
}

type list_retirable_grants_request = {
  retiring_principal: string;
  marker: string option;
  limit: int option
}

type list_resource_tags_response = {
  truncated: bool option;
  next_marker: string option;
  tags: tag list option
}

type list_resource_tags_request = {
  marker: string option;
  limit: int option;
  key_id: string
}

type key_list_entry = {
  key_arn: string option;
  key_id: string option
}

type list_keys_response = {
  truncated: bool option;
  next_marker: string option;
  keys: key_list_entry list option
}

type list_keys_request = {
  marker: string option;
  limit: int option
}

type rotation_type = | ON_DEMAND
  | AUTOMATIC

type rotations_list_entry = {
  rotation_type: rotation_type option;
  rotation_date: float option;
  key_id: string option
}

type list_key_rotations_response = {
  truncated: bool option;
  next_marker: string option;
  rotations: rotations_list_entry list option
}

type list_key_rotations_request = {
  marker: string option;
  limit: int option;
  key_id: string
}

type list_key_policies_response = {
  truncated: bool option;
  next_marker: string option;
  policy_names: string list option
}

type list_key_policies_request = {
  marker: string option;
  limit: int option;
  key_id: string
}

type list_grants_request = {
  grantee_principal: string option;
  grant_id: string option;
  key_id: string;
  marker: string option;
  limit: int option
}

type alias_list_entry = {
  last_updated_date: float option;
  creation_date: float option;
  target_key_id: string option;
  alias_arn: string option;
  alias_name: string option
}

type list_aliases_response = {
  truncated: bool option;
  next_marker: string option;
  aliases: alias_list_entry list option
}

type list_aliases_request = {
  marker: string option;
  limit: int option;
  key_id: string option
}

type invalid_import_token_exception = {
  message: string option
}

type incorrect_key_material_exception = {
  message: string option
}

type expired_import_token_exception = {
  message: string option
}

type import_key_material_response = unit

type import_key_material_request = {
  expiration_model: expiration_model_type option;
  valid_to: float option;
  encrypted_key_material: bytes;
  import_token: bytes;
  key_id: string
}

type get_public_key_response = {
  key_agreement_algorithms: key_agreement_algorithm_spec list option;
  signing_algorithms: signing_algorithm_spec list option;
  encryption_algorithms: encryption_algorithm_spec list option;
  key_usage: key_usage_type option;
  key_spec: key_spec option;
  customer_master_key_spec: customer_master_key_spec option;
  public_key: bytes option;
  key_id: string option
}

type get_public_key_request = {
  grant_tokens: string list option;
  key_id: string
}

type get_parameters_for_import_response = {
  parameters_valid_to: float option;
  public_key: bytes option;
  import_token: bytes option;
  key_id: string option
}

type algorithm_spec = | SM2PKE
  | RSA_AES_KEY_WRAP_SHA_256
  | RSA_AES_KEY_WRAP_SHA_1
  | RSAES_OAEP_SHA_256
  | RSAES_OAEP_SHA_1
  | RSAES_PKCS1_V1_5

type get_parameters_for_import_request = {
  wrapping_key_spec: wrapping_key_spec;
  wrapping_algorithm: algorithm_spec;
  key_id: string
}

type get_key_rotation_status_response = {
  on_demand_rotation_start_date: float option;
  next_rotation_date: float option;
  rotation_period_in_days: int option;
  key_id: string option;
  key_rotation_enabled: bool option
}

type get_key_rotation_status_request = {
  key_id: string
}

type get_key_policy_response = {
  policy_name: string option;
  policy: string option
}

type get_key_policy_request = {
  policy_name: string option;
  key_id: string
}

type generate_random_response = {
  ciphertext_for_recipient: bytes option;
  plaintext: bytes option
}

type key_encryption_mechanism = | RSAES_OAEP_SHA_256

type recipient_info = {
  attestation_document: bytes option;
  key_encryption_algorithm: key_encryption_mechanism option
}

type generate_random_request = {
  recipient: recipient_info option;
  custom_key_store_id: string option;
  number_of_bytes: int option
}

type generate_mac_response = {
  key_id: string option;
  mac_algorithm: mac_algorithm_spec option;
  mac: bytes option
}

type generate_mac_request = {
  dry_run: bool option;
  grant_tokens: string list option;
  mac_algorithm: mac_algorithm_spec;
  key_id: string;
  message: bytes
}

type generate_data_key_without_plaintext_response = {
  key_id: string option;
  ciphertext_blob: bytes option
}

type data_key_spec = | AES_128
  | AES_256

type generate_data_key_without_plaintext_request = {
  dry_run: bool option;
  grant_tokens: string list option;
  number_of_bytes: int option;
  key_spec: data_key_spec option;
  encryption_context: (string * string) list option;
  key_id: string
}

type data_key_pair_spec = | SM2
  | ECC_SECG_P256K1
  | ECC_NIST_P521
  | ECC_NIST_P384
  | ECC_NIST_P256
  | RSA_4096
  | RSA_3072
  | RSA_2048

type generate_data_key_pair_without_plaintext_response = {
  key_pair_spec: data_key_pair_spec option;
  key_id: string option;
  public_key: bytes option;
  private_key_ciphertext_blob: bytes option
}

type generate_data_key_pair_without_plaintext_request = {
  dry_run: bool option;
  grant_tokens: string list option;
  key_pair_spec: data_key_pair_spec;
  key_id: string;
  encryption_context: (string * string) list option
}

type generate_data_key_pair_response = {
  ciphertext_for_recipient: bytes option;
  key_pair_spec: data_key_pair_spec option;
  key_id: string option;
  public_key: bytes option;
  private_key_plaintext: bytes option;
  private_key_ciphertext_blob: bytes option
}

type generate_data_key_pair_request = {
  dry_run: bool option;
  recipient: recipient_info option;
  grant_tokens: string list option;
  key_pair_spec: data_key_pair_spec;
  key_id: string;
  encryption_context: (string * string) list option
}

type generate_data_key_response = {
  ciphertext_for_recipient: bytes option;
  key_id: string option;
  plaintext: bytes option;
  ciphertext_blob: bytes option
}

type generate_data_key_request = {
  dry_run: bool option;
  recipient: recipient_info option;
  grant_tokens: string list option;
  key_spec: data_key_spec option;
  number_of_bytes: int option;
  encryption_context: (string * string) list option;
  key_id: string
}

type encrypt_response = {
  encryption_algorithm: encryption_algorithm_spec option;
  key_id: string option;
  ciphertext_blob: bytes option
}

type encrypt_request = {
  dry_run: bool option;
  encryption_algorithm: encryption_algorithm_spec option;
  grant_tokens: string list option;
  encryption_context: (string * string) list option;
  plaintext: bytes;
  key_id: string
}

type enable_key_rotation_request = {
  rotation_period_in_days: int option;
  key_id: string
}

type enable_key_request = {
  key_id: string
}

type disconnect_custom_key_store_response = unit

type disconnect_custom_key_store_request = {
  custom_key_store_id: string
}

type disable_key_rotation_request = {
  key_id: string
}

type disable_key_request = {
  key_id: string
}

type describe_key_response = {
  key_metadata: key_metadata option
}

type describe_key_request = {
  grant_tokens: string list option;
  key_id: string
}

type connection_state_type = | DISCONNECTING
  | DISCONNECTED
  | FAILED
  | CONNECTING
  | CONNECTED

type connection_error_code_type = | XKS_PROXY_INVALID_TLS_CONFIGURATION
  | XKS_PROXY_TIMED_OUT
  | XKS_VPC_ENDPOINT_SERVICE_INVALID_CONFIGURATION
  | XKS_PROXY_INVALID_CONFIGURATION
  | XKS_PROXY_INVALID_RESPONSE
  | XKS_VPC_ENDPOINT_SERVICE_NOT_FOUND
  | XKS_PROXY_NOT_REACHABLE
  | XKS_PROXY_ACCESS_DENIED
  | INSUFFICIENT_FREE_ADDRESSES_IN_SUBNET
  | SUBNET_NOT_FOUND
  | USER_LOGGED_IN
  | USER_NOT_FOUND
  | USER_LOCKED_OUT
  | INSUFFICIENT_CLOUDHSM_HSMS
  | INTERNAL_ERROR
  | NETWORK_ERRORS
  | CLUSTER_NOT_FOUND
  | INVALID_CREDENTIALS

type custom_key_store_type = | EXTERNAL_KEY_STORE
  | AWS_CLOUDHSM

type custom_key_stores_list_entry = {
  xks_proxy_configuration: xks_proxy_configuration_type option;
  custom_key_store_type: custom_key_store_type option;
  creation_date: float option;
  connection_error_code: connection_error_code_type option;
  connection_state: connection_state_type option;
  trust_anchor_certificate: string option;
  cloud_hsm_cluster_id: string option;
  custom_key_store_name: string option;
  custom_key_store_id: string option
}

type describe_custom_key_stores_response = {
  truncated: bool option;
  next_marker: string option;
  custom_key_stores: custom_key_stores_list_entry list option
}

type describe_custom_key_stores_request = {
  marker: string option;
  limit: int option;
  custom_key_store_name: string option;
  custom_key_store_id: string option
}

type derive_shared_secret_response = {
  key_origin: origin_type option;
  key_agreement_algorithm: key_agreement_algorithm_spec option;
  ciphertext_for_recipient: bytes option;
  shared_secret: bytes option;
  key_id: string option
}

type derive_shared_secret_request = {
  recipient: recipient_info option;
  dry_run: bool option;
  grant_tokens: string list option;
  public_key: bytes;
  key_agreement_algorithm: key_agreement_algorithm_spec;
  key_id: string
}

type delete_imported_key_material_request = {
  key_id: string
}

type custom_key_store_has_cm_ks_exception = {
  message: string option
}

type delete_custom_key_store_response = unit

type delete_custom_key_store_request = {
  custom_key_store_id: string
}

type delete_alias_request = {
  alias_name: string
}

type decrypt_response = {
  ciphertext_for_recipient: bytes option;
  encryption_algorithm: encryption_algorithm_spec option;
  plaintext: bytes option;
  key_id: string option
}

type decrypt_request = {
  dry_run: bool option;
  recipient: recipient_info option;
  encryption_algorithm: encryption_algorithm_spec option;
  key_id: string option;
  grant_tokens: string list option;
  encryption_context: (string * string) list option;
  ciphertext_blob: bytes
}

type create_key_response = {
  key_metadata: key_metadata option
}

type create_key_request = {
  xks_key_id: string option;
  multi_region: bool option;
  tags: tag list option;
  bypass_policy_lockout_safety_check: bool option;
  custom_key_store_id: string option;
  origin: origin_type option;
  key_spec: key_spec option;
  customer_master_key_spec: customer_master_key_spec option;
  key_usage: key_usage_type option;
  description: string option;
  policy: string option
}

type create_grant_response = {
  grant_id: string option;
  grant_token: string option
}

type create_grant_request = {
  dry_run: bool option;
  name: string option;
  grant_tokens: string list option;
  constraints: grant_constraints option;
  operations: grant_operation list;
  retiring_principal: string option;
  grantee_principal: string;
  key_id: string
}

type incorrect_trust_anchor_exception = {
  message: string option
}

type cloud_hsm_cluster_in_use_exception = {
  message: string option
}

type create_custom_key_store_response = {
  custom_key_store_id: string option
}

type create_custom_key_store_request = {
  xks_proxy_connectivity: xks_proxy_connectivity_type option;
  xks_proxy_authentication_credential: xks_proxy_authentication_credential_type option;
  xks_proxy_vpc_endpoint_service_name: string option;
  xks_proxy_uri_path: string option;
  xks_proxy_uri_endpoint: string option;
  custom_key_store_type: custom_key_store_type option;
  key_store_password: string option;
  trust_anchor_certificate: string option;
  cloud_hsm_cluster_id: string option;
  custom_key_store_name: string
}

type invalid_alias_name_exception = {
  message: string option
}

type create_alias_request = {
  target_key_id: string;
  alias_name: string
}

type connect_custom_key_store_response = unit

type connect_custom_key_store_request = {
  custom_key_store_id: string
}

type cancel_key_deletion_response = {
  key_id: string option
}

type cancel_key_deletion_request = {
  key_id: string
}



type base_document = Json.t

OCaml

Innovation. Community. Security.