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

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 14 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::InstanceFleet;
3 use Moose;
4 has Id => (is => 'ro', isa => 'Str');
5 has InstanceFleetType => (is => 'ro', isa => 'Str');
6 has InstanceTypeSpecifications => (is => 'ro', isa => 'ArrayRef[Paws::EMR::InstanceTypeSpecification]');
7 has LaunchSpecifications => (is => 'ro', isa => 'Paws::EMR::InstanceFleetProvisioningSpecifications');
8 has Name => (is => 'ro', isa => 'Str');
9 has ProvisionedOnDemandCapacity => (is => 'ro', isa => 'Int');
10 has ProvisionedSpotCapacity => (is => 'ro', isa => 'Int');
11 has Status => (is => 'ro', isa => 'Paws::EMR::InstanceFleetStatus');
12 has TargetOnDemandCapacity => (is => 'ro', isa => 'Int');
13 has TargetSpotCapacity => (is => 'ro', isa => 'Int');
14  
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::EMR::InstanceFleet
22  
23 =head1 USAGE
24  
25 This class represents one of two things:
26  
27 =head3 Arguments in a call to a service
28  
29 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
30 Each attribute should be used as a named argument in the calls that expect this type of object.
31  
32 As an example, if Att1 is expected to be a Paws::EMR::InstanceFleet object:
33  
34 $service_obj->Method(Att1 => { Id => $value, ..., TargetSpotCapacity => $value });
35  
36 =head3 Results returned from an API call
37  
38 Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::InstanceFleet object:
39  
40 $result = $service_obj->Method(...);
41 $result->Att1->Id
42  
43 =head1 DESCRIPTION
44  
45 Describes an instance fleet, which is a group of EC2 instances that
46 host a particular node type (master, core, or task) in an Amazon EMR
47 cluster. Instance fleets can consist of a mix of instance types and
48 On-Demand and Spot Instances, which are provisioned to meet a defined
49 target capacity.
50  
51 The instance fleet configuration is available only in Amazon EMR
52 versions 4.8.0 and later, excluding 5.0.x versions.
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 Id => Str
58  
59 The unique identifier of the instance fleet.
60  
61  
62 =head2 InstanceFleetType => Str
63  
64 The node type that the instance fleet hosts. Valid values are MASTER,
65 CORE, or TASK.
66  
67  
68 =head2 InstanceTypeSpecifications => ArrayRef[L<Paws::EMR::InstanceTypeSpecification>]
69  
70 The specification for the instance types that comprise an instance
71 fleet. Up to five unique instance specifications may be defined for
72 each instance fleet.
73  
74  
75 =head2 LaunchSpecifications => L<Paws::EMR::InstanceFleetProvisioningSpecifications>
76  
77 Describes the launch specification for an instance fleet.
78  
79  
80 =head2 Name => Str
81  
82 A friendly name for the instance fleet.
83  
84  
85 =head2 ProvisionedOnDemandCapacity => Int
86  
87 The number of On-Demand units that have been provisioned for the
88 instance fleet to fulfill C<TargetOnDemandCapacity>. This provisioned
89 capacity might be less than or greater than C<TargetOnDemandCapacity>.
90  
91  
92 =head2 ProvisionedSpotCapacity => Int
93  
94 The number of Spot units that have been provisioned for this instance
95 fleet to fulfill C<TargetSpotCapacity>. This provisioned capacity might
96 be less than or greater than C<TargetSpotCapacity>.
97  
98  
99 =head2 Status => L<Paws::EMR::InstanceFleetStatus>
100  
101 The current status of the instance fleet.
102  
103  
104 =head2 TargetOnDemandCapacity => Int
105  
106 The target capacity of On-Demand units for the instance fleet, which
107 determines how many On-Demand Instances to provision. When the instance
108 fleet launches, Amazon EMR tries to provision On-Demand Instances as
109 specified by InstanceTypeConfig. Each instance configuration has a
110 specified C<WeightedCapacity>. When an On-Demand Instance is
111 provisioned, the C<WeightedCapacity> units count toward the target
112 capacity. Amazon EMR provisions instances until the target capacity is
113 totally fulfilled, even if this results in an overage. For example, if
114 there are 2 units remaining to fulfill capacity, and Amazon EMR can
115 only provision an instance with a C<WeightedCapacity> of 5 units, the
116 instance is provisioned, and the target capacity is exceeded by 3
117 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to
118 determine the Spot capacity units that have been provisioned for the
119 instance fleet.
120  
121 If not specified or set to 0, only Spot Instances are provisioned for
122 the instance fleet using C<TargetSpotCapacity>. At least one of
123 C<TargetSpotCapacity> and C<TargetOnDemandCapacity> should be greater
124 than 0. For a master instance fleet, only one of C<TargetSpotCapacity>
125 and C<TargetOnDemandCapacity> can be specified, and its value must be
126 1.
127  
128  
129 =head2 TargetSpotCapacity => Int
130  
131 The target capacity of Spot units for the instance fleet, which
132 determines how many Spot Instances to provision. When the instance
133 fleet launches, Amazon EMR tries to provision Spot Instances as
134 specified by InstanceTypeConfig. Each instance configuration has a
135 specified C<WeightedCapacity>. When a Spot instance is provisioned, the
136 C<WeightedCapacity> units count toward the target capacity. Amazon EMR
137 provisions instances until the target capacity is totally fulfilled,
138 even if this results in an overage. For example, if there are 2 units
139 remaining to fulfill capacity, and Amazon EMR can only provision an
140 instance with a C<WeightedCapacity> of 5 units, the instance is
141 provisioned, and the target capacity is exceeded by 3 units. You can
142 use InstanceFleet$ProvisionedSpotCapacity to determine the Spot
143 capacity units that have been provisioned for the instance fleet.
144  
145 If not specified or set to 0, only On-Demand Instances are provisioned
146 for the instance fleet. At least one of C<TargetSpotCapacity> and
147 C<TargetOnDemandCapacity> should be greater than 0. For a master
148 instance fleet, only one of C<TargetSpotCapacity> and
149 C<TargetOnDemandCapacity> can be specified, and its value must be 1.
150  
151  
152  
153 =head1 SEE ALSO
154  
155 This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
156  
157 =head1 BUGS and CONTRIBUTIONS
158  
159 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
160  
161 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
162  
163 =cut
164