File Coverage

blib/lib/Paws/EC2/PurchaseHostReservation.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::PurchaseHostReservation;
3 1     1   328 use Moose;
  1         4  
  1         5  
4             has ClientToken => (is => 'ro', isa => 'Str');
5             has CurrencyCode => (is => 'ro', isa => 'Str');
6             has HostIdSet => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
7             has LimitPrice => (is => 'ro', isa => 'Str');
8             has OfferingId => (is => 'ro', isa => 'Str', required => 1);
9              
10 1     1   5463 use MooseX::ClassAttribute;
  1         2  
  1         7  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'PurchaseHostReservation');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::PurchaseHostReservationResult');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::EC2::PurchaseHostReservation - Arguments for method PurchaseHostReservation on Paws::EC2
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method PurchaseHostReservation on the
26             Amazon Elastic Compute Cloud service. Use the attributes of this class
27             as arguments to method PurchaseHostReservation.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PurchaseHostReservation.
30              
31             As an example:
32              
33             $service_obj->PurchaseHostReservation(Att1 => $value1, Att2 => $value2, ...);
34              
35             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.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 ClientToken => Str
41              
42             Unique, case-sensitive identifier you provide to ensure idempotency of
43             the request. For more information, see How to Ensure Idempotency in the
44             I<Amazon Elastic Compute Cloud User Guide>.
45              
46              
47              
48             =head2 CurrencyCode => Str
49              
50             The currency in which the C<totalUpfrontPrice>, C<LimitPrice>, and
51             C<totalHourlyPrice> amounts are specified. At this time, the only
52             supported currency is C<USD>.
53              
54             Valid values are: C<"USD">
55              
56             =head2 B<REQUIRED> HostIdSet => ArrayRef[Str|Undef]
57              
58             The ID/s of the Dedicated Host/s that the reservation will be
59             associated with.
60              
61              
62              
63             =head2 LimitPrice => Str
64              
65             The specified limit is checked against the total upfront cost of the
66             reservation (calculated as the offering's upfront cost multiplied by
67             the host count). If the total upfront cost is greater than the
68             specified price limit, the request will fail. This is used to ensure
69             that the purchase does not exceed the expected upfront cost of the
70             purchase. At this time, the only supported currency is C<USD>. For
71             example, to indicate a limit price of USD 100, specify 100.00.
72              
73              
74              
75             =head2 B<REQUIRED> OfferingId => Str
76              
77             The ID of the offering.
78              
79              
80              
81              
82             =head1 SEE ALSO
83              
84             This class forms part of L<Paws>, documenting arguments for method PurchaseHostReservation in L<Paws::EC2>
85              
86             =head1 BUGS and CONTRIBUTIONS
87              
88             The source code is located here: https://github.com/pplu/aws-sdk-perl
89              
90             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
91              
92             =cut
93