File Coverage

blib/lib/Paws/EC2/DescribeInstances.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::DescribeInstances;
3 1     1   435 use Moose;
  1     4   3  
  1         7  
  4         2300  
  4         12  
  4         34  
4             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
5             has Filters => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Filter]', traits => ['NameInRequest'], request_name => 'Filter' );
6             has InstanceIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'InstanceId' );
7             has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' );
8             has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
9              
10 1     1   6462 use MooseX::ClassAttribute;
  1     4   3  
  1         8  
  4         28213  
  4         13  
  4         42  
11              
12             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeInstances');
13             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::DescribeInstancesResult');
14             class_has _result_key => (isa => 'Str', is => 'ro');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::EC2::DescribeInstances - Arguments for method DescribeInstances on Paws::EC2
22              
23             =head1 DESCRIPTION
24              
25             This class represents the parameters used for calling the method DescribeInstances on the
26             Amazon Elastic Compute Cloud service. Use the attributes of this class
27             as arguments to method DescribeInstances.
28              
29             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeInstances.
30              
31             As an example:
32              
33             $service_obj->DescribeInstances(Att1 => $value1, Att2 => $value2, ...);
34              
35             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
36              
37             =head1 ATTRIBUTES
38              
39              
40             =head2 DryRun => Bool
41              
42             Checks whether you have the required permissions for the action,
43             without actually making the request, and provides an error response. If
44             you have the required permissions, the error response is
45             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
46              
47              
48              
49             =head2 Filters => ArrayRef[L<Paws::EC2::Filter>]
50              
51             One or more filters.
52              
53             =over
54              
55             =item *
56              
57             C<affinity> - The affinity setting for an instance running on a
58             Dedicated Host (C<default> | C<host>).
59              
60             =item *
61              
62             C<architecture> - The instance architecture (C<i386> | C<x86_64>).
63              
64             =item *
65              
66             C<availability-zone> - The Availability Zone of the instance.
67              
68             =item *
69              
70             C<block-device-mapping.attach-time> - The attach time for an EBS volume
71             mapped to the instance, for example, C<2010-09-15T17:15:20.000Z>.
72              
73             =item *
74              
75             C<block-device-mapping.delete-on-termination> - A Boolean that
76             indicates whether the EBS volume is deleted on instance termination.
77              
78             =item *
79              
80             C<block-device-mapping.device-name> - The device name for the EBS
81             volume (for example, C</dev/sdh> or C<xvdh>).
82              
83             =item *
84              
85             C<block-device-mapping.status> - The status for the EBS volume
86             (C<attaching> | C<attached> | C<detaching> | C<detached>).
87              
88             =item *
89              
90             C<block-device-mapping.volume-id> - The volume ID of the EBS volume.
91              
92             =item *
93              
94             C<client-token> - The idempotency token you provided when you launched
95             the instance.
96              
97             =item *
98              
99             C<dns-name> - The public DNS name of the instance.
100              
101             =item *
102              
103             C<group-id> - The ID of the security group for the instance.
104             EC2-Classic only.
105              
106             =item *
107              
108             C<group-name> - The name of the security group for the instance.
109             EC2-Classic only.
110              
111             =item *
112              
113             C<host-id> - The ID of the Dedicated Host on which the instance is
114             running, if applicable.
115              
116             =item *
117              
118             C<hypervisor> - The hypervisor type of the instance (C<ovm> | C<xen>).
119              
120             =item *
121              
122             C<iam-instance-profile.arn> - The instance profile associated with the
123             instance. Specified as an ARN.
124              
125             =item *
126              
127             C<image-id> - The ID of the image used to launch the instance.
128              
129             =item *
130              
131             C<instance-id> - The ID of the instance.
132              
133             =item *
134              
135             C<instance-lifecycle> - Indicates whether this is a Spot Instance or a
136             Scheduled Instance (C<spot> | C<scheduled>).
137              
138             =item *
139              
140             C<instance-state-code> - The state of the instance, as a 16-bit
141             unsigned integer. The high byte is an opaque internal value and should
142             be ignored. The low byte is set based on the state represented. The
143             valid values are: 0 (pending), 16 (running), 32 (shutting-down), 48
144             (terminated), 64 (stopping), and 80 (stopped).
145              
146             =item *
147              
148             C<instance-state-name> - The state of the instance (C<pending> |
149             C<running> | C<shutting-down> | C<terminated> | C<stopping> |
150             C<stopped>).
151              
152             =item *
153              
154             C<instance-type> - The type of instance (for example, C<t2.micro>).
155              
156             =item *
157              
158             C<instance.group-id> - The ID of the security group for the instance.
159              
160             =item *
161              
162             C<instance.group-name> - The name of the security group for the
163             instance.
164              
165             =item *
166              
167             C<ip-address> - The public IPv4 address of the instance.
168              
169             =item *
170              
171             C<kernel-id> - The kernel ID.
172              
173             =item *
174              
175             C<key-name> - The name of the key pair used when the instance was
176             launched.
177              
178             =item *
179              
180             C<launch-index> - When launching multiple instances, this is the index
181             for the instance in the launch group (for example, 0, 1, 2, and so on).
182              
183             =item *
184              
185             C<launch-time> - The time when the instance was launched.
186              
187             =item *
188              
189             C<monitoring-state> - Indicates whether detailed monitoring is enabled
190             (C<disabled> | C<enabled>).
191              
192             =item *
193              
194             C<network-interface.addresses.private-ip-address> - The private IPv4
195             address associated with the network interface.
196              
197             =item *
198              
199             C<network-interface.addresses.primary> - Specifies whether the IPv4
200             address of the network interface is the primary private IPv4 address.
201              
202             =item *
203              
204             C<network-interface.addresses.association.public-ip> - The ID of the
205             association of an Elastic IP address (IPv4) with a network interface.
206              
207             =item *
208              
209             C<network-interface.addresses.association.ip-owner-id> - The owner ID
210             of the private IPv4 address associated with the network interface.
211              
212             =item *
213              
214             C<network-interface.association.public-ip> - The address of the Elastic
215             IP address (IPv4) bound to the network interface.
216              
217             =item *
218              
219             C<network-interface.association.ip-owner-id> - The owner of the Elastic
220             IP address (IPv4) associated with the network interface.
221              
222             =item *
223              
224             C<network-interface.association.allocation-id> - The allocation ID
225             returned when you allocated the Elastic IP address (IPv4) for your
226             network interface.
227              
228             =item *
229              
230             C<network-interface.association.association-id> - The association ID
231             returned when the network interface was associated with an IPv4
232             address.
233              
234             =item *
235              
236             C<network-interface.attachment.attachment-id> - The ID of the interface
237             attachment.
238              
239             =item *
240              
241             C<network-interface.attachment.instance-id> - The ID of the instance to
242             which the network interface is attached.
243              
244             =item *
245              
246             C<network-interface.attachment.instance-owner-id> - The owner ID of the
247             instance to which the network interface is attached.
248              
249             =item *
250              
251             C<network-interface.attachment.device-index> - The device index to
252             which the network interface is attached.
253              
254             =item *
255              
256             C<network-interface.attachment.status> - The status of the attachment
257             (C<attaching> | C<attached> | C<detaching> | C<detached>).
258              
259             =item *
260              
261             C<network-interface.attachment.attach-time> - The time that the network
262             interface was attached to an instance.
263              
264             =item *
265              
266             C<network-interface.attachment.delete-on-termination> - Specifies
267             whether the attachment is deleted when an instance is terminated.
268              
269             =item *
270              
271             C<network-interface.availability-zone> - The Availability Zone for the
272             network interface.
273              
274             =item *
275              
276             C<network-interface.description> - The description of the network
277             interface.
278              
279             =item *
280              
281             C<network-interface.group-id> - The ID of a security group associated
282             with the network interface.
283              
284             =item *
285              
286             C<network-interface.group-name> - The name of a security group
287             associated with the network interface.
288              
289             =item *
290              
291             C<network-interface.ipv6-addresses.ipv6-address> - The IPv6 address
292             associated with the network interface.
293              
294             =item *
295              
296             C<network-interface.mac-address> - The MAC address of the network
297             interface.
298              
299             =item *
300              
301             C<network-interface.network-interface-id> - The ID of the network
302             interface.
303              
304             =item *
305              
306             C<network-interface.owner-id> - The ID of the owner of the network
307             interface.
308              
309             =item *
310              
311             C<network-interface.private-dns-name> - The private DNS name of the
312             network interface.
313              
314             =item *
315              
316             C<network-interface.requester-id> - The requester ID for the network
317             interface.
318              
319             =item *
320              
321             C<network-interface.requester-managed> - Indicates whether the network
322             interface is being managed by AWS.
323              
324             =item *
325              
326             C<network-interface.status> - The status of the network interface
327             (C<available>) | C<in-use>).
328              
329             =item *
330              
331             C<network-interface.source-dest-check> - Whether the network interface
332             performs source/destination checking. A value of C<true> means checking
333             is enabled, and C<false> means checking is disabled. The value must be
334             C<false> for the network interface to perform network address
335             translation (NAT) in your VPC.
336              
337             =item *
338              
339             C<network-interface.subnet-id> - The ID of the subnet for the network
340             interface.
341              
342             =item *
343              
344             C<network-interface.vpc-id> - The ID of the VPC for the network
345             interface.
346              
347             =item *
348              
349             C<owner-id> - The AWS account ID of the instance owner.
350              
351             =item *
352              
353             C<placement-group-name> - The name of the placement group for the
354             instance.
355              
356             =item *
357              
358             C<platform> - The platform. Use C<windows> if you have Windows
359             instances; otherwise, leave blank.
360              
361             =item *
362              
363             C<private-dns-name> - The private IPv4 DNS name of the instance.
364              
365             =item *
366              
367             C<private-ip-address> - The private IPv4 address of the instance.
368              
369             =item *
370              
371             C<product-code> - The product code associated with the AMI used to
372             launch the instance.
373              
374             =item *
375              
376             C<product-code.type> - The type of product code (C<devpay> |
377             C<marketplace>).
378              
379             =item *
380              
381             C<ramdisk-id> - The RAM disk ID.
382              
383             =item *
384              
385             C<reason> - The reason for the current state of the instance (for
386             example, shows "User Initiated [date]" when you stop or terminate the
387             instance). Similar to the state-reason-code filter.
388              
389             =item *
390              
391             C<requester-id> - The ID of the entity that launched the instance on
392             your behalf (for example, AWS Management Console, Auto Scaling, and so
393             on).
394              
395             =item *
396              
397             C<reservation-id> - The ID of the instance's reservation. A reservation
398             ID is created any time you launch an instance. A reservation ID has a
399             one-to-one relationship with an instance launch request, but can be
400             associated with more than one instance if you launch multiple instances
401             using the same launch request. For example, if you launch one instance,
402             you'll get one reservation ID. If you launch ten instances using the
403             same launch request, you'll also get one reservation ID.
404              
405             =item *
406              
407             C<root-device-name> - The name of the root device for the instance (for
408             example, C</dev/sda1> or C</dev/xvda>).
409              
410             =item *
411              
412             C<root-device-type> - The type of root device that the instance uses
413             (C<ebs> | C<instance-store>).
414              
415             =item *
416              
417             C<source-dest-check> - Indicates whether the instance performs
418             source/destination checking. A value of C<true> means that checking is
419             enabled, and C<false> means checking is disabled. The value must be
420             C<false> for the instance to perform network address translation (NAT)
421             in your VPC.
422              
423             =item *
424              
425             C<spot-instance-request-id> - The ID of the Spot instance request.
426              
427             =item *
428              
429             C<state-reason-code> - The reason code for the state change.
430              
431             =item *
432              
433             C<state-reason-message> - A message that describes the state change.
434              
435             =item *
436              
437             C<subnet-id> - The ID of the subnet for the instance.
438              
439             =item *
440              
441             C<tag>:I<key>=I<value> - The key/value combination of a tag assigned to
442             the resource. Specify the key of the tag in the filter name and the
443             value of the tag in the filter value. For example, for the tag
444             Purpose=X, specify C<tag:Purpose> for the filter name and C<X> for the
445             filter value.
446              
447             =item *
448              
449             C<tag-key> - The key of a tag assigned to the resource. This filter is
450             independent of the C<tag-value> filter. For example, if you use both
451             the filter "tag-key=Purpose" and the filter "tag-value=X", you get any
452             resources assigned both the tag key Purpose (regardless of what the
453             tag's value is), and the tag value X (regardless of what the tag's key
454             is). If you want to list only resources where Purpose is X, see the
455             C<tag>:I<key>=I<value> filter.
456              
457             =item *
458              
459             C<tag-value> - The value of a tag assigned to the resource. This filter
460             is independent of the C<tag-key> filter.
461              
462             =item *
463              
464             C<tenancy> - The tenancy of an instance (C<dedicated> | C<default> |
465             C<host>).
466              
467             =item *
468              
469             C<virtualization-type> - The virtualization type of the instance
470             (C<paravirtual> | C<hvm>).
471              
472             =item *
473              
474             C<vpc-id> - The ID of the VPC that the instance is running in.
475              
476             =back
477              
478              
479              
480              
481             =head2 InstanceIds => ArrayRef[Str|Undef]
482              
483             One or more instance IDs.
484              
485             Default: Describes all your instances.
486              
487              
488              
489             =head2 MaxResults => Int
490              
491             The maximum number of results to return in a single call. To retrieve
492             the remaining results, make another call with the returned C<NextToken>
493             value. This value can be between 5 and 1000. You cannot specify this
494             parameter and the instance IDs parameter or tag filters in the same
495             call.
496              
497              
498              
499             =head2 NextToken => Str
500              
501             The token to request the next page of results.
502              
503              
504              
505              
506             =head1 SEE ALSO
507              
508             This class forms part of L<Paws>, documenting arguments for method DescribeInstances in L<Paws::EC2>
509              
510             =head1 BUGS and CONTRIBUTIONS
511              
512             The source code is located here: https://github.com/pplu/aws-sdk-perl
513              
514             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
515              
516             =cut
517