blib/lib/Paws/ElasticInference.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%
DescribeAllAccelerators
12.0
service
2.0
signing_name
2.0
CRAP 4.0
1 package Paws::ElasticInference;
2 use Moose;
3 sub service { 'api.elastic-inference' }
4 sub signing_name { 'elastic-inference' }
5 sub version { '2017-07-25' }
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 DescribeAcceleratorOfferings {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::ElasticInference::DescribeAcceleratorOfferings', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub DescribeAccelerators {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::ElasticInference::DescribeAccelerators', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub DescribeAcceleratorTypes {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::ElasticInference::DescribeAcceleratorTypes', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub ListTagsForResource {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::ElasticInference::ListTagsForResource', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub TagResource {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::ElasticInference::TagResource', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub UntagResource {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::ElasticInference::UntagResource', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47
48 sub DescribeAllAccelerators {
49 my $self = shift;
50  
51 my $callback = shift @_ if (ref($_[0]) eq 'CODE');
52 my $result = $self->DescribeAccelerators(@_);
53 my $next_result = $result;
54  
55 if (not defined $callback) {
56 while ($next_result->nextToken) {
57 $next_result = $self->DescribeAccelerators(@_, nextToken => $next_result->nextToken);
58 push @{ $result->acceleratorSet }, @{ $next_result->acceleratorSet };
59 }
60 return $result;
61 } else {
62 while ($result->nextToken) {
63 $callback->($_ => 'acceleratorSet') foreach (@{ $result->acceleratorSet });
64 $result = $self->DescribeAccelerators(@_, nextToken => $result->nextToken);
65 }
66 $callback->($_ => 'acceleratorSet') foreach (@{ $result->acceleratorSet });
67 }
68  
69 return undef
70 }
71  
72  
73 sub operations { qw/DescribeAcceleratorOfferings DescribeAccelerators DescribeAcceleratorTypes ListTagsForResource TagResource UntagResource / }
74  
75 1;
76  
77 ### main pod documentation begin ###
78  
79 =head1 NAME
80  
81 Paws::ElasticInference - Perl Interface to AWS Amazon Elastic Inference
82  
83 =head1 SYNOPSIS
84  
85 use Paws;
86  
87 my $obj = Paws->service('ElasticInference');
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 Elastic Inference public APIs.
102  
103 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/api.elastic-inference-2017-07-25>
104  
105  
106 =head1 METHODS
107  
108 =head2 DescribeAcceleratorOfferings
109  
110 =over
111  
112 =item LocationType => Str
113  
114 =item [AcceleratorTypes => ArrayRef[Str|Undef]]
115  
116  
117 =back
118  
119 Each argument is described in detail in: L<Paws::ElasticInference::DescribeAcceleratorOfferings>
120  
121 Returns: a L<Paws::ElasticInference::DescribeAcceleratorOfferingsResponse> instance
122  
123 Describes the locations in which a given accelerator type or set of
124 types is present in a given region.
125  
126  
127 =head2 DescribeAccelerators
128  
129 =over
130  
131 =item [AcceleratorIds => ArrayRef[Str|Undef]]
132  
133 =item [Filters => ArrayRef[L<Paws::ElasticInference::Filter>]]
134  
135 =item [MaxResults => Int]
136  
137 =item [NextToken => Str]
138  
139  
140 =back
141  
142 Each argument is described in detail in: L<Paws::ElasticInference::DescribeAccelerators>
143  
144 Returns: a L<Paws::ElasticInference::DescribeAcceleratorsResponse> instance
145  
146 Describes information over a provided set of accelerators belonging to
147 an account.
148  
149  
150 =head2 DescribeAcceleratorTypes
151  
152  
153  
154  
155  
156  
157 Each argument is described in detail in: L<Paws::ElasticInference::DescribeAcceleratorTypes>
158  
159 Returns: a L<Paws::ElasticInference::DescribeAcceleratorTypesResponse> instance
160  
161 Describes the accelerator types available in a given region, as well as
162 their characteristics, such as memory and throughput.
163  
164  
165 =head2 ListTagsForResource
166  
167 =over
168  
169 =item ResourceArn => Str
170  
171  
172 =back
173  
174 Each argument is described in detail in: L<Paws::ElasticInference::ListTagsForResource>
175  
176 Returns: a L<Paws::ElasticInference::ListTagsForResourceResult> instance
177  
178 Returns all tags of an Elastic Inference Accelerator.
179  
180  
181 =head2 TagResource
182  
183 =over
184  
185 =item ResourceArn => Str
186  
187 =item Tags => L<Paws::ElasticInference::TagMap>
188  
189  
190 =back
191  
192 Each argument is described in detail in: L<Paws::ElasticInference::TagResource>
193  
194 Returns: a L<Paws::ElasticInference::TagResourceResult> instance
195  
196 Adds the specified tags to an Elastic Inference Accelerator.
197  
198  
199 =head2 UntagResource
200  
201 =over
202  
203 =item ResourceArn => Str
204  
205 =item TagKeys => ArrayRef[Str|Undef]
206  
207  
208 =back
209  
210 Each argument is described in detail in: L<Paws::ElasticInference::UntagResource>
211  
212 Returns: a L<Paws::ElasticInference::UntagResourceResult> instance
213  
214 Removes the specified tags from an Elastic Inference Accelerator.
215  
216  
217  
218  
219 =head1 PAGINATORS
220  
221 Paginator methods are helpers that repetively call methods that return partial results
222  
223 =head2 DescribeAllAccelerators(sub { },[AcceleratorIds => ArrayRef[Str|Undef], Filters => ArrayRef[L<Paws::ElasticInference::Filter>], MaxResults => Int, NextToken => Str])
224  
225 =head2 DescribeAllAccelerators([AcceleratorIds => ArrayRef[Str|Undef], Filters => ArrayRef[L<Paws::ElasticInference::Filter>], MaxResults => Int, NextToken => Str])
226  
227  
228 If passed a sub as first parameter, it will call the sub for each element found in :
229  
230 - acceleratorSet, passing the object as the first parameter, and the string 'acceleratorSet' as the second parameter
231  
232 If not, it will return a a L<Paws::ElasticInference::DescribeAcceleratorsResponse> 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.
233  
234  
235  
236  
237  
238 =head1 SEE ALSO
239  
240 This service class forms part of L<Paws>
241  
242 =head1 BUGS and CONTRIBUTIONS
243  
244 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
245  
246 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
247  
248 =cut
249