blib/lib/Paws/EC2/FleetData.pm untested

filter: Statementstmt 0.0% 0 / 45 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 46 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::FleetData;
2 use Moose;
3 has ActivityStatus => (is => 'ro', isa => 'Str', request_name => 'activityStatus', traits => ['NameInRequest']);
4 has ClientToken => (is => 'ro', isa => 'Str', request_name => 'clientToken', traits => ['NameInRequest']);
5 has Context => (is => 'ro', isa => 'Str', request_name => 'context', traits => ['NameInRequest']);
6 has CreateTime => (is => 'ro', isa => 'Str', request_name => 'createTime', traits => ['NameInRequest']);
7 has Errors => (is => 'ro', isa => 'ArrayRef[Paws::EC2::DescribeFleetError]', request_name => 'errorSet', traits => ['NameInRequest']);
8 has ExcessCapacityTerminationPolicy => (is => 'ro', isa => 'Str', request_name => 'excessCapacityTerminationPolicy', traits => ['NameInRequest']);
9 has FleetId => (is => 'ro', isa => 'Str', request_name => 'fleetId', traits => ['NameInRequest']);
10 has FleetState => (is => 'ro', isa => 'Str', request_name => 'fleetState', traits => ['NameInRequest']);
11 has FulfilledCapacity => (is => 'ro', isa => 'Num', request_name => 'fulfilledCapacity', traits => ['NameInRequest']);
12 has FulfilledOnDemandCapacity => (is => 'ro', isa => 'Num', request_name => 'fulfilledOnDemandCapacity', traits => ['NameInRequest']);
13 has Instances => (is => 'ro', isa => 'ArrayRef[Paws::EC2::DescribeFleetsInstances]', request_name => 'fleetInstanceSet', traits => ['NameInRequest']);
14 has LaunchTemplateConfigs => (is => 'ro', isa => 'ArrayRef[Paws::EC2::FleetLaunchTemplateConfig]', request_name => 'launchTemplateConfigs', traits => ['NameInRequest']);
15 has OnDemandOptions => (is => 'ro', isa => 'Paws::EC2::OnDemandOptions', request_name => 'onDemandOptions', traits => ['NameInRequest']);
16 has ReplaceUnhealthyInstances => (is => 'ro', isa => 'Bool', request_name => 'replaceUnhealthyInstances', traits => ['NameInRequest']);
17 has SpotOptions => (is => 'ro', isa => 'Paws::EC2::SpotOptions', request_name => 'spotOptions', traits => ['NameInRequest']);
18 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::EC2::Tag]', request_name => 'tagSet', traits => ['NameInRequest']);
19 has TargetCapacitySpecification => (is => 'ro', isa => 'Paws::EC2::TargetCapacitySpecification', request_name => 'targetCapacitySpecification', traits => ['NameInRequest']);
20 has TerminateInstancesWithExpiration => (is => 'ro', isa => 'Bool', request_name => 'terminateInstancesWithExpiration', traits => ['NameInRequest']);
21 has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest']);
22 has ValidFrom => (is => 'ro', isa => 'Str', request_name => 'validFrom', traits => ['NameInRequest']);
23 has ValidUntil => (is => 'ro', isa => 'Str', request_name => 'validUntil', traits => ['NameInRequest']);
24 1;
25  
26 ### main pod documentation begin ###
27  
28 =head1 NAME
29  
30 Paws::EC2::FleetData
31  
32 =head1 USAGE
33  
34 This class represents one of two things:
35  
36 =head3 Arguments in a call to a service
37  
38 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
39 Each attribute should be used as a named argument in the calls that expect this type of object.
40  
41 As an example, if Att1 is expected to be a Paws::EC2::FleetData object:
42  
43 $service_obj->Method(Att1 => { ActivityStatus => $value, ..., ValidUntil => $value });
44  
45 =head3 Results returned from an API call
46  
47 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::FleetData object:
48  
49 $result = $service_obj->Method(...);
50 $result->Att1->ActivityStatus
51  
52 =head1 DESCRIPTION
53  
54 This class has no description
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 ActivityStatus => Str
60  
61 The progress of the EC2 Fleet. If there is an error, the status is
62 C<error>. After all requests are placed, the status is
63 C<pending_fulfillment>. If the size of the EC2 Fleet is equal to or
64 greater than its target capacity, the status is C<fulfilled>. If the
65 size of the EC2 Fleet is decreased, the status is
66 C<pending_termination> while instances are terminating.
67  
68  
69 =head2 ClientToken => Str
70  
71 Unique, case-sensitive identifier that you provide to ensure the
72 idempotency of the request. For more information, see Ensuring
73 Idempotency
74 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
75  
76 Constraints: Maximum 64 ASCII characters
77  
78  
79 =head2 Context => Str
80  
81 Reserved.
82  
83  
84 =head2 CreateTime => Str
85  
86 The creation date and time of the EC2 Fleet.
87  
88  
89 =head2 Errors => ArrayRef[L<Paws::EC2::DescribeFleetError>]
90  
91 Information about the instances that could not be launched by the
92 fleet. Valid only when B<Type> is set to C<instant>.
93  
94  
95 =head2 ExcessCapacityTerminationPolicy => Str
96  
97 Indicates whether running instances should be terminated if the target
98 capacity of the EC2 Fleet is decreased below the current size of the
99 EC2 Fleet.
100  
101  
102 =head2 FleetId => Str
103  
104 The ID of the EC2 Fleet.
105  
106  
107 =head2 FleetState => Str
108  
109 The state of the EC2 Fleet.
110  
111  
112 =head2 FulfilledCapacity => Num
113  
114 The number of units fulfilled by this request compared to the set
115 target capacity.
116  
117  
118 =head2 FulfilledOnDemandCapacity => Num
119  
120 The number of units fulfilled by this request compared to the set
121 target On-Demand capacity.
122  
123  
124 =head2 Instances => ArrayRef[L<Paws::EC2::DescribeFleetsInstances>]
125  
126 Information about the instances that were launched by the fleet. Valid
127 only when B<Type> is set to C<instant>.
128  
129  
130 =head2 LaunchTemplateConfigs => ArrayRef[L<Paws::EC2::FleetLaunchTemplateConfig>]
131  
132 The launch template and overrides.
133  
134  
135 =head2 OnDemandOptions => L<Paws::EC2::OnDemandOptions>
136  
137 The allocation strategy of On-Demand Instances in an EC2 Fleet.
138  
139  
140 =head2 ReplaceUnhealthyInstances => Bool
141  
142 Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
143 Supported only for fleets of type C<maintain>. For more information,
144 see EC2 Fleet health checks
145 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks)
146 in the I<Amazon EC2 User Guide>.
147  
148  
149 =head2 SpotOptions => L<Paws::EC2::SpotOptions>
150  
151 The configuration of Spot Instances in an EC2 Fleet.
152  
153  
154 =head2 Tags => ArrayRef[L<Paws::EC2::Tag>]
155  
156 The tags for an EC2 Fleet resource.
157  
158  
159 =head2 TargetCapacitySpecification => L<Paws::EC2::TargetCapacitySpecification>
160  
161 The number of units to request. You can choose to set the target
162 capacity in terms of instances or a performance characteristic that is
163 important to your application workload, such as vCPUs, memory, or I/O.
164 If the request type is C<maintain>, you can specify a target capacity
165 of 0 and add capacity later.
166  
167  
168 =head2 TerminateInstancesWithExpiration => Bool
169  
170 Indicates whether running instances should be terminated when the EC2
171 Fleet expires.
172  
173  
174 =head2 Type => Str
175  
176 The type of request. Indicates whether the EC2 Fleet only C<requests>
177 the target capacity, or also attempts to C<maintain> it. If you request
178 a certain target capacity, EC2 Fleet only places the required requests;
179 it does not attempt to replenish instances if capacity is diminished,
180 and it does not submit requests in alternative capacity pools if
181 capacity is unavailable. To maintain a certain target capacity, EC2
182 Fleet places the required requests to meet this target capacity. It
183 also automatically replenishes any interrupted Spot Instances. Default:
184 C<maintain>.
185  
186  
187 =head2 ValidFrom => Str
188  
189 The start date and time of the request, in UTC format (for example,
190 I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). The default is to start
191 fulfilling the request immediately.
192  
193  
194 =head2 ValidUntil => Str
195  
196 The end date and time of the request, in UTC format (for example,
197 I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). At this point, no new instance
198 requests are placed or able to fulfill the request. The default end
199 date is 7 days from the current date.
200  
201  
202  
203 =head1 SEE ALSO
204  
205 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
206  
207 =head1 BUGS and CONTRIBUTIONS
208  
209 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
210  
211 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
212  
213 =cut