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
open Awso_billingconductor
open Awso_async
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 associate_accounts ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.AssociateAccounts input
let associate_pricing_rules ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.AssociatePricingRules input
let batch_associate_resources_to_custom_line_item ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.BatchAssociateResourcesToCustomLineItem
input
let batch_disassociate_resources_from_custom_line_item ?endpoint_url ?cfg
input =
eval ?endpoint_url ?cfg
Endpoints.BatchDisassociateResourcesFromCustomLineItem input
let create_billing_group ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateBillingGroup input
let create_custom_line_item ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateCustomLineItem input
let create_pricing_plan ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePricingPlan input
let create_pricing_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreatePricingRule input
let delete_billing_group ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteBillingGroup input
let delete_custom_line_item ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteCustomLineItem input
let delete_pricing_plan ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePricingPlan input
let delete_pricing_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeletePricingRule input
let disassociate_accounts ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DisassociateAccounts input
let disassociate_pricing_rules ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DisassociatePricingRules input
let get_billing_group_cost_report ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetBillingGroupCostReport input
let list_account_associations ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListAccountAssociations input
let list_billing_group_cost_reports ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListBillingGroupCostReports input
let list_billing_groups ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListBillingGroups input
let list_custom_line_item_versions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListCustomLineItemVersions input
let list_custom_line_items ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListCustomLineItems input
let list_pricing_plans ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPricingPlans input
let list_pricing_plans_associated_with_pricing_rule ?endpoint_url ?cfg input
=
eval ?endpoint_url ?cfg Endpoints.ListPricingPlansAssociatedWithPricingRule
input
let list_pricing_rules ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPricingRules input
let list_pricing_rules_associated_to_pricing_plan ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListPricingRulesAssociatedToPricingPlan
input
let list_resources_associated_to_custom_line_item ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListResourcesAssociatedToCustomLineItem
input
let list_tags_for_resource ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ListTagsForResource 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_billing_group ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateBillingGroup input
let update_custom_line_item ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateCustomLineItem input
let update_pricing_plan ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdatePricingPlan input
let update_pricing_rule ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdatePricingRule input