| 1 | package Net::Amazon::EC2::EbsBlockDevice; | ||
| 2 | 2 | $Net::Amazon::EC2::EbsBlockDevice::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Net::Amazon::EC2::Net::Amazon::EC2::EbsBlockDevice | ||
| 9 | |||
| 10 | =head1 DESCRIPTION | ||
| 11 | |||
| 12 | A class representing a EBS block device | ||
| 13 | |||
| 14 | =head1 ATTRIBUTES | ||
| 15 | |||
| 16 | =over | ||
| 17 | |||
| 18 | =item snapshot_id (optional) | ||
| 19 | |||
| 20 | The EBS snapshot id. | ||
| 21 | |||
| 22 | =item volume_size (optional) | ||
| 23 | |||
| 24 | The size, in GiB (1GiB = 2^30 octects) | ||
| 25 | |||
| 26 | =item delete_on_termination (optional) | ||
| 27 | |||
| 28 | Specifies whether the Amazon EBS volume is deleted on instance termination. | ||
| 29 | |||
| 30 | =back | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 2 | has 'snapshot_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 35 | 2 | has 'volume_size' => ( is => 'ro', isa => 'Maybe[Int]', required => 0 ); | |
| 36 | 2 | has 'delete_on_termination' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 37 | |||
| 38 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 39 | |||
| 40 | =head1 AUTHOR | ||
| 41 | |||
| 42 | Jeff Kim <cpan@chosec.com> | ||
| 43 | |||
| 44 | =head1 COPYRIGHT | ||
| 45 | |||
| 46 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 47 | under the same terms as Perl itself. | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 52 | 2 | 1; | |