blib/lib/Paws/SavingsPlans.pm untested

filter: Statementstmt 0.0% 0 / 40 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 15 Podpod 0.0% 0 / 14 totaltotal 0.0% 0 / 69 CC 1 SCAR 6.9
CC
1
Cov
0%
service
2.0
signing_name
2.0
version
2.0
CRAP 2.0
1 package Paws::SavingsPlans;
2 use Moose;
3 sub service { 'savingsplans' }
4 sub signing_name { 'savingsplans' }
5 sub version { '2019-06-28' }
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 CreateSavingsPlan {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::CreateSavingsPlan', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub DeleteQueuedSavingsPlan {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::DeleteQueuedSavingsPlan', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub DescribeSavingsPlanRates {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::DescribeSavingsPlanRates', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub DescribeSavingsPlans {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::DescribeSavingsPlans', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub DescribeSavingsPlansOfferingRates {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::DescribeSavingsPlansOfferingRates', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub DescribeSavingsPlansOfferings {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::DescribeSavingsPlansOfferings', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub ListTagsForResource {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::ListTagsForResource', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub TagResource {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::TagResource', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub UntagResource {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::SavingsPlans::UntagResource', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62
63  
64  
65 sub operations { qw/CreateSavingsPlan DeleteQueuedSavingsPlan DescribeSavingsPlanRates DescribeSavingsPlans DescribeSavingsPlansOfferingRates DescribeSavingsPlansOfferings ListTagsForResource TagResource UntagResource / }
66  
67 1;
68  
69 ### main pod documentation begin ###
70  
71 =head1 NAME
72  
73 Paws::SavingsPlans - Perl Interface to AWS AWS Savings Plans
74  
75 =head1 SYNOPSIS
76  
77 use Paws;
78  
79 my $obj = Paws->service('SavingsPlans');
80 my $res = $obj->Method(
81 Arg1 => $val1,
82 Arg2 => [ 'V1', 'V2' ],
83 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
84 # of the arguments type
85 Arg3 => { Att1 => 'Val1' },
86 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
87 # the constructor of the arguments type
88 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
89 );
90  
91 =head1 DESCRIPTION
92  
93 Savings Plans are a pricing model that offer significant savings on AWS
94 usage (for example, on Amazon EC2 instances). You commit to a
95 consistent amount of usage, in USD per hour, for a term of 1 or 3
96 years, and receive a lower price for that usage. For more information,
97 see the AWS Savings Plans User Guide
98 (https://docs.aws.amazon.com/savingsplans/latest/userguide/).
99  
100 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28>
101  
102  
103 =head1 METHODS
104  
105 =head2 CreateSavingsPlan
106  
107 =over
108  
109 =item Commitment => Str
110  
111 =item SavingsPlanOfferingId => Str
112  
113 =item [ClientToken => Str]
114  
115 =item [PurchaseTime => Str]
116  
117 =item [Tags => L<Paws::SavingsPlans::TagMap>]
118  
119 =item [UpfrontPaymentAmount => Str]
120  
121  
122 =back
123  
124 Each argument is described in detail in: L<Paws::SavingsPlans::CreateSavingsPlan>
125  
126 Returns: a L<Paws::SavingsPlans::CreateSavingsPlanResponse> instance
127  
128 Creates a Savings Plan.
129  
130  
131 =head2 DeleteQueuedSavingsPlan
132  
133 =over
134  
135 =item SavingsPlanId => Str
136  
137  
138 =back
139  
140 Each argument is described in detail in: L<Paws::SavingsPlans::DeleteQueuedSavingsPlan>
141  
142 Returns: a L<Paws::SavingsPlans::DeleteQueuedSavingsPlanResponse> instance
143  
144 Deletes the queued purchase for the specified Savings Plan.
145  
146  
147 =head2 DescribeSavingsPlanRates
148  
149 =over
150  
151 =item SavingsPlanId => Str
152  
153 =item [Filters => ArrayRef[L<Paws::SavingsPlans::SavingsPlanRateFilter>]]
154  
155 =item [MaxResults => Int]
156  
157 =item [NextToken => Str]
158  
159  
160 =back
161  
162 Each argument is described in detail in: L<Paws::SavingsPlans::DescribeSavingsPlanRates>
163  
164 Returns: a L<Paws::SavingsPlans::DescribeSavingsPlanRatesResponse> instance
165  
166 Describes the specified Savings Plans rates.
167  
168  
169 =head2 DescribeSavingsPlans
170  
171 =over
172  
173 =item [Filters => ArrayRef[L<Paws::SavingsPlans::SavingsPlanFilter>]]
174  
175 =item [MaxResults => Int]
176  
177 =item [NextToken => Str]
178  
179 =item [SavingsPlanArns => ArrayRef[Str|Undef]]
180  
181 =item [SavingsPlanIds => ArrayRef[Str|Undef]]
182  
183 =item [States => ArrayRef[Str|Undef]]
184  
185  
186 =back
187  
188 Each argument is described in detail in: L<Paws::SavingsPlans::DescribeSavingsPlans>
189  
190 Returns: a L<Paws::SavingsPlans::DescribeSavingsPlansResponse> instance
191  
192 Describes the specified Savings Plans.
193  
194  
195 =head2 DescribeSavingsPlansOfferingRates
196  
197 =over
198  
199 =item [Filters => ArrayRef[L<Paws::SavingsPlans::SavingsPlanOfferingRateFilterElement>]]
200  
201 =item [MaxResults => Int]
202  
203 =item [NextToken => Str]
204  
205 =item [Operations => ArrayRef[Str|Undef]]
206  
207 =item [Products => ArrayRef[Str|Undef]]
208  
209 =item [SavingsPlanOfferingIds => ArrayRef[Str|Undef]]
210  
211 =item [SavingsPlanPaymentOptions => ArrayRef[Str|Undef]]
212  
213 =item [SavingsPlanTypes => ArrayRef[Str|Undef]]
214  
215 =item [ServiceCodes => ArrayRef[Str|Undef]]
216  
217 =item [UsageTypes => ArrayRef[Str|Undef]]
218  
219  
220 =back
221  
222 Each argument is described in detail in: L<Paws::SavingsPlans::DescribeSavingsPlansOfferingRates>
223  
224 Returns: a L<Paws::SavingsPlans::DescribeSavingsPlansOfferingRatesResponse> instance
225  
226 Describes the specified Savings Plans offering rates.
227  
228  
229 =head2 DescribeSavingsPlansOfferings
230  
231 =over
232  
233 =item [Currencies => ArrayRef[Str|Undef]]
234  
235 =item [Descriptions => ArrayRef[Str|Undef]]
236  
237 =item [Durations => ArrayRef[Int]]
238  
239 =item [Filters => ArrayRef[L<Paws::SavingsPlans::SavingsPlanOfferingFilterElement>]]
240  
241 =item [MaxResults => Int]
242  
243 =item [NextToken => Str]
244  
245 =item [OfferingIds => ArrayRef[Str|Undef]]
246  
247 =item [Operations => ArrayRef[Str|Undef]]
248  
249 =item [PaymentOptions => ArrayRef[Str|Undef]]
250  
251 =item [PlanTypes => ArrayRef[Str|Undef]]
252  
253 =item [ProductType => Str]
254  
255 =item [ServiceCodes => ArrayRef[Str|Undef]]
256  
257 =item [UsageTypes => ArrayRef[Str|Undef]]
258  
259  
260 =back
261  
262 Each argument is described in detail in: L<Paws::SavingsPlans::DescribeSavingsPlansOfferings>
263  
264 Returns: a L<Paws::SavingsPlans::DescribeSavingsPlansOfferingsResponse> instance
265  
266 Describes the specified Savings Plans offerings.
267  
268  
269 =head2 ListTagsForResource
270  
271 =over
272  
273 =item ResourceArn => Str
274  
275  
276 =back
277  
278 Each argument is described in detail in: L<Paws::SavingsPlans::ListTagsForResource>
279  
280 Returns: a L<Paws::SavingsPlans::ListTagsForResourceResponse> instance
281  
282 Lists the tags for the specified resource.
283  
284  
285 =head2 TagResource
286  
287 =over
288  
289 =item ResourceArn => Str
290  
291 =item Tags => L<Paws::SavingsPlans::TagMap>
292  
293  
294 =back
295  
296 Each argument is described in detail in: L<Paws::SavingsPlans::TagResource>
297  
298 Returns: a L<Paws::SavingsPlans::TagResourceResponse> instance
299  
300 Adds the specified tags to the specified resource.
301  
302  
303 =head2 UntagResource
304  
305 =over
306  
307 =item ResourceArn => Str
308  
309 =item TagKeys => ArrayRef[Str|Undef]
310  
311  
312 =back
313  
314 Each argument is described in detail in: L<Paws::SavingsPlans::UntagResource>
315  
316 Returns: a L<Paws::SavingsPlans::UntagResourceResponse> instance
317  
318 Removes the specified tags from the specified resource.
319  
320  
321  
322  
323 =head1 PAGINATORS
324  
325 Paginator methods are helpers that repetively call methods that return partial results
326  
327  
328  
329  
330 =head1 SEE ALSO
331  
332 This service class forms part of L<Paws>
333  
334 =head1 BUGS and CONTRIBUTIONS
335  
336 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
337  
338 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
339  
340 =cut
341