File Coverage

blib/lib/Paws/AutoScaling/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::AutoScaling::Instance;
2 1     1   305 use Moose;
  1     1   2  
  1         5  
  1         448  
  1         2  
  1         7  
3             has AvailabilityZone => (is => 'ro', isa => 'Str', required => 1);
4             has HealthStatus => (is => 'ro', isa => 'Str', required => 1);
5             has InstanceId => (is => 'ro', isa => 'Str', required => 1);
6             has LaunchConfigurationName => (is => 'ro', isa => 'Str');
7             has LifecycleState => (is => 'ro', isa => 'Str', required => 1);
8             has ProtectedFromScaleIn => (is => 'ro', isa => 'Bool', required => 1);
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::AutoScaling::Instance
16              
17             =head1 USAGE
18              
19             This class represents one of two things:
20              
21             =head3 Arguments in a call to a service
22              
23             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24             Each attribute should be used as a named argument in the calls that expect this type of object.
25              
26             As an example, if Att1 is expected to be a Paws::AutoScaling::Instance object:
27              
28             $service_obj->Method(Att1 => { AvailabilityZone => $value, ..., ProtectedFromScaleIn => $value });
29              
30             =head3 Results returned from an API call
31              
32             Use accessors for each attribute. If Att1 is expected to be an Paws::AutoScaling::Instance object:
33              
34             $result = $service_obj->Method(...);
35             $result->Att1->AvailabilityZone
36              
37             =head1 DESCRIPTION
38              
39             Describes an EC2 instance.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 B<REQUIRED> AvailabilityZone => Str
45              
46             The Availability Zone in which the instance is running.
47              
48              
49             =head2 B<REQUIRED> HealthStatus => Str
50              
51             The last reported health status of the instance. "Healthy" means that
52             the instance is healthy and should remain in service. "Unhealthy" means
53             that the instance is unhealthy and Auto Scaling should terminate and
54             replace it.
55              
56              
57             =head2 B<REQUIRED> InstanceId => Str
58              
59             The ID of the instance.
60              
61              
62             =head2 LaunchConfigurationName => Str
63              
64             The launch configuration associated with the instance.
65              
66              
67             =head2 B<REQUIRED> LifecycleState => Str
68              
69             A description of the current lifecycle state. Note that the
70             C<Quarantined> state is not used.
71              
72              
73             =head2 B<REQUIRED> ProtectedFromScaleIn => Bool
74              
75             Indicates whether the instance is protected from termination by Auto
76             Scaling when scaling in.
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, describing an object used in L<Paws::AutoScaling>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91