/
cost_and_usage_report_service.jl
142 lines (128 loc) · 4.19 KB
/
cost_and_usage_report_service.jl
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
# This file is auto-generated by AWSMetadata.jl
using AWS
using AWS.AWSServices: cost_and_usage_report_service
using AWS.Compat
using AWS.UUIDs
"""
delete_report_definition()
delete_report_definition(params::Dict{String,<:Any})
Deletes the specified report.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"ReportName"`: The name of the report that you want to delete. The name must be unique,
is case sensitive, and can't include spaces.
"""
function delete_report_definition(; aws_config::AbstractAWSConfig=global_aws_config())
return cost_and_usage_report_service(
"DeleteReportDefinition"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function delete_report_definition(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return cost_and_usage_report_service(
"DeleteReportDefinition",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
describe_report_definitions()
describe_report_definitions(params::Dict{String,<:Any})
Lists the AWS Cost and Usage reports available to this account.
# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`:
- `"NextToken"`:
"""
function describe_report_definitions(; aws_config::AbstractAWSConfig=global_aws_config())
return cost_and_usage_report_service(
"DescribeReportDefinitions"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
)
end
function describe_report_definitions(
params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
return cost_and_usage_report_service(
"DescribeReportDefinitions",
params;
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
modify_report_definition(report_definition, report_name)
modify_report_definition(report_definition, report_name, params::Dict{String,<:Any})
Allows you to programatically update your report preferences.
# Arguments
- `report_definition`:
- `report_name`:
"""
function modify_report_definition(
ReportDefinition, ReportName; aws_config::AbstractAWSConfig=global_aws_config()
)
return cost_and_usage_report_service(
"ModifyReportDefinition",
Dict{String,Any}(
"ReportDefinition" => ReportDefinition, "ReportName" => ReportName
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function modify_report_definition(
ReportDefinition,
ReportName,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return cost_and_usage_report_service(
"ModifyReportDefinition",
Dict{String,Any}(
mergewith(
_merge,
Dict{String,Any}(
"ReportDefinition" => ReportDefinition, "ReportName" => ReportName
),
params,
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
"""
put_report_definition(report_definition)
put_report_definition(report_definition, params::Dict{String,<:Any})
Creates a new report using the description that you provide.
# Arguments
- `report_definition`: Represents the output of the PutReportDefinition operation. The
content consists of the detailed metadata and data file information.
"""
function put_report_definition(
ReportDefinition; aws_config::AbstractAWSConfig=global_aws_config()
)
return cost_and_usage_report_service(
"PutReportDefinition",
Dict{String,Any}("ReportDefinition" => ReportDefinition);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end
function put_report_definition(
ReportDefinition,
params::AbstractDict{String};
aws_config::AbstractAWSConfig=global_aws_config(),
)
return cost_and_usage_report_service(
"PutReportDefinition",
Dict{String,Any}(
mergewith(
_merge, Dict{String,Any}("ReportDefinition" => ReportDefinition), params
),
);
aws_config=aws_config,
feature_set=SERVICE_FEATURE_SET,
)
end