blib/lib/Paws/EC2/SpotMarketOptions.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Paws::EC2::SpotMarketOptions;
2 use Moose;
3 has BlockDurationMinutes => (is => 'ro', isa => 'Int');
4 has InstanceInterruptionBehavior => (is => 'ro', isa => 'Str');
5 has MaxPrice => (is => 'ro', isa => 'Str');
6 has SpotInstanceType => (is => 'ro', isa => 'Str');
7 has ValidUntil => (is => 'ro', isa => 'Str');
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::EC2::SpotMarketOptions
15  
16 =head1 USAGE
17  
18 This class represents one of two things:
19  
20 =head3 Arguments in a call to a service
21  
22 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23 Each attribute should be used as a named argument in the calls that expect this type of object.
24  
25 As an example, if Att1 is expected to be a Paws::EC2::SpotMarketOptions object:
26  
27 $service_obj->Method(Att1 => { BlockDurationMinutes => $value, ..., ValidUntil => $value });
28  
29 =head3 Results returned from an API call
30  
31 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::SpotMarketOptions object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->BlockDurationMinutes
35  
36 =head1 DESCRIPTION
37  
38 This class has no description
39  
40 =head1 ATTRIBUTES
41  
42  
43 =head2 BlockDurationMinutes => Int
44  
45 The required duration for the Spot Instances (also known as Spot
46 blocks), in minutes. This value must be a multiple of 60 (60, 120, 180,
47 240, 300, or 360).
48  
49 The duration period starts as soon as your Spot Instance receives its
50 instance ID. At the end of the duration period, Amazon EC2 marks the
51 Spot Instance for termination and provides a Spot Instance termination
52 notice, which gives the instance a two-minute warning before it
53 terminates.
54  
55 You can't specify an Availability Zone group or a launch group if you
56 specify a duration.
57  
58 New accounts or accounts with no previous billing history with Amazon
59 Web Services are not eligible for Spot Instances with a defined
60 duration (also known as Spot blocks).
61  
62  
63 =head2 InstanceInterruptionBehavior => Str
64  
65 The behavior when a Spot Instance is interrupted. The default is
66 C<terminate>.
67  
68  
69 =head2 MaxPrice => Str
70  
71 The maximum hourly price you're willing to pay for the Spot Instances.
72 The default is the On-Demand price.
73  
74  
75 =head2 SpotInstanceType => Str
76  
77 The Spot Instance request type. For RunInstances
78 (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances),
79 persistent Spot Instance requests are only supported when the instance
80 interruption behavior is either C<hibernate> or C<stop>.
81  
82  
83 =head2 ValidUntil => Str
84  
85 The end date of the request, in UTC format
86 (I<YYYY>-I<MM>-I<DD>TI<HH>:I<MM>:I<SS>Z). Supported only for persistent
87 requests.
88  
89 =over
90  
91 =item *
92  
93 For a persistent request, the request remains active until the
94 C<ValidUntil> date and time is reached. Otherwise, the request remains
95 active until you cancel it.
96  
97 =item *
98  
99 For a one-time request, C<ValidUntil> is not supported. The request
100 remains active until all instances launch or you cancel the request.
101  
102 =back
103  
104  
105  
106  
107 =head1 SEE ALSO
108  
109 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
110  
111 =head1 BUGS and CONTRIBUTIONS
112  
113 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
114  
115 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
116  
117 =cut