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

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::OnDemandOptions;
2 use Moose;
3 has AllocationStrategy => (is => 'ro', isa => 'Str', request_name => 'allocationStrategy', traits => ['NameInRequest']);
4 has CapacityReservationOptions => (is => 'ro', isa => 'Paws::EC2::CapacityReservationOptions', request_name => 'capacityReservationOptions', traits => ['NameInRequest']);
5 has MaxTotalPrice => (is => 'ro', isa => 'Str', request_name => 'maxTotalPrice', traits => ['NameInRequest']);
6 has MinTargetCapacity => (is => 'ro', isa => 'Int', request_name => 'minTargetCapacity', traits => ['NameInRequest']);
7 has SingleAvailabilityZone => (is => 'ro', isa => 'Bool', request_name => 'singleAvailabilityZone', traits => ['NameInRequest']);
8 has SingleInstanceType => (is => 'ro', isa => 'Bool', request_name => 'singleInstanceType', traits => ['NameInRequest']);
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::EC2::OnDemandOptions
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::EC2::OnDemandOptions object:
27  
28 $service_obj->Method(Att1 => { AllocationStrategy => $value, ..., SingleInstanceType => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::OnDemandOptions object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->AllocationStrategy
36  
37 =head1 DESCRIPTION
38  
39 This class has no description
40  
41 =head1 ATTRIBUTES
42  
43  
44 =head2 AllocationStrategy => Str
45  
46 The order of the launch template overrides to use in fulfilling
47 On-Demand capacity. If you specify C<lowest-price>, EC2 Fleet uses
48 price to determine the order, launching the lowest price first. If you
49 specify C<prioritized>, EC2 Fleet uses the priority that you assigned
50 to each launch template override, launching the highest priority first.
51 If you do not specify a value, EC2 Fleet defaults to C<lowest-price>.
52  
53  
54 =head2 CapacityReservationOptions => L<Paws::EC2::CapacityReservationOptions>
55  
56 The strategy for using unused Capacity Reservations for fulfilling
57 On-Demand capacity. Supported only for fleets of type C<instant>.
58  
59  
60 =head2 MaxTotalPrice => Str
61  
62 The maximum amount per hour for On-Demand Instances that you're willing
63 to pay.
64  
65  
66 =head2 MinTargetCapacity => Int
67  
68 The minimum target capacity for On-Demand Instances in the fleet. If
69 the minimum target capacity is not reached, the fleet launches no
70 instances.
71  
72  
73 =head2 SingleAvailabilityZone => Bool
74  
75 Indicates that the fleet launches all On-Demand Instances into a single
76 Availability Zone. Supported only for fleets of type C<instant>.
77  
78  
79 =head2 SingleInstanceType => Bool
80  
81 Indicates that the fleet uses a single instance type to launch all
82 On-Demand Instances in the fleet. Supported only for fleets of type
83 C<instant>.
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut