Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- requestSpotFleet :: SpotFleetRequestConfigData -> RequestSpotFleet
- data RequestSpotFleet
- rsfDryRun :: Lens' RequestSpotFleet (Maybe Bool)
- rsfSpotFleetRequestConfig :: Lens' RequestSpotFleet SpotFleetRequestConfigData
- requestSpotFleetResponse :: Int -> Text -> RequestSpotFleetResponse
- data RequestSpotFleetResponse
- rsfrsResponseStatus :: Lens' RequestSpotFleetResponse Int
- rsfrsSpotFleetRequestId :: Lens' RequestSpotFleetResponse Text
Creating a Request
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:
data RequestSpotFleet Source
Contains the parameters for RequestSpotFleet.
See: requestSpotFleet
smart constructor.
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:
data RequestSpotFleetResponse Source
Contains the output of RequestSpotFleet.
See: requestSpotFleetResponse
smart constructor.
Response Lenses
rsfrsResponseStatus :: Lens' RequestSpotFleetResponse Int Source
The response status code.
rsfrsSpotFleetRequestId :: Lens' RequestSpotFleetResponse Text Source
The ID of the Spot fleet request.