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
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 add_tags_to_on_premises_instances =
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 tags = flag "tags" (required json_arg) ~doc:"JSON TagList"
and instanceNames =
flag "instance-names" (required json_arg)
~doc:"JSON InstanceNameList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.add_tags_to_on_premises_instances
(Values.AddTagsToOnPremisesInstancesInput.make
~tags:(Values.TagList.of_json tags)
~instanceNames:(Values.InstanceNameList.of_json instanceNames)
()) None None])
let batch_get_application_revisions =
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 applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and revisions =
flag "revisions" (required json_arg)
~doc:"JSON RevisionLocationList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_application_revisions
(Values.BatchGetApplicationRevisionsInput.make ~applicationName
~revisions:(Values.RevisionLocationList.of_json revisions) ())
(Some Values.BatchGetApplicationRevisionsOutput.to_json)
(Some Values.BatchGetApplicationRevisionsOutput.error_to_json)])
let batch_get_applications =
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 applicationNames =
flag "application-names" (required json_arg)
~doc:"JSON ApplicationsList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_applications
(Values.BatchGetApplicationsInput.make
~applicationNames:(Values.ApplicationsList.of_json
applicationNames) ())
(Some Values.BatchGetApplicationsOutput.to_json)
(Some Values.BatchGetApplicationsOutput.error_to_json)])
let batch_get_deployment_groups =
Command.async ~summary:""
([%map_open.Command
let cli_profile =
flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use"
and cli_region =
flag "-cli-region" (optional string) ~doc:"REGION override region"
and endpoint_url =
flag "-endpoint-url" (optional string)
~doc:"URL override endpoint url"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and deploymentGroupNames =
flag "deployment-group-names" (required json_arg)
~doc:"JSON DeploymentGroupsList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_deployment_groups
(Values.BatchGetDeploymentGroupsInput.make ~applicationName
~deploymentGroupNames:(Values.DeploymentGroupsList.of_json
deploymentGroupNames) ())
(Some Values.BatchGetDeploymentGroupsOutput.to_json)
(Some Values.BatchGetDeploymentGroupsOutput.error_to_json)])
let batch_get_deployment_instances =
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 deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId"
and instanceIds =
flag "instance-ids" (required json_arg) ~doc:"JSON InstancesList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_deployment_instances
(Values.BatchGetDeploymentInstancesInput.make ~deploymentId
~instanceIds:(Values.InstancesList.of_json instanceIds) ())
(Some Values.BatchGetDeploymentInstancesOutput.to_json)
(Some Values.BatchGetDeploymentInstancesOutput.error_to_json)])
let batch_get_deployment_targets =
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 deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId"
and targetIds =
flag "target-ids" (required json_arg) ~doc:"JSON TargetIdList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_deployment_targets
(Values.BatchGetDeploymentTargetsInput.make ~deploymentId
~targetIds:(Values.TargetIdList.of_json targetIds) ())
(Some Values.BatchGetDeploymentTargetsOutput.to_json)
(Some Values.BatchGetDeploymentTargetsOutput.error_to_json)])
let batch_get_deployments =
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 deploymentIds =
flag "deployment-ids" (required json_arg)
~doc:"JSON DeploymentsList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_deployments
(Values.BatchGetDeploymentsInput.make
~deploymentIds:(Values.DeploymentsList.of_json deploymentIds)
()) (Some Values.BatchGetDeploymentsOutput.to_json)
(Some Values.BatchGetDeploymentsOutput.error_to_json)])
let batch_get_on_premises_instances =
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 instanceNames =
flag "instance-names" (required json_arg)
~doc:"JSON InstanceNameList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.batch_get_on_premises_instances
(Values.BatchGetOnPremisesInstancesInput.make
~instanceNames:(Values.InstanceNameList.of_json instanceNames)
()) (Some Values.BatchGetOnPremisesInstancesOutput.to_json)
(Some Values.BatchGetOnPremisesInstancesOutput.error_to_json)])
let continue_deployment =
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 deploymentId =
flag "deployment-id" (optional string) ~doc:"STRING DeploymentId"
and deploymentWaitType =
flag "deployment-wait-type" (optional json_arg)
~doc:"JSON DeploymentWaitType" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.continue_deployment
(Values.ContinueDeploymentInput.make ?deploymentId
?deploymentWaitType:(Option.map
~f:Values.DeploymentWaitType.of_json
deploymentWaitType) ()) None None])
let create_application =
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 computePlatform =
flag "compute-platform" (optional json_arg)
~doc:"JSON ComputePlatform"
and tags = flag "tags" (optional json_arg) ~doc:"JSON TagList"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_application
(Values.CreateApplicationInput.make
?computePlatform:(Option.map ~f:Values.ComputePlatform.of_json
computePlatform)
?tags:(Option.map ~f:Values.TagList.of_json tags)
~applicationName ())
(Some Values.CreateApplicationOutput.to_json)
(Some Values.CreateApplicationOutput.error_to_json)])
let create_deployment =
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 deploymentGroupName =
flag "deployment-group-name" (optional string)
~doc:"STRING DeploymentGroupName"
and revision =
flag "revision" (optional json_arg) ~doc:"JSON RevisionLocation"
and deploymentConfigName =
flag "deployment-config-name" (optional string)
~doc:"STRING DeploymentConfigName"
and description =
flag "description" (optional string) ~doc:"STRING Description"
and ignoreApplicationStopFailures =
flag "ignore-application-stop-failures" (optional bool)
~doc:"BOOL Boolean"
and targetInstances =
flag "target-instances" (optional json_arg)
~doc:"JSON TargetInstances"
and autoRollbackConfiguration =
flag "auto-rollback-configuration" (optional json_arg)
~doc:"JSON AutoRollbackConfiguration"
and updateOutdatedInstancesOnly =
flag "update-outdated-instances-only" (optional bool)
~doc:"BOOL Boolean"
and fileExistsBehavior =
flag "file-exists-behavior" (optional json_arg)
~doc:"JSON FileExistsBehavior"
and overrideAlarmConfiguration =
flag "override-alarm-configuration" (optional json_arg)
~doc:"JSON AlarmConfiguration"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_deployment
(Values.CreateDeploymentInput.make ?deploymentGroupName
?revision:(Option.map ~f:Values.RevisionLocation.of_json
revision) ?deploymentConfigName ?description
?ignoreApplicationStopFailures
?targetInstances:(Option.map ~f:Values.TargetInstances.of_json
targetInstances)
?autoRollbackConfiguration:(Option.map
~f:Values.AutoRollbackConfiguration.of_json
autoRollbackConfiguration)
?updateOutdatedInstancesOnly
?fileExistsBehavior:(Option.map
~f:Values.FileExistsBehavior.of_json
fileExistsBehavior)
?overrideAlarmConfiguration:(Option.map
~f:Values.AlarmConfiguration.of_json
overrideAlarmConfiguration)
~applicationName ())
(Some Values.CreateDeploymentOutput.to_json)
(Some Values.CreateDeploymentOutput.error_to_json)])
let create_deployment_config =
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 minimumHealthyHosts =
flag "minimum-healthy-hosts" (optional json_arg)
~doc:"JSON MinimumHealthyHosts"
and trafficRoutingConfig =
flag "traffic-routing-config" (optional json_arg)
~doc:"JSON TrafficRoutingConfig"
and computePlatform =
flag "compute-platform" (optional json_arg)
~doc:"JSON ComputePlatform"
and zonalConfig =
flag "zonal-config" (optional json_arg) ~doc:"JSON ZonalConfig"
and deploymentConfigName =
flag "deployment-config-name" (required string)
~doc:"STRING DeploymentConfigName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_deployment_config
(Values.CreateDeploymentConfigInput.make
?minimumHealthyHosts:(Option.map
~f:Values.MinimumHealthyHosts.of_json
minimumHealthyHosts)
?trafficRoutingConfig:(Option.map
~f:Values.TrafficRoutingConfig.of_json
trafficRoutingConfig)
?computePlatform:(Option.map ~f:Values.ComputePlatform.of_json
computePlatform)
?zonalConfig:(Option.map ~f:Values.ZonalConfig.of_json
zonalConfig) ~deploymentConfigName ())
(Some Values.CreateDeploymentConfigOutput.to_json)
(Some Values.CreateDeploymentConfigOutput.error_to_json)])
let create_deployment_group =
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 deploymentConfigName =
flag "deployment-config-name" (optional string)
~doc:"STRING DeploymentConfigName"
and ec2TagFilters =
flag "ec2-tag-filters" (optional json_arg)
~doc:"JSON EC2TagFilterList"
and onPremisesInstanceTagFilters =
flag "on-premises-instance-tag-filters" (optional json_arg)
~doc:"JSON TagFilterList"
and autoScalingGroups =
flag "auto-scaling-groups" (optional json_arg)
~doc:"JSON AutoScalingGroupNameList"
and triggerConfigurations =
flag "trigger-configurations" (optional json_arg)
~doc:"JSON TriggerConfigList"
and alarmConfiguration =
flag "alarm-configuration" (optional json_arg)
~doc:"JSON AlarmConfiguration"
and autoRollbackConfiguration =
flag "auto-rollback-configuration" (optional json_arg)
~doc:"JSON AutoRollbackConfiguration"
and outdatedInstancesStrategy =
flag "outdated-instances-strategy" (optional json_arg)
~doc:"JSON OutdatedInstancesStrategy"
and deploymentStyle =
flag "deployment-style" (optional json_arg)
~doc:"JSON DeploymentStyle"
and blueGreenDeploymentConfiguration =
flag "blue-green-deployment-configuration" (optional json_arg)
~doc:"JSON BlueGreenDeploymentConfiguration"
and loadBalancerInfo =
flag "load-balancer-info" (optional json_arg)
~doc:"JSON LoadBalancerInfo"
and ec2TagSet =
flag "ec2-tag-set" (optional json_arg) ~doc:"JSON EC2TagSet"
and ecsServices =
flag "ecs-services" (optional json_arg) ~doc:"JSON ECSServiceList"
and onPremisesTagSet =
flag "on-premises-tag-set" (optional json_arg)
~doc:"JSON OnPremisesTagSet"
and tags = flag "tags" (optional json_arg) ~doc:"JSON TagList"
and terminationHookEnabled =
flag "termination-hook-enabled" (optional bool)
~doc:"BOOL NullableBoolean"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and deploymentGroupName =
flag "deployment-group-name" (required string)
~doc:"STRING DeploymentGroupName"
and serviceRoleArn =
flag "service-role-arn" (required string) ~doc:"STRING Role" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.create_deployment_group
(Values.CreateDeploymentGroupInput.make ?deploymentConfigName
?ec2TagFilters:(Option.map ~f:Values.EC2TagFilterList.of_json
ec2TagFilters)
?onPremisesInstanceTagFilters:(Option.map
~f:Values.TagFilterList.of_json
onPremisesInstanceTagFilters)
?autoScalingGroups:(Option.map
~f:Values.AutoScalingGroupNameList.of_json
autoScalingGroups)
?triggerConfigurations:(Option.map
~f:Values.TriggerConfigList.of_json
triggerConfigurations)
?alarmConfiguration:(Option.map
~f:Values.AlarmConfiguration.of_json
alarmConfiguration)
?autoRollbackConfiguration:(Option.map
~f:Values.AutoRollbackConfiguration.of_json
autoRollbackConfiguration)
?outdatedInstancesStrategy:(Option.map
~f:Values.OutdatedInstancesStrategy.of_json
outdatedInstancesStrategy)
?deploymentStyle:(Option.map ~f:Values.DeploymentStyle.of_json
deploymentStyle)
?blueGreenDeploymentConfiguration:(Option.map
~f:Values.BlueGreenDeploymentConfiguration.of_json
blueGreenDeploymentConfiguration)
?loadBalancerInfo:(Option.map
~f:Values.LoadBalancerInfo.of_json
loadBalancerInfo)
?ec2TagSet:(Option.map ~f:Values.EC2TagSet.of_json ec2TagSet)
?ecsServices:(Option.map ~f:Values.ECSServiceList.of_json
ecsServices)
?onPremisesTagSet:(Option.map
~f:Values.OnPremisesTagSet.of_json
onPremisesTagSet)
?tags:(Option.map ~f:Values.TagList.of_json tags)
?terminationHookEnabled ~applicationName ~deploymentGroupName
~serviceRoleArn ())
(Some Values.CreateDeploymentGroupOutput.to_json)
(Some Values.CreateDeploymentGroupOutput.error_to_json)])
let delete_application =
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 applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_application
(Values.DeleteApplicationInput.make ~applicationName ()) None None])
let delete_deployment_config =
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 deploymentConfigName =
flag "deployment-config-name" (required string)
~doc:"STRING DeploymentConfigName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_deployment_config
(Values.DeleteDeploymentConfigInput.make ~deploymentConfigName ())
None None])
let delete_deployment_group =
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 applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and deploymentGroupName =
flag "deployment-group-name" (required string)
~doc:"STRING DeploymentGroupName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_deployment_group
(Values.DeleteDeploymentGroupInput.make ~applicationName
~deploymentGroupName ())
(Some Values.DeleteDeploymentGroupOutput.to_json)
(Some Values.DeleteDeploymentGroupOutput.error_to_json)])
let delete_git_hub_account_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 tokenName =
flag "token-name" (optional string)
~doc:"STRING GitHubAccountTokenName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_git_hub_account_token
(Values.DeleteGitHubAccountTokenInput.make ?tokenName ())
(Some Values.DeleteGitHubAccountTokenOutput.to_json)
(Some Values.DeleteGitHubAccountTokenOutput.error_to_json)])
let delete_resources_by_external_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 externalId =
flag "external-id" (optional string) ~doc:"STRING ExternalId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.delete_resources_by_external_id
(Values.DeleteResourcesByExternalIdInput.make ?externalId ())
(Some Values.DeleteResourcesByExternalIdOutput.to_json)
(Some Values.DeleteResourcesByExternalIdOutput.error_to_json)])
let deregister_on_premises_instance =
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 instanceName =
flag "instance-name" (required string) ~doc:"STRING InstanceName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.deregister_on_premises_instance
(Values.DeregisterOnPremisesInstanceInput.make ~instanceName ())
None None])
let get_application =
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 applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_application
(Values.GetApplicationInput.make ~applicationName ())
(Some Values.GetApplicationOutput.to_json)
(Some Values.GetApplicationOutput.error_to_json)])
let get_application_revision =
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 applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and revision =
flag "revision" (required json_arg) ~doc:"JSON RevisionLocation" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_application_revision
(Values.GetApplicationRevisionInput.make ~applicationName
~revision:(Values.RevisionLocation.of_json revision) ())
(Some Values.GetApplicationRevisionOutput.to_json)
(Some Values.GetApplicationRevisionOutput.error_to_json)])
let get_deployment =
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 deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_deployment
(Values.GetDeploymentInput.make ~deploymentId ())
(Some Values.GetDeploymentOutput.to_json)
(Some Values.GetDeploymentOutput.error_to_json)])
let get_deployment_config =
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 deploymentConfigName =
flag "deployment-config-name" (required string)
~doc:"STRING DeploymentConfigName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_deployment_config
(Values.GetDeploymentConfigInput.make ~deploymentConfigName ())
(Some Values.GetDeploymentConfigOutput.to_json)
(Some Values.GetDeploymentConfigOutput.error_to_json)])
let get_deployment_group =
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 applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and deploymentGroupName =
flag "deployment-group-name" (required string)
~doc:"STRING DeploymentGroupName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_deployment_group
(Values.GetDeploymentGroupInput.make ~applicationName
~deploymentGroupName ())
(Some Values.GetDeploymentGroupOutput.to_json)
(Some Values.GetDeploymentGroupOutput.error_to_json)])
let get_deployment_instance =
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 deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId"
and instanceId =
flag "instance-id" (required string) ~doc:"STRING InstanceId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_deployment_instance
(Values.GetDeploymentInstanceInput.make ~deploymentId ~instanceId
()) (Some Values.GetDeploymentInstanceOutput.to_json)
(Some Values.GetDeploymentInstanceOutput.error_to_json)])
let get_deployment_target =
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 deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId"
and targetId =
flag "target-id" (required string) ~doc:"STRING TargetId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_deployment_target
(Values.GetDeploymentTargetInput.make ~deploymentId ~targetId ())
(Some Values.GetDeploymentTargetOutput.to_json)
(Some Values.GetDeploymentTargetOutput.error_to_json)])
let get_on_premises_instance =
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 instanceName =
flag "instance-name" (required string) ~doc:"STRING InstanceName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.get_on_premises_instance
(Values.GetOnPremisesInstanceInput.make ~instanceName ())
(Some Values.GetOnPremisesInstanceOutput.to_json)
(Some Values.GetOnPremisesInstanceOutput.error_to_json)])
let list_application_revisions =
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 sortBy =
flag "sort-by" (optional json_arg)
~doc:"JSON ApplicationRevisionSortBy"
and sortOrder =
flag "sort-order" (optional json_arg) ~doc:"JSON SortOrder"
and s3Bucket =
flag "s3-bucket" (optional string) ~doc:"STRING S3Bucket"
and s3KeyPrefix =
flag "s3-key-prefix" (optional string) ~doc:"STRING S3Key"
and deployed =
flag "deployed" (optional json_arg)
~doc:"JSON ListStateFilterAction"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_application_revisions
(Values.ListApplicationRevisionsInput.make
?sortBy:(Option.map ~f:Values.ApplicationRevisionSortBy.of_json
sortBy)
?sortOrder:(Option.map ~f:Values.SortOrder.of_json sortOrder)
?s3Bucket ?s3KeyPrefix
?deployed:(Option.map ~f:Values.ListStateFilterAction.of_json
deployed) ?nextToken ~applicationName ())
(Some Values.ListApplicationRevisionsOutput.to_json)
(Some Values.ListApplicationRevisionsOutput.error_to_json)])
let list_applications =
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 nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_applications
(Values.ListApplicationsInput.make ?nextToken ())
(Some Values.ListApplicationsOutput.to_json)
(Some Values.ListApplicationsOutput.error_to_json)])
let list_deployment_configs =
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 nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_deployment_configs
(Values.ListDeploymentConfigsInput.make ?nextToken ())
(Some Values.ListDeploymentConfigsOutput.to_json)
(Some Values.ListDeploymentConfigsOutput.error_to_json)])
let list_deployment_groups =
Command.async ~summary:""
([%map_open.Command
let cli_profile =
flag "-cli-profile" (optional string) ~doc:"NAME aws profile to use"
and cli_region =
flag "-cli-region" (optional string) ~doc:"REGION override region"
and endpoint_url =
flag "-endpoint-url" (optional string)
~doc:"URL override endpoint url"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_deployment_groups
(Values.ListDeploymentGroupsInput.make ?nextToken ~applicationName
()) (Some Values.ListDeploymentGroupsOutput.to_json)
(Some Values.ListDeploymentGroupsOutput.error_to_json)])
let list_deployment_instances =
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 nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and instanceStatusFilter =
flag "instance-status-filter" (optional json_arg)
~doc:"JSON InstanceStatusList"
and instanceTypeFilter =
flag "instance-type-filter" (optional json_arg)
~doc:"JSON InstanceTypeList"
and deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_deployment_instances
(Values.ListDeploymentInstancesInput.make ?nextToken
?instanceStatusFilter:(Option.map
~f:Values.InstanceStatusList.of_json
instanceStatusFilter)
?instanceTypeFilter:(Option.map
~f:Values.InstanceTypeList.of_json
instanceTypeFilter) ~deploymentId ())
(Some Values.ListDeploymentInstancesOutput.to_json)
(Some Values.ListDeploymentInstancesOutput.error_to_json)])
let list_deployment_targets =
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 nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and targetFilters =
flag "target-filters" (optional json_arg) ~doc:"JSON TargetFilters"
and deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_deployment_targets
(Values.ListDeploymentTargetsInput.make ?nextToken
?targetFilters:(Option.map ~f:Values.TargetFilters.of_json
targetFilters) ~deploymentId ())
(Some Values.ListDeploymentTargetsOutput.to_json)
(Some Values.ListDeploymentTargetsOutput.error_to_json)])
let list_deployments =
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 applicationName =
flag "application-name" (optional string)
~doc:"STRING ApplicationName"
and deploymentGroupName =
flag "deployment-group-name" (optional string)
~doc:"STRING DeploymentGroupName"
and externalId =
flag "external-id" (optional string) ~doc:"STRING ExternalId"
and includeOnlyStatuses =
flag "include-only-statuses" (optional json_arg)
~doc:"JSON DeploymentStatusList"
and createTimeRange =
flag "create-time-range" (optional json_arg) ~doc:"JSON TimeRange"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_deployments
(Values.ListDeploymentsInput.make ?applicationName
?deploymentGroupName ?externalId
?includeOnlyStatuses:(Option.map
~f:Values.DeploymentStatusList.of_json
includeOnlyStatuses)
?createTimeRange:(Option.map ~f:Values.TimeRange.of_json
createTimeRange) ?nextToken ())
(Some Values.ListDeploymentsOutput.to_json)
(Some Values.ListDeploymentsOutput.error_to_json)])
let list_git_hub_account_token_names =
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 nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_git_hub_account_token_names
(Values.ListGitHubAccountTokenNamesInput.make ?nextToken ())
(Some Values.ListGitHubAccountTokenNamesOutput.to_json)
(Some Values.ListGitHubAccountTokenNamesOutput.error_to_json)])
let list_on_premises_instances =
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 registrationStatus =
flag "registration-status" (optional json_arg)
~doc:"JSON RegistrationStatus"
and tagFilters =
flag "tag-filters" (optional json_arg) ~doc:"JSON TagFilterList"
and nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_on_premises_instances
(Values.ListOnPremisesInstancesInput.make
?registrationStatus:(Option.map
~f:Values.RegistrationStatus.of_json
registrationStatus)
?tagFilters:(Option.map ~f:Values.TagFilterList.of_json
tagFilters) ?nextToken ())
(Some Values.ListOnPremisesInstancesOutput.to_json)
(Some Values.ListOnPremisesInstancesOutput.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 nextToken =
flag "next-token" (optional string) ~doc:"STRING NextToken"
and resourceArn =
flag "resource-arn" (required string) ~doc:"STRING Arn" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.list_tags_for_resource
(Values.ListTagsForResourceInput.make ?nextToken ~resourceArn ())
(Some Values.ListTagsForResourceOutput.to_json)
(Some Values.ListTagsForResourceOutput.error_to_json)])
let put_lifecycle_event_hook_execution_status =
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 deploymentId =
flag "deployment-id" (optional string) ~doc:"STRING DeploymentId"
and lifecycleEventHookExecutionId =
flag "lifecycle-event-hook-execution-id" (optional string)
~doc:"STRING LifecycleEventHookExecutionId"
and status =
flag "status" (optional json_arg) ~doc:"JSON LifecycleEventStatus" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.put_lifecycle_event_hook_execution_status
(Values.PutLifecycleEventHookExecutionStatusInput.make
?deploymentId ?lifecycleEventHookExecutionId
?status:(Option.map ~f:Values.LifecycleEventStatus.of_json
status) ())
(Some Values.PutLifecycleEventHookExecutionStatusOutput.to_json)
(Some
Values.PutLifecycleEventHookExecutionStatusOutput.error_to_json)])
let register_application_revision =
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 Description"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and revision =
flag "revision" (required json_arg) ~doc:"JSON RevisionLocation" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.register_application_revision
(Values.RegisterApplicationRevisionInput.make ?description
~applicationName
~revision:(Values.RevisionLocation.of_json revision) ()) None
None])
let register_on_premises_instance =
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 iamSessionArn =
flag "iam-session-arn" (optional string) ~doc:"STRING IamSessionArn"
and iamUserArn =
flag "iam-user-arn" (optional string) ~doc:"STRING IamUserArn"
and instanceName =
flag "instance-name" (required string) ~doc:"STRING InstanceName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.register_on_premises_instance
(Values.RegisterOnPremisesInstanceInput.make ?iamSessionArn
?iamUserArn ~instanceName ()) None None])
let remove_tags_from_on_premises_instances =
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 tags = flag "tags" (required json_arg) ~doc:"JSON TagList"
and instanceNames =
flag "instance-names" (required json_arg)
~doc:"JSON InstanceNameList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.remove_tags_from_on_premises_instances
(Values.RemoveTagsFromOnPremisesInstancesInput.make
~tags:(Values.TagList.of_json tags)
~instanceNames:(Values.InstanceNameList.of_json instanceNames)
()) None None])
let skip_wait_time_for_instance_termination =
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 deploymentId =
flag "deployment-id" (optional string) ~doc:"STRING DeploymentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.skip_wait_time_for_instance_termination
(Values.SkipWaitTimeForInstanceTerminationInput.make ?deploymentId
()) None None])
let stop_deployment =
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 autoRollbackEnabled =
flag "auto-rollback-enabled" (optional bool)
~doc:"BOOL NullableBoolean"
and deploymentId =
flag "deployment-id" (required string) ~doc:"STRING DeploymentId" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.stop_deployment
(Values.StopDeploymentInput.make ?autoRollbackEnabled
~deploymentId ()) (Some Values.StopDeploymentOutput.to_json)
(Some Values.StopDeploymentOutput.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-arn" (required string) ~doc:"STRING Arn"
and tags = flag "tags" (required json_arg) ~doc:"JSON TagList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.tag_resource
(Values.TagResourceInput.make ~resourceArn
~tags:(Values.TagList.of_json tags) ())
(Some Values.TagResourceOutput.to_json)
(Some Values.TagResourceOutput.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-arn" (required string) ~doc:"STRING Arn"
and tagKeys =
flag "tag-keys" (required json_arg) ~doc:"JSON TagKeyList" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.untag_resource
(Values.UntagResourceInput.make ~resourceArn
~tagKeys:(Values.TagKeyList.of_json tagKeys) ())
(Some Values.UntagResourceOutput.to_json)
(Some Values.UntagResourceOutput.error_to_json)])
let update_application =
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 applicationName =
flag "application-name" (optional string)
~doc:"STRING ApplicationName"
and newApplicationName =
flag "new-application-name" (optional string)
~doc:"STRING ApplicationName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_application
(Values.UpdateApplicationInput.make ?applicationName
?newApplicationName ()) None None])
let update_deployment_group =
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 newDeploymentGroupName =
flag "new-deployment-group-name" (optional string)
~doc:"STRING DeploymentGroupName"
and deploymentConfigName =
flag "deployment-config-name" (optional string)
~doc:"STRING DeploymentConfigName"
and ec2TagFilters =
flag "ec2-tag-filters" (optional json_arg)
~doc:"JSON EC2TagFilterList"
and onPremisesInstanceTagFilters =
flag "on-premises-instance-tag-filters" (optional json_arg)
~doc:"JSON TagFilterList"
and autoScalingGroups =
flag "auto-scaling-groups" (optional json_arg)
~doc:"JSON AutoScalingGroupNameList"
and serviceRoleArn =
flag "service-role-arn" (optional string) ~doc:"STRING Role"
and triggerConfigurations =
flag "trigger-configurations" (optional json_arg)
~doc:"JSON TriggerConfigList"
and alarmConfiguration =
flag "alarm-configuration" (optional json_arg)
~doc:"JSON AlarmConfiguration"
and autoRollbackConfiguration =
flag "auto-rollback-configuration" (optional json_arg)
~doc:"JSON AutoRollbackConfiguration"
and outdatedInstancesStrategy =
flag "outdated-instances-strategy" (optional json_arg)
~doc:"JSON OutdatedInstancesStrategy"
and deploymentStyle =
flag "deployment-style" (optional json_arg)
~doc:"JSON DeploymentStyle"
and blueGreenDeploymentConfiguration =
flag "blue-green-deployment-configuration" (optional json_arg)
~doc:"JSON BlueGreenDeploymentConfiguration"
and loadBalancerInfo =
flag "load-balancer-info" (optional json_arg)
~doc:"JSON LoadBalancerInfo"
and ec2TagSet =
flag "ec2-tag-set" (optional json_arg) ~doc:"JSON EC2TagSet"
and ecsServices =
flag "ecs-services" (optional json_arg) ~doc:"JSON ECSServiceList"
and onPremisesTagSet =
flag "on-premises-tag-set" (optional json_arg)
~doc:"JSON OnPremisesTagSet"
and terminationHookEnabled =
flag "termination-hook-enabled" (optional bool)
~doc:"BOOL NullableBoolean"
and applicationName =
flag "application-name" (required string)
~doc:"STRING ApplicationName"
and currentDeploymentGroupName =
flag "current-deployment-group-name" (required string)
~doc:"STRING DeploymentGroupName" in
fun () ->
call ?endpoint_url ?profile:cli_profile ?region:cli_region
Io.update_deployment_group
(Values.UpdateDeploymentGroupInput.make ?newDeploymentGroupName
?deploymentConfigName
?ec2TagFilters:(Option.map ~f:Values.EC2TagFilterList.of_json
ec2TagFilters)
?onPremisesInstanceTagFilters:(Option.map
~f:Values.TagFilterList.of_json
onPremisesInstanceTagFilters)
?autoScalingGroups:(Option.map
~f:Values.AutoScalingGroupNameList.of_json
autoScalingGroups) ?serviceRoleArn
?triggerConfigurations:(Option.map
~f:Values.TriggerConfigList.of_json
triggerConfigurations)
?alarmConfiguration:(Option.map
~f:Values.AlarmConfiguration.of_json
alarmConfiguration)
?autoRollbackConfiguration:(Option.map
~f:Values.AutoRollbackConfiguration.of_json
autoRollbackConfiguration)
?outdatedInstancesStrategy:(Option.map
~f:Values.OutdatedInstancesStrategy.of_json
outdatedInstancesStrategy)
?deploymentStyle:(Option.map ~f:Values.DeploymentStyle.of_json
deploymentStyle)
?blueGreenDeploymentConfiguration:(Option.map
~f:Values.BlueGreenDeploymentConfiguration.of_json
blueGreenDeploymentConfiguration)
?loadBalancerInfo:(Option.map
~f:Values.LoadBalancerInfo.of_json
loadBalancerInfo)
?ec2TagSet:(Option.map ~f:Values.EC2TagSet.of_json ec2TagSet)
?ecsServices:(Option.map ~f:Values.ECSServiceList.of_json
ecsServices)
?onPremisesTagSet:(Option.map
~f:Values.OnPremisesTagSet.of_json
onPremisesTagSet) ?terminationHookEnabled
~applicationName ~currentDeploymentGroupName ())
(Some Values.UpdateDeploymentGroupOutput.to_json)
(Some Values.UpdateDeploymentGroupOutput.error_to_json)])
let main =
Command.group
~summary:((Awso.Service.to_string Values.service) ^ " commands")
[("add-tags-to-on-premises-instances", add_tags_to_on_premises_instances);
("batch-get-application-revisions", batch_get_application_revisions);
("batch-get-applications", batch_get_applications);
("batch-get-deployment-groups", batch_get_deployment_groups);
("batch-get-deployment-instances", batch_get_deployment_instances);
("batch-get-deployment-targets", batch_get_deployment_targets);
("batch-get-deployments", batch_get_deployments);
("batch-get-on-premises-instances", batch_get_on_premises_instances);
("continue-deployment", continue_deployment);
("create-application", create_application);
("create-deployment", create_deployment);
("create-deployment-config", create_deployment_config);
("create-deployment-group", create_deployment_group);
("delete-application", delete_application);
("delete-deployment-config", delete_deployment_config);
("delete-deployment-group", delete_deployment_group);
("delete-git-hub-account-token", delete_git_hub_account_token);
("delete-resources-by-external-id", delete_resources_by_external_id);
("deregister-on-premises-instance", deregister_on_premises_instance);
("get-application", get_application);
("get-application-revision", get_application_revision);
("get-deployment", get_deployment);
("get-deployment-config", get_deployment_config);
("get-deployment-group", get_deployment_group);
("get-deployment-instance", get_deployment_instance);
("get-deployment-target", get_deployment_target);
("get-on-premises-instance", get_on_premises_instance);
("list-application-revisions", list_application_revisions);
("list-applications", list_applications);
("list-deployment-configs", list_deployment_configs);
("list-deployment-groups", list_deployment_groups);
("list-deployment-instances", list_deployment_instances);
("list-deployment-targets", list_deployment_targets);
("list-deployments", list_deployments);
("list-git-hub-account-token-names", list_git_hub_account_token_names);
("list-on-premises-instances", list_on_premises_instances);
("list-tags-for-resource", list_tags_for_resource);
("put-lifecycle-event-hook-execution-status",
put_lifecycle_event_hook_execution_status);
("register-application-revision", register_application_revision);
("register-on-premises-instance", register_on_premises_instance);
("remove-tags-from-on-premises-instances",
remove_tags_from_on_premises_instances);
("skip-wait-time-for-instance-termination",
skip_wait_time_for_instance_termination);
("stop-deployment", stop_deployment);
("tag-resource", tag_resource);
("untag-resource", untag_resource);
("update-application", update_application);
("update-deployment-group", update_deployment_group)]