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

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::SpotOptionsRequest;
2 use Moose;
3 has AllocationStrategy => (is => 'ro', isa => 'Str');
4 has InstanceInterruptionBehavior => (is => 'ro', isa => 'Str');
5 has InstancePoolsToUseCount => (is => 'ro', isa => 'Int');
6 has MaintenanceStrategies => (is => 'ro', isa => 'Paws::EC2::FleetSpotMaintenanceStrategiesRequest');
7 has MaxTotalPrice => (is => 'ro', isa => 'Str');
8 has MinTargetCapacity => (is => 'ro', isa => 'Int');
9 has SingleAvailabilityZone => (is => 'ro', isa => 'Bool');
10 has SingleInstanceType => (is => 'ro', isa => 'Bool');
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::EC2::SpotOptionsRequest
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::SpotOptionsRequest 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::SpotOptionsRequest 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 Spot 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::FleetSpotMaintenanceStrategiesRequest>
99  
100 The strategies for managing your Spot Instances that are at an elevated
101 risk of being interrupted.
102  
103  
104 =head2 MaxTotalPrice => Str
105  
106 The maximum amount per hour for Spot Instances that you're willing to
107 pay.
108  
109  
110 =head2 MinTargetCapacity => Int
111  
112 The minimum target capacity for Spot Instances in the fleet. If the
113 minimum target capacity is not reached, the fleet launches no
114 instances.
115  
116  
117 =head2 SingleAvailabilityZone => Bool
118  
119 Indicates that the fleet launches all Spot Instances into a single
120 Availability Zone. Supported only for fleets of type C<instant>.
121  
122  
123 =head2 SingleInstanceType => Bool
124  
125 Indicates that the fleet uses a single instance type to launch all Spot
126 Instances in the fleet. Supported only for fleets of type C<instant>.
127  
128  
129  
130 =head1 SEE ALSO
131  
132 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
133  
134 =head1 BUGS and CONTRIBUTIONS
135  
136 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
137  
138 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
139  
140 =cut