| 1 | package Net::Amazon::EC2::Volume; | ||
| 2 | 2 | $Net::Amazon::EC2::Volume::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::Volume | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing a volume | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item volume_id (required) | ||
| 18 | |||
| 19 | The ID of the volume. | ||
| 20 | |||
| 21 | =item size (required) | ||
| 22 | |||
| 23 | The size, in GiB (1GiB = 2^30 octects) | ||
| 24 | |||
| 25 | =item snapshot_id (optional) | ||
| 26 | |||
| 27 | The ID of the snapshot which this volume was created from (if any). | ||
| 28 | |||
| 29 | =item zone (required) | ||
| 30 | |||
| 31 | The availability zone the volume was creared in. | ||
| 32 | |||
| 33 | =item status (required) | ||
| 34 | |||
| 35 | The volume's status. | ||
| 36 | |||
| 37 | =item create_time (required) | ||
| 38 | |||
| 39 | The time the volume was created. | ||
| 40 | |||
| 41 | =item volume_type (optional) | ||
| 42 | |||
| 43 | The volume type. | ||
| 44 | |||
| 45 | =item iops (optional) | ||
| 46 | |||
| 47 | The number of I/O operations per second (IOPS) that the volume | ||
| 48 | supports (only applies to volumes with a volume_type of io1). | ||
| 49 | |||
| 50 | =item attachments (optional) | ||
| 51 | |||
| 52 | An array ref of Net:Amazon::EC2::Attachment objects. | ||
| 53 | |||
| 54 | =item tag_set (optional) | ||
| 55 | |||
| 56 | The associated tags (key:value) of the specified volume. | ||
| 57 | |||
| 58 | =back | ||
| 59 | |||
| 60 | =cut | ||
| 61 | |||
| 62 | 2 | has 'volume_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 63 | 2 | has 'size' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 64 | 2 | has 'snapshot_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 65 | 2 | has 'zone' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 66 | 2 | has 'status' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 67 | 2 | has 'create_time' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 68 | 2 | has 'volume_type' => ( is => 'ro', isa => 'Str', default => 'standard'); | |
| 69 | 2 | has 'iops' => ( is => 'ro', isa => 'Maybe[Int]'); | |
| 70 | 2 | has 'encrypted' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 71 | 2 | has 'attachments' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::Attachment]]', required => 0 ); | |
| 72 | 2 | has 'tag_set' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 ); | |
| 73 | |||
| 74 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 75 | |||
| 76 | =head1 AUTHOR | ||
| 77 | |||
| 78 | Jeff Kim <cpan@chosec.com> | ||
| 79 | |||
| 80 | =head1 COPYRIGHT | ||
| 81 | |||
| 82 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 83 | under the same terms as Perl itself. | ||
| 84 | |||
| 85 | =cut | ||
| 86 | |||
| 87 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 88 | 2 | 1; | |