File Coverage

blib/lib/Net/Amazon/EC2/DescribeImagesResponse.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


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