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

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::SpotOptions;
2 use Moose;
3 has AllocationStrategy => (is => 'ro', isa => 'Str', request_name => 'allocationStrategy', traits => ['NameInRequest']);
4 has InstanceInterruptionBehavior => (is => 'ro', isa => 'Str', request_name => 'instanceInterruptionBehavior', traits => ['NameInRequest']);
5 has InstancePoolsToUseCount => (is => 'ro', isa => 'Int', request_name => 'instancePoolsToUseCount', traits => ['NameInRequest']);
6 has MaintenanceStrategies => (is => 'ro', isa => 'Paws::EC2::FleetSpotMaintenanceStrategies', request_name => 'maintenanceStrategies', traits => ['NameInRequest']);
7 has MaxTotalPrice => (is => 'ro', isa => 'Str', request_name => 'maxTotalPrice', traits => ['NameInRequest']);
8 has MinTargetCapacity => (is => 'ro', isa => 'Int', request_name => 'minTargetCapacity', traits => ['NameInRequest']);
9 has SingleAvailabilityZone => (is => 'ro', isa => 'Bool', request_name => 'singleAvailabilityZone', traits => ['NameInRequest']);
10 has SingleInstanceType => (is => 'ro', isa => 'Bool', request_name => 'singleInstanceType', traits => ['NameInRequest']);
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::EC2::SpotOptions
18  
19 =head1 USAGE
20  
21 This class represents one of two things:
22  
23 =head3 Arguments in a call to a service
24  
25 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
26 Each attribute should be used as a named argument in the calls that expect this type of object.
27  
28 As an example, if Att1 is expected to be a Paws::EC2::SpotOptions object:
29  
30 $service_obj->Method(Att1 => { AllocationStrategy => $value, ..., SingleInstanceType => $value });
31  
32 =head3 Results returned from an API call
33  
34 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::SpotOptions object:
35  
36 $result = $service_obj->Method(...);
37 $result->Att1->AllocationStrategy
38  
39 =head1 DESCRIPTION
40  
41 This class has no description
42  
43 =head1 ATTRIBUTES
44  
45  
46 =head2 AllocationStrategy => Str
47  
48 Indicates how to allocate the target Spot Instance capacity across the
49 Spot Instance pools specified by the EC2 Fleet.
50  
51 If the allocation strategy is C<lowest-price>, EC2 Fleet launches
52 instances from the Spot Instance pools with the lowest price. This is
53 the default allocation strategy.
54  
55 If the allocation strategy is C<diversified>, EC2 Fleet launches
56 instances from all of the Spot Instance pools that you specify.
57  
58 If the allocation strategy is C<capacity-optimized> (recommended), EC2
59 Fleet launches instances from Spot Instance pools with optimal capacity
60 for the number of instances that are launching. To give certain
61 instance types a higher chance of launching first, use
62 C<capacity-optimized-prioritized>. Set a priority for each instance
63 type by using the C<Priority> parameter for C<LaunchTemplateOverrides>.
64 You can assign the same priority to different
65 C<LaunchTemplateOverrides>. EC2 implements the priorities on a
66 best-effort basis, but optimizes for capacity first.
67 C<capacity-optimized-prioritized> is supported only if your fleet uses
68 a launch template. Note that if the On-Demand C<AllocationStrategy> is
69 set to C<prioritized>, the same priority is applied when fulfilling
70 On-Demand capacity.
71  
72  
73 =head2 InstanceInterruptionBehavior => Str
74  
75 The behavior when a Spot Instance is interrupted. The default is
76 C<terminate>.
77  
78  
79 =head2 InstancePoolsToUseCount => Int
80  
81 The number of Spot pools across which to allocate your target Spot
82 capacity. Valid only when B<AllocationStrategy> is set to
83 C<lowest-price>. EC2 Fleet selects the cheapest Spot pools and evenly
84 allocates your target Spot capacity across the number of Spot pools
85 that you specify.
86  
87 Note that EC2 Fleet attempts to draw Spot Instances from the number of
88 pools that you specify on a best effort basis. If a pool runs out of
89 Spot capacity before fulfilling your target capacity, EC2 Fleet will
90 continue to fulfill your request by drawing from the next cheapest
91 pool. To ensure that your target capacity is met, you might receive
92 Spot Instances from more than the number of pools that you specified.
93 Similarly, if most of the pools have no Spot capacity, you might
94 receive your full target capacity from fewer than the number of pools
95 that you specified.
96  
97  
98 =head2 MaintenanceStrategies => L<Paws::EC2::FleetSpotMaintenanceStrategies>
99  
100 The strategies for managing your workloads on your Spot Instances that
101 will be interrupted. Currently only the capacity rebalance strategy is
102 available.
103  
104  
105 =head2 MaxTotalPrice => Str
106  
107 The maximum amount per hour for Spot Instances that you're willing to
108 pay.
109  
110  
111 =head2 MinTargetCapacity => Int
112  
113 The minimum target capacity for Spot Instances in the fleet. If the
114 minimum target capacity is not reached, the fleet launches no
115 instances.
116  
117  
118 =head2 SingleAvailabilityZone => Bool
119  
120 Indicates that the fleet launches all Spot Instances into a single
121 Availability Zone. Supported only for fleets of type C<instant>.
122  
123  
124 =head2 SingleInstanceType => Bool
125  
126 Indicates that the fleet uses a single instance type to launch all Spot
127 Instances in the fleet. Supported only for fleets of type C<instant>.
128  
129  
130  
131 =head1 SEE ALSO
132  
133 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
134  
135 =head1 BUGS and CONTRIBUTIONS
136  
137 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
138  
139 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
140  
141 =cut