blib/lib/Paws/IoTFleetHub.pm untested

filter: Statementstmt 0.0% 0 / 57 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 15 Podpod 0.0% 0 / 14 totaltotal 0.0% 0 / 90 CC 3 SCAR 13.3
CC
3
Cov
0%
ListAllApplications
12.0
service
2.0
signing_name
2.0
CRAP 3.8
1 package Paws::IoTFleetHub;
2 use Moose;
3 sub service { 'api.fleethub.iot' }
4 sub signing_name { 'iotfleethub' }
5 sub version { '2020-11-03' }
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 CreateApplication {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::CreateApplication', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub DeleteApplication {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::DeleteApplication', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub DescribeApplication {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::DescribeApplication', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub ListApplications {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::ListApplications', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub ListTagsForResource {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::ListTagsForResource', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub TagResource {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::TagResource', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub UntagResource {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::UntagResource', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub UpdateApplication {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::IoTFleetHub::UpdateApplication', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57
58 sub ListAllApplications {
59 my $self = shift;
60  
61 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
62 my $result = $self->ListApplications(@_);
63 my $next_result = $result;
64  
65 if (not defined $callback) {
66 while ($next_result->nextToken) {
67 $next_result = $self->ListApplications(@_, nextToken => $next_result->nextToken);
68 push @{ $result->applicationSummaries }, @{ $next_result->applicationSummaries };
69 }
70 return $result;
71 } else {
72 while ($result->nextToken) {
73 $callback->($_ => 'applicationSummaries') foreach (@{ $result->applicationSummaries });
74 $result = $self->ListApplications(@_, nextToken => $result->nextToken);
75 }
76 $callback->($_ => 'applicationSummaries') foreach (@{ $result->applicationSummaries });
77 }
78  
79 return undef
80 }
81  
82  
83 sub operations { qw/CreateApplication DeleteApplication DescribeApplication ListApplications ListTagsForResource TagResource UntagResource UpdateApplication / }
84  
85 1;
86  
87 ### main pod documentation begin ###
88  
89 =head1 NAME
90  
91 Paws::IoTFleetHub - Perl Interface to AWS AWS IoT Fleet Hub
92  
93 =head1 SYNOPSIS
94  
95 use Paws;
96  
97 my $obj = Paws->service('IoTFleetHub');
98 my $res = $obj->Method(
99 Arg1 => $val1,
100 Arg2 => [ 'V1', 'V2' ],
101 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
102 # of the arguments type
103 Arg3 => { Att1 => 'Val1' },
104 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
105 # the constructor of the arguments type
106 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
107 );
108  
109 =head1 DESCRIPTION
110  
111 With Fleet Hub for AWS IoT Device Management you can build stand-alone
112 web applications for monitoring the health of your device fleets.
113  
114 Fleet Hub for AWS IoT Device Management is in public preview and is
115 subject to change.
116  
117 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.fleethub.iot-2020-11-03>
118  
119  
120 =head1 METHODS
121  
122 =head2 CreateApplication
123  
124 =over
125  
126 =item ApplicationName => Str
127  
128 =item RoleArn => Str
129  
130 =item [ApplicationDescription => Str]
131  
132 =item [ClientToken => Str]
133  
134 =item [Tags => L<Paws::IoTFleetHub::TagMap>]
135  
136  
137 =back
138  
139 Each argument is described in detail in: L<Paws::IoTFleetHub::CreateApplication>
140  
141 Returns: a L<Paws::IoTFleetHub::CreateApplicationResponse> instance
142  
143 Creates a Fleet Hub for AWS IoT Device Management web application.
144  
145 Fleet Hub for AWS IoT Device Management is in public preview and is
146 subject to change.
147  
148  
149 =head2 DeleteApplication
150  
151 =over
152  
153 =item ApplicationId => Str
154  
155 =item [ClientToken => Str]
156  
157  
158 =back
159  
160 Each argument is described in detail in: L<Paws::IoTFleetHub::DeleteApplication>
161  
162 Returns: a L<Paws::IoTFleetHub::DeleteApplicationResponse> instance
163  
164 Deletes a Fleet Hub for AWS IoT Device Management web application.
165  
166 Fleet Hub for AWS IoT Device Management is in public preview and is
167 subject to change.
168  
169  
170 =head2 DescribeApplication
171  
172 =over
173  
174 =item ApplicationId => Str
175  
176  
177 =back
178  
179 Each argument is described in detail in: L<Paws::IoTFleetHub::DescribeApplication>
180  
181 Returns: a L<Paws::IoTFleetHub::DescribeApplicationResponse> instance
182  
183 Gets information about a Fleet Hub for AWS IoT Device Management web
184 application.
185  
186 Fleet Hub for AWS IoT Device Management is in public preview and is
187 subject to change.
188  
189  
190 =head2 ListApplications
191  
192 =over
193  
194 =item [NextToken => Str]
195  
196  
197 =back
198  
199 Each argument is described in detail in: L<Paws::IoTFleetHub::ListApplications>
200  
201 Returns: a L<Paws::IoTFleetHub::ListApplicationsResponse> instance
202  
203 Gets a list of Fleet Hub for AWS IoT Device Management web applications
204 for the current account.
205  
206 Fleet Hub for AWS IoT Device Management is in public preview and is
207 subject to change.
208  
209  
210 =head2 ListTagsForResource
211  
212 =over
213  
214 =item ResourceArn => Str
215  
216  
217 =back
218  
219 Each argument is described in detail in: L<Paws::IoTFleetHub::ListTagsForResource>
220  
221 Returns: a L<Paws::IoTFleetHub::ListTagsForResourceResponse> instance
222  
223 Lists the tags for the specified resource.
224  
225 Fleet Hub for AWS IoT Device Management is in public preview and is
226 subject to change.
227  
228  
229 =head2 TagResource
230  
231 =over
232  
233 =item ResourceArn => Str
234  
235 =item Tags => L<Paws::IoTFleetHub::TagMap>
236  
237  
238 =back
239  
240 Each argument is described in detail in: L<Paws::IoTFleetHub::TagResource>
241  
242 Returns: a L<Paws::IoTFleetHub::TagResourceResponse> instance
243  
244 Adds to or modifies the tags of the specified resource. Tags are
245 metadata which can be used to manage a resource.
246  
247 Fleet Hub for AWS IoT Device Management is in public preview and is
248 subject to change.
249  
250  
251 =head2 UntagResource
252  
253 =over
254  
255 =item ResourceArn => Str
256  
257 =item TagKeys => ArrayRef[Str|Undef]
258  
259  
260 =back
261  
262 Each argument is described in detail in: L<Paws::IoTFleetHub::UntagResource>
263  
264 Returns: a L<Paws::IoTFleetHub::UntagResourceResponse> instance
265  
266 Removes the specified tags (metadata) from the resource.
267  
268 Fleet Hub for AWS IoT Device Management is in public preview and is
269 subject to change.
270  
271  
272 =head2 UpdateApplication
273  
274 =over
275  
276 =item ApplicationId => Str
277  
278 =item [ApplicationDescription => Str]
279  
280 =item [ApplicationName => Str]
281  
282 =item [ClientToken => Str]
283  
284  
285 =back
286  
287 Each argument is described in detail in: L<Paws::IoTFleetHub::UpdateApplication>
288  
289 Returns: a L<Paws::IoTFleetHub::UpdateApplicationResponse> instance
290  
291 Updates information about a Fleet Hub for a AWS IoT Device Management
292 web application.
293  
294 Fleet Hub for AWS IoT Device Management is in public preview and is
295 subject to change.
296  
297  
298  
299  
300 =head1 PAGINATORS
301  
302 Paginator methods are helpers that repetively call methods that return partial results
303  
304 =head2 ListAllApplications(sub { },[NextToken => Str])
305  
306 =head2 ListAllApplications([NextToken => Str])
307  
308  
309 If passed a sub as first parameter, it will call the sub for each element found in :
310  
311 - applicationSummaries, passing the object as the first parameter, and the string 'applicationSummaries' as the second parameter
312  
313 If not, it will return a a L<Paws::IoTFleetHub::ListApplicationsResponse> 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.
314  
315  
316  
317  
318  
319 =head1 SEE ALSO
320  
321 This service class forms part of L<Paws>
322  
323 =head1 BUGS and CONTRIBUTIONS
324  
325 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
326  
327 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
328  
329 =cut
330