| 1 | package Net::Amazon::EC2::DescribeImageAttribute; | ||
| 2 | 2 | $Net::Amazon::EC2::DescribeImageAttribute::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::DescribeImageAttribute | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing the attributes associated with a machine image. | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item image_id (required) | ||
| 18 | |||
| 19 | Image ID you are describing the image attributes of. | ||
| 20 | |||
| 21 | =item launch_permissions (optional) | ||
| 22 | |||
| 23 | An array ref of Net::Amazon::EC2::LaunchPermission objects. | ||
| 24 | |||
| 25 | =item product_codes (optional) | ||
| 26 | |||
| 27 | An array ref of Net::Amazon::EC2::ProductCode objects. | ||
| 28 | |||
| 29 | =item kernel (optional) | ||
| 30 | |||
| 31 | ID of the kernel associated with the AMI. Returned if kernel is | ||
| 32 | specified. | ||
| 33 | |||
| 34 | =item ramdisk (optional) | ||
| 35 | |||
| 36 | ID of the RAM disk associated with the AMI. Returned if ramdisk | ||
| 37 | is specified. | ||
| 38 | |||
| 39 | =item block_device_mapping (optional) | ||
| 40 | |||
| 41 | An array ref of Net::Amazon::EC2::BlockDeviceMapping objects. | ||
| 42 | |||
| 43 | =item platform (optional) | ||
| 44 | |||
| 45 | Describes the operating system platform. | ||
| 46 | |||
| 47 | =back | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | 2 | has 'image_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 52 | 2 | has 'launch_permissions' => ( | |
| 53 | is => 'ro', | ||
| 54 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::LaunchPermission]]', | ||
| 55 | predicate => 'has_launch_permissions', | ||
| 56 | required => 0, | ||
| 57 | ); | ||
| 58 | 2 | has 'product_codes' => ( | |
| 59 | is => 'ro', | ||
| 60 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::ProductCode]]', | ||
| 61 | predicate => 'has_product_codes', | ||
| 62 | required => 0, | ||
| 63 | ); | ||
| 64 | 2 | has 'kernel' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 65 | 2 | has 'ramdisk' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 66 | 2 | has 'blockDeviceMapping' => ( | |
| 67 | is => 'ro', | ||
| 68 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::BlockDeviceMapping]]', | ||
| 69 | required => 0, | ||
| 70 | ); | ||
| 71 | 2 | has 'platform' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 72 | |||
| 73 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 74 | |||
| 75 | =head1 AUTHOR | ||
| 76 | |||
| 77 | Jeff Kim <cpan@chosec.com> | ||
| 78 | |||
| 79 | =head1 COPYRIGHT | ||
| 80 | |||
| 81 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 82 | under the same terms as Perl itself. | ||
| 83 | |||
| 84 | =cut | ||
| 85 | |||
| 86 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 87 | 2 | 1; | |