« blib/lib/Paws/EMR/SimpleScalingPolicyConfiguration.pm
↑ Summary
blib/lib/Paws/EMR/StartNotebookExecution.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::EMR::SpotProvisioningSpecification; | ||
| 3 | use Moose; | ||
| 4 | has AllocationStrategy => (is => 'ro', isa => 'Str'); | ||
| 5 | has BlockDurationMinutes => (is => 'ro', isa => 'Int'); | ||
| 6 | has TimeoutAction => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has TimeoutDurationMinutes => (is => 'ro', isa => 'Int', required => 1); | ||
| 8 | |||
| 9 | 1; | ||
| 10 | |||
| 11 | ### main pod documentation begin ### | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | Paws::EMR::SpotProvisioningSpecification | ||
| 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::SpotProvisioningSpecification object: | ||
| 27 | |||
| 28 | $service_obj->Method(Att1 => { AllocationStrategy => $value, ..., TimeoutDurationMinutes => $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::SpotProvisioningSpecification object: | ||
| 33 | |||
| 34 | $result = $service_obj->Method(...); | ||
| 35 | $result->Att1->AllocationStrategy | ||
| 36 | |||
| 37 | =head1 DESCRIPTION | ||
| 38 | |||
| 39 | The launch specification for Spot Instances in the instance fleet, | ||
| 40 | which determines the defined duration, provisioning timeout behavior, | ||
| 41 | and allocation strategy. | ||
| 42 | |||
| 43 | The instance fleet configuration is available only in Amazon EMR | ||
| 44 | versions 4.8.0 and later, excluding 5.0.x versions. Spot Instance | ||
| 45 | allocation strategy is available in Amazon EMR version 5.12.1 and | ||
| 46 | later. | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 AllocationStrategy => Str | ||
| 52 | |||
| 53 | Specifies the strategy to use in launching Spot Instance fleets. | ||
| 54 | Currently, the only option is capacity-optimized (the default), which | ||
| 55 | launches instances from Spot Instance pools with optimal capacity for | ||
| 56 | the number of instances that are launching. | ||
| 57 | |||
| 58 | |||
| 59 | =head2 BlockDurationMinutes => Int | ||
| 60 | |||
| 61 | The defined duration for Spot Instances (also known as Spot blocks) in | ||
| 62 | minutes. When specified, the Spot Instance does not terminate before | ||
| 63 | the defined duration expires, and defined duration pricing for Spot | ||
| 64 | Instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The | ||
| 65 | duration period starts as soon as a Spot Instance receives its instance | ||
| 66 | ID. At the end of the duration, Amazon EC2 marks the Spot Instance for | ||
| 67 | termination and provides a Spot Instance termination notice, which | ||
| 68 | gives the instance a two-minute warning before it terminates. | ||
| 69 | |||
| 70 | |||
| 71 | =head2 B<REQUIRED> TimeoutAction => Str | ||
| 72 | |||
| 73 | The action to take when C<TargetSpotCapacity> has not been fulfilled | ||
| 74 | when the C<TimeoutDurationMinutes> has expired; that is, when all Spot | ||
| 75 | Instances could not be provisioned within the Spot provisioning | ||
| 76 | timeout. Valid values are C<TERMINATE_CLUSTER> and | ||
| 77 | C<SWITCH_TO_ON_DEMAND>. SWITCH_TO_ON_DEMAND specifies that if no Spot | ||
| 78 | Instances are available, On-Demand Instances should be provisioned to | ||
| 79 | fulfill any remaining Spot capacity. | ||
| 80 | |||
| 81 | |||
| 82 | =head2 B<REQUIRED> TimeoutDurationMinutes => Int | ||
| 83 | |||
| 84 | The spot provisioning timeout period in minutes. If Spot Instances are | ||
| 85 | not provisioned within this time period, the C<TimeOutAction> is taken. | ||
| 86 | Minimum value is 5 and maximum value is 1440. The timeout applies only | ||
| 87 | during initial provisioning, when the cluster is first created. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head1 SEE ALSO | ||
| 92 | |||
| 93 | This class forms part of L<Paws>, describing an object used in L<Paws::EMR> | ||
| 94 | |||
| 95 | =head1 BUGS and CONTRIBUTIONS | ||
| 96 | |||
| 97 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 98 | |||
| 99 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 100 | |||
| 101 | =cut | ||
| 102 |