File Coverage

blib/lib/Paws/EC2/DescribeHostReservations.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::DescribeHostReservations;
3 1     1   557 use Moose;
  1         3  
  1         8  
4             has Filter => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]');
5             has HostReservationIdSet => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6             has MaxResults => (is => 'ro', isa => 'Int');
7             has NextToken => (is => 'ro', isa => 'Str');
8              
9 1     1   6316 use MooseX::ClassAttribute;
  1         3  
  1         8  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeHostReservations');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeHostReservationsResult');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::EC2::DescribeHostReservations - Arguments for method DescribeHostReservations on Paws::EC2
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method DescribeHostReservations on the
25             Amazon Elastic Compute Cloud service. Use the attributes of this class
26             as arguments to method DescribeHostReservations.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeHostReservations.
29              
30             As an example:
31              
32             $service_obj->DescribeHostReservations(Att1 => $value1, Att2 => $value2, ...);
33              
34             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.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 Filter => ArrayRef[L<Paws::EC2::Filter>]
40              
41             One or more filters.
42              
43             =over
44              
45             =item *
46              
47             C<instance-family> - The instance family (e.g., C<m4>).
48              
49             =item *
50              
51             C<payment-option> - The payment option (C<NoUpfront> |
52             C<PartialUpfront> | C<AllUpfront>).
53              
54             =item *
55              
56             C<state> - The state of the reservation (C<payment-pending> |
57             C<payment-failed> | C<active> | C<retired>).
58              
59             =back
60              
61              
62              
63              
64             =head2 HostReservationIdSet => ArrayRef[Str|Undef]
65              
66             One or more host reservation IDs.
67              
68              
69              
70             =head2 MaxResults => Int
71              
72             The maximum number of results to return for the request in a single
73             page. The remaining results can be seen by sending another request with
74             the returned C<nextToken> value. This value can be between 5 and 500;
75             if C<maxResults> is given a larger value than 500, you will receive an
76             error.
77              
78              
79              
80             =head2 NextToken => Str
81              
82             The token to use to retrieve the next page of results.
83              
84              
85              
86              
87             =head1 SEE ALSO
88              
89             This class forms part of L<Paws>, documenting arguments for method DescribeHostReservations in L<Paws::EC2>
90              
91             =head1 BUGS and CONTRIBUTIONS
92              
93             The source code is located here: https://github.com/pplu/aws-sdk-perl
94              
95             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
96              
97             =cut
98