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
open Awso_panorama
open Awso_lwt
module Io = Http.Io
let eval ?endpoint_url ?cfg endpoint input =
Io.bind (Io.resolve_cfg cfg)
(fun cfg ->
let meth = Endpoints.method_of_endpoint endpoint in
let uri = Endpoints.uri_of_endpoint endpoint input in
Io.map
(Io.call ?endpoint_url ~cfg ~service:Values.service meth
(Endpoints.to_request endpoint input) uri)
(fun resp_result -> Endpoints.of_response endpoint resp_result))
let create_application_instance ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateApplicationInstance input
let create_job_for_devices ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateJobForDevices input
let create_node_from_template_job ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateNodeFromTemplateJob input
let create_package ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePackage input
let create_package_import_job ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePackageImportJob input
let delete_device ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteDevice input
let delete_package ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePackage input
let deregister_package_version ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeregisterPackageVersion input
let describe_application_instance ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeApplicationInstance input
let describe_application_instance_details ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeApplicationInstanceDetails input
let describe_device ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeDevice input
let describe_device_job ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeDeviceJob input
let describe_node ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeNode input
let describe_node_from_template_job ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeNodeFromTemplateJob input
let describe_package ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribePackage input
let describe_package_import_job ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribePackageImportJob input
let describe_package_version ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribePackageVersion input
let list_application_instance_dependencies ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListApplicationInstanceDependencies input
let list_application_instance_node_instances ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListApplicationInstanceNodeInstances
input
let list_application_instances ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListApplicationInstances input
let list_devices ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListDevices input
let list_devices_jobs ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListDevicesJobs input
let list_node_from_template_jobs ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListNodeFromTemplateJobs input
let list_nodes ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListNodes input
let list_package_import_jobs ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPackageImportJobs input
let list_packages ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPackages input
let list_tags_for_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForResource input
let provision_device ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ProvisionDevice input
let register_package_version ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RegisterPackageVersion input
let remove_application_instance ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RemoveApplicationInstance input
let signal_application_instance_node_instances ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.SignalApplicationInstanceNodeInstances
input
let tag_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.TagResource input
let untag_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UntagResource input
let update_device_metadata ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateDeviceMetadata input