File Coverage

blib/lib/Paws/EMR/SpotProvisioningSpecification.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::SpotProvisioningSpecification;
2 1     1   487 use Moose;
  1         4  
  1         8  
3             has BlockDurationMinutes => (is => 'ro', isa => 'Int');
4             has TimeoutAction => (is => 'ro', isa => 'Str', required => 1);
5             has TimeoutDurationMinutes => (is => 'ro', isa => 'Int', required => 1);
6             1;
7              
8             ### main pod documentation begin ###
9              
10             =head1 NAME
11              
12             Paws::EMR::SpotProvisioningSpecification
13              
14             =head1 USAGE
15              
16             This class represents one of two things:
17              
18             =head3 Arguments in a call to a service
19              
20             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
21             Each attribute should be used as a named argument in the calls that expect this type of object.
22              
23             As an example, if Att1 is expected to be a Paws::EMR::SpotProvisioningSpecification object:
24              
25             $service_obj->Method(Att1 => { BlockDurationMinutes => $value, ..., TimeoutDurationMinutes => $value });
26              
27             =head3 Results returned from an API call
28              
29             Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::SpotProvisioningSpecification object:
30              
31             $result = $service_obj->Method(...);
32             $result->Att1->BlockDurationMinutes
33              
34             =head1 DESCRIPTION
35              
36             The launch specification for Spot instances in the instance fleet,
37             which determines the defined duration and provisioning timeout
38             behavior.
39              
40             The instance fleet configuration is available only in Amazon EMR
41             versions 4.8.0 and later, excluding 5.0.x versions.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 BlockDurationMinutes => Int
47              
48             The defined duration for Spot instances (also known as Spot blocks) in
49             minutes. When specified, the Spot instance does not terminate before
50             the defined duration expires, and defined duration pricing for Spot
51             instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The
52             duration period starts as soon as a Spot instance receives its instance
53             ID. At the end of the duration, Amazon EC2 marks the Spot instance for
54             termination and provides a Spot instance termination notice, which
55             gives the instance a two-minute warning before it terminates.
56              
57              
58             =head2 B<REQUIRED> TimeoutAction => Str
59              
60             The action to take when C<TargetSpotCapacity> has not been fulfilled
61             when the C<TimeoutDurationMinutes> has expired. Spot instances are not
62             uprovisioned within the Spot provisioining timeout. Valid values are
63             C<TERMINATE_CLUSTER> and C<SWITCH_TO_ON_DEMAND>. SWITCH_TO_ON_DEMAND
64             specifies that if no Spot instances are available, On-Demand Instances
65             should be provisioned to fulfill any remaining Spot capacity.
66              
67              
68             =head2 B<REQUIRED> TimeoutDurationMinutes => Int
69              
70             The spot provisioning timeout period in minutes. If Spot instances are
71             not provisioned within this time period, the C<TimeOutAction> is taken.
72             Minimum value is 5 and maximum value is 1440. The timeout applies only
73             during initial provisioning, when the cluster is first created.
74              
75              
76              
77             =head1 SEE ALSO
78              
79             This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
80              
81             =head1 BUGS and CONTRIBUTIONS
82              
83             The source code is located here: https://github.com/pplu/aws-sdk-perl
84              
85             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
86              
87             =cut
88