File Coverage

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