File Coverage

blib/lib/Paws/EMR/InstanceTypeConfig.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::EMR::InstanceTypeConfig;
2 1     1   524 use Moose;
  1         3  
  1         8  
3             has BidPrice => (is => 'ro', isa => 'Str');
4             has BidPriceAsPercentageOfOnDemandPrice => (is => 'ro', isa => 'Num');
5             has Configurations => (is => 'ro', isa => 'ArrayRef[Paws::EMR::Configuration]');
6             has EbsConfiguration => (is => 'ro', isa => 'Paws::EMR::EbsConfiguration');
7             has InstanceType => (is => 'ro', isa => 'Str', required => 1);
8             has WeightedCapacity => (is => 'ro', isa => 'Int');
9             1;
10              
11             ### main pod documentation begin ###
12              
13             =head1 NAME
14              
15             Paws::EMR::InstanceTypeConfig
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::EMR::InstanceTypeConfig object:
27              
28             $service_obj->Method(Att1 => { BidPrice => $value, ..., WeightedCapacity => $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::EMR::InstanceTypeConfig object:
33              
34             $result = $service_obj->Method(...);
35             $result->Att1->BidPrice
36              
37             =head1 DESCRIPTION
38              
39             An instance type configuration for each instance type in an instance
40             fleet, which determines the EC2 instances Amazon EMR attempts to
41             provision to fulfill On-Demand and Spot target capacities. There can be
42             a maximum of 5 instance type configurations in a fleet.
43              
44             The instance fleet configuration is available only in Amazon EMR
45             versions 4.8.0 and later, excluding 5.0.x versions.
46              
47             =head1 ATTRIBUTES
48              
49              
50             =head2 BidPrice => Str
51              
52             The bid price for each EC2 Spot instance type as defined by
53             C<InstanceType>. Expressed in USD. If neither C<BidPrice> nor
54             C<BidPriceAsPercentageOfOnDemandPrice> is provided,
55             C<BidPriceAsPercentageOfOnDemandPrice> defaults to 100%.
56              
57              
58             =head2 BidPriceAsPercentageOfOnDemandPrice => Num
59              
60             The bid price, as a percentage of On-Demand price, for each EC2 Spot
61             instance as defined by C<InstanceType>. Expressed as a number (for
62             example, 20 specifies 20%). If neither C<BidPrice> nor
63             C<BidPriceAsPercentageOfOnDemandPrice> is provided,
64             C<BidPriceAsPercentageOfOnDemandPrice> defaults to 100%.
65              
66              
67             =head2 Configurations => ArrayRef[L<Paws::EMR::Configuration>]
68              
69             A configuration classification that applies when provisioning cluster
70             instances, which can include configurations for applications and
71             software that run on the cluster.
72              
73              
74             =head2 EbsConfiguration => L<Paws::EMR::EbsConfiguration>
75              
76             The configuration of Amazon Elastic Block Storage (EBS) attached to
77             each instance as defined by C<InstanceType>.
78              
79              
80             =head2 B<REQUIRED> InstanceType => Str
81              
82             An EC2 instance type, such as C<m3.xlarge>.
83              
84              
85             =head2 WeightedCapacity => Int
86              
87             The number of units that a provisioned instance of this type provides
88             toward fulfilling the target capacities defined in InstanceFleetConfig.
89             This value is 1 for a master instance fleet, and must be 1 or greater
90             for core and task instance fleets. Defaults to 1 if not specified.
91              
92              
93              
94             =head1 SEE ALSO
95              
96             This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
97              
98             =head1 BUGS and CONTRIBUTIONS
99              
100             The source code is located here: https://github.com/pplu/aws-sdk-perl
101              
102             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
103              
104             =cut
105