File Coverage

blib/lib/Paws/EC2/ReservedInstancesOffering.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             package Paws::EC2::ReservedInstancesOffering;
2 1     1   826 use Moose;
  1     1   4  
  1         11  
  1         723  
  1         2  
  1         9  
3             has AvailabilityZone => (is => 'ro', isa => 'Str', request_name => 'availabilityZone', traits => ['NameInRequest']);
4             has CurrencyCode => (is => 'ro', isa => 'Str', request_name => 'currencyCode', traits => ['NameInRequest']);
5             has Duration => (is => 'ro', isa => 'Int', request_name => 'duration', traits => ['NameInRequest']);
6             has FixedPrice => (is => 'ro', isa => 'Num', request_name => 'fixedPrice', traits => ['NameInRequest']);
7             has InstanceTenancy => (is => 'ro', isa => 'Str', request_name => 'instanceTenancy', traits => ['NameInRequest']);
8             has InstanceType => (is => 'ro', isa => 'Str', request_name => 'instanceType', traits => ['NameInRequest']);
9             has Marketplace => (is => 'ro', isa => 'Bool', request_name => 'marketplace', traits => ['NameInRequest']);
10             has OfferingClass => (is => 'ro', isa => 'Str', request_name => 'offeringClass', traits => ['NameInRequest']);
11             has OfferingType => (is => 'ro', isa => 'Str', request_name => 'offeringType', traits => ['NameInRequest']);
12             has PricingDetails => (is => 'ro', isa => 'ArrayRef[Paws::EC2::PricingDetail]', request_name => 'pricingDetailsSet', traits => ['NameInRequest']);
13             has ProductDescription => (is => 'ro', isa => 'Str', request_name => 'productDescription', traits => ['NameInRequest']);
14             has RecurringCharges => (is => 'ro', isa => 'ArrayRef[Paws::EC2::RecurringCharge]', request_name => 'recurringCharges', traits => ['NameInRequest']);
15             has ReservedInstancesOfferingId => (is => 'ro', isa => 'Str', request_name => 'reservedInstancesOfferingId', traits => ['NameInRequest']);
16             has Scope => (is => 'ro', isa => 'Str', request_name => 'scope', traits => ['NameInRequest']);
17             has UsagePrice => (is => 'ro', isa => 'Num', request_name => 'usagePrice', traits => ['NameInRequest']);
18             1;
19              
20             ### main pod documentation begin ###
21              
22             =head1 NAME
23              
24             Paws::EC2::ReservedInstancesOffering
25              
26             =head1 USAGE
27              
28             This class represents one of two things:
29              
30             =head3 Arguments in a call to a service
31              
32             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
33             Each attribute should be used as a named argument in the calls that expect this type of object.
34              
35             As an example, if Att1 is expected to be a Paws::EC2::ReservedInstancesOffering object:
36              
37             $service_obj->Method(Att1 => { AvailabilityZone => $value, ..., UsagePrice => $value });
38              
39             =head3 Results returned from an API call
40              
41             Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::ReservedInstancesOffering object:
42              
43             $result = $service_obj->Method(...);
44             $result->Att1->AvailabilityZone
45              
46             =head1 DESCRIPTION
47              
48             This class has no description
49              
50             =head1 ATTRIBUTES
51              
52              
53             =head2 AvailabilityZone => Str
54              
55             The Availability Zone in which the Reserved Instance can be used.
56              
57              
58             =head2 CurrencyCode => Str
59              
60             The currency of the Reserved Instance offering you are purchasing. It's
61             specified using ISO 4217 standard currency codes. At this time, the
62             only supported currency is C<USD>.
63              
64              
65             =head2 Duration => Int
66              
67             The duration of the Reserved Instance, in seconds.
68              
69              
70             =head2 FixedPrice => Num
71              
72             The purchase price of the Reserved Instance.
73              
74              
75             =head2 InstanceTenancy => Str
76              
77             The tenancy of the instance.
78              
79              
80             =head2 InstanceType => Str
81              
82             The instance type on which the Reserved Instance can be used.
83              
84              
85             =head2 Marketplace => Bool
86              
87             Indicates whether the offering is available through the Reserved
88             Instance Marketplace (resale) or AWS. If it's a Reserved Instance
89             Marketplace offering, this is C<true>.
90              
91              
92             =head2 OfferingClass => Str
93              
94             If C<convertible> it can be exchanged for Reserved Instances of the
95             same or higher monetary value, with different configurations. If
96             C<standard>, it is not possible to perform an exchange.
97              
98              
99             =head2 OfferingType => Str
100              
101             The Reserved Instance offering type.
102              
103              
104             =head2 PricingDetails => ArrayRef[L<Paws::EC2::PricingDetail>]
105              
106             The pricing details of the Reserved Instance offering.
107              
108              
109             =head2 ProductDescription => Str
110              
111             The Reserved Instance product platform description.
112              
113              
114             =head2 RecurringCharges => ArrayRef[L<Paws::EC2::RecurringCharge>]
115              
116             The recurring charge tag assigned to the resource.
117              
118              
119             =head2 ReservedInstancesOfferingId => Str
120              
121             The ID of the Reserved Instance offering. This is the offering ID used
122             in GetReservedInstancesExchangeQuote to confirm that an exchange can be
123             made.
124              
125              
126             =head2 Scope => Str
127              
128             Whether the Reserved Instance is applied to instances in a region or an
129             Availability Zone.
130              
131              
132             =head2 UsagePrice => Num
133              
134             The usage price of the Reserved Instance, per hour.
135              
136              
137              
138             =head1 SEE ALSO
139              
140             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
141              
142             =head1 BUGS and CONTRIBUTIONS
143              
144             The source code is located here: https://github.com/pplu/aws-sdk-perl
145              
146             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
147              
148             =cut