blib/lib/Paws/EMR/OnDemandCapacityReservationOptions.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::EMR::OnDemandCapacityReservationOptions;
3 use Moose;
4 has CapacityReservationPreference => (is => 'ro', isa => 'Str');
5 has CapacityReservationResourceGroupArn => (is => 'ro', isa => 'Str');
6 has UsageStrategy => (is => 'ro', isa => 'Str');
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::EMR::OnDemandCapacityReservationOptions
15  
16 =head1 USAGE
17  
18 This class represents one of two things:
19  
20 =head3 Arguments in a call to a service
21  
22 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23 Each attribute should be used as a named argument in the calls that expect this type of object.
24  
25 As an example, if Att1 is expected to be a Paws::EMR::OnDemandCapacityReservationOptions object:
26  
27 $service_obj->Method(Att1 => { CapacityReservationPreference => $value, ..., UsageStrategy => $value });
28  
29 =head3 Results returned from an API call
30  
31 Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::OnDemandCapacityReservationOptions object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->CapacityReservationPreference
35  
36 =head1 DESCRIPTION
37  
38 Describes the strategy for using unused Capacity Reservations for
39 fulfilling On-Demand capacity.
40  
41 =head1 ATTRIBUTES
42  
43  
44 =head2 CapacityReservationPreference => Str
45  
46 Indicates the instance's Capacity Reservation preferences. Possible
47 preferences include:
48  
49 =over
50  
51 =item *
52  
53 C<open> - The instance can run in any open Capacity Reservation that
54 has matching attributes (instance type, platform, Availability Zone).
55  
56 =item *
57  
58 C<none> - The instance avoids running in a Capacity Reservation even if
59 one is available. The instance runs as an On-Demand Instance.
60  
61 =back
62  
63  
64  
65 =head2 CapacityReservationResourceGroupArn => Str
66  
67 The ARN of the Capacity Reservation resource group in which to run the
68 instance.
69  
70  
71 =head2 UsageStrategy => Str
72  
73 Indicates whether to use unused Capacity Reservations for fulfilling
74 On-Demand capacity.
75  
76 If you specify C<use-capacity-reservations-first>, the fleet uses
77 unused Capacity Reservations to fulfill On-Demand capacity up to the
78 target On-Demand capacity. If multiple instance pools have unused
79 Capacity Reservations, the On-Demand allocation strategy
80 (C<lowest-price>) is applied. If the number of unused Capacity
81 Reservations is less than the On-Demand target capacity, the remaining
82 On-Demand target capacity is launched according to the On-Demand
83 allocation strategy (C<lowest-price>).
84  
85 If you do not specify a value, the fleet fulfils the On-Demand capacity
86 according to the chosen On-Demand allocation strategy.
87  
88  
89  
90 =head1 SEE ALSO
91  
92 This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
93  
94 =head1 BUGS and CONTRIBUTIONS
95  
96 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
97  
98 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
99  
100 =cut
101