File Coverage

blib/lib/Paws/EC2/DescribeHostReservationOfferings.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::DescribeHostReservationOfferings;
3 1     1   287 use Moose;
  1         2  
  1         6  
4             has Filter => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]');
5             has MaxDuration => (is => 'ro', isa => 'Int');
6             has MaxResults => (is => 'ro', isa => 'Int');
7             has MinDuration => (is => 'ro', isa => 'Int');
8             has NextToken => (is => 'ro', isa => 'Str');
9             has OfferingId => (is => 'ro', isa => 'Str');
10              
11 1     1   5287 use MooseX::ClassAttribute;
  1         2  
  1         6  
12              
13             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeHostReservationOfferings');
14             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeHostReservationOfferingsResult');
15             class_has _result_key => (isa => 'Str', is => 'ro');
16             1;
17              
18             ### main pod documentation begin ###
19              
20             =head1 NAME
21              
22             Paws::EC2::DescribeHostReservationOfferings - Arguments for method DescribeHostReservationOfferings on Paws::EC2
23              
24             =head1 DESCRIPTION
25              
26             This class represents the parameters used for calling the method DescribeHostReservationOfferings on the
27             Amazon Elastic Compute Cloud service. Use the attributes of this class
28             as arguments to method DescribeHostReservationOfferings.
29              
30             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeHostReservationOfferings.
31              
32             As an example:
33              
34             $service_obj->DescribeHostReservationOfferings(Att1 => $value1, Att2 => $value2, ...);
35              
36             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
37              
38             =head1 ATTRIBUTES
39              
40              
41             =head2 Filter => ArrayRef[L<Paws::EC2::Filter>]
42              
43             One or more filters.
44              
45             =over
46              
47             =item *
48              
49             C<instance-family> - The instance family of the offering (e.g., C<m4>).
50              
51             =item *
52              
53             C<payment-option> - The payment option (C<NoUpfront> |
54             C<PartialUpfront> | C<AllUpfront>).
55              
56             =back
57              
58              
59              
60              
61             =head2 MaxDuration => Int
62              
63             This is the maximum duration of the reservation you'd like to purchase,
64             specified in seconds. Reservations are available in one-year and
65             three-year terms. The number of seconds specified must be the number of
66             seconds in a year (365x24x60x60) times one of the supported durations
67             (1 or 3). For example, specify 94608000 for three years.
68              
69              
70              
71             =head2 MaxResults => Int
72              
73             The maximum number of results to return for the request in a single
74             page. The remaining results can be seen by sending another request with
75             the returned C<nextToken> value. This value can be between 5 and 500;
76             if C<maxResults> is given a larger value than 500, you will receive an
77             error.
78              
79              
80              
81             =head2 MinDuration => Int
82              
83             This is the minimum duration of the reservation you'd like to purchase,
84             specified in seconds. Reservations are available in one-year and
85             three-year terms. The number of seconds specified must be the number of
86             seconds in a year (365x24x60x60) times one of the supported durations
87             (1 or 3). For example, specify 31536000 for one year.
88              
89              
90              
91             =head2 NextToken => Str
92              
93             The token to use to retrieve the next page of results.
94              
95              
96              
97             =head2 OfferingId => Str
98              
99             The ID of the reservation offering.
100              
101              
102              
103              
104             =head1 SEE ALSO
105              
106             This class forms part of L<Paws>, documenting arguments for method DescribeHostReservationOfferings in L<Paws::EC2>
107              
108             =head1 BUGS and CONTRIBUTIONS
109              
110             The source code is located here: https://github.com/pplu/aws-sdk-perl
111              
112             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
113              
114             =cut
115