| 1 | package Net::Amazon::EC2::ReservedInstanceOffering; | ||
| 2 | 2 | $Net::Amazon::EC2::ReservedInstanceOffering::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::ReservedInstanceOffering | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing a reserved instance offering. | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item reserved_instances_offering_id (required) | ||
| 18 | |||
| 19 | The ID of the Reserved Instance offering. | ||
| 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 usage_price (required) | ||
| 34 | |||
| 35 | The usage price of the Reserved Instance, per hour. | ||
| 36 | |||
| 37 | =item fixed_price (required) | ||
| 38 | |||
| 39 | The purchase price of the Reserved Instance. | ||
| 40 | |||
| 41 | =item product_description (required) | ||
| 42 | |||
| 43 | The Reserved Instance description. | ||
| 44 | |||
| 45 | =back | ||
| 46 | |||
| 47 | =cut | ||
| 48 | |||
| 49 | 2 | has 'reserved_instances_offering_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 50 | 2 | has 'instance_type' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 51 | 2 | has 'availability_zone' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 52 | 2 | has 'duration' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 53 | 2 | has 'usage_price' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 54 | 2 | has 'fixed_price' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 55 | 2 | has 'product_description' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 56 | |||
| 57 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 58 | |||
| 59 | =head1 AUTHOR | ||
| 60 | |||
| 61 | Jeff Kim <cpan@chosec.com> | ||
| 62 | |||
| 63 | =head1 COPYRIGHT | ||
| 64 | |||
| 65 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 66 | under the same terms as Perl itself. | ||
| 67 | |||
| 68 | =cut | ||
| 69 | |||
| 70 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 71 | 2 | 1; | |