blib/lib/Paws/AutoScaling/Instance.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/AutoScaling/EnabledMetric.pm ↑ Summary blib/lib/Paws/AutoScaling/LaunchConfiguration.pm »
1 # Generated by default/object.tt
2 package Paws::AutoScaling::Instance;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AvailabilityZone => (is => 'ro', isa => 'Str', required => 1);
5 1 has HealthStatus => (is => 'ro', isa => 'Str', required => 1);
6 1 has InstanceId => (is => 'ro', isa => 'Str', required => 1);
7 1 has InstanceType => (is => 'ro', isa => 'Str');
8 1 has LaunchConfigurationName => (is => 'ro', isa => 'Str');
9 1 has LaunchTemplate => (is => 'ro', isa => 'Paws::AutoScaling::LaunchTemplateSpecification');
10 1 has LifecycleState => (is => 'ro', isa => 'Str', required => 1);
11 1 has ProtectedFromScaleIn => (is => 'ro', isa => 'Bool', required => 1);
12 1 has WeightedCapacity => (is => 'ro', isa => 'Str');
13  
14 1 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::AutoScaling::Instance
21  
22 =head1 USAGE
23  
24 This class represents one of two things:
25  
26 =head3 Arguments in a call to a service
27  
28 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
29 Each attribute should be used as a named argument in the calls that expect this type of object.
30  
31 As an example, if Att1 is expected to be a Paws::AutoScaling::Instance object:
32  
33 $service_obj->Method(Att1 => { AvailabilityZone => $value, ..., WeightedCapacity => $value });
34  
35 =head3 Results returned from an API call
36  
37 Use accessors for each attribute. If Att1 is expected to be an Paws::AutoScaling::Instance object:
38  
39 $result = $service_obj->Method(...);
40 $result->Att1->AvailabilityZone
41  
42 =head1 DESCRIPTION
43  
44 Describes an EC2 instance.
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 B<REQUIRED> AvailabilityZone => Str
50  
51 The Availability Zone in which the instance is running.
52  
53  
54 =head2 B<REQUIRED> HealthStatus => Str
55  
56 The last reported health status of the instance. "Healthy" means that
57 the instance is healthy and should remain in service. "Unhealthy" means
58 that the instance is unhealthy and that Amazon EC2 Auto Scaling should
59 terminate and replace it.
60  
61  
62 =head2 B<REQUIRED> InstanceId => Str
63  
64 The ID of the instance.
65  
66  
67 =head2 InstanceType => Str
68  
69 The instance type of the EC2 instance.
70  
71  
72 =head2 LaunchConfigurationName => Str
73  
74 The launch configuration associated with the instance.
75  
76  
77 =head2 LaunchTemplate => L<Paws::AutoScaling::LaunchTemplateSpecification>
78  
79 The launch template for the instance.
80  
81  
82 =head2 B<REQUIRED> LifecycleState => Str
83  
84 A description of the current lifecycle state. The C<Quarantined> state
85 is not used. For information about lifecycle states, see Instance
86 lifecycle
87 (https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroupLifecycle.html)
88 in the I<Amazon EC2 Auto Scaling User Guide>.
89  
90  
91 =head2 B<REQUIRED> ProtectedFromScaleIn => Bool
92  
93 Indicates whether the instance is protected from termination by Amazon
94 EC2 Auto Scaling when scaling in.
95  
96  
97 =head2 WeightedCapacity => Str
98  
99 The number of capacity units contributed by the instance based on its
100 instance type.
101  
102 Valid Range: Minimum value of 1. Maximum value of 999.
103  
104  
105  
106 =head1 SEE ALSO
107  
108 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScaling>
109  
110 =head1 BUGS and CONTRIBUTIONS
111  
112 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
113  
114 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
115  
116 =cut
117  
« blib/lib/Paws/AutoScaling/EnabledMetric.pm ↑ Summary blib/lib/Paws/AutoScaling/LaunchConfiguration.pm »