File Coverage

blib/lib/Paws/EC2/RequestSpotInstances.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::RequestSpotInstances;
3 1     1   718 use Moose;
  1     1   4  
  1         10  
  1         511  
  1         2  
  1         6  
4             has AvailabilityZoneGroup => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'availabilityZoneGroup' );
5             has BlockDurationMinutes => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'blockDurationMinutes' );
6             has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken' );
7             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
8             has InstanceCount => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'instanceCount' );
9             has LaunchGroup => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'launchGroup' );
10             has LaunchSpecification => (is => 'ro', isa => 'Paws::EC2::RequestSpotLaunchSpecification');
11             has SpotPrice => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'spotPrice' , required => 1);
12             has Type => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'type' );
13             has ValidFrom => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'validFrom' );
14             has ValidUntil => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'validUntil' );
15              
16 1     1   10209 use MooseX::ClassAttribute;
  1     1   4  
  1         13  
  1         6265  
  1         2  
  1         7  
17              
18             class_has _api_call => (isa => 'Str', is => 'ro', default => 'RequestSpotInstances');
19             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::RequestSpotInstancesResult');
20             class_has _result_key => (isa => 'Str', is => 'ro');
21             1;
22              
23             ### main pod documentation begin ###
24              
25             =head1 NAME
26              
27             Paws::EC2::RequestSpotInstances - Arguments for method RequestSpotInstances on Paws::EC2
28              
29             =head1 DESCRIPTION
30              
31             This class represents the parameters used for calling the method RequestSpotInstances on the
32             Amazon Elastic Compute Cloud service. Use the attributes of this class
33             as arguments to method RequestSpotInstances.
34              
35             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RequestSpotInstances.
36              
37             As an example:
38              
39             $service_obj->RequestSpotInstances(Att1 => $value1, Att2 => $value2, ...);
40              
41             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 AvailabilityZoneGroup => Str
47              
48             The user-specified name for a logical grouping of bids.
49              
50             When you specify an Availability Zone group in a Spot Instance request,
51             all Spot instances in the request are launched in the same Availability
52             Zone. Instance proximity is maintained with this parameter, but the
53             choice of Availability Zone is not. The group applies only to bids for
54             Spot Instances of the same instance type. Any additional Spot instance
55             requests that are specified with the same Availability Zone group name
56             are launched in that same Availability Zone, as long as at least one
57             instance from the group is still active.
58              
59             If there is no active instance running in the Availability Zone group
60             that you specify for a new Spot instance request (all instances are
61             terminated, the bid is expired, or the bid falls below current market),
62             then Amazon EC2 launches the instance in any Availability Zone where
63             the constraint can be met. Consequently, the subsequent set of Spot
64             instances could be placed in a different zone from the original
65             request, even if you specified the same Availability Zone group.
66              
67             Default: Instances are launched in any available Availability Zone.
68              
69              
70              
71             =head2 BlockDurationMinutes => Int
72              
73             The required duration for the Spot instances (also known as Spot
74             blocks), in minutes. This value must be a multiple of 60 (60, 120, 180,
75             240, 300, or 360).
76              
77             The duration period starts as soon as your Spot instance receives its
78             instance ID. At the end of the duration period, Amazon EC2 marks the
79             Spot instance for termination and provides a Spot instance termination
80             notice, which gives the instance a two-minute warning before it
81             terminates.
82              
83             Note that you can't specify an Availability Zone group or a launch
84             group if you specify a duration.
85              
86              
87              
88             =head2 ClientToken => Str
89              
90             Unique, case-sensitive identifier that you provide to ensure the
91             idempotency of the request. For more information, see How to Ensure
92             Idempotency in the I<Amazon Elastic Compute Cloud User Guide>.
93              
94              
95              
96             =head2 DryRun => Bool
97              
98             Checks whether you have the required permissions for the action,
99             without actually making the request, and provides an error response. If
100             you have the required permissions, the error response is
101             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
102              
103              
104              
105             =head2 InstanceCount => Int
106              
107             The maximum number of Spot instances to launch.
108              
109             Default: 1
110              
111              
112              
113             =head2 LaunchGroup => Str
114              
115             The instance launch group. Launch groups are Spot instances that launch
116             together and terminate together.
117              
118             Default: Instances are launched and terminated individually
119              
120              
121              
122             =head2 LaunchSpecification => L<Paws::EC2::RequestSpotLaunchSpecification>
123              
124             The launch specification.
125              
126              
127              
128             =head2 B<REQUIRED> SpotPrice => Str
129              
130             The maximum hourly price (bid) for any Spot instance launched to
131             fulfill the request.
132              
133              
134              
135             =head2 Type => Str
136              
137             The Spot instance request type.
138              
139             Default: C<one-time>
140              
141             Valid values are: C<"one-time">, C<"persistent">
142              
143             =head2 ValidFrom => Str
144              
145             The start date of the request. If this is a one-time request, the
146             request becomes active at this date and time and remains active until
147             all instances launch, the request expires, or the request is canceled.
148             If the request is persistent, the request becomes active at this date
149             and time and remains active until it expires or is canceled.
150              
151             Default: The request is effective indefinitely.
152              
153              
154              
155             =head2 ValidUntil => Str
156              
157             The end date of the request. If this is a one-time request, the request
158             remains active until all instances launch, the request is canceled, or
159             this date is reached. If the request is persistent, it remains active
160             until it is canceled or this date and time is reached.
161              
162             Default: The request is effective indefinitely.
163              
164              
165              
166              
167             =head1 SEE ALSO
168              
169             This class forms part of L<Paws>, documenting arguments for method RequestSpotInstances in L<Paws::EC2>
170              
171             =head1 BUGS and CONTRIBUTIONS
172              
173             The source code is located here: https://github.com/pplu/aws-sdk-perl
174              
175             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
176              
177             =cut
178