amazonka-ec2-1.3.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.RequestSpotFleet

Contents

Description

Creates a Spot fleet request.

You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

By default, the Spot fleet requests Spot instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

Alternatively, you can specify that the Spot fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot instances in your Spot fleet are in different Spot pools, you can improve the availability of your fleet.

For more information, see Spot Fleet Requests in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for RequestSpotFleet.

Synopsis

Creating a Request

requestSpotFleet Source

Creates a value of RequestSpotFleet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

rsfDryRun :: Lens' RequestSpotFleet (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

rsfSpotFleetRequestConfig :: Lens' RequestSpotFleet SpotFleetRequestConfigData Source

The configuration for the Spot fleet request.

Destructuring the Response

requestSpotFleetResponse Source

Creates a value of RequestSpotFleetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses