Copyright | (c) 2013-2016 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 |
Cancels one or more Spot instance requests. Spot instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.
Canceling a Spot instance request does not terminate running Spot instances associated with the request.
- cancelSpotInstanceRequests :: CancelSpotInstanceRequests
- data CancelSpotInstanceRequests
- csirDryRun :: Lens' CancelSpotInstanceRequests (Maybe Bool)
- csirSpotInstanceRequestIds :: Lens' CancelSpotInstanceRequests [Text]
- cancelSpotInstanceRequestsResponse :: Int -> CancelSpotInstanceRequestsResponse
- data CancelSpotInstanceRequestsResponse
- csirrsCancelledSpotInstanceRequests :: Lens' CancelSpotInstanceRequestsResponse [CancelledSpotInstanceRequest]
- csirrsResponseStatus :: Lens' CancelSpotInstanceRequestsResponse Int
Creating a Request
cancelSpotInstanceRequests :: CancelSpotInstanceRequests Source
Creates a value of CancelSpotInstanceRequests
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CancelSpotInstanceRequests Source
Contains the parameters for CancelSpotInstanceRequests.
See: cancelSpotInstanceRequests
smart constructor.
Request Lenses
csirDryRun :: Lens' CancelSpotInstanceRequests (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
.
csirSpotInstanceRequestIds :: Lens' CancelSpotInstanceRequests [Text] Source
One or more Spot instance request IDs.
Destructuring the Response
cancelSpotInstanceRequestsResponse Source
Creates a value of CancelSpotInstanceRequestsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CancelSpotInstanceRequestsResponse Source
Contains the output of CancelSpotInstanceRequests.
See: cancelSpotInstanceRequestsResponse
smart constructor.
Response Lenses
csirrsCancelledSpotInstanceRequests :: Lens' CancelSpotInstanceRequestsResponse [CancelledSpotInstanceRequest] Source
One or more Spot instance requests.
csirrsResponseStatus :: Lens' CancelSpotInstanceRequestsResponse Int Source
The response status code.