EC2/ReservedInstance.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« EC2/ReservationInfo.pm ↑ Summary EC2/ReservedInstanceOffering.pm »
1 package Net::Amazon::EC2::ReservedInstance;
2 2 $Net::Amazon::EC2::ReservedInstance::VERSION = '0.36';
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 Net::Amazon::EC2::ReservedInstance
8  
9 =head1 DESCRIPTION
10  
11 A class representing a reserved instance.
12  
13 =head1 ATTRIBUTES
14  
15 =over
16  
17 =item reserved_instances_id (required)
18  
19 The ID of the Reserved Instance.
20  
21 =item instance_type (required)
22  
23 The instance type on which the Reserved Instance can be used.
24  
25 =item availability_zone (required)
26  
27 The Availability Zone in which the Reserved Instance can be used.
28  
29 =item duration (required)
30  
31 The duration of the Reserved Instance, in seconds.
32  
33 =item start (required)
34  
35 The date and time the Reserved Instance started.
36  
37 =item usage_price (required)
38  
39 The usage price of the Reserved Instance, per hour.
40  
41 =item fixed_price (required)
42  
43 The purchase price of the Reserved Instance.
44  
45 =item instance_count (required)
46  
47 The number of Reserved Instances purchased.
48  
49 =item product_description (required)
50  
51 The Reserved Instance description.
52  
53 =item state (required)
54  
55 The state of the Reserved Instance purchase.
56  
57 =back
58  
59 =cut
60  
61 2 has 'reserved_instances_id' => ( is => 'ro', isa => 'Str', required => 1 );
62 2 has 'instance_type' => ( is => 'ro', isa => 'Str', required => 1 );
63 2 has 'availability_zone' => ( is => 'ro', isa => 'Str', required => 1 );
64 2 has 'duration' => ( is => 'ro', isa => 'Str', required => 1 );
65 2 has 'start' => ( is => 'ro', isa => 'Str', required => 1 );
66 2 has 'usage_price' => ( is => 'ro', isa => 'Str', required => 1 );
67 2 has 'fixed_price' => ( is => 'ro', isa => 'Str', required => 1 );
68 2 has 'instance_count' => ( is => 'ro', isa => 'Str', required => 1 );
69 2 has 'product_description' => ( is => 'ro', isa => 'Str', required => 1 );
70 2 has 'state' => ( is => 'ro', isa => 'Str', required => 1 );
71  
72 2 __PACKAGE__->meta->make_immutable();
73  
74 =head1 AUTHOR
75  
76 Jeff Kim <cpan@chosec.com>
77  
78 =head1 COPYRIGHT
79  
80 Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
81 under the same terms as Perl itself.
82  
83 =cut
84  
85 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
86 2 1;
« EC2/ReservationInfo.pm ↑ Summary EC2/ReservedInstanceOffering.pm »