| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::EMR::InstanceFleetConfig; | ||
| 3 | use Moose; | ||
| 4 | has InstanceFleetType => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has InstanceTypeConfigs => (is => 'ro', isa => 'ArrayRef[Paws::EMR::InstanceTypeConfig]'); | ||
| 6 | has LaunchSpecifications => (is => 'ro', isa => 'Paws::EMR::InstanceFleetProvisioningSpecifications'); | ||
| 7 | has Name => (is => 'ro', isa => 'Str'); | ||
| 8 | has TargetOnDemandCapacity => (is => 'ro', isa => 'Int'); | ||
| 9 | has TargetSpotCapacity => (is => 'ro', isa => 'Int'); | ||
| 10 | |||
| 11 | 1; | ||
| 12 | |||
| 13 | ### main pod documentation begin ### | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Paws::EMR::InstanceFleetConfig | ||
| 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::EMR::InstanceFleetConfig object: | ||
| 29 | |||
| 30 | $service_obj->Method(Att1 => { InstanceFleetType => $value, ..., TargetSpotCapacity => $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::EMR::InstanceFleetConfig object: | ||
| 35 | |||
| 36 | $result = $service_obj->Method(...); | ||
| 37 | $result->Att1->InstanceFleetType | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | The configuration that defines an instance fleet. | ||
| 42 | |||
| 43 | The instance fleet configuration is available only in Amazon EMR | ||
| 44 | versions 4.8.0 and later, excluding 5.0.x versions. | ||
| 45 | |||
| 46 | =head1 ATTRIBUTES | ||
| 47 | |||
| 48 | |||
| 49 | =head2 B<REQUIRED> InstanceFleetType => Str | ||
| 50 | |||
| 51 | The node type that the instance fleet hosts. Valid values are MASTER, | ||
| 52 | CORE, and TASK. | ||
| 53 | |||
| 54 | |||
| 55 | =head2 InstanceTypeConfigs => ArrayRef[L<Paws::EMR::InstanceTypeConfig>] | ||
| 56 | |||
| 57 | The instance type configurations that define the EC2 instances in the | ||
| 58 | instance fleet. | ||
| 59 | |||
| 60 | |||
| 61 | =head2 LaunchSpecifications => L<Paws::EMR::InstanceFleetProvisioningSpecifications> | ||
| 62 | |||
| 63 | The launch specification for the instance fleet. | ||
| 64 | |||
| 65 | |||
| 66 | =head2 Name => Str | ||
| 67 | |||
| 68 | The friendly name of the instance fleet. | ||
| 69 | |||
| 70 | |||
| 71 | =head2 TargetOnDemandCapacity => Int | ||
| 72 | |||
| 73 | The target capacity of On-Demand units for the instance fleet, which | ||
| 74 | determines how many On-Demand Instances to provision. When the instance | ||
| 75 | fleet launches, Amazon EMR tries to provision On-Demand Instances as | ||
| 76 | specified by InstanceTypeConfig. Each instance configuration has a | ||
| 77 | specified C<WeightedCapacity>. When an On-Demand Instance is | ||
| 78 | provisioned, the C<WeightedCapacity> units count toward the target | ||
| 79 | capacity. Amazon EMR provisions instances until the target capacity is | ||
| 80 | totally fulfilled, even if this results in an overage. For example, if | ||
| 81 | there are 2 units remaining to fulfill capacity, and Amazon EMR can | ||
| 82 | only provision an instance with a C<WeightedCapacity> of 5 units, the | ||
| 83 | instance is provisioned, and the target capacity is exceeded by 3 | ||
| 84 | units. | ||
| 85 | |||
| 86 | If not specified or set to 0, only Spot Instances are provisioned for | ||
| 87 | the instance fleet using C<TargetSpotCapacity>. At least one of | ||
| 88 | C<TargetSpotCapacity> and C<TargetOnDemandCapacity> should be greater | ||
| 89 | than 0. For a master instance fleet, only one of C<TargetSpotCapacity> | ||
| 90 | and C<TargetOnDemandCapacity> can be specified, and its value must be | ||
| 91 | 1. | ||
| 92 | |||
| 93 | |||
| 94 | =head2 TargetSpotCapacity => Int | ||
| 95 | |||
| 96 | The target capacity of Spot units for the instance fleet, which | ||
| 97 | determines how many Spot Instances to provision. When the instance | ||
| 98 | fleet launches, Amazon EMR tries to provision Spot Instances as | ||
| 99 | specified by InstanceTypeConfig. Each instance configuration has a | ||
| 100 | specified C<WeightedCapacity>. When a Spot Instance is provisioned, the | ||
| 101 | C<WeightedCapacity> units count toward the target capacity. Amazon EMR | ||
| 102 | provisions instances until the target capacity is totally fulfilled, | ||
| 103 | even if this results in an overage. For example, if there are 2 units | ||
| 104 | remaining to fulfill capacity, and Amazon EMR can only provision an | ||
| 105 | instance with a C<WeightedCapacity> of 5 units, the instance is | ||
| 106 | provisioned, and the target capacity is exceeded by 3 units. | ||
| 107 | |||
| 108 | If not specified or set to 0, only On-Demand Instances are provisioned | ||
| 109 | for the instance fleet. At least one of C<TargetSpotCapacity> and | ||
| 110 | C<TargetOnDemandCapacity> should be greater than 0. For a master | ||
| 111 | instance fleet, only one of C<TargetSpotCapacity> and | ||
| 112 | C<TargetOnDemandCapacity> can be specified, and its value must be 1. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head1 SEE ALSO | ||
| 117 | |||
| 118 | This class forms part of L<Paws>, describing an object used in L<Paws::EMR> | ||
| 119 | |||
| 120 | =head1 BUGS and CONTRIBUTIONS | ||
| 121 | |||
| 122 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 123 | |||
| 124 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 125 | |||
| 126 | =cut | ||
| 127 |