package awso-async
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
AWS client for Async (400+ services, auto-generated from botocore)
Install
dune-project
Dependency
Authors
Maintainers
Sources
awso-0.9.0.tbz
sha256=47224890900b1f5d2bd717000a02fa8918f92eafa99f702f7d59a1b053ff8e95
sha512=e187288f7c8fccb221f5417671732c8c8de95cdbacba1514db592b5700df2293468bde07956539bd44f3d460f6c75d38bd66ca161d0eae68a8b1b4e081882367
doc/src/awso-async.workdocs/cli.ml.html
Source file cli.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 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *) open Core open Async let json_arg = Command.Arg_type.create Yojson.Safe.from_string let call ?endpoint_url ?profile ?region f m result_to_json error_to_json = let region = match region with | Some region -> Some (Awso.Region.of_string region) | None -> None in (Awso_async.Cfg.get_exn ?profile ?region ()) >>= (fun cfg -> (f ?endpoint_url ?cfg:(Some cfg) m) >>= (fun result -> match result with | Error err -> (match error_to_json with | None -> failwithf "endpoint error, but no error values defined in boto" () | Some to_json -> let s = (err |> to_json) |> Yojson.Safe.to_string in failwithf "AWS error: %s" s ()) | Ok result -> ((match result_to_json with | None -> print_endline "ok response from endpoint" | Some to_json -> ((result |> to_json) |> Yojson.Safe.to_string) |> print_endline); return ()))) let abort_document_version_upload = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.abort_document_version_upload (Values.AbortDocumentVersionUploadRequest.make ?authenticationToken ~documentId ~versionId ()) None None]) let activate_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and userId = flag "user-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.activate_user (Values.ActivateUserRequest.make ?authenticationToken ~userId ()) (Some Values.ActivateUserResponse.to_json) (Some Values.ActivateUserResponse.error_to_json)]) let add_resource_permissions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and notificationOptions = flag "notification-options" (optional json_arg) ~doc:"JSON NotificationOptions" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" and principals = flag "principals" (required json_arg) ~doc:"JSON SharePrincipalList" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.add_resource_permissions (Values.AddResourcePermissionsRequest.make ?authenticationToken ?notificationOptions:(Option.map ~f:Values.NotificationOptions.of_json notificationOptions) ~resourceId ~principals:(Values.SharePrincipalList.of_json principals) ()) (Some Values.AddResourcePermissionsResponse.to_json) (Some Values.AddResourcePermissionsResponse.error_to_json)]) let create_comment = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and parentId = flag "parent-id" (optional string) ~doc:"STRING CommentIdType" and threadId = flag "thread-id" (optional string) ~doc:"STRING CommentIdType" and visibility = flag "visibility" (optional json_arg) ~doc:"JSON CommentVisibilityType" and notifyCollaborators = flag "notify-collaborators" (optional bool) ~doc:"BOOL BooleanType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" and text = flag "text" (required string) ~doc:"STRING CommentTextType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_comment (Values.CreateCommentRequest.make ?authenticationToken ?parentId ?threadId ?visibility:(Option.map ~f:Values.CommentVisibilityType.of_json visibility) ?notifyCollaborators ~documentId ~versionId ~text ()) (Some Values.CreateCommentResponse.to_json) (Some Values.CreateCommentResponse.error_to_json)]) let create_custom_metadata = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and versionId = flag "version-id" (optional string) ~doc:"STRING DocumentVersionIdType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" and customMetadata = flag "custom-metadata" (required json_arg) ~doc:"JSON CustomMetadataMap" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_custom_metadata (Values.CreateCustomMetadataRequest.make ?authenticationToken ?versionId ~resourceId ~customMetadata:(Values.CustomMetadataMap.of_json customMetadata) ()) (Some Values.CreateCustomMetadataResponse.to_json) (Some Values.CreateCustomMetadataResponse.error_to_json)]) let create_folder = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and name = flag "name" (optional string) ~doc:"STRING ResourceNameType" and parentFolderId = flag "parent-folder-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_folder (Values.CreateFolderRequest.make ?authenticationToken ?name ~parentFolderId ()) (Some Values.CreateFolderResponse.to_json) (Some Values.CreateFolderResponse.error_to_json)]) let create_labels = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" and labels = flag "labels" (required json_arg) ~doc:"JSON SharedLabels" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_labels (Values.CreateLabelsRequest.make ?authenticationToken ~resourceId ~labels:(Values.SharedLabels.of_json labels) ()) (Some Values.CreateLabelsResponse.to_json) (Some Values.CreateLabelsResponse.error_to_json)]) let create_notification_subscription = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and organizationId = flag "organization-id" (required string) ~doc:"STRING IdType" and endpoint = flag "endpoint" (required string) ~doc:"STRING SubscriptionEndPointType" and protocol = flag "protocol" (required json_arg) ~doc:"JSON SubscriptionProtocolType" and subscriptionType = flag "subscription-type" (required json_arg) ~doc:"JSON SubscriptionType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_notification_subscription (Values.CreateNotificationSubscriptionRequest.make ~organizationId ~endpoint ~protocol:(Values.SubscriptionProtocolType.of_json protocol) ~subscriptionType:(Values.SubscriptionType.of_json subscriptionType) ()) (Some Values.CreateNotificationSubscriptionResponse.to_json) (Some Values.CreateNotificationSubscriptionResponse.error_to_json)]) let create_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and organizationId = flag "organization-id" (optional string) ~doc:"STRING IdType" and emailAddress = flag "email-address" (optional string) ~doc:"STRING EmailAddressType" and timeZoneId = flag "time-zone-id" (optional string) ~doc:"STRING TimeZoneIdType" and storageRule = flag "storage-rule" (optional json_arg) ~doc:"JSON StorageRuleType" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and username = flag "username" (required string) ~doc:"STRING UsernameType" and givenName = flag "given-name" (required string) ~doc:"STRING UserAttributeValueType" and surname = flag "surname" (required string) ~doc:"STRING UserAttributeValueType" and password = flag "password" (required string) ~doc:"STRING PasswordType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.create_user (Values.CreateUserRequest.make ?organizationId ?emailAddress ?timeZoneId ?storageRule:(Option.map ~f:Values.StorageRuleType.of_json storageRule) ?authenticationToken ~username ~givenName ~surname ~password ()) (Some Values.CreateUserResponse.to_json) (Some Values.CreateUserResponse.error_to_json)]) let deactivate_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and userId = flag "user-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.deactivate_user (Values.DeactivateUserRequest.make ?authenticationToken ~userId ()) None None]) let delete_comment = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" and commentId = flag "comment-id" (required string) ~doc:"STRING CommentIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_comment (Values.DeleteCommentRequest.make ?authenticationToken ~documentId ~versionId ~commentId ()) None None]) let delete_custom_metadata = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and versionId = flag "version-id" (optional string) ~doc:"STRING DocumentVersionIdType" and keys = flag "keys" (optional json_arg) ~doc:"JSON CustomMetadataKeyList" and deleteAll = flag "delete-all" (optional bool) ~doc:"BOOL BooleanType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_custom_metadata (Values.DeleteCustomMetadataRequest.make ?authenticationToken ?versionId ?keys:(Option.map ~f:Values.CustomMetadataKeyList.of_json keys) ?deleteAll ~resourceId ()) (Some Values.DeleteCustomMetadataResponse.to_json) (Some Values.DeleteCustomMetadataResponse.error_to_json)]) let delete_document = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_document (Values.DeleteDocumentRequest.make ?authenticationToken ~documentId ()) None None]) let delete_document_version = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" and deletePriorVersions = flag "delete-prior-versions" (required bool) ~doc:"BOOL BooleanType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_document_version (Values.DeleteDocumentVersionRequest.make ?authenticationToken ~documentId ~versionId ~deletePriorVersions ()) None None]) let delete_folder = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and folderId = flag "folder-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_folder (Values.DeleteFolderRequest.make ?authenticationToken ~folderId ()) None None]) let delete_folder_contents = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and folderId = flag "folder-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_folder_contents (Values.DeleteFolderContentsRequest.make ?authenticationToken ~folderId ()) None None]) let delete_labels = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and labels = flag "labels" (optional json_arg) ~doc:"JSON SharedLabels" and deleteAll = flag "delete-all" (optional bool) ~doc:"BOOL BooleanType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_labels (Values.DeleteLabelsRequest.make ?authenticationToken ?labels:(Option.map ~f:Values.SharedLabels.of_json labels) ?deleteAll ~resourceId ()) (Some Values.DeleteLabelsResponse.to_json) (Some Values.DeleteLabelsResponse.error_to_json)]) let delete_notification_subscription = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and subscriptionId = flag "subscription-id" (required string) ~doc:"STRING IdType" and organizationId = flag "organization-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_notification_subscription (Values.DeleteNotificationSubscriptionRequest.make ~subscriptionId ~organizationId ()) None None]) let delete_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and userId = flag "user-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.delete_user (Values.DeleteUserRequest.make ?authenticationToken ~userId ()) None None]) let describe_activities = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and startTime = flag "start-time" (optional json_arg) ~doc:"JSON TimestampType" and endTime = flag "end-time" (optional json_arg) ~doc:"JSON TimestampType" and organizationId = flag "organization-id" (optional string) ~doc:"STRING IdType" and activityTypes = flag "activity-types" (optional string) ~doc:"STRING ActivityNamesFilterType" and resourceId = flag "resource-id" (optional string) ~doc:"STRING IdType" and userId = flag "user-id" (optional string) ~doc:"STRING IdType" and includeIndirectActivities = flag "include-indirect-activities" (optional bool) ~doc:"BOOL BooleanType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and marker = flag "marker" (optional string) ~doc:"STRING SearchMarkerType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_activities (Values.DescribeActivitiesRequest.make ?authenticationToken ?startTime:(Option.map ~f:Values.TimestampType.of_json startTime) ?endTime:(Option.map ~f:Values.TimestampType.of_json endTime) ?organizationId ?activityTypes ?resourceId ?userId ?includeIndirectActivities ?limit ?marker ()) (Some Values.DescribeActivitiesResponse.to_json) (Some Values.DescribeActivitiesResponse.error_to_json)]) let describe_comments = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and marker = flag "marker" (optional string) ~doc:"STRING MarkerType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_comments (Values.DescribeCommentsRequest.make ?authenticationToken ?limit ?marker ~documentId ~versionId ()) (Some Values.DescribeCommentsResponse.to_json) (Some Values.DescribeCommentsResponse.error_to_json)]) let describe_document_versions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and include_ = flag "include-" (optional string) ~doc:"STRING FieldNamesType" and fields = flag "fields" (optional string) ~doc:"STRING FieldNamesType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_document_versions (Values.DescribeDocumentVersionsRequest.make ?authenticationToken ?marker ?limit ?include_ ?fields ~documentId ()) (Some Values.DescribeDocumentVersionsResponse.to_json) (Some Values.DescribeDocumentVersionsResponse.error_to_json)]) let describe_folder_contents = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and sort = flag "sort" (optional json_arg) ~doc:"JSON ResourceSortType" and order = flag "order" (optional json_arg) ~doc:"JSON OrderType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and type_ = flag "type-" (optional json_arg) ~doc:"JSON FolderContentType" and include_ = flag "include-" (optional string) ~doc:"STRING FieldNamesType" and folderId = flag "folder-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_folder_contents (Values.DescribeFolderContentsRequest.make ?authenticationToken ?sort:(Option.map ~f:Values.ResourceSortType.of_json sort) ?order:(Option.map ~f:Values.OrderType.of_json order) ?limit ?marker ?type_:(Option.map ~f:Values.FolderContentType.of_json type_) ?include_ ~folderId ()) (Some Values.DescribeFolderContentsResponse.to_json) (Some Values.DescribeFolderContentsResponse.error_to_json)]) let describe_groups = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and organizationId = flag "organization-id" (optional string) ~doc:"STRING IdType" and marker = flag "marker" (optional string) ~doc:"STRING MarkerType" and limit = flag "limit" (optional int) ~doc:"INT PositiveIntegerType" and searchQuery = flag "search-query" (required string) ~doc:"STRING SearchQueryType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_groups (Values.DescribeGroupsRequest.make ?authenticationToken ?organizationId ?marker ?limit ~searchQuery ()) (Some Values.DescribeGroupsResponse.to_json) (Some Values.DescribeGroupsResponse.error_to_json)]) let describe_notification_subscriptions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and organizationId = flag "organization-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_notification_subscriptions (Values.DescribeNotificationSubscriptionsRequest.make ?marker ?limit ~organizationId ()) (Some Values.DescribeNotificationSubscriptionsResponse.to_json) (Some Values.DescribeNotificationSubscriptionsResponse.error_to_json)]) let describe_resource_permissions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and principalId = flag "principal-id" (optional string) ~doc:"STRING IdType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_resource_permissions (Values.DescribeResourcePermissionsRequest.make ?authenticationToken ?principalId ?limit ?marker ~resourceId ()) (Some Values.DescribeResourcePermissionsResponse.to_json) (Some Values.DescribeResourcePermissionsResponse.error_to_json)]) let describe_root_folders = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and authenticationToken = flag "authentication-token" (required string) ~doc:"STRING AuthenticationHeaderType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_root_folders (Values.DescribeRootFoldersRequest.make ?limit ?marker ~authenticationToken ()) (Some Values.DescribeRootFoldersResponse.to_json) (Some Values.DescribeRootFoldersResponse.error_to_json)]) let describe_users = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and organizationId = flag "organization-id" (optional string) ~doc:"STRING IdType" and userIds = flag "user-ids" (optional string) ~doc:"STRING UserIdsType" and query = flag "query" (optional string) ~doc:"STRING SearchQueryType" and include_ = flag "include-" (optional json_arg) ~doc:"JSON UserFilterType" and order = flag "order" (optional json_arg) ~doc:"JSON OrderType" and sort = flag "sort" (optional json_arg) ~doc:"JSON UserSortType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and fields = flag "fields" (optional string) ~doc:"STRING FieldNamesType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.describe_users (Values.DescribeUsersRequest.make ?authenticationToken ?organizationId ?userIds ?query ?include_:(Option.map ~f:Values.UserFilterType.of_json include_) ?order:(Option.map ~f:Values.OrderType.of_json order) ?sort:(Option.map ~f:Values.UserSortType.of_json sort) ?marker ?limit ?fields ()) (Some Values.DescribeUsersResponse.to_json) (Some Values.DescribeUsersResponse.error_to_json)]) let get_current_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (required string) ~doc:"STRING AuthenticationHeaderType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_current_user (Values.GetCurrentUserRequest.make ~authenticationToken ()) (Some Values.GetCurrentUserResponse.to_json) (Some Values.GetCurrentUserResponse.error_to_json)]) let get_document = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and includeCustomMetadata = flag "include-custom-metadata" (optional bool) ~doc:"BOOL BooleanType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_document (Values.GetDocumentRequest.make ?authenticationToken ?includeCustomMetadata ~documentId ()) (Some Values.GetDocumentResponse.to_json) (Some Values.GetDocumentResponse.error_to_json)]) let get_document_path = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and fields = flag "fields" (optional string) ~doc:"STRING FieldNamesType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and documentId = flag "document-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_document_path (Values.GetDocumentPathRequest.make ?authenticationToken ?limit ?fields ?marker ~documentId ()) (Some Values.GetDocumentPathResponse.to_json) (Some Values.GetDocumentPathResponse.error_to_json)]) let get_document_version = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and fields = flag "fields" (optional string) ~doc:"STRING FieldNamesType" and includeCustomMetadata = flag "include-custom-metadata" (optional bool) ~doc:"BOOL BooleanType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_document_version (Values.GetDocumentVersionRequest.make ?authenticationToken ?fields ?includeCustomMetadata ~documentId ~versionId ()) (Some Values.GetDocumentVersionResponse.to_json) (Some Values.GetDocumentVersionResponse.error_to_json)]) let get_folder = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and includeCustomMetadata = flag "include-custom-metadata" (optional bool) ~doc:"BOOL BooleanType" and folderId = flag "folder-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_folder (Values.GetFolderRequest.make ?authenticationToken ?includeCustomMetadata ~folderId ()) (Some Values.GetFolderResponse.to_json) (Some Values.GetFolderResponse.error_to_json)]) let get_folder_path = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and fields = flag "fields" (optional string) ~doc:"STRING FieldNamesType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" and folderId = flag "folder-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_folder_path (Values.GetFolderPathRequest.make ?authenticationToken ?limit ?fields ?marker ~folderId ()) (Some Values.GetFolderPathResponse.to_json) (Some Values.GetFolderPathResponse.error_to_json)]) let get_resources = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and userId = flag "user-id" (optional string) ~doc:"STRING IdType" and collectionType = flag "collection-type" (optional json_arg) ~doc:"JSON ResourceCollectionType" and limit = flag "limit" (optional int) ~doc:"INT LimitType" and marker = flag "marker" (optional string) ~doc:"STRING PageMarkerType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.get_resources (Values.GetResourcesRequest.make ?authenticationToken ?userId ?collectionType:(Option.map ~f:Values.ResourceCollectionType.of_json collectionType) ?limit ?marker ()) (Some Values.GetResourcesResponse.to_json) (Some Values.GetResourcesResponse.error_to_json)]) let initiate_document_version_upload = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and id = flag "id" (optional string) ~doc:"STRING ResourceIdType" and name = flag "name" (optional string) ~doc:"STRING ResourceNameType" and contentCreatedTimestamp = flag "content-created-timestamp" (optional json_arg) ~doc:"JSON TimestampType" and contentModifiedTimestamp = flag "content-modified-timestamp" (optional json_arg) ~doc:"JSON TimestampType" and contentType = flag "content-type" (optional string) ~doc:"STRING DocumentContentType" and documentSizeInBytes = flag "document-size-in-bytes" (optional json_arg) ~doc:"JSON SizeType" and parentFolderId = flag "parent-folder-id" (optional string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.initiate_document_version_upload (Values.InitiateDocumentVersionUploadRequest.make ?authenticationToken ?id ?name ?contentCreatedTimestamp:(Option.map ~f:Values.TimestampType.of_json contentCreatedTimestamp) ?contentModifiedTimestamp:(Option.map ~f:Values.TimestampType.of_json contentModifiedTimestamp) ?contentType ?documentSizeInBytes:(Option.map ~f:Values.SizeType.of_json documentSizeInBytes) ?parentFolderId ()) (Some Values.InitiateDocumentVersionUploadResponse.to_json) (Some Values.InitiateDocumentVersionUploadResponse.error_to_json)]) let remove_all_resource_permissions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.remove_all_resource_permissions (Values.RemoveAllResourcePermissionsRequest.make ?authenticationToken ~resourceId ()) None None]) let remove_resource_permission = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and principalType = flag "principal-type" (optional json_arg) ~doc:"JSON PrincipalType" and resourceId = flag "resource-id" (required string) ~doc:"STRING ResourceIdType" and principalId = flag "principal-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.remove_resource_permission (Values.RemoveResourcePermissionRequest.make ?authenticationToken ?principalType:(Option.map ~f:Values.PrincipalType.of_json principalType) ~resourceId ~principalId ()) None None]) let restore_document_versions = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.restore_document_versions (Values.RestoreDocumentVersionsRequest.make ?authenticationToken ~documentId ()) None None]) let search_resources = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and queryText = flag "query-text" (optional string) ~doc:"STRING SearchQueryType" and queryScopes = flag "query-scopes" (optional json_arg) ~doc:"JSON SearchQueryScopeTypeList" and organizationId = flag "organization-id" (optional string) ~doc:"STRING IdType" and additionalResponseFields = flag "additional-response-fields" (optional json_arg) ~doc:"JSON AdditionalResponseFieldsList" and filters = flag "filters" (optional json_arg) ~doc:"JSON Filters" and orderBy = flag "order-by" (optional json_arg) ~doc:"JSON SearchResultSortList" and limit = flag "limit" (optional int) ~doc:"INT SearchResultsLimitType" and marker = flag "marker" (optional string) ~doc:"STRING NextMarkerType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.search_resources (Values.SearchResourcesRequest.make ?authenticationToken ?queryText ?queryScopes:(Option.map ~f:Values.SearchQueryScopeTypeList.of_json queryScopes) ?organizationId ?additionalResponseFields:(Option.map ~f:Values.AdditionalResponseFieldsList.of_json additionalResponseFields) ?filters:(Option.map ~f:Values.Filters.of_json filters) ?orderBy:(Option.map ~f:Values.SearchResultSortList.of_json orderBy) ?limit ?marker ()) (Some Values.SearchResourcesResponse.to_json) (Some Values.SearchResourcesResponse.error_to_json)]) let update_document = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and name = flag "name" (optional string) ~doc:"STRING ResourceNameType" and parentFolderId = flag "parent-folder-id" (optional string) ~doc:"STRING ResourceIdType" and resourceState = flag "resource-state" (optional json_arg) ~doc:"JSON ResourceStateType" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.update_document (Values.UpdateDocumentRequest.make ?authenticationToken ?name ?parentFolderId ?resourceState:(Option.map ~f:Values.ResourceStateType.of_json resourceState) ~documentId ()) None None]) let update_document_version = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and versionStatus = flag "version-status" (optional json_arg) ~doc:"JSON DocumentVersionStatus" and documentId = flag "document-id" (required string) ~doc:"STRING ResourceIdType" and versionId = flag "version-id" (required string) ~doc:"STRING DocumentVersionIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.update_document_version (Values.UpdateDocumentVersionRequest.make ?authenticationToken ?versionStatus:(Option.map ~f:Values.DocumentVersionStatus.of_json versionStatus) ~documentId ~versionId ()) None None]) let update_folder = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and name = flag "name" (optional string) ~doc:"STRING ResourceNameType" and parentFolderId = flag "parent-folder-id" (optional string) ~doc:"STRING ResourceIdType" and resourceState = flag "resource-state" (optional json_arg) ~doc:"JSON ResourceStateType" and folderId = flag "folder-id" (required string) ~doc:"STRING ResourceIdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.update_folder (Values.UpdateFolderRequest.make ?authenticationToken ?name ?parentFolderId ?resourceState:(Option.map ~f:Values.ResourceStateType.of_json resourceState) ~folderId ()) None None]) let update_user = Command.async ~summary:"" ([%map_open.Command let cli_profile = flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use" and cli_region = flag "-cli-region" (optional string) ~doc:"REGION override region" and endpoint_url = flag "-endpoint-url" (optional string) ~doc:"URL override endpoint url" and authenticationToken = flag "authentication-token" (optional string) ~doc:"STRING AuthenticationHeaderType" and givenName = flag "given-name" (optional string) ~doc:"STRING UserAttributeValueType" and surname = flag "surname" (optional string) ~doc:"STRING UserAttributeValueType" and type_ = flag "type-" (optional json_arg) ~doc:"JSON UserType" and storageRule = flag "storage-rule" (optional json_arg) ~doc:"JSON StorageRuleType" and timeZoneId = flag "time-zone-id" (optional string) ~doc:"STRING TimeZoneIdType" and locale = flag "locale" (optional json_arg) ~doc:"JSON LocaleType" and grantPoweruserPrivileges = flag "grant-poweruser-privileges" (optional json_arg) ~doc:"JSON BooleanEnumType" and userId = flag "user-id" (required string) ~doc:"STRING IdType" in fun () -> call ?endpoint_url ?profile:cli_profile ?region:cli_region Io.update_user (Values.UpdateUserRequest.make ?authenticationToken ?givenName ?surname ?type_:(Option.map ~f:Values.UserType.of_json type_) ?storageRule:(Option.map ~f:Values.StorageRuleType.of_json storageRule) ?timeZoneId ?locale:(Option.map ~f:Values.LocaleType.of_json locale) ?grantPoweruserPrivileges:(Option.map ~f:Values.BooleanEnumType.of_json grantPoweruserPrivileges) ~userId ()) (Some Values.UpdateUserResponse.to_json) (Some Values.UpdateUserResponse.error_to_json)]) let main = Command.group ~summary:((Awso.Service.to_string Values.service) ^ " commands") [("abort-document-version-upload", abort_document_version_upload); ("activate-user", activate_user); ("add-resource-permissions", add_resource_permissions); ("create-comment", create_comment); ("create-custom-metadata", create_custom_metadata); ("create-folder", create_folder); ("create-labels", create_labels); ("create-notification-subscription", create_notification_subscription); ("create-user", create_user); ("deactivate-user", deactivate_user); ("delete-comment", delete_comment); ("delete-custom-metadata", delete_custom_metadata); ("delete-document", delete_document); ("delete-document-version", delete_document_version); ("delete-folder", delete_folder); ("delete-folder-contents", delete_folder_contents); ("delete-labels", delete_labels); ("delete-notification-subscription", delete_notification_subscription); ("delete-user", delete_user); ("describe-activities", describe_activities); ("describe-comments", describe_comments); ("describe-document-versions", describe_document_versions); ("describe-folder-contents", describe_folder_contents); ("describe-groups", describe_groups); ("describe-notification-subscriptions", describe_notification_subscriptions); ("describe-resource-permissions", describe_resource_permissions); ("describe-root-folders", describe_root_folders); ("describe-users", describe_users); ("get-current-user", get_current_user); ("get-document", get_document); ("get-document-path", get_document_path); ("get-document-version", get_document_version); ("get-folder", get_folder); ("get-folder-path", get_folder_path); ("get-resources", get_resources); ("initiate-document-version-upload", initiate_document_version_upload); ("remove-all-resource-permissions", remove_all_resource_permissions); ("remove-resource-permission", remove_resource_permission); ("restore-document-versions", restore_document_versions); ("search-resources", search_resources); ("update-document", update_document); ("update-document-version", update_document_version); ("update-folder", update_folder); ("update-user", update_user)]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>