File Coverage

blib/lib/Paws/EC2/Instance.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 Paws::EC2::Instance;
2 1     1   546 use Moose;
  1     1   3  
  1         7  
  1         757  
  1         3  
  1         8  
3             has AmiLaunchIndex => (is => 'ro', isa => 'Int', request_name => 'amiLaunchIndex', traits => ['NameInRequest']);
4             has Architecture => (is => 'ro', isa => 'Str', request_name => 'architecture', traits => ['NameInRequest']);
5             has BlockDeviceMappings => (is => 'ro', isa => 'ArrayRef[Paws::EC2::InstanceBlockDeviceMapping]', request_name => 'blockDeviceMapping', traits => ['NameInRequest']);
6             has ClientToken => (is => 'ro', isa => 'Str', request_name => 'clientToken', traits => ['NameInRequest']);
7             has EbsOptimized => (is => 'ro', isa => 'Bool', request_name => 'ebsOptimized', traits => ['NameInRequest']);
8             has EnaSupport => (is => 'ro', isa => 'Bool', request_name => 'enaSupport', traits => ['NameInRequest']);
9             has Hypervisor => (is => 'ro', isa => 'Str', request_name => 'hypervisor', traits => ['NameInRequest']);
10             has IamInstanceProfile => (is => 'ro', isa => 'Paws::EC2::IamInstanceProfile', request_name => 'iamInstanceProfile', traits => ['NameInRequest']);
11             has ImageId => (is => 'ro', isa => 'Str', request_name => 'imageId', traits => ['NameInRequest']);
12             has InstanceId => (is => 'ro', isa => 'Str', request_name => 'instanceId', traits => ['NameInRequest']);
13             has InstanceLifecycle => (is => 'ro', isa => 'Str', request_name => 'instanceLifecycle', traits => ['NameInRequest']);
14             has InstanceType => (is => 'ro', isa => 'Str', request_name => 'instanceType', traits => ['NameInRequest']);
15             has KernelId => (is => 'ro', isa => 'Str', request_name => 'kernelId', traits => ['NameInRequest']);
16             has KeyName => (is => 'ro', isa => 'Str', request_name => 'keyName', traits => ['NameInRequest']);
17             has LaunchTime => (is => 'ro', isa => 'Str', request_name => 'launchTime', traits => ['NameInRequest']);
18             has Monitoring => (is => 'ro', isa => 'Paws::EC2::Monitoring', request_name => 'monitoring', traits => ['NameInRequest']);
19             has NetworkInterfaces => (is => 'ro', isa => 'ArrayRef[Paws::EC2::InstanceNetworkInterface]', request_name => 'networkInterfaceSet', traits => ['NameInRequest']);
20             has Placement => (is => 'ro', isa => 'Paws::EC2::Placement', request_name => 'placement', traits => ['NameInRequest']);
21             has Platform => (is => 'ro', isa => 'Str', request_name => 'platform', traits => ['NameInRequest']);
22             has PrivateDnsName => (is => 'ro', isa => 'Str', request_name => 'privateDnsName', traits => ['NameInRequest']);
23             has PrivateIpAddress => (is => 'ro', isa => 'Str', request_name => 'privateIpAddress', traits => ['NameInRequest']);
24             has ProductCodes => (is => 'ro', isa => 'ArrayRef[Paws::EC2::ProductCode]', request_name => 'productCodes', traits => ['NameInRequest']);
25             has PublicDnsName => (is => 'ro', isa => 'Str', request_name => 'dnsName', traits => ['NameInRequest']);
26             has PublicIpAddress => (is => 'ro', isa => 'Str', request_name => 'ipAddress', traits => ['NameInRequest']);
27             has RamdiskId => (is => 'ro', isa => 'Str', request_name => 'ramdiskId', traits => ['NameInRequest']);
28             has RootDeviceName => (is => 'ro', isa => 'Str', request_name => 'rootDeviceName', traits => ['NameInRequest']);
29             has RootDeviceType => (is => 'ro', isa => 'Str', request_name => 'rootDeviceType', traits => ['NameInRequest']);
30             has SecurityGroups => (is => 'ro', isa => 'ArrayRef[Paws::EC2::GroupIdentifier]', request_name => 'groupSet', traits => ['NameInRequest']);
31             has SourceDestCheck => (is => 'ro', isa => 'Bool', request_name => 'sourceDestCheck', traits => ['NameInRequest']);
32             has SpotInstanceRequestId => (is => 'ro', isa => 'Str', request_name => 'spotInstanceRequestId', traits => ['NameInRequest']);
33             has SriovNetSupport => (is => 'ro', isa => 'Str', request_name => 'sriovNetSupport', traits => ['NameInRequest']);
34             has State => (is => 'ro', isa => 'Paws::EC2::InstanceState', request_name => 'instanceState', traits => ['NameInRequest']);
35             has StateReason => (is => 'ro', isa => 'Paws::EC2::StateReason', request_name => 'stateReason', traits => ['NameInRequest']);
36             has StateTransitionReason => (is => 'ro', isa => 'Str', request_name => 'reason', traits => ['NameInRequest']);
37             has SubnetId => (is => 'ro', isa => 'Str', request_name => 'subnetId', traits => ['NameInRequest']);
38             has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Tag]', request_name => 'tagSet', traits => ['NameInRequest']);
39             has VirtualizationType => (is => 'ro', isa => 'Str', request_name => 'virtualizationType', traits => ['NameInRequest']);
40             has VpcId => (is => 'ro', isa => 'Str', request_name => 'vpcId', traits => ['NameInRequest']);
41             1;
42              
43             ### main pod documentation begin ###
44              
45             =head1 NAME
46              
47             Paws::EC2::Instance
48              
49             =head1 USAGE
50              
51             This class represents one of two things:
52              
53             =head3 Arguments in a call to a service
54              
55             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
56             Each attribute should be used as a named argument in the calls that expect this type of object.
57              
58             As an example, if Att1 is expected to be a Paws::EC2::Instance object:
59              
60             $service_obj->Method(Att1 => { AmiLaunchIndex => $value, ..., VpcId => $value });
61              
62             =head3 Results returned from an API call
63              
64             Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::Instance object:
65              
66             $result = $service_obj->Method(...);
67             $result->Att1->AmiLaunchIndex
68              
69             =head1 DESCRIPTION
70              
71             This class has no description
72              
73             =head1 ATTRIBUTES
74              
75              
76             =head2 AmiLaunchIndex => Int
77              
78             The AMI launch index, which can be used to find this instance in the
79             launch group.
80              
81              
82             =head2 Architecture => Str
83              
84             The architecture of the image.
85              
86              
87             =head2 BlockDeviceMappings => ArrayRef[L<Paws::EC2::InstanceBlockDeviceMapping>]
88              
89             Any block device mapping entries for the instance.
90              
91              
92             =head2 ClientToken => Str
93              
94             The idempotency token you provided when you launched the instance, if
95             applicable.
96              
97              
98             =head2 EbsOptimized => Bool
99              
100             Indicates whether the instance is optimized for EBS I/O. This
101             optimization provides dedicated throughput to Amazon EBS and an
102             optimized configuration stack to provide optimal I/O performance. This
103             optimization isn't available with all instance types. Additional usage
104             charges apply when using an EBS Optimized instance.
105              
106              
107             =head2 EnaSupport => Bool
108              
109             Specifies whether enhanced networking with ENA is enabled.
110              
111              
112             =head2 Hypervisor => Str
113              
114             The hypervisor type of the instance.
115              
116              
117             =head2 IamInstanceProfile => L<Paws::EC2::IamInstanceProfile>
118              
119             The IAM instance profile associated with the instance, if applicable.
120              
121              
122             =head2 ImageId => Str
123              
124             The ID of the AMI used to launch the instance.
125              
126              
127             =head2 InstanceId => Str
128              
129             The ID of the instance.
130              
131              
132             =head2 InstanceLifecycle => Str
133              
134             Indicates whether this is a Spot instance or a Scheduled Instance.
135              
136              
137             =head2 InstanceType => Str
138              
139             The instance type.
140              
141              
142             =head2 KernelId => Str
143              
144             The kernel associated with this instance, if applicable.
145              
146              
147             =head2 KeyName => Str
148              
149             The name of the key pair, if this instance was launched with an
150             associated key pair.
151              
152              
153             =head2 LaunchTime => Str
154              
155             The time the instance was launched.
156              
157              
158             =head2 Monitoring => L<Paws::EC2::Monitoring>
159              
160             The monitoring for the instance.
161              
162              
163             =head2 NetworkInterfaces => ArrayRef[L<Paws::EC2::InstanceNetworkInterface>]
164              
165             [EC2-VPC] One or more network interfaces for the instance.
166              
167              
168             =head2 Placement => L<Paws::EC2::Placement>
169              
170             The location where the instance launched, if applicable.
171              
172              
173             =head2 Platform => Str
174              
175             The value is C<Windows> for Windows instances; otherwise blank.
176              
177              
178             =head2 PrivateDnsName => Str
179              
180             (IPv4 only) The private DNS hostname name assigned to the instance.
181             This DNS hostname can only be used inside the Amazon EC2 network. This
182             name is not available until the instance enters the C<running> state.
183              
184             [EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided
185             private DNS hostnames if you've enabled DNS resolution and DNS
186             hostnames in your VPC. If you are not using the Amazon-provided DNS
187             server in your VPC, your custom domain name servers must resolve the
188             hostname as appropriate.
189              
190              
191             =head2 PrivateIpAddress => Str
192              
193             The private IPv4 address assigned to the instance.
194              
195              
196             =head2 ProductCodes => ArrayRef[L<Paws::EC2::ProductCode>]
197              
198             The product codes attached to this instance, if applicable.
199              
200              
201             =head2 PublicDnsName => Str
202              
203             (IPv4 only) The public DNS name assigned to the instance. This name is
204             not available until the instance enters the C<running> state. For
205             EC2-VPC, this name is only available if you've enabled DNS hostnames
206             for your VPC.
207              
208              
209             =head2 PublicIpAddress => Str
210              
211             The public IPv4 address assigned to the instance, if applicable.
212              
213              
214             =head2 RamdiskId => Str
215              
216             The RAM disk associated with this instance, if applicable.
217              
218              
219             =head2 RootDeviceName => Str
220              
221             The root device name (for example, C</dev/sda1> or C</dev/xvda>).
222              
223              
224             =head2 RootDeviceType => Str
225              
226             The root device type used by the AMI. The AMI can use an EBS volume or
227             an instance store volume.
228              
229              
230             =head2 SecurityGroups => ArrayRef[L<Paws::EC2::GroupIdentifier>]
231              
232             One or more security groups for the instance.
233              
234              
235             =head2 SourceDestCheck => Bool
236              
237             Specifies whether to enable an instance launched in a VPC to perform
238             NAT. This controls whether source/destination checking is enabled on
239             the instance. A value of C<true> means checking is enabled, and
240             C<false> means checking is disabled. The value must be C<false> for the
241             instance to perform NAT. For more information, see NAT Instances in the
242             I<Amazon Virtual Private Cloud User Guide>.
243              
244              
245             =head2 SpotInstanceRequestId => Str
246              
247             If the request is a Spot instance request, the ID of the request.
248              
249              
250             =head2 SriovNetSupport => Str
251              
252             Specifies whether enhanced networking with the Intel 82599 Virtual
253             Function interface is enabled.
254              
255              
256             =head2 State => L<Paws::EC2::InstanceState>
257              
258             The current state of the instance.
259              
260              
261             =head2 StateReason => L<Paws::EC2::StateReason>
262              
263             The reason for the most recent state transition.
264              
265              
266             =head2 StateTransitionReason => Str
267              
268             The reason for the most recent state transition. This might be an empty
269             string.
270              
271              
272             =head2 SubnetId => Str
273              
274             [EC2-VPC] The ID of the subnet in which the instance is running.
275              
276              
277             =head2 Tags => ArrayRef[L<Paws::EC2::Tag>]
278              
279             Any tags assigned to the instance.
280              
281              
282             =head2 VirtualizationType => Str
283              
284             The virtualization type of the instance.
285              
286              
287             =head2 VpcId => Str
288              
289             [EC2-VPC] The ID of the VPC in which the instance is running.
290              
291              
292              
293             =head1 SEE ALSO
294              
295             This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
296              
297             =head1 BUGS and CONTRIBUTIONS
298              
299             The source code is located here: https://github.com/pplu/aws-sdk-perl
300              
301             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
302              
303             =cut