blib/lib/Paws/ApplicationCostProfiler.pm untested

filter: Statementstmt 0.0% 0 / 51 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 12 totaltotal 0.0% 0 / 80 CC 3 SCAR 13.9
CC
3
Cov
0%
ListAllReportDefinitions
12.0
service
2.0
signing_name
2.0
CRAP 4.0
1 package Paws::ApplicationCostProfiler;
2 use Moose;
3 sub service { 'application-cost-profiler' }
4 sub signing_name { 'application-cost-profiler' }
5 sub version { '2020-09-10' }
6 sub flattened_arrays { 0 }
7 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 has retry => (is => 'ro', isa => 'HashRef', default => sub {
9 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 });
11 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12 ] });
13  
14 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 sub DeleteReportDefinition {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::ApplicationCostProfiler::DeleteReportDefinition', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub GetReportDefinition {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::ApplicationCostProfiler::GetReportDefinition', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub ImportApplicationUsage {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::ApplicationCostProfiler::ImportApplicationUsage', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub ListReportDefinitions {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::ApplicationCostProfiler::ListReportDefinitions', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub PutReportDefinition {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::ApplicationCostProfiler::PutReportDefinition', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub UpdateReportDefinition {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::ApplicationCostProfiler::UpdateReportDefinition', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47
48 sub ListAllReportDefinitions {
49 my $self = shift;
50  
51 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
52 my $result = $self->ListReportDefinitions(@_);
53 my $next_result = $result;
54  
55 if (not defined $callback) {
56 while ($next_result->nextToken) {
57 $next_result = $self->ListReportDefinitions(@_, nextToken => $next_result->nextToken);
58 push @{ $result->reportDefinitions }, @{ $next_result->reportDefinitions };
59 }
60 return $result;
61 } else {
62 while ($result->nextToken) {
63 $callback->($_ => 'reportDefinitions') foreach (@{ $result->reportDefinitions });
64 $result = $self->ListReportDefinitions(@_, nextToken => $result->nextToken);
65 }
66 $callback->($_ => 'reportDefinitions') foreach (@{ $result->reportDefinitions });
67 }
68  
69 return undef
70 }
71  
72  
73 sub operations { qw/DeleteReportDefinition GetReportDefinition ImportApplicationUsage ListReportDefinitions PutReportDefinition UpdateReportDefinition / }
74  
75 1;
76  
77 ### main pod documentation begin ###
78  
79 =head1 NAME
80  
81 Paws::ApplicationCostProfiler - Perl Interface to AWS AWS Application Cost Profiler
82  
83 =head1 SYNOPSIS
84  
85 use Paws;
86  
87 my $obj = Paws->service('ApplicationCostProfiler');
88 my $res = $obj->Method(
89 Arg1 => $val1,
90 Arg2 => [ 'V1', 'V2' ],
91 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
92 # of the arguments type
93 Arg3 => { Att1 => 'Val1' },
94 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
95 # the constructor of the arguments type
96 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
97 );
98  
99 =head1 DESCRIPTION
100  
101 This reference provides descriptions of the AWS Application Cost
102 Profiler API.
103  
104 The AWS Application Cost Profiler API provides programmatic access to
105 view, create, update, and delete application cost report definitions,
106 as well as to import your usage data into the Application Cost Profiler
107 service.
108  
109 For more information about using this service, see the AWS Application
110 Cost Profiler User Guide
111 (https://docs.aws.amazon.com/application-cost-profiler/latest/userguide/introduction.html).
112  
113 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/application-cost-profiler-2020-09-10>
114  
115  
116 =head1 METHODS
117  
118 =head2 DeleteReportDefinition
119  
120 =over
121  
122 =item ReportId => Str
123  
124  
125 =back
126  
127 Each argument is described in detail in: L<Paws::ApplicationCostProfiler::DeleteReportDefinition>
128  
129 Returns: a L<Paws::ApplicationCostProfiler::DeleteReportDefinitionResult> instance
130  
131 Deletes the specified report definition in AWS Application Cost
132 Profiler. This stops the report from being generated.
133  
134  
135 =head2 GetReportDefinition
136  
137 =over
138  
139 =item ReportId => Str
140  
141  
142 =back
143  
144 Each argument is described in detail in: L<Paws::ApplicationCostProfiler::GetReportDefinition>
145  
146 Returns: a L<Paws::ApplicationCostProfiler::GetReportDefinitionResult> instance
147  
148 Retrieves the definition of a report already configured in AWS
149 Application Cost Profiler.
150  
151  
152 =head2 ImportApplicationUsage
153  
154 =over
155  
156 =item SourceS3Location => L<Paws::ApplicationCostProfiler::SourceS3Location>
157  
158  
159 =back
160  
161 Each argument is described in detail in: L<Paws::ApplicationCostProfiler::ImportApplicationUsage>
162  
163 Returns: a L<Paws::ApplicationCostProfiler::ImportApplicationUsageResult> instance
164  
165 Ingests application usage data from Amazon Simple Storage Service
166 (Amazon S3).
167  
168 The data must already exist in the S3 location. As part of the action,
169 AWS Application Cost Profiler copies the object from your S3 bucket to
170 an S3 bucket owned by Amazon for processing asynchronously.
171  
172  
173 =head2 ListReportDefinitions
174  
175 =over
176  
177 =item [MaxResults => Int]
178  
179 =item [NextToken => Str]
180  
181  
182 =back
183  
184 Each argument is described in detail in: L<Paws::ApplicationCostProfiler::ListReportDefinitions>
185  
186 Returns: a L<Paws::ApplicationCostProfiler::ListReportDefinitionsResult> instance
187  
188 Retrieves a list of all reports and their configurations for your AWS
189 account.
190  
191 The maximum number of reports is one.
192  
193  
194 =head2 PutReportDefinition
195  
196 =over
197  
198 =item DestinationS3Location => L<Paws::ApplicationCostProfiler::S3Location>
199  
200 =item Format => Str
201  
202 =item ReportDescription => Str
203  
204 =item ReportFrequency => Str
205  
206 =item ReportId => Str
207  
208  
209 =back
210  
211 Each argument is described in detail in: L<Paws::ApplicationCostProfiler::PutReportDefinition>
212  
213 Returns: a L<Paws::ApplicationCostProfiler::PutReportDefinitionResult> instance
214  
215 Creates the report definition for a report in Application Cost
216 Profiler.
217  
218  
219 =head2 UpdateReportDefinition
220  
221 =over
222  
223 =item DestinationS3Location => L<Paws::ApplicationCostProfiler::S3Location>
224  
225 =item Format => Str
226  
227 =item ReportDescription => Str
228  
229 =item ReportFrequency => Str
230  
231 =item ReportId => Str
232  
233  
234 =back
235  
236 Each argument is described in detail in: L<Paws::ApplicationCostProfiler::UpdateReportDefinition>
237  
238 Returns: a L<Paws::ApplicationCostProfiler::UpdateReportDefinitionResult> instance
239  
240 Updates existing report in AWS Application Cost Profiler.
241  
242  
243  
244  
245 =head1 PAGINATORS
246  
247 Paginator methods are helpers that repetively call methods that return partial results
248  
249 =head2 ListAllReportDefinitions(sub { },[MaxResults => Int, NextToken => Str])
250  
251 =head2 ListAllReportDefinitions([MaxResults => Int, NextToken => Str])
252  
253  
254 If passed a sub as first parameter, it will call the sub for each element found in :
255  
256 - reportDefinitions, passing the object as the first parameter, and the string 'reportDefinitions' as the second parameter
257  
258 If not, it will return a a L<Paws::ApplicationCostProfiler::ListReportDefinitionsResult> instance with all the C<param>s; from all the responses. Please take into account that this mode can potentially consume vasts ammounts of memory.
259  
260  
261  
262  
263  
264 =head1 SEE ALSO
265  
266 This service class forms part of L<Paws>
267  
268 =head1 BUGS and CONTRIBUTIONS
269  
270 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
271  
272 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
273  
274 =cut
275