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
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
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 batch_create_memory_records =
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 clientToken =
flag "client-token" (optional string) ~doc:"STRING String"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and records =
flag "records" (required json_arg)
~doc:"JSON MemoryRecordsCreateInputList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_create_memory_records
(Values.BatchCreateMemoryRecordsInput.make ?clientToken ~memoryId
~records:(Values.MemoryRecordsCreateInputList.of_json records)
()) (Some Values.BatchCreateMemoryRecordsOutput.to_json)
(Some Values.BatchCreateMemoryRecordsOutput.error_to_json)])
let batch_delete_memory_records =
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 memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and records =
flag "records" (required json_arg)
~doc:"JSON MemoryRecordsDeleteInputList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_delete_memory_records
(Values.BatchDeleteMemoryRecordsInput.make ~memoryId
~records:(Values.MemoryRecordsDeleteInputList.of_json records)
()) (Some Values.BatchDeleteMemoryRecordsOutput.to_json)
(Some Values.BatchDeleteMemoryRecordsOutput.error_to_json)])
let batch_update_memory_records =
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 memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and records =
flag "records" (required json_arg)
~doc:"JSON MemoryRecordsUpdateInputList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_update_memory_records
(Values.BatchUpdateMemoryRecordsInput.make ~memoryId
~records:(Values.MemoryRecordsUpdateInputList.of_json records)
()) (Some Values.BatchUpdateMemoryRecordsOutput.to_json)
(Some Values.BatchUpdateMemoryRecordsOutput.error_to_json)])
let complete_resource_token_auth =
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 userIdentifier =
flag "user-identifier" (required json_arg)
~doc:"JSON UserIdentifier"
and sessionUri =
flag "session-uri" (required string) ~doc:"STRING RequestUri" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.complete_resource_token_auth
(Values.CompleteResourceTokenAuthRequest.make
~userIdentifier:(Values.UserIdentifier.of_json userIdentifier)
~sessionUri ())
(Some Values.CompleteResourceTokenAuthResponse.to_json)
(Some Values.CompleteResourceTokenAuthResponse.error_to_json)])
let create_a_b_test =
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 description =
flag "description" (optional string) ~doc:"STRING ABTestDescription"
and gatewayFilter =
flag "gateway-filter" (optional json_arg) ~doc:"JSON GatewayFilter"
and enableOnCreate =
flag "enable-on-create" (optional bool) ~doc:"BOOL Boolean"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and name = flag "name" (required string) ~doc:"STRING ABTestName"
and gatewayArn =
flag "gateway-arn" (required string) ~doc:"STRING GatewayArn"
and variants =
flag "variants" (required json_arg) ~doc:"JSON VariantList"
and evaluationConfig =
flag "evaluation-config" (required json_arg)
~doc:"JSON ABTestEvaluationConfig"
and roleArn = flag "role-arn" (required string) ~doc:"STRING RoleArn" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_a_b_test
(Values.CreateABTestRequest.make ?description
?gatewayFilter:(Option.map ~f:Values.GatewayFilter.of_json
gatewayFilter) ?enableOnCreate ?clientToken
~name ~gatewayArn
~variants:(Values.VariantList.of_json variants)
~evaluationConfig:(Values.ABTestEvaluationConfig.of_json
evaluationConfig) ~roleArn ())
(Some Values.CreateABTestResponse.to_json)
(Some Values.CreateABTestResponse.error_to_json)])
let create_event =
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 sessionId =
flag "session-id" (optional string) ~doc:"STRING SessionId"
and branch = flag "branch" (optional json_arg) ~doc:"JSON Branch"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING String"
and metadata =
flag "metadata" (optional json_arg) ~doc:"JSON MetadataMap"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and actorId = flag "actor-id" (required string) ~doc:"STRING ActorId"
and eventTimestamp =
flag "event-timestamp" (required json_arg) ~doc:"JSON Timestamp"
and payload =
flag "payload" (required json_arg) ~doc:"JSON PayloadTypeList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_event
(Values.CreateEventInput.make ?sessionId
?branch:(Option.map ~f:Values.Branch.of_json branch)
?clientToken
?metadata:(Option.map ~f:Values.MetadataMap.of_json metadata)
~memoryId ~actorId
~eventTimestamp:(Values.Timestamp.of_json eventTimestamp)
~payload:(Values.PayloadTypeList.of_json payload) ())
(Some Values.CreateEventOutput.to_json)
(Some Values.CreateEventOutput.error_to_json)])
let create_payment_instrument =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentConnectorId =
flag "payment-connector-id" (required string)
~doc:"STRING PaymentConnectorId"
and paymentInstrumentType =
flag "payment-instrument-type" (required json_arg)
~doc:"JSON PaymentInstrumentType"
and paymentInstrumentDetails =
flag "payment-instrument-details" (required json_arg)
~doc:"JSON PaymentInstrumentDetails" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_payment_instrument
(Values.CreatePaymentInstrumentRequest.make ?userId ?agentName
?clientToken ~paymentManagerArn ~paymentConnectorId
~paymentInstrumentType:(Values.PaymentInstrumentType.of_json
paymentInstrumentType)
~paymentInstrumentDetails:(Values.PaymentInstrumentDetails.of_json
paymentInstrumentDetails) ())
(Some Values.CreatePaymentInstrumentResponse.to_json)
(Some Values.CreatePaymentInstrumentResponse.error_to_json)])
let create_payment_session =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and limits =
flag "limits" (optional json_arg) ~doc:"JSON SessionLimits"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and expiryTimeInMinutes =
flag "expiry-time-in-minutes" (required int)
~doc:"INT CreatePaymentSessionRequestExpiryTimeInMinutesInteger" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_payment_session
(Values.CreatePaymentSessionRequest.make ?userId ?agentName
?limits:(Option.map ~f:Values.SessionLimits.of_json limits)
?clientToken ~paymentManagerArn ~expiryTimeInMinutes ())
(Some Values.CreatePaymentSessionResponse.to_json)
(Some Values.CreatePaymentSessionResponse.error_to_json)])
let delete_a_b_test =
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 abTestId =
flag "ab-test-id" (required string) ~doc:"STRING ABTestId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_a_b_test (Values.DeleteABTestRequest.make ~abTestId ())
(Some Values.DeleteABTestResponse.to_json)
(Some Values.DeleteABTestResponse.error_to_json)])
let delete_batch_evaluation =
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 batchEvaluationId =
flag "batch-evaluation-id" (required string)
~doc:"STRING BatchEvaluationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_batch_evaluation
(Values.DeleteBatchEvaluationRequest.make ~batchEvaluationId ())
(Some Values.DeleteBatchEvaluationResponse.to_json)
(Some Values.DeleteBatchEvaluationResponse.error_to_json)])
let delete_event =
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 memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and sessionId =
flag "session-id" (required string) ~doc:"STRING SessionId"
and eventId = flag "event-id" (required string) ~doc:"STRING EventId"
and actorId = flag "actor-id" (required string) ~doc:"STRING ActorId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_event
(Values.DeleteEventInput.make ~memoryId ~sessionId ~eventId
~actorId ()) (Some Values.DeleteEventOutput.to_json)
(Some Values.DeleteEventOutput.error_to_json)])
let delete_memory_record =
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 memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and memoryRecordId =
flag "memory-record-id" (required string)
~doc:"STRING MemoryRecordId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_memory_record
(Values.DeleteMemoryRecordInput.make ~memoryId ~memoryRecordId ())
(Some Values.DeleteMemoryRecordOutput.to_json)
(Some Values.DeleteMemoryRecordOutput.error_to_json)])
let delete_payment_instrument =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentConnectorId =
flag "payment-connector-id" (required string)
~doc:"STRING PaymentConnectorId"
and paymentInstrumentId =
flag "payment-instrument-id" (required string)
~doc:"STRING PaymentInstrumentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_payment_instrument
(Values.DeletePaymentInstrumentRequest.make ?userId
~paymentManagerArn ~paymentConnectorId ~paymentInstrumentId ())
(Some Values.DeletePaymentInstrumentResponse.to_json)
(Some Values.DeletePaymentInstrumentResponse.error_to_json)])
let delete_payment_session =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentSessionId =
flag "payment-session-id" (required string)
~doc:"STRING PaymentSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_payment_session
(Values.DeletePaymentSessionRequest.make ?userId
~paymentManagerArn ~paymentSessionId ())
(Some Values.DeletePaymentSessionResponse.to_json)
(Some Values.DeletePaymentSessionResponse.error_to_json)])
let delete_recommendation =
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 recommendationId =
flag "recommendation-id" (required string)
~doc:"STRING RecommendationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_recommendation
(Values.DeleteRecommendationRequest.make ~recommendationId ())
(Some Values.DeleteRecommendationResponse.to_json)
(Some Values.DeleteRecommendationResponse.error_to_json)])
let evaluate =
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 evaluationTarget =
flag "evaluation-target" (optional json_arg)
~doc:"JSON EvaluationTarget"
and evaluationReferenceInputs =
flag "evaluation-reference-inputs" (optional json_arg)
~doc:"JSON EvaluationReferenceInputs"
and evaluatorId =
flag "evaluator-id" (required string) ~doc:"STRING EvaluatorId"
and evaluationInput =
flag "evaluation-input" (required json_arg)
~doc:"JSON EvaluationInput" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.evaluate
(Values.EvaluateRequest.make
?evaluationTarget:(Option.map
~f:Values.EvaluationTarget.of_json
evaluationTarget)
?evaluationReferenceInputs:(Option.map
~f:Values.EvaluationReferenceInputs.of_json
evaluationReferenceInputs)
~evaluatorId
~evaluationInput:(Values.EvaluationInput.of_json
evaluationInput) ())
(Some Values.EvaluateResponse.to_json)
(Some Values.EvaluateResponse.error_to_json)])
let get_a_b_test =
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 abTestId =
flag "ab-test-id" (required string) ~doc:"STRING ABTestId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_a_b_test (Values.GetABTestRequest.make ~abTestId ())
(Some Values.GetABTestResponse.to_json)
(Some Values.GetABTestResponse.error_to_json)])
let get_agent_card =
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 runtimeSessionId =
flag "runtime-session-id" (optional string)
~doc:"STRING SessionType"
and qualifier =
flag "qualifier" (optional string) ~doc:"STRING String"
and agentRuntimeArn =
flag "agent-runtime-arn" (required string) ~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_agent_card
(Values.GetAgentCardRequest.make ?runtimeSessionId ?qualifier
~agentRuntimeArn ()) (Some Values.GetAgentCardResponse.to_json)
(Some Values.GetAgentCardResponse.error_to_json)])
let get_batch_evaluation =
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 batchEvaluationId =
flag "batch-evaluation-id" (required string)
~doc:"STRING BatchEvaluationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_batch_evaluation
(Values.GetBatchEvaluationRequest.make ~batchEvaluationId ())
(Some Values.GetBatchEvaluationResponse.to_json)
(Some Values.GetBatchEvaluationResponse.error_to_json)])
let get_browser_session =
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 browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String"
and sessionId =
flag "session-id" (required string) ~doc:"STRING BrowserSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_browser_session
(Values.GetBrowserSessionRequest.make ~browserIdentifier
~sessionId ()) (Some Values.GetBrowserSessionResponse.to_json)
(Some Values.GetBrowserSessionResponse.error_to_json)])
let get_code_interpreter_session =
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 codeInterpreterIdentifier =
flag "code-interpreter-identifier" (required string)
~doc:"STRING String"
and sessionId =
flag "session-id" (required string)
~doc:"STRING CodeInterpreterSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_code_interpreter_session
(Values.GetCodeInterpreterSessionRequest.make
~codeInterpreterIdentifier ~sessionId ())
(Some Values.GetCodeInterpreterSessionResponse.to_json)
(Some Values.GetCodeInterpreterSessionResponse.error_to_json)])
let get_event =
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 memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and sessionId =
flag "session-id" (required string) ~doc:"STRING SessionId"
and actorId = flag "actor-id" (required string) ~doc:"STRING ActorId"
and eventId = flag "event-id" (required string) ~doc:"STRING EventId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_event
(Values.GetEventInput.make ~memoryId ~sessionId ~actorId ~eventId
()) (Some Values.GetEventOutput.to_json)
(Some Values.GetEventOutput.error_to_json)])
let get_memory_record =
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 memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and memoryRecordId =
flag "memory-record-id" (required string)
~doc:"STRING MemoryRecordId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_memory_record
(Values.GetMemoryRecordInput.make ~memoryId ~memoryRecordId ())
(Some Values.GetMemoryRecordOutput.to_json)
(Some Values.GetMemoryRecordOutput.error_to_json)])
let get_payment_instrument =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and paymentConnectorId =
flag "payment-connector-id" (optional string)
~doc:"STRING PaymentConnectorId"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentInstrumentId =
flag "payment-instrument-id" (required string)
~doc:"STRING PaymentInstrumentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_payment_instrument
(Values.GetPaymentInstrumentRequest.make ?userId ?agentName
?paymentConnectorId ~paymentManagerArn ~paymentInstrumentId ())
(Some Values.GetPaymentInstrumentResponse.to_json)
(Some Values.GetPaymentInstrumentResponse.error_to_json)])
let get_payment_instrument_balance =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentConnectorId =
flag "payment-connector-id" (required string)
~doc:"STRING PaymentConnectorId"
and paymentInstrumentId =
flag "payment-instrument-id" (required string)
~doc:"STRING PaymentInstrumentId"
and chain =
flag "chain" (required json_arg) ~doc:"JSON BlockchainChainId"
and token =
flag "token" (required json_arg) ~doc:"JSON InstrumentBalanceToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_payment_instrument_balance
(Values.GetPaymentInstrumentBalanceRequest.make ?userId ?agentName
~paymentManagerArn ~paymentConnectorId ~paymentInstrumentId
~chain:(Values.BlockchainChainId.of_json chain)
~token:(Values.InstrumentBalanceToken.of_json token) ())
(Some Values.GetPaymentInstrumentBalanceResponse.to_json)
(Some Values.GetPaymentInstrumentBalanceResponse.error_to_json)])
let get_payment_session =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentSessionId =
flag "payment-session-id" (required string)
~doc:"STRING PaymentSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_payment_session
(Values.GetPaymentSessionRequest.make ?userId ?agentName
~paymentManagerArn ~paymentSessionId ())
(Some Values.GetPaymentSessionResponse.to_json)
(Some Values.GetPaymentSessionResponse.error_to_json)])
let get_recommendation =
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 recommendationId =
flag "recommendation-id" (required string)
~doc:"STRING RecommendationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_recommendation
(Values.GetRecommendationRequest.make ~recommendationId ())
(Some Values.GetRecommendationResponse.to_json)
(Some Values.GetRecommendationResponse.error_to_json)])
let get_resource_api_key =
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 workloadIdentityToken =
flag "workload-identity-token" (required string)
~doc:"STRING WorkloadIdentityTokenType"
and resourceCredentialProviderName =
flag "resource-credential-provider-name" (required string)
~doc:"STRING CredentialProviderName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_resource_api_key
(Values.GetResourceApiKeyRequest.make ~workloadIdentityToken
~resourceCredentialProviderName ())
(Some Values.GetResourceApiKeyResponse.to_json)
(Some Values.GetResourceApiKeyResponse.error_to_json)])
let get_resource_oauth2_token =
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 sessionUri =
flag "session-uri" (optional string) ~doc:"STRING RequestUri"
and resourceOauth2ReturnUrl =
flag "resource-oauth2-return-url" (optional string)
~doc:"STRING ResourceOauth2ReturnUrlType"
and forceAuthentication =
flag "force-authentication" (optional bool) ~doc:"BOOL Boolean"
and customParameters =
flag "custom-parameters" (optional json_arg)
~doc:"JSON CustomRequestParametersType"
and customState =
flag "custom-state" (optional string) ~doc:"STRING State"
and resources =
flag "resources" (optional json_arg) ~doc:"JSON ResourcesListType"
and audiences =
flag "audiences" (optional json_arg) ~doc:"JSON AudiencesListType"
and workloadIdentityToken =
flag "workload-identity-token" (required string)
~doc:"STRING WorkloadIdentityTokenType"
and resourceCredentialProviderName =
flag "resource-credential-provider-name" (required string)
~doc:"STRING CredentialProviderName"
and scopes =
flag "scopes" (required json_arg) ~doc:"JSON ScopesListType"
and oauth2Flow =
flag "oauth2-flow" (required json_arg) ~doc:"JSON Oauth2FlowType" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_resource_oauth2_token
(Values.GetResourceOauth2TokenRequest.make ?sessionUri
?resourceOauth2ReturnUrl ?forceAuthentication
?customParameters:(Option.map
~f:Values.CustomRequestParametersType.of_json
customParameters) ?customState
?resources:(Option.map ~f:Values.ResourcesListType.of_json
resources)
?audiences:(Option.map ~f:Values.AudiencesListType.of_json
audiences) ~workloadIdentityToken
~resourceCredentialProviderName
~scopes:(Values.ScopesListType.of_json scopes)
~oauth2Flow:(Values.Oauth2FlowType.of_json oauth2Flow) ())
(Some Values.GetResourceOauth2TokenResponse.to_json)
(Some Values.GetResourceOauth2TokenResponse.error_to_json)])
let get_resource_payment_token =
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 workloadIdentityToken =
flag "workload-identity-token" (required string)
~doc:"STRING WorkloadIdentityTokenType"
and resourceCredentialProviderName =
flag "resource-credential-provider-name" (required string)
~doc:"STRING CredentialProviderName"
and paymentTokenRequest =
flag "payment-token-request" (required json_arg)
~doc:"JSON PaymentTokenRequestInput" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_resource_payment_token
(Values.GetResourcePaymentTokenRequest.make ~workloadIdentityToken
~resourceCredentialProviderName
~paymentTokenRequest:(Values.PaymentTokenRequestInput.of_json
paymentTokenRequest) ())
(Some Values.GetResourcePaymentTokenResponse.to_json)
(Some Values.GetResourcePaymentTokenResponse.error_to_json)])
let get_workload_access_token =
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 workloadName =
flag "workload-name" (required string)
~doc:"STRING WorkloadIdentityNameType" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_workload_access_token
(Values.GetWorkloadAccessTokenRequest.make ~workloadName ())
(Some Values.GetWorkloadAccessTokenResponse.to_json)
(Some Values.GetWorkloadAccessTokenResponse.error_to_json)])
let get_workload_access_token_for_j_w_t =
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 workloadName =
flag "workload-name" (required string)
~doc:"STRING WorkloadIdentityNameType"
and userToken =
flag "user-token" (required string) ~doc:"STRING UserTokenType" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_workload_access_token_for_j_w_t
(Values.GetWorkloadAccessTokenForJWTRequest.make ~workloadName
~userToken ())
(Some Values.GetWorkloadAccessTokenForJWTResponse.to_json)
(Some Values.GetWorkloadAccessTokenForJWTResponse.error_to_json)])
let get_workload_access_token_for_user_id =
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 workloadName =
flag "workload-name" (required string)
~doc:"STRING WorkloadIdentityNameType"
and userId = flag "user-id" (required string) ~doc:"STRING UserIdType" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_workload_access_token_for_user_id
(Values.GetWorkloadAccessTokenForUserIdRequest.make ~workloadName
~userId ())
(Some Values.GetWorkloadAccessTokenForUserIdResponse.to_json)
(Some Values.GetWorkloadAccessTokenForUserIdResponse.error_to_json)])
let invoke_agent_runtime =
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 contentType =
flag "content-type" (optional string) ~doc:"STRING MimeType"
and accept = flag "accept" (optional string) ~doc:"STRING MimeType"
and mcpSessionId =
flag "mcp-session-id" (optional string) ~doc:"STRING StringType"
and runtimeSessionId =
flag "runtime-session-id" (optional string)
~doc:"STRING SessionType"
and mcpProtocolVersion =
flag "mcp-protocol-version" (optional string)
~doc:"STRING StringType"
and runtimeUserId =
flag "runtime-user-id" (optional string) ~doc:"STRING StringType"
and traceId =
flag "trace-id" (optional string)
~doc:"STRING InvokeAgentRuntimeRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING InvokeAgentRuntimeRequestTraceParentString"
and traceState =
flag "trace-state" (optional string)
~doc:"STRING InvokeAgentRuntimeRequestTraceStateString"
and baggage =
flag "baggage" (optional string)
~doc:"STRING InvokeAgentRuntimeRequestBaggageString"
and qualifier =
flag "qualifier" (optional string) ~doc:"STRING String"
and accountId =
flag "account-id" (optional string)
~doc:"STRING InvokeAgentRuntimeRequestAccountIdString"
and agentRuntimeArn =
flag "agent-runtime-arn" (required string) ~doc:"STRING String"
and payload = flag "payload" (required json_arg) ~doc:"JSON Body" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.invoke_agent_runtime
(Values.InvokeAgentRuntimeRequest.make ?contentType ?accept
?mcpSessionId ?runtimeSessionId ?mcpProtocolVersion
?runtimeUserId ?traceId ?traceParent ?traceState ?baggage
?qualifier ?accountId ~agentRuntimeArn
~payload:(Values.Body.of_json payload) ())
(Some Values.InvokeAgentRuntimeResponse.to_json)
(Some Values.InvokeAgentRuntimeResponse.error_to_json)])
let invoke_agent_runtime_command =
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 contentType =
flag "content-type" (optional string) ~doc:"STRING MimeType"
and accept = flag "accept" (optional string) ~doc:"STRING MimeType"
and runtimeSessionId =
flag "runtime-session-id" (optional string)
~doc:"STRING SessionType"
and traceId =
flag "trace-id" (optional string)
~doc:"STRING InvokeAgentRuntimeCommandRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING InvokeAgentRuntimeCommandRequestTraceParentString"
and traceState =
flag "trace-state" (optional string)
~doc:"STRING InvokeAgentRuntimeCommandRequestTraceStateString"
and baggage =
flag "baggage" (optional string)
~doc:"STRING InvokeAgentRuntimeCommandRequestBaggageString"
and qualifier =
flag "qualifier" (optional string) ~doc:"STRING String"
and accountId =
flag "account-id" (optional string)
~doc:"STRING InvokeAgentRuntimeCommandRequestAccountIdString"
and agentRuntimeArn =
flag "agent-runtime-arn" (required string) ~doc:"STRING String"
and body =
flag "body" (required json_arg)
~doc:"JSON InvokeAgentRuntimeCommandRequestBody" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.invoke_agent_runtime_command
(Values.InvokeAgentRuntimeCommandRequest.make ?contentType ?accept
?runtimeSessionId ?traceId ?traceParent ?traceState ?baggage
?qualifier ?accountId ~agentRuntimeArn
~body:(Values.InvokeAgentRuntimeCommandRequestBody.of_json body)
()) (Some Values.InvokeAgentRuntimeCommandResponse.to_json)
(Some Values.InvokeAgentRuntimeCommandResponse.error_to_json)])
let invoke_browser =
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 browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String"
and sessionId =
flag "session-id" (required string) ~doc:"STRING BrowserSessionId"
and action =
flag "action" (required json_arg) ~doc:"JSON BrowserAction" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.invoke_browser
(Values.InvokeBrowserRequest.make ~browserIdentifier ~sessionId
~action:(Values.BrowserAction.of_json action) ())
(Some Values.InvokeBrowserResponse.to_json)
(Some Values.InvokeBrowserResponse.error_to_json)])
let invoke_code_interpreter =
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 sessionId =
flag "session-id" (optional string)
~doc:"STRING CodeInterpreterSessionId"
and traceId =
flag "trace-id" (optional string)
~doc:"STRING InvokeCodeInterpreterRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING InvokeCodeInterpreterRequestTraceParentString"
and arguments =
flag "arguments" (optional json_arg) ~doc:"JSON ToolArguments"
and codeInterpreterIdentifier =
flag "code-interpreter-identifier" (required string)
~doc:"STRING String"
and name = flag "name" (required json_arg) ~doc:"JSON ToolName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.invoke_code_interpreter
(Values.InvokeCodeInterpreterRequest.make ?sessionId ?traceId
?traceParent
?arguments:(Option.map ~f:Values.ToolArguments.of_json
arguments) ~codeInterpreterIdentifier
~name:(Values.ToolName.of_json name) ())
(Some Values.InvokeCodeInterpreterResponse.to_json)
(Some Values.InvokeCodeInterpreterResponse.error_to_json)])
let invoke_harness =
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 model =
flag "model" (optional json_arg)
~doc:"JSON HarnessModelConfiguration"
and systemPrompt =
flag "system-prompt" (optional json_arg)
~doc:"JSON HarnessSystemPrompt"
and tools = flag "tools" (optional json_arg) ~doc:"JSON HarnessTools"
and skills =
flag "skills" (optional json_arg) ~doc:"JSON HarnessSkills"
and allowedTools =
flag "allowed-tools" (optional json_arg)
~doc:"JSON HarnessAllowedTools"
and maxIterations =
flag "max-iterations" (optional int) ~doc:"INT Integer"
and maxTokens = flag "max-tokens" (optional int) ~doc:"INT Integer"
and timeoutSeconds =
flag "timeout-seconds" (optional int) ~doc:"INT Integer"
and actorId = flag "actor-id" (optional string) ~doc:"STRING String"
and harnessArn =
flag "harness-arn" (required string) ~doc:"STRING HarnessArn"
and runtimeSessionId =
flag "runtime-session-id" (required string) ~doc:"STRING SessionId"
and messages =
flag "messages" (required json_arg) ~doc:"JSON HarnessMessages" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.invoke_harness
(Values.InvokeHarnessRequest.make
?model:(Option.map ~f:Values.HarnessModelConfiguration.of_json
model)
?systemPrompt:(Option.map ~f:Values.HarnessSystemPrompt.of_json
systemPrompt)
?tools:(Option.map ~f:Values.HarnessTools.of_json tools)
?skills:(Option.map ~f:Values.HarnessSkills.of_json skills)
?allowedTools:(Option.map ~f:Values.HarnessAllowedTools.of_json
allowedTools) ?maxIterations ?maxTokens
?timeoutSeconds ?actorId ~harnessArn ~runtimeSessionId
~messages:(Values.HarnessMessages.of_json messages) ())
(Some Values.InvokeHarnessResponse.to_json)
(Some Values.InvokeHarnessResponse.error_to_json)])
let list_a_b_tests =
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 ListABTestsRequestMaxResultsInteger"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_a_b_tests
(Values.ListABTestsRequest.make ?maxResults ?nextToken ())
(Some Values.ListABTestsResponse.to_json)
(Some Values.ListABTestsResponse.error_to_json)])
let list_actors =
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 PaginationToken"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_actors
(Values.ListActorsInput.make ?maxResults ?nextToken ~memoryId ())
(Some Values.ListActorsOutput.to_json)
(Some Values.ListActorsOutput.error_to_json)])
let list_batch_evaluations =
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 ListBatchEvaluationsRequestMaxResultsInteger"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_batch_evaluations
(Values.ListBatchEvaluationsRequest.make ?maxResults ?nextToken ())
(Some Values.ListBatchEvaluationsResponse.to_json)
(Some Values.ListBatchEvaluationsResponse.error_to_json)])
let list_browser_sessions =
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 status =
flag "status" (optional json_arg) ~doc:"JSON BrowserSessionStatus"
and browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_browser_sessions
(Values.ListBrowserSessionsRequest.make ?maxResults ?nextToken
?status:(Option.map ~f:Values.BrowserSessionStatus.of_json
status) ~browserIdentifier ())
(Some Values.ListBrowserSessionsResponse.to_json)
(Some Values.ListBrowserSessionsResponse.error_to_json)])
let list_code_interpreter_sessions =
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 status =
flag "status" (optional json_arg)
~doc:"JSON CodeInterpreterSessionStatus"
and codeInterpreterIdentifier =
flag "code-interpreter-identifier" (required string)
~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_code_interpreter_sessions
(Values.ListCodeInterpreterSessionsRequest.make ?maxResults
?nextToken
?status:(Option.map
~f:Values.CodeInterpreterSessionStatus.of_json
status) ~codeInterpreterIdentifier ())
(Some Values.ListCodeInterpreterSessionsResponse.to_json)
(Some Values.ListCodeInterpreterSessionsResponse.error_to_json)])
let list_events =
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 includePayloads =
flag "include-payloads" (optional bool) ~doc:"BOOL Boolean"
and filter = flag "filter" (optional json_arg) ~doc:"JSON FilterInput"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING PaginationToken"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and sessionId =
flag "session-id" (required string) ~doc:"STRING SessionId"
and actorId = flag "actor-id" (required string) ~doc:"STRING ActorId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_events
(Values.ListEventsInput.make ?includePayloads
?filter:(Option.map ~f:Values.FilterInput.of_json filter)
?maxResults ?nextToken ~memoryId ~sessionId ~actorId ())
(Some Values.ListEventsOutput.to_json)
(Some Values.ListEventsOutput.error_to_json)])
let =
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 ListMemoryExtractionJobsInputMaxResultsInteger"
and filter =
flag "filter" (optional json_arg)
~doc:"JSON ExtractionJobFilterInput"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING PaginationToken"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_memory_extraction_jobs
(Values.ListMemoryExtractionJobsInput.make ?maxResults
?filter:(Option.map ~f:Values.ExtractionJobFilterInput.of_json
filter) ?nextToken ~memoryId ())
(Some Values.ListMemoryExtractionJobsOutput.to_json)
(Some Values.ListMemoryExtractionJobsOutput.error_to_json)])
let list_memory_records =
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 namespace =
flag "namespace" (optional string) ~doc:"STRING Namespace"
and namespacePath =
flag "namespace-path" (optional string) ~doc:"STRING Namespace"
and memoryStrategyId =
flag "memory-strategy-id" (optional string)
~doc:"STRING MemoryStrategyId"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING PaginationToken"
and metadataFilters =
flag "metadata-filters" (optional json_arg)
~doc:"JSON MemoryMetadataFilterList"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_memory_records
(Values.ListMemoryRecordsInput.make ?namespace ?namespacePath
?memoryStrategyId ?maxResults ?nextToken
?metadataFilters:(Option.map
~f:Values.MemoryMetadataFilterList.of_json
metadataFilters) ~memoryId ())
(Some Values.ListMemoryRecordsOutput.to_json)
(Some Values.ListMemoryRecordsOutput.error_to_json)])
let list_payment_instruments =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and paymentConnectorId =
flag "payment-connector-id" (optional string)
~doc:"STRING PaymentConnectorId"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and maxResults = flag "max-results" (optional int) ~doc:"INT Integer"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_payment_instruments
(Values.ListPaymentInstrumentsRequest.make ?userId ?agentName
?paymentConnectorId ?nextToken ?maxResults ~paymentManagerArn
()) (Some Values.ListPaymentInstrumentsResponse.to_json)
(Some Values.ListPaymentInstrumentsResponse.error_to_json)])
let list_payment_sessions =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and maxResults = flag "max-results" (optional int) ~doc:"INT Integer"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_payment_sessions
(Values.ListPaymentSessionsRequest.make ?userId ?agentName
?nextToken ?maxResults ~paymentManagerArn ())
(Some Values.ListPaymentSessionsResponse.to_json)
(Some Values.ListPaymentSessionsResponse.error_to_json)])
let list_recommendations =
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 ListRecommendationsRequestMaxResultsInteger"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and statusFilter =
flag "status-filter" (optional json_arg)
~doc:"JSON RecommendationStatus" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_recommendations
(Values.ListRecommendationsRequest.make ?maxResults ?nextToken
?statusFilter:(Option.map
~f:Values.RecommendationStatus.of_json
statusFilter) ())
(Some Values.ListRecommendationsResponse.to_json)
(Some Values.ListRecommendationsResponse.error_to_json)])
let list_sessions =
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 PaginationToken"
and filter =
flag "filter" (optional json_arg) ~doc:"JSON SessionFilter"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and actorId = flag "actor-id" (required string) ~doc:"STRING ActorId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_sessions
(Values.ListSessionsInput.make ?maxResults ?nextToken
?filter:(Option.map ~f:Values.SessionFilter.of_json filter)
~memoryId ~actorId ()) (Some Values.ListSessionsOutput.to_json)
(Some Values.ListSessionsOutput.error_to_json)])
let process_payment =
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 userId = flag "user-id" (optional string) ~doc:"STRING UserId"
and agentName =
flag "agent-name" (optional string) ~doc:"STRING PaymentAgentName"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and paymentManagerArn =
flag "payment-manager-arn" (required string)
~doc:"STRING PaymentManagerArn"
and paymentSessionId =
flag "payment-session-id" (required string)
~doc:"STRING PaymentSessionId"
and paymentInstrumentId =
flag "payment-instrument-id" (required string)
~doc:"STRING PaymentInstrumentId"
and paymentType =
flag "payment-type" (required json_arg) ~doc:"JSON PaymentType"
and paymentInput =
flag "payment-input" (required json_arg) ~doc:"JSON PaymentInput" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.process_payment
(Values.ProcessPaymentRequest.make ?userId ?agentName ?clientToken
~paymentManagerArn ~paymentSessionId ~paymentInstrumentId
~paymentType:(Values.PaymentType.of_json paymentType)
~paymentInput:(Values.PaymentInput.of_json paymentInput) ())
(Some Values.ProcessPaymentResponse.to_json)
(Some Values.ProcessPaymentResponse.error_to_json)])
let retrieve_memory_records =
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 namespace =
flag "namespace" (optional string) ~doc:"STRING Namespace"
and namespacePath =
flag "namespace-path" (optional string) ~doc:"STRING Namespace"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING PaginationToken"
and maxResults =
flag "max-results" (optional int) ~doc:"INT MaxResults"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and searchCriteria =
flag "search-criteria" (required json_arg)
~doc:"JSON SearchCriteria" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.retrieve_memory_records
(Values.RetrieveMemoryRecordsInput.make ?namespace ?namespacePath
?nextToken ?maxResults ~memoryId
~searchCriteria:(Values.SearchCriteria.of_json searchCriteria)
()) (Some Values.RetrieveMemoryRecordsOutput.to_json)
(Some Values.RetrieveMemoryRecordsOutput.error_to_json)])
let save_browser_session_profile =
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 traceId =
flag "trace-id" (optional string)
~doc:"STRING SaveBrowserSessionProfileRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING SaveBrowserSessionProfileRequestTraceParentString"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and profileIdentifier =
flag "profile-identifier" (required string)
~doc:"STRING BrowserProfileId"
and browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String"
and sessionId =
flag "session-id" (required string) ~doc:"STRING BrowserSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.save_browser_session_profile
(Values.SaveBrowserSessionProfileRequest.make ?traceId
?traceParent ?clientToken ~profileIdentifier ~browserIdentifier
~sessionId ())
(Some Values.SaveBrowserSessionProfileResponse.to_json)
(Some Values.SaveBrowserSessionProfileResponse.error_to_json)])
let search_registry_records =
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 SearchRegistryRecordsRequestMaxResultsInteger"
and filters =
flag "filters" (optional json_arg)
~doc:"JSON MetadataFilterExpression"
and searchQuery =
flag "search-query" (required string)
~doc:"STRING SearchRegistryRecordsRequestSearchQueryString"
and registryIds =
flag "registry-ids" (required json_arg)
~doc:"JSON SearchRegistryRecordsRequestRegistryIdsList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.search_registry_records
(Values.SearchRegistryRecordsRequest.make ?maxResults
?filters:(Option.map ~f:Values.MetadataFilterExpression.of_json
filters) ~searchQuery
~registryIds:(Values.SearchRegistryRecordsRequestRegistryIdsList.of_json
registryIds) ())
(Some Values.SearchRegistryRecordsResponse.to_json)
(Some Values.SearchRegistryRecordsResponse.error_to_json)])
let start_batch_evaluation =
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 evaluators =
flag "evaluators" (optional json_arg)
~doc:"JSON StartBatchEvaluationRequestEvaluatorsList"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and evaluationMetadata =
flag "evaluation-metadata" (optional json_arg)
~doc:"JSON EvaluationMetadata"
and description =
flag "description" (optional string)
~doc:"STRING BatchEvaluationDescription"
and batchEvaluationName =
flag "batch-evaluation-name" (required string)
~doc:"STRING BatchEvaluationName"
and dataSourceConfig =
flag "data-source-config" (required json_arg)
~doc:"JSON DataSourceConfig" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.start_batch_evaluation
(Values.StartBatchEvaluationRequest.make
?evaluators:(Option.map
~f:Values.StartBatchEvaluationRequestEvaluatorsList.of_json
evaluators) ?clientToken
?evaluationMetadata:(Option.map
~f:Values.EvaluationMetadata.of_json
evaluationMetadata) ?description
~batchEvaluationName
~dataSourceConfig:(Values.DataSourceConfig.of_json
dataSourceConfig) ())
(Some Values.StartBatchEvaluationResponse.to_json)
(Some Values.StartBatchEvaluationResponse.error_to_json)])
let start_browser_session =
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 traceId =
flag "trace-id" (optional string)
~doc:"STRING StartBrowserSessionRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING StartBrowserSessionRequestTraceParentString"
and name = flag "name" (optional string) ~doc:"STRING Name"
and sessionTimeoutSeconds =
flag "session-timeout-seconds" (optional int)
~doc:"INT BrowserSessionTimeout"
and viewPort =
flag "view-port" (optional json_arg) ~doc:"JSON ViewPort"
and extensions =
flag "extensions" (optional json_arg) ~doc:"JSON BrowserExtensions"
and profileConfiguration =
flag "profile-configuration" (optional json_arg)
~doc:"JSON BrowserProfileConfiguration"
and proxyConfiguration =
flag "proxy-configuration" (optional json_arg)
~doc:"JSON ProxyConfiguration"
and enterprisePolicies =
flag "enterprise-policies" (optional json_arg)
~doc:"JSON BrowserEnterprisePolicies"
and certificates =
flag "certificates" (optional json_arg) ~doc:"JSON Certificates"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.start_browser_session
(Values.StartBrowserSessionRequest.make ?traceId ?traceParent
?name ?sessionTimeoutSeconds
?viewPort:(Option.map ~f:Values.ViewPort.of_json viewPort)
?extensions:(Option.map ~f:Values.BrowserExtensions.of_json
extensions)
?profileConfiguration:(Option.map
~f:Values.BrowserProfileConfiguration.of_json
profileConfiguration)
?proxyConfiguration:(Option.map
~f:Values.ProxyConfiguration.of_json
proxyConfiguration)
?enterprisePolicies:(Option.map
~f:Values.BrowserEnterprisePolicies.of_json
enterprisePolicies)
?certificates:(Option.map ~f:Values.Certificates.of_json
certificates) ?clientToken ~browserIdentifier
()) (Some Values.StartBrowserSessionResponse.to_json)
(Some Values.StartBrowserSessionResponse.error_to_json)])
let start_code_interpreter_session =
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 traceId =
flag "trace-id" (optional string)
~doc:"STRING StartCodeInterpreterSessionRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING StartCodeInterpreterSessionRequestTraceParentString"
and name = flag "name" (optional string) ~doc:"STRING Name"
and sessionTimeoutSeconds =
flag "session-timeout-seconds" (optional int)
~doc:"INT CodeInterpreterSessionTimeout"
and certificates =
flag "certificates" (optional json_arg) ~doc:"JSON Certificates"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and codeInterpreterIdentifier =
flag "code-interpreter-identifier" (required string)
~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.start_code_interpreter_session
(Values.StartCodeInterpreterSessionRequest.make ?traceId
?traceParent ?name ?sessionTimeoutSeconds
?certificates:(Option.map ~f:Values.Certificates.of_json
certificates) ?clientToken
~codeInterpreterIdentifier ())
(Some Values.StartCodeInterpreterSessionResponse.to_json)
(Some Values.StartCodeInterpreterSessionResponse.error_to_json)])
let =
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 clientToken =
flag "client-token" (optional string) ~doc:"STRING String"
and memoryId =
flag "memory-id" (required string) ~doc:"STRING MemoryId"
and =
flag "extraction-job" (required json_arg) ~doc:"JSON ExtractionJob" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.start_memory_extraction_job
(Values.StartMemoryExtractionJobInput.make ?clientToken ~memoryId
~extractionJob:(Values.ExtractionJob.of_json extractionJob) ())
(Some Values.StartMemoryExtractionJobOutput.to_json)
(Some Values.StartMemoryExtractionJobOutput.error_to_json)])
let start_recommendation =
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 description =
flag "description" (optional string)
~doc:"STRING RecommendationDescription"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and name =
flag "name" (required string) ~doc:"STRING RecommendationName"
and type_ =
flag "type-" (required json_arg) ~doc:"JSON RecommendationType"
and recommendationConfig =
flag "recommendation-config" (required json_arg)
~doc:"JSON RecommendationConfig" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.start_recommendation
(Values.StartRecommendationRequest.make ?description ?clientToken
~name ~type_:(Values.RecommendationType.of_json type_)
~recommendationConfig:(Values.RecommendationConfig.of_json
recommendationConfig) ())
(Some Values.StartRecommendationResponse.to_json)
(Some Values.StartRecommendationResponse.error_to_json)])
let stop_batch_evaluation =
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 batchEvaluationId =
flag "batch-evaluation-id" (required string)
~doc:"STRING BatchEvaluationId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.stop_batch_evaluation
(Values.StopBatchEvaluationRequest.make ~batchEvaluationId ())
(Some Values.StopBatchEvaluationResponse.to_json)
(Some Values.StopBatchEvaluationResponse.error_to_json)])
let stop_browser_session =
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 traceId =
flag "trace-id" (optional string)
~doc:"STRING StopBrowserSessionRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING StopBrowserSessionRequestTraceParentString"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String"
and sessionId =
flag "session-id" (required string) ~doc:"STRING BrowserSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.stop_browser_session
(Values.StopBrowserSessionRequest.make ?traceId ?traceParent
?clientToken ~browserIdentifier ~sessionId ())
(Some Values.StopBrowserSessionResponse.to_json)
(Some Values.StopBrowserSessionResponse.error_to_json)])
let stop_code_interpreter_session =
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 traceId =
flag "trace-id" (optional string)
~doc:"STRING StopCodeInterpreterSessionRequestTraceIdString"
and traceParent =
flag "trace-parent" (optional string)
~doc:"STRING StopCodeInterpreterSessionRequestTraceParentString"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and codeInterpreterIdentifier =
flag "code-interpreter-identifier" (required string)
~doc:"STRING String"
and sessionId =
flag "session-id" (required string)
~doc:"STRING CodeInterpreterSessionId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.stop_code_interpreter_session
(Values.StopCodeInterpreterSessionRequest.make ?traceId
?traceParent ?clientToken ~codeInterpreterIdentifier ~sessionId
()) (Some Values.StopCodeInterpreterSessionResponse.to_json)
(Some Values.StopCodeInterpreterSessionResponse.error_to_json)])
let stop_runtime_session =
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 qualifier =
flag "qualifier" (optional string) ~doc:"STRING String"
and clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and runtimeSessionId =
flag "runtime-session-id" (required string)
~doc:"STRING SessionType"
and agentRuntimeArn =
flag "agent-runtime-arn" (required string) ~doc:"STRING String" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.stop_runtime_session
(Values.StopRuntimeSessionRequest.make ?qualifier ?clientToken
~runtimeSessionId ~agentRuntimeArn ())
(Some Values.StopRuntimeSessionResponse.to_json)
(Some Values.StopRuntimeSessionResponse.error_to_json)])
let update_a_b_test =
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 clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and name = flag "name" (optional string) ~doc:"STRING ABTestName"
and description =
flag "description" (optional string) ~doc:"STRING ABTestDescription"
and variants =
flag "variants" (optional json_arg) ~doc:"JSON VariantList"
and gatewayFilter =
flag "gateway-filter" (optional json_arg) ~doc:"JSON GatewayFilter"
and evaluationConfig =
flag "evaluation-config" (optional json_arg)
~doc:"JSON ABTestEvaluationConfig"
and roleArn = flag "role-arn" (optional string) ~doc:"STRING RoleArn"
and executionStatus =
flag "execution-status" (optional json_arg)
~doc:"JSON ABTestExecutionStatus"
and abTestId =
flag "ab-test-id" (required string) ~doc:"STRING ABTestId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_a_b_test
(Values.UpdateABTestRequest.make ?clientToken ?name ?description
?variants:(Option.map ~f:Values.VariantList.of_json variants)
?gatewayFilter:(Option.map ~f:Values.GatewayFilter.of_json
gatewayFilter)
?evaluationConfig:(Option.map
~f:Values.ABTestEvaluationConfig.of_json
evaluationConfig) ?roleArn
?executionStatus:(Option.map
~f:Values.ABTestExecutionStatus.of_json
executionStatus) ~abTestId ())
(Some Values.UpdateABTestResponse.to_json)
(Some Values.UpdateABTestResponse.error_to_json)])
let update_browser_stream =
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 clientToken =
flag "client-token" (optional string) ~doc:"STRING ClientToken"
and browserIdentifier =
flag "browser-identifier" (required string) ~doc:"STRING String"
and sessionId =
flag "session-id" (required string) ~doc:"STRING BrowserSessionId"
and streamUpdate =
flag "stream-update" (required json_arg) ~doc:"JSON StreamUpdate" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_browser_stream
(Values.UpdateBrowserStreamRequest.make ?clientToken
~browserIdentifier ~sessionId
~streamUpdate:(Values.StreamUpdate.of_json streamUpdate) ())
(Some Values.UpdateBrowserStreamResponse.to_json)
(Some Values.UpdateBrowserStreamResponse.error_to_json)])
let main =
Command.group
~summary:((Awso.Service.to_string Values.service) ^ " commands")
[("batch-create-memory-records", batch_create_memory_records);
("batch-delete-memory-records", batch_delete_memory_records);
("batch-update-memory-records", batch_update_memory_records);
("complete-resource-token-auth", complete_resource_token_auth);
("create-a-b-test", create_a_b_test);
("create-event", create_event);
("create-payment-instrument", create_payment_instrument);
("create-payment-session", create_payment_session);
("delete-a-b-test", delete_a_b_test);
("delete-batch-evaluation", delete_batch_evaluation);
("delete-event", delete_event);
("delete-memory-record", delete_memory_record);
("delete-payment-instrument", delete_payment_instrument);
("delete-payment-session", delete_payment_session);
("delete-recommendation", delete_recommendation);
("evaluate", evaluate);
("get-a-b-test", get_a_b_test);
("get-agent-card", get_agent_card);
("get-batch-evaluation", get_batch_evaluation);
("get-browser-session", get_browser_session);
("get-code-interpreter-session", get_code_interpreter_session);
("get-event", get_event);
("get-memory-record", get_memory_record);
("get-payment-instrument", get_payment_instrument);
("get-payment-instrument-balance", get_payment_instrument_balance);
("get-payment-session", get_payment_session);
("get-recommendation", get_recommendation);
("get-resource-api-key", get_resource_api_key);
("get-resource-oauth2-token", get_resource_oauth2_token);
("get-resource-payment-token", get_resource_payment_token);
("get-workload-access-token", get_workload_access_token);
("get-workload-access-token-for-j-w-t",
get_workload_access_token_for_j_w_t);
("get-workload-access-token-for-user-id",
get_workload_access_token_for_user_id);
("invoke-agent-runtime", invoke_agent_runtime);
("invoke-agent-runtime-command", invoke_agent_runtime_command);
("invoke-browser", invoke_browser);
("invoke-code-interpreter", invoke_code_interpreter);
("invoke-harness", invoke_harness);
("list-a-b-tests", list_a_b_tests);
("list-actors", list_actors);
("list-batch-evaluations", list_batch_evaluations);
("list-browser-sessions", list_browser_sessions);
("list-code-interpreter-sessions", list_code_interpreter_sessions);
("list-events", list_events);
("list-memory-extraction-jobs", list_memory_extraction_jobs);
("list-memory-records", list_memory_records);
("list-payment-instruments", list_payment_instruments);
("list-payment-sessions", list_payment_sessions);
("list-recommendations", list_recommendations);
("list-sessions", list_sessions);
("process-payment", process_payment);
("retrieve-memory-records", retrieve_memory_records);
("save-browser-session-profile", save_browser_session_profile);
("search-registry-records", search_registry_records);
("start-batch-evaluation", start_batch_evaluation);
("start-browser-session", start_browser_session);
("start-code-interpreter-session", start_code_interpreter_session);
("start-memory-extraction-job", start_memory_extraction_job);
("start-recommendation", start_recommendation);
("stop-batch-evaluation", stop_batch_evaluation);
("stop-browser-session", stop_browser_session);
("stop-code-interpreter-session", stop_code_interpreter_session);
("stop-runtime-session", stop_runtime_session);
("update-a-b-test", update_a_b_test);
("update-browser-stream", update_browser_stream)]