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
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
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 associate_file_system_aliases =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId"
and aliases =
flag "aliases" (required json_arg) ~doc:"JSON AlternateDNSNames" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.associate_file_system_aliases
(Values.AssociateFileSystemAliasesRequest.make ?clientRequestToken
~fileSystemId
~aliases:(Values.AlternateDNSNames.of_json aliases) ())
(Some Values.AssociateFileSystemAliasesResponse.to_json)
(Some Values.AssociateFileSystemAliasesResponse.error_to_json)])
let cancel_data_repository_task =
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 taskId = flag "task-id" (required string) ~doc:"STRING TaskId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.cancel_data_repository_task
(Values.CancelDataRepositoryTaskRequest.make ~taskId ())
(Some Values.CancelDataRepositoryTaskResponse.to_json)
(Some Values.CancelDataRepositoryTaskResponse.error_to_json)])
let copy_backup =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and sourceRegion =
flag "source-region" (optional string) ~doc:"STRING Region"
and kmsKeyId =
flag "kms-key-id" (optional string) ~doc:"STRING KmsKeyId"
and copyTags = flag "copy-tags" (optional bool) ~doc:"BOOL Flag"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and sourceBackupId =
flag "source-backup-id" (required string)
~doc:"STRING SourceBackupId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.copy_backup
(Values.CopyBackupRequest.make ?clientRequestToken ?sourceRegion
?kmsKeyId ?copyTags
?tags:(Option.map ~f:Values.Tags.of_json tags) ~sourceBackupId
()) (Some Values.CopyBackupResponse.to_json)
(Some Values.CopyBackupResponse.error_to_json)])
let copy_snapshot_and_update_volume =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and copyStrategy =
flag "copy-strategy" (optional json_arg)
~doc:"JSON OpenZFSCopyStrategy"
and options =
flag "options" (optional json_arg)
~doc:"JSON UpdateOpenZFSVolumeOptions"
and volumeId =
flag "volume-id" (required string) ~doc:"STRING VolumeId"
and sourceSnapshotARN =
flag "source-snapshot-a-r-n" (required string)
~doc:"STRING ResourceARN" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.copy_snapshot_and_update_volume
(Values.CopySnapshotAndUpdateVolumeRequest.make
?clientRequestToken
?copyStrategy:(Option.map ~f:Values.OpenZFSCopyStrategy.of_json
copyStrategy)
?options:(Option.map
~f:Values.UpdateOpenZFSVolumeOptions.of_json
options) ~volumeId ~sourceSnapshotARN ())
(Some Values.CopySnapshotAndUpdateVolumeResponse.to_json)
(Some Values.CopySnapshotAndUpdateVolumeResponse.error_to_json)])
let create_and_attach_s3_access_point =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON CreateAndAttachS3AccessPointOpenZFSConfiguration"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON CreateAndAttachS3AccessPointOntapConfiguration"
and s3AccessPoint =
flag "s3-access-point" (optional json_arg)
~doc:"JSON CreateAndAttachS3AccessPointS3Configuration"
and name =
flag "name" (required string)
~doc:"STRING S3AccessPointAttachmentName"
and type_ =
flag "type-" (required json_arg)
~doc:"JSON S3AccessPointAttachmentType" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_and_attach_s3_access_point
(Values.CreateAndAttachS3AccessPointRequest.make
?clientRequestToken
?openZFSConfiguration:(Option.map
~f:Values.CreateAndAttachS3AccessPointOpenZFSConfiguration.of_json
openZFSConfiguration)
?ontapConfiguration:(Option.map
~f:Values.CreateAndAttachS3AccessPointOntapConfiguration.of_json
ontapConfiguration)
?s3AccessPoint:(Option.map
~f:Values.CreateAndAttachS3AccessPointS3Configuration.of_json
s3AccessPoint) ~name
~type_:(Values.S3AccessPointAttachmentType.of_json type_) ())
(Some Values.CreateAndAttachS3AccessPointResponse.to_json)
(Some Values.CreateAndAttachS3AccessPointResponse.error_to_json)])
let create_backup =
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 fileSystemId =
flag "file-system-id" (optional string) ~doc:"STRING FileSystemId"
and clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and volumeId =
flag "volume-id" (optional string) ~doc:"STRING VolumeId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_backup
(Values.CreateBackupRequest.make ?fileSystemId ?clientRequestToken
?tags:(Option.map ~f:Values.Tags.of_json tags) ?volumeId ())
(Some Values.CreateBackupResponse.to_json)
(Some Values.CreateBackupResponse.error_to_json)])
let create_data_repository_association =
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 fileSystemPath =
flag "file-system-path" (optional string) ~doc:"STRING Namespace"
and batchImportMetaDataOnCreate =
flag "batch-import-meta-data-on-create" (optional bool)
~doc:"BOOL BatchImportMetaDataOnCreate"
and importedFileChunkSize =
flag "imported-file-chunk-size" (optional int) ~doc:"INT Megabytes"
and s3 =
flag "s3" (optional json_arg)
~doc:"JSON S3DataRepositoryConfiguration"
and clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId"
and dataRepositoryPath =
flag "data-repository-path" (required string)
~doc:"STRING ArchivePath" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_data_repository_association
(Values.CreateDataRepositoryAssociationRequest.make
?fileSystemPath ?batchImportMetaDataOnCreate
?importedFileChunkSize
?s3:(Option.map ~f:Values.S3DataRepositoryConfiguration.of_json
s3) ?clientRequestToken
?tags:(Option.map ~f:Values.Tags.of_json tags) ~fileSystemId
~dataRepositoryPath ())
(Some Values.CreateDataRepositoryAssociationResponse.to_json)
(Some Values.CreateDataRepositoryAssociationResponse.error_to_json)])
let create_data_repository_task =
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 paths =
flag "paths" (optional json_arg) ~doc:"JSON DataRepositoryTaskPaths"
and clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and capacityToRelease =
flag "capacity-to-release" (optional json_arg)
~doc:"JSON CapacityToRelease"
and releaseConfiguration =
flag "release-configuration" (optional json_arg)
~doc:"JSON ReleaseConfiguration"
and type_ =
flag "type-" (required json_arg) ~doc:"JSON DataRepositoryTaskType"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId"
and report =
flag "report" (required json_arg) ~doc:"JSON CompletionReport" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_data_repository_task
(Values.CreateDataRepositoryTaskRequest.make
?paths:(Option.map ~f:Values.DataRepositoryTaskPaths.of_json
paths) ?clientRequestToken
?tags:(Option.map ~f:Values.Tags.of_json tags)
?capacityToRelease:(Option.map
~f:Values.CapacityToRelease.of_json
capacityToRelease)
?releaseConfiguration:(Option.map
~f:Values.ReleaseConfiguration.of_json
releaseConfiguration)
~type_:(Values.DataRepositoryTaskType.of_json type_)
~fileSystemId ~report:(Values.CompletionReport.of_json report)
()) (Some Values.CreateDataRepositoryTaskResponse.to_json)
(Some Values.CreateDataRepositoryTaskResponse.error_to_json)])
let create_file_cache =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and securityGroupIds =
flag "security-group-ids" (optional json_arg)
~doc:"JSON SecurityGroupIds"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and copyTagsToDataRepositoryAssociations =
flag "copy-tags-to-data-repository-associations" (optional bool)
~doc:"BOOL CopyTagsToDataRepositoryAssociations"
and kmsKeyId =
flag "kms-key-id" (optional string) ~doc:"STRING KmsKeyId"
and lustreConfiguration =
flag "lustre-configuration" (optional json_arg)
~doc:"JSON CreateFileCacheLustreConfiguration"
and dataRepositoryAssociations =
flag "data-repository-associations" (optional json_arg)
~doc:"JSON CreateFileCacheDataRepositoryAssociations"
and fileCacheType =
flag "file-cache-type" (required json_arg) ~doc:"JSON FileCacheType"
and fileCacheTypeVersion =
flag "file-cache-type-version" (required string)
~doc:"STRING FileSystemTypeVersion"
and storageCapacity =
flag "storage-capacity" (required int) ~doc:"INT StorageCapacity"
and subnetIds =
flag "subnet-ids" (required json_arg) ~doc:"JSON SubnetIds" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_file_cache
(Values.CreateFileCacheRequest.make ?clientRequestToken
?securityGroupIds:(Option.map
~f:Values.SecurityGroupIds.of_json
securityGroupIds)
?tags:(Option.map ~f:Values.Tags.of_json tags)
?copyTagsToDataRepositoryAssociations ?kmsKeyId
?lustreConfiguration:(Option.map
~f:Values.CreateFileCacheLustreConfiguration.of_json
lustreConfiguration)
?dataRepositoryAssociations:(Option.map
~f:Values.CreateFileCacheDataRepositoryAssociations.of_json
dataRepositoryAssociations)
~fileCacheType:(Values.FileCacheType.of_json fileCacheType)
~fileCacheTypeVersion ~storageCapacity
~subnetIds:(Values.SubnetIds.of_json subnetIds) ())
(Some Values.CreateFileCacheResponse.to_json)
(Some Values.CreateFileCacheResponse.error_to_json)])
let create_file_system =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and storageCapacity =
flag "storage-capacity" (optional int) ~doc:"INT StorageCapacity"
and storageType =
flag "storage-type" (optional json_arg) ~doc:"JSON StorageType"
and securityGroupIds =
flag "security-group-ids" (optional json_arg)
~doc:"JSON SecurityGroupIds"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and kmsKeyId =
flag "kms-key-id" (optional string) ~doc:"STRING KmsKeyId"
and windowsConfiguration =
flag "windows-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemWindowsConfiguration"
and lustreConfiguration =
flag "lustre-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemLustreConfiguration"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemOntapConfiguration"
and fileSystemTypeVersion =
flag "file-system-type-version" (optional string)
~doc:"STRING FileSystemTypeVersion"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemOpenZFSConfiguration"
and networkType =
flag "network-type" (optional json_arg) ~doc:"JSON NetworkType"
and fileSystemType =
flag "file-system-type" (required json_arg)
~doc:"JSON FileSystemType"
and subnetIds =
flag "subnet-ids" (required json_arg) ~doc:"JSON SubnetIds" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_file_system
(Values.CreateFileSystemRequest.make ?clientRequestToken
?storageCapacity
?storageType:(Option.map ~f:Values.StorageType.of_json
storageType)
?securityGroupIds:(Option.map
~f:Values.SecurityGroupIds.of_json
securityGroupIds)
?tags:(Option.map ~f:Values.Tags.of_json tags) ?kmsKeyId
?windowsConfiguration:(Option.map
~f:Values.CreateFileSystemWindowsConfiguration.of_json
windowsConfiguration)
?lustreConfiguration:(Option.map
~f:Values.CreateFileSystemLustreConfiguration.of_json
lustreConfiguration)
?ontapConfiguration:(Option.map
~f:Values.CreateFileSystemOntapConfiguration.of_json
ontapConfiguration)
?fileSystemTypeVersion
?openZFSConfiguration:(Option.map
~f:Values.CreateFileSystemOpenZFSConfiguration.of_json
openZFSConfiguration)
?networkType:(Option.map ~f:Values.NetworkType.of_json
networkType)
~fileSystemType:(Values.FileSystemType.of_json fileSystemType)
~subnetIds:(Values.SubnetIds.of_json subnetIds) ())
(Some Values.CreateFileSystemResponse.to_json)
(Some Values.CreateFileSystemResponse.error_to_json)])
let create_file_system_from_backup =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and securityGroupIds =
flag "security-group-ids" (optional json_arg)
~doc:"JSON SecurityGroupIds"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and windowsConfiguration =
flag "windows-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemWindowsConfiguration"
and lustreConfiguration =
flag "lustre-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemLustreConfiguration"
and storageType =
flag "storage-type" (optional json_arg) ~doc:"JSON StorageType"
and kmsKeyId =
flag "kms-key-id" (optional string) ~doc:"STRING KmsKeyId"
and fileSystemTypeVersion =
flag "file-system-type-version" (optional string)
~doc:"STRING FileSystemTypeVersion"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON CreateFileSystemOpenZFSConfiguration"
and storageCapacity =
flag "storage-capacity" (optional int) ~doc:"INT StorageCapacity"
and networkType =
flag "network-type" (optional json_arg) ~doc:"JSON NetworkType"
and backupId =
flag "backup-id" (required string) ~doc:"STRING BackupId"
and subnetIds =
flag "subnet-ids" (required json_arg) ~doc:"JSON SubnetIds" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_file_system_from_backup
(Values.CreateFileSystemFromBackupRequest.make ?clientRequestToken
?securityGroupIds:(Option.map
~f:Values.SecurityGroupIds.of_json
securityGroupIds)
?tags:(Option.map ~f:Values.Tags.of_json tags)
?windowsConfiguration:(Option.map
~f:Values.CreateFileSystemWindowsConfiguration.of_json
windowsConfiguration)
?lustreConfiguration:(Option.map
~f:Values.CreateFileSystemLustreConfiguration.of_json
lustreConfiguration)
?storageType:(Option.map ~f:Values.StorageType.of_json
storageType) ?kmsKeyId ?fileSystemTypeVersion
?openZFSConfiguration:(Option.map
~f:Values.CreateFileSystemOpenZFSConfiguration.of_json
openZFSConfiguration) ?storageCapacity
?networkType:(Option.map ~f:Values.NetworkType.of_json
networkType) ~backupId
~subnetIds:(Values.SubnetIds.of_json subnetIds) ())
(Some Values.CreateFileSystemFromBackupResponse.to_json)
(Some Values.CreateFileSystemFromBackupResponse.error_to_json)])
let create_snapshot =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and name = flag "name" (required string) ~doc:"STRING SnapshotName"
and volumeId =
flag "volume-id" (required string) ~doc:"STRING VolumeId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_snapshot
(Values.CreateSnapshotRequest.make ?clientRequestToken
?tags:(Option.map ~f:Values.Tags.of_json tags) ~name ~volumeId
()) (Some Values.CreateSnapshotResponse.to_json)
(Some Values.CreateSnapshotResponse.error_to_json)])
let create_storage_virtual_machine =
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 activeDirectoryConfiguration =
flag "active-directory-configuration" (optional json_arg)
~doc:"JSON CreateSvmActiveDirectoryConfiguration"
and clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and svmAdminPassword =
flag "svm-admin-password" (optional string)
~doc:"STRING AdminPassword"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and rootVolumeSecurityStyle =
flag "root-volume-security-style" (optional json_arg)
~doc:"JSON StorageVirtualMachineRootVolumeSecurityStyle"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId"
and name =
flag "name" (required string)
~doc:"STRING StorageVirtualMachineName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_storage_virtual_machine
(Values.CreateStorageVirtualMachineRequest.make
?activeDirectoryConfiguration:(Option.map
~f:Values.CreateSvmActiveDirectoryConfiguration.of_json
activeDirectoryConfiguration)
?clientRequestToken ?svmAdminPassword
?tags:(Option.map ~f:Values.Tags.of_json tags)
?rootVolumeSecurityStyle:(Option.map
~f:Values.StorageVirtualMachineRootVolumeSecurityStyle.of_json
rootVolumeSecurityStyle)
~fileSystemId ~name ())
(Some Values.CreateStorageVirtualMachineResponse.to_json)
(Some Values.CreateStorageVirtualMachineResponse.error_to_json)])
let create_volume =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON CreateOntapVolumeConfiguration"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON CreateOpenZFSVolumeConfiguration"
and volumeType =
flag "volume-type" (required json_arg) ~doc:"JSON VolumeType"
and name = flag "name" (required string) ~doc:"STRING VolumeName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_volume
(Values.CreateVolumeRequest.make ?clientRequestToken
?ontapConfiguration:(Option.map
~f:Values.CreateOntapVolumeConfiguration.of_json
ontapConfiguration)
?tags:(Option.map ~f:Values.Tags.of_json tags)
?openZFSConfiguration:(Option.map
~f:Values.CreateOpenZFSVolumeConfiguration.of_json
openZFSConfiguration)
~volumeType:(Values.VolumeType.of_json volumeType) ~name ())
(Some Values.CreateVolumeResponse.to_json)
(Some Values.CreateVolumeResponse.error_to_json)])
let create_volume_from_backup =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON CreateOntapVolumeConfiguration"
and tags = flag "tags" (optional json_arg) ~doc:"JSON Tags"
and backupId =
flag "backup-id" (required string) ~doc:"STRING BackupId"
and name = flag "name" (required string) ~doc:"STRING VolumeName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_volume_from_backup
(Values.CreateVolumeFromBackupRequest.make ?clientRequestToken
?ontapConfiguration:(Option.map
~f:Values.CreateOntapVolumeConfiguration.of_json
ontapConfiguration)
?tags:(Option.map ~f:Values.Tags.of_json tags) ~backupId ~name
()) (Some Values.CreateVolumeFromBackupResponse.to_json)
(Some Values.CreateVolumeFromBackupResponse.error_to_json)])
let delete_backup =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and backupId =
flag "backup-id" (required string) ~doc:"STRING BackupId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_backup
(Values.DeleteBackupRequest.make ?clientRequestToken ~backupId ())
(Some Values.DeleteBackupResponse.to_json)
(Some Values.DeleteBackupResponse.error_to_json)])
let delete_data_repository_association =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and deleteDataInFileSystem =
flag "delete-data-in-file-system" (optional bool)
~doc:"BOOL DeleteDataInFileSystem"
and associationId =
flag "association-id" (required string)
~doc:"STRING DataRepositoryAssociationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_data_repository_association
(Values.DeleteDataRepositoryAssociationRequest.make
?clientRequestToken ?deleteDataInFileSystem ~associationId ())
(Some Values.DeleteDataRepositoryAssociationResponse.to_json)
(Some Values.DeleteDataRepositoryAssociationResponse.error_to_json)])
let delete_file_cache =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and fileCacheId =
flag "file-cache-id" (required string) ~doc:"STRING FileCacheId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_file_cache
(Values.DeleteFileCacheRequest.make ?clientRequestToken
~fileCacheId ()) (Some Values.DeleteFileCacheResponse.to_json)
(Some Values.DeleteFileCacheResponse.error_to_json)])
let delete_file_system =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and windowsConfiguration =
flag "windows-configuration" (optional json_arg)
~doc:"JSON DeleteFileSystemWindowsConfiguration"
and lustreConfiguration =
flag "lustre-configuration" (optional json_arg)
~doc:"JSON DeleteFileSystemLustreConfiguration"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON DeleteFileSystemOpenZFSConfiguration"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_file_system
(Values.DeleteFileSystemRequest.make ?clientRequestToken
?windowsConfiguration:(Option.map
~f:Values.DeleteFileSystemWindowsConfiguration.of_json
windowsConfiguration)
?lustreConfiguration:(Option.map
~f:Values.DeleteFileSystemLustreConfiguration.of_json
lustreConfiguration)
?openZFSConfiguration:(Option.map
~f:Values.DeleteFileSystemOpenZFSConfiguration.of_json
openZFSConfiguration) ~fileSystemId ())
(Some Values.DeleteFileSystemResponse.to_json)
(Some Values.DeleteFileSystemResponse.error_to_json)])
let delete_snapshot =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and snapshotId =
flag "snapshot-id" (required string) ~doc:"STRING SnapshotId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_snapshot
(Values.DeleteSnapshotRequest.make ?clientRequestToken ~snapshotId
()) (Some Values.DeleteSnapshotResponse.to_json)
(Some Values.DeleteSnapshotResponse.error_to_json)])
let delete_storage_virtual_machine =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and storageVirtualMachineId =
flag "storage-virtual-machine-id" (required string)
~doc:"STRING StorageVirtualMachineId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_storage_virtual_machine
(Values.DeleteStorageVirtualMachineRequest.make
?clientRequestToken ~storageVirtualMachineId ())
(Some Values.DeleteStorageVirtualMachineResponse.to_json)
(Some Values.DeleteStorageVirtualMachineResponse.error_to_json)])
let delete_volume =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON DeleteVolumeOntapConfiguration"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON DeleteVolumeOpenZFSConfiguration"
and volumeId =
flag "volume-id" (required string) ~doc:"STRING VolumeId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_volume
(Values.DeleteVolumeRequest.make ?clientRequestToken
?ontapConfiguration:(Option.map
~f:Values.DeleteVolumeOntapConfiguration.of_json
ontapConfiguration)
?openZFSConfiguration:(Option.map
~f:Values.DeleteVolumeOpenZFSConfiguration.of_json
openZFSConfiguration) ~volumeId ())
(Some Values.DeleteVolumeResponse.to_json)
(Some Values.DeleteVolumeResponse.error_to_json)])
let describe_backups =
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 backupIds =
flag "backup-ids" (optional json_arg) ~doc:"JSON BackupIds"
and filters = flag "filters" (optional json_arg) ~doc:"JSON Filters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_backups
(Values.DescribeBackupsRequest.make
?backupIds:(Option.map ~f:Values.BackupIds.of_json backupIds)
?filters:(Option.map ~f:Values.Filters.of_json filters)
?maxResults ?nextToken ())
(Some Values.DescribeBackupsResponse.to_json)
(Some Values.DescribeBackupsResponse.error_to_json)])
let describe_data_repository_associations =
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 associationIds =
flag "association-ids" (optional json_arg)
~doc:"JSON DataRepositoryAssociationIds"
and filters = flag "filters" (optional json_arg) ~doc:"JSON Filters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT LimitedMaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_data_repository_associations
(Values.DescribeDataRepositoryAssociationsRequest.make
?associationIds:(Option.map
~f:Values.DataRepositoryAssociationIds.of_json
associationIds)
?filters:(Option.map ~f:Values.Filters.of_json filters)
?maxResults ?nextToken ())
(Some Values.DescribeDataRepositoryAssociationsResponse.to_json)
(Some
Values.DescribeDataRepositoryAssociationsResponse.error_to_json)])
let describe_data_repository_tasks =
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 taskIds = flag "task-ids" (optional json_arg) ~doc:"JSON TaskIds"
and filters =
flag "filters" (optional json_arg)
~doc:"JSON DataRepositoryTaskFilters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_data_repository_tasks
(Values.DescribeDataRepositoryTasksRequest.make
?taskIds:(Option.map ~f:Values.TaskIds.of_json taskIds)
?filters:(Option.map
~f:Values.DataRepositoryTaskFilters.of_json filters)
?maxResults ?nextToken ())
(Some Values.DescribeDataRepositoryTasksResponse.to_json)
(Some Values.DescribeDataRepositoryTasksResponse.error_to_json)])
let describe_file_caches =
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 fileCacheIds =
flag "file-cache-ids" (optional json_arg) ~doc:"JSON FileCacheIds"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_file_caches
(Values.DescribeFileCachesRequest.make
?fileCacheIds:(Option.map ~f:Values.FileCacheIds.of_json
fileCacheIds) ?maxResults ?nextToken ())
(Some Values.DescribeFileCachesResponse.to_json)
(Some Values.DescribeFileCachesResponse.error_to_json)])
let describe_file_system_aliases =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_file_system_aliases
(Values.DescribeFileSystemAliasesRequest.make ?clientRequestToken
?maxResults ?nextToken ~fileSystemId ())
(Some Values.DescribeFileSystemAliasesResponse.to_json)
(Some Values.DescribeFileSystemAliasesResponse.error_to_json)])
let describe_file_systems =
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 fileSystemIds =
flag "file-system-ids" (optional json_arg) ~doc:"JSON FileSystemIds"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_file_systems
(Values.DescribeFileSystemsRequest.make
?fileSystemIds:(Option.map ~f:Values.FileSystemIds.of_json
fileSystemIds) ?maxResults ?nextToken ())
(Some Values.DescribeFileSystemsResponse.to_json)
(Some Values.DescribeFileSystemsResponse.error_to_json)])
let describe_s3_access_point_attachments =
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 names =
flag "names" (optional json_arg)
~doc:"JSON S3AccessPointAttachmentNames"
and filters =
flag "filters" (optional json_arg)
~doc:"JSON S3AccessPointAttachmentsFilters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_s3_access_point_attachments
(Values.DescribeS3AccessPointAttachmentsRequest.make
?names:(Option.map
~f:Values.S3AccessPointAttachmentNames.of_json names)
?filters:(Option.map
~f:Values.S3AccessPointAttachmentsFilters.of_json
filters) ?maxResults ?nextToken ())
(Some Values.DescribeS3AccessPointAttachmentsResponse.to_json)
(Some
Values.DescribeS3AccessPointAttachmentsResponse.error_to_json)])
let describe_shared_vpc_configuration =
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 () = return () in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_shared_vpc_configuration
(Values.DescribeSharedVpcConfigurationRequest.make ())
(Some Values.DescribeSharedVpcConfigurationResponse.to_json)
(Some Values.DescribeSharedVpcConfigurationResponse.error_to_json)])
let describe_snapshots =
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 snapshotIds =
flag "snapshot-ids" (optional json_arg) ~doc:"JSON SnapshotIds"
and filters =
flag "filters" (optional json_arg) ~doc:"JSON SnapshotFilters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and includeShared =
flag "include-shared" (optional bool) ~doc:"BOOL IncludeShared" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_snapshots
(Values.DescribeSnapshotsRequest.make
?snapshotIds:(Option.map ~f:Values.SnapshotIds.of_json
snapshotIds)
?filters:(Option.map ~f:Values.SnapshotFilters.of_json filters)
?maxResults ?nextToken ?includeShared ())
(Some Values.DescribeSnapshotsResponse.to_json)
(Some Values.DescribeSnapshotsResponse.error_to_json)])
let describe_storage_virtual_machines =
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 storageVirtualMachineIds =
flag "storage-virtual-machine-ids" (optional json_arg)
~doc:"JSON StorageVirtualMachineIds"
and filters =
flag "filters" (optional json_arg)
~doc:"JSON StorageVirtualMachineFilters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_storage_virtual_machines
(Values.DescribeStorageVirtualMachinesRequest.make
?storageVirtualMachineIds:(Option.map
~f:Values.StorageVirtualMachineIds.of_json
storageVirtualMachineIds)
?filters:(Option.map
~f:Values.StorageVirtualMachineFilters.of_json
filters) ?maxResults ?nextToken ())
(Some Values.DescribeStorageVirtualMachinesResponse.to_json)
(Some Values.DescribeStorageVirtualMachinesResponse.error_to_json)])
let describe_volumes =
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 volumeIds =
flag "volume-ids" (optional json_arg) ~doc:"JSON VolumeIds"
and filters =
flag "filters" (optional json_arg) ~doc:"JSON VolumeFilters"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.describe_volumes
(Values.DescribeVolumesRequest.make
?volumeIds:(Option.map ~f:Values.VolumeIds.of_json volumeIds)
?filters:(Option.map ~f:Values.VolumeFilters.of_json filters)
?maxResults ?nextToken ())
(Some Values.DescribeVolumesResponse.to_json)
(Some Values.DescribeVolumesResponse.error_to_json)])
let detach_and_delete_s3_access_point =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and name =
flag "name" (required string)
~doc:"STRING S3AccessPointAttachmentName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.detach_and_delete_s3_access_point
(Values.DetachAndDeleteS3AccessPointRequest.make
?clientRequestToken ~name ())
(Some Values.DetachAndDeleteS3AccessPointResponse.to_json)
(Some Values.DetachAndDeleteS3AccessPointResponse.error_to_json)])
let disassociate_file_system_aliases =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId"
and aliases =
flag "aliases" (required json_arg) ~doc:"JSON AlternateDNSNames" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.disassociate_file_system_aliases
(Values.DisassociateFileSystemAliasesRequest.make
?clientRequestToken ~fileSystemId
~aliases:(Values.AlternateDNSNames.of_json aliases) ())
(Some Values.DisassociateFileSystemAliasesResponse.to_json)
(Some Values.DisassociateFileSystemAliasesResponse.error_to_json)])
let list_tags_for_resource =
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 maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and resourceARN =
flag "resource-a-r-n" (required string) ~doc:"STRING ResourceARN" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_tags_for_resource
(Values.ListTagsForResourceRequest.make ?maxResults ?nextToken
~resourceARN ())
(Some Values.ListTagsForResourceResponse.to_json)
(Some Values.ListTagsForResourceResponse.error_to_json)])
let release_file_system_nfs_v3_locks =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.release_file_system_nfs_v3_locks
(Values.ReleaseFileSystemNfsV3LocksRequest.make
?clientRequestToken ~fileSystemId ())
(Some Values.ReleaseFileSystemNfsV3LocksResponse.to_json)
(Some Values.ReleaseFileSystemNfsV3LocksResponse.error_to_json)])
let restore_volume_from_snapshot =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and options =
flag "options" (optional json_arg)
~doc:"JSON RestoreOpenZFSVolumeOptions"
and volumeId =
flag "volume-id" (required string) ~doc:"STRING VolumeId"
and snapshotId =
flag "snapshot-id" (required string) ~doc:"STRING SnapshotId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.restore_volume_from_snapshot
(Values.RestoreVolumeFromSnapshotRequest.make ?clientRequestToken
?options:(Option.map
~f:Values.RestoreOpenZFSVolumeOptions.of_json
options) ~volumeId ~snapshotId ())
(Some Values.RestoreVolumeFromSnapshotResponse.to_json)
(Some Values.RestoreVolumeFromSnapshotResponse.error_to_json)])
let start_misconfigured_state_recovery =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.start_misconfigured_state_recovery
(Values.StartMisconfiguredStateRecoveryRequest.make
?clientRequestToken ~fileSystemId ())
(Some Values.StartMisconfiguredStateRecoveryResponse.to_json)
(Some Values.StartMisconfiguredStateRecoveryResponse.error_to_json)])
let tag_resource =
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 resourceARN =
flag "resource-a-r-n" (required string) ~doc:"STRING ResourceARN"
and tags = flag "tags" (required json_arg) ~doc:"JSON Tags" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.tag_resource
(Values.TagResourceRequest.make ~resourceARN
~tags:(Values.Tags.of_json tags) ())
(Some Values.TagResourceResponse.to_json)
(Some Values.TagResourceResponse.error_to_json)])
let untag_resource =
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 resourceARN =
flag "resource-a-r-n" (required string) ~doc:"STRING ResourceARN"
and tagKeys = flag "tag-keys" (required json_arg) ~doc:"JSON TagKeys" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.untag_resource
(Values.UntagResourceRequest.make ~resourceARN
~tagKeys:(Values.TagKeys.of_json tagKeys) ())
(Some Values.UntagResourceResponse.to_json)
(Some Values.UntagResourceResponse.error_to_json)])
let update_data_repository_association =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and importedFileChunkSize =
flag "imported-file-chunk-size" (optional int) ~doc:"INT Megabytes"
and s3 =
flag "s3" (optional json_arg)
~doc:"JSON S3DataRepositoryConfiguration"
and associationId =
flag "association-id" (required string)
~doc:"STRING DataRepositoryAssociationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_data_repository_association
(Values.UpdateDataRepositoryAssociationRequest.make
?clientRequestToken ?importedFileChunkSize
?s3:(Option.map ~f:Values.S3DataRepositoryConfiguration.of_json
s3) ~associationId ())
(Some Values.UpdateDataRepositoryAssociationResponse.to_json)
(Some Values.UpdateDataRepositoryAssociationResponse.error_to_json)])
let update_file_cache =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and lustreConfiguration =
flag "lustre-configuration" (optional json_arg)
~doc:"JSON UpdateFileCacheLustreConfiguration"
and fileCacheId =
flag "file-cache-id" (required string) ~doc:"STRING FileCacheId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_file_cache
(Values.UpdateFileCacheRequest.make ?clientRequestToken
?lustreConfiguration:(Option.map
~f:Values.UpdateFileCacheLustreConfiguration.of_json
lustreConfiguration) ~fileCacheId ())
(Some Values.UpdateFileCacheResponse.to_json)
(Some Values.UpdateFileCacheResponse.error_to_json)])
let update_file_system =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and storageCapacity =
flag "storage-capacity" (optional int) ~doc:"INT StorageCapacity"
and windowsConfiguration =
flag "windows-configuration" (optional json_arg)
~doc:"JSON UpdateFileSystemWindowsConfiguration"
and lustreConfiguration =
flag "lustre-configuration" (optional json_arg)
~doc:"JSON UpdateFileSystemLustreConfiguration"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON UpdateFileSystemOntapConfiguration"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON UpdateFileSystemOpenZFSConfiguration"
and storageType =
flag "storage-type" (optional json_arg) ~doc:"JSON StorageType"
and fileSystemTypeVersion =
flag "file-system-type-version" (optional string)
~doc:"STRING FileSystemTypeVersion"
and networkType =
flag "network-type" (optional json_arg) ~doc:"JSON NetworkType"
and fileSystemId =
flag "file-system-id" (required string) ~doc:"STRING FileSystemId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_file_system
(Values.UpdateFileSystemRequest.make ?clientRequestToken
?storageCapacity
?windowsConfiguration:(Option.map
~f:Values.UpdateFileSystemWindowsConfiguration.of_json
windowsConfiguration)
?lustreConfiguration:(Option.map
~f:Values.UpdateFileSystemLustreConfiguration.of_json
lustreConfiguration)
?ontapConfiguration:(Option.map
~f:Values.UpdateFileSystemOntapConfiguration.of_json
ontapConfiguration)
?openZFSConfiguration:(Option.map
~f:Values.UpdateFileSystemOpenZFSConfiguration.of_json
openZFSConfiguration)
?storageType:(Option.map ~f:Values.StorageType.of_json
storageType) ?fileSystemTypeVersion
?networkType:(Option.map ~f:Values.NetworkType.of_json
networkType) ~fileSystemId ())
(Some Values.UpdateFileSystemResponse.to_json)
(Some Values.UpdateFileSystemResponse.error_to_json)])
let update_shared_vpc_configuration =
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 enableFsxRouteTableUpdatesFromParticipantAccounts =
flag "enable-fsx-route-table-updates-from-participant-accounts"
(optional string) ~doc:"STRING VerboseFlag"
and clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_shared_vpc_configuration
(Values.UpdateSharedVpcConfigurationRequest.make
?enableFsxRouteTableUpdatesFromParticipantAccounts
?clientRequestToken ())
(Some Values.UpdateSharedVpcConfigurationResponse.to_json)
(Some Values.UpdateSharedVpcConfigurationResponse.error_to_json)])
let update_snapshot =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and name = flag "name" (required string) ~doc:"STRING SnapshotName"
and snapshotId =
flag "snapshot-id" (required string) ~doc:"STRING SnapshotId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_snapshot
(Values.UpdateSnapshotRequest.make ?clientRequestToken ~name
~snapshotId ()) (Some Values.UpdateSnapshotResponse.to_json)
(Some Values.UpdateSnapshotResponse.error_to_json)])
let update_storage_virtual_machine =
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 activeDirectoryConfiguration =
flag "active-directory-configuration" (optional json_arg)
~doc:"JSON UpdateSvmActiveDirectoryConfiguration"
and clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and svmAdminPassword =
flag "svm-admin-password" (optional string)
~doc:"STRING AdminPassword"
and storageVirtualMachineId =
flag "storage-virtual-machine-id" (required string)
~doc:"STRING StorageVirtualMachineId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_storage_virtual_machine
(Values.UpdateStorageVirtualMachineRequest.make
?activeDirectoryConfiguration:(Option.map
~f:Values.UpdateSvmActiveDirectoryConfiguration.of_json
activeDirectoryConfiguration)
?clientRequestToken ?svmAdminPassword ~storageVirtualMachineId
()) (Some Values.UpdateStorageVirtualMachineResponse.to_json)
(Some Values.UpdateStorageVirtualMachineResponse.error_to_json)])
let update_volume =
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 clientRequestToken =
flag "client-request-token" (optional string)
~doc:"STRING ClientRequestToken"
and ontapConfiguration =
flag "ontap-configuration" (optional json_arg)
~doc:"JSON UpdateOntapVolumeConfiguration"
and name = flag "name" (optional string) ~doc:"STRING VolumeName"
and openZFSConfiguration =
flag "open-z-f-s-configuration" (optional json_arg)
~doc:"JSON UpdateOpenZFSVolumeConfiguration"
and volumeId =
flag "volume-id" (required string) ~doc:"STRING VolumeId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_volume
(Values.UpdateVolumeRequest.make ?clientRequestToken
?ontapConfiguration:(Option.map
~f:Values.UpdateOntapVolumeConfiguration.of_json
ontapConfiguration) ?name
?openZFSConfiguration:(Option.map
~f:Values.UpdateOpenZFSVolumeConfiguration.of_json
openZFSConfiguration) ~volumeId ())
(Some Values.UpdateVolumeResponse.to_json)
(Some Values.UpdateVolumeResponse.error_to_json)])
let main =
Command.group
~summary:((Awso.Service.to_string Values.service) ^ " commands")
[("associate-file-system-aliases", associate_file_system_aliases);
("cancel-data-repository-task", cancel_data_repository_task);
("copy-backup", copy_backup);
("copy-snapshot-and-update-volume", copy_snapshot_and_update_volume);
("create-and-attach-s3-access-point", create_and_attach_s3_access_point);
("create-backup", create_backup);
("create-data-repository-association",
create_data_repository_association);
("create-data-repository-task", create_data_repository_task);
("create-file-cache", create_file_cache);
("create-file-system", create_file_system);
("create-file-system-from-backup", create_file_system_from_backup);
("create-snapshot", create_snapshot);
("create-storage-virtual-machine", create_storage_virtual_machine);
("create-volume", create_volume);
("create-volume-from-backup", create_volume_from_backup);
("delete-backup", delete_backup);
("delete-data-repository-association",
delete_data_repository_association);
("delete-file-cache", delete_file_cache);
("delete-file-system", delete_file_system);
("delete-snapshot", delete_snapshot);
("delete-storage-virtual-machine", delete_storage_virtual_machine);
("delete-volume", delete_volume);
("describe-backups", describe_backups);
("describe-data-repository-associations",
describe_data_repository_associations);
("describe-data-repository-tasks", describe_data_repository_tasks);
("describe-file-caches", describe_file_caches);
("describe-file-system-aliases", describe_file_system_aliases);
("describe-file-systems", describe_file_systems);
("describe-s3-access-point-attachments",
describe_s3_access_point_attachments);
("describe-shared-vpc-configuration", describe_shared_vpc_configuration);
("describe-snapshots", describe_snapshots);
("describe-storage-virtual-machines", describe_storage_virtual_machines);
("describe-volumes", describe_volumes);
("detach-and-delete-s3-access-point", detach_and_delete_s3_access_point);
("disassociate-file-system-aliases", disassociate_file_system_aliases);
("list-tags-for-resource", list_tags_for_resource);
("release-file-system-nfs-v3-locks", release_file_system_nfs_v3_locks);
("restore-volume-from-snapshot", restore_volume_from_snapshot);
("start-misconfigured-state-recovery",
start_misconfigured_state_recovery);
("tag-resource", tag_resource);
("untag-resource", untag_resource);
("update-data-repository-association",
update_data_repository_association);
("update-file-cache", update_file_cache);
("update-file-system", update_file_system);
("update-shared-vpc-configuration", update_shared_vpc_configuration);
("update-snapshot", update_snapshot);
("update-storage-virtual-machine", update_storage_virtual_machine);
("update-volume", update_volume)]