| 1 | package Net::Amazon::EC2::DescribeImagesResponse; | ||
| 2 | 2 | $Net::Amazon::EC2::DescribeImagesResponse::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::DescribeImagesResponse | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing a machine image. | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item image_id (required) | ||
| 18 | |||
| 19 | The image_id you you are describing the image attributes of. | ||
| 20 | |||
| 21 | =item image_location (required) | ||
| 22 | |||
| 23 | Path to the AMI itself | ||
| 24 | |||
| 25 | =item image_state (required) | ||
| 26 | |||
| 27 | Current state of the AMI. | ||
| 28 | If the operation returns available, the image is successfully registered and available for launching | ||
| 29 | If the operation returns deregistered, the image is deregistered and no longer available for launching. | ||
| 30 | |||
| 31 | =item image_owner_id (required) | ||
| 32 | |||
| 33 | AWS access key id of the owner of the image. | ||
| 34 | |||
| 35 | =item is_public (required) | ||
| 36 | |||
| 37 | This is true if the AMI can be launched by anyone (has public launch permissions) or false if its only able | ||
| 38 | to be run by the owner of the AMI. | ||
| 39 | |||
| 40 | =item product_codes (optional) | ||
| 41 | |||
| 42 | An array ref of Net::Amazon::EC2::ProductCode objects (if any) associated with this AMI. | ||
| 43 | |||
| 44 | =item architecture (optional) | ||
| 45 | |||
| 46 | The AMI architecture (i386 or x86_64). | ||
| 47 | |||
| 48 | =item image_type (optional) | ||
| 49 | |||
| 50 | The type of AMI this is. Valid values are: | ||
| 51 | |||
| 52 | =over | ||
| 53 | |||
| 54 | =item machine | ||
| 55 | |||
| 56 | =item kernel | ||
| 57 | |||
| 58 | =item ramdisk | ||
| 59 | |||
| 60 | =back | ||
| 61 | |||
| 62 | =item kernel_id (optional) | ||
| 63 | |||
| 64 | The kernel id associated with this AMI (if any). This is only defined for machine type AMIs. | ||
| 65 | |||
| 66 | =item ramdisk_id (optional) | ||
| 67 | |||
| 68 | The ramdisk id associated with this AMI (if any). This is only defined for machine type AMIs. | ||
| 69 | |||
| 70 | =item platform (optional) | ||
| 71 | |||
| 72 | The operating system of the instance. | ||
| 73 | |||
| 74 | =item state_reason (optional) | ||
| 75 | |||
| 76 | A Net::Amazon::EC2::StateReason object representing the stage change. | ||
| 77 | |||
| 78 | =item image_owner_alias (optional) | ||
| 79 | |||
| 80 | The AWS account alias (e.g., "amazon", "redhat", "self", etc.) or AWS account ID that owns the AMI. | ||
| 81 | |||
| 82 | =item name (optional) | ||
| 83 | |||
| 84 | The name of the AMI that was provided during image creation. | ||
| 85 | |||
| 86 | =item description (optional) | ||
| 87 | |||
| 88 | The description of the AMI that was provided during image creation. | ||
| 89 | |||
| 90 | =item root_device_type (optional) | ||
| 91 | |||
| 92 | The root device type used by the AMI. The AMI can use an Amazon EBS or instance store root device. | ||
| 93 | |||
| 94 | =item root_device_name (optional) | ||
| 95 | |||
| 96 | The root device name (e.g., /dev/sda1). | ||
| 97 | |||
| 98 | =item block_device_mapping (optional) | ||
| 99 | |||
| 100 | An array ref of Net::Amazon::EC2::BlockDeviceMapping objects. | ||
| 101 | |||
| 102 | =back | ||
| 103 | |||
| 104 | =cut | ||
| 105 | |||
| 106 | 2 | has 'image_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 107 | 2 | has 'image_location' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 108 | 2 | has 'image_state' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 109 | 2 | has 'image_owner_id' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 110 | 2 | has 'is_public' => ( is => 'ro', isa => 'Str', required => 1 ); | |
| 111 | 2 | has 'product_codes' => ( | |
| 112 | is => 'rw', | ||
| 113 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::ProductCode]]', | ||
| 114 | predicate => 'has_product_codes', | ||
| 115 | required => 0, | ||
| 116 | ); | ||
| 117 | 2 | has 'architecture' => ( is => 'ro', isa => 'Str', required => 0 ); | |
| 118 | 2 | has 'image_type' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 119 | 2 | has 'kernel_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 120 | 2 | has 'ramdisk_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 121 | 2 | has 'platform' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 122 | 2 | has 'state_reason' => ( is => 'ro', isa => 'Maybe[Net::Amazon::EC2::StateReason]', required => 0 ); | |
| 123 | 2 | has 'image_owner_alias' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 124 | 2 | has 'name' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 125 | 2 | has 'description' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 126 | 2 | has 'root_device_type' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 127 | 2 | has 'root_device_name' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); | |
| 128 | 2 | has 'block_device_mapping' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::BlockDeviceMapping]]', required => 0 ); | |
| 129 | 2 | has 'tag_set' => ( is => 'ro', isa => 'Maybe[ArrayRef[Net::Amazon::EC2::TagSet]]', required => 0 ); | |
| 130 | |||
| 131 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 132 | |||
| 133 | =head1 AUTHOR | ||
| 134 | |||
| 135 | Jeff Kim <cpan@chosec.com> | ||
| 136 | |||
| 137 | =head1 COPYRIGHT | ||
| 138 | |||
| 139 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 140 | under the same terms as Perl itself. | ||
| 141 | |||
| 142 | =cut | ||
| 143 | |||
| 144 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 145 | 2 | 1; | |