Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 maximum price that you specify exceeds the current Spot price. For more information, see Spot Instance Requests in the Amazon EC2 User Guide for Linux Instances .
Important: Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.
Synopsis
- 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:
csirDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.csirSpotInstanceRequestIds
- One or more Spot Instance request IDs.
data CancelSpotInstanceRequests Source #
Contains the parameters for CancelSpotInstanceRequests.
See: cancelSpotInstanceRequests
smart constructor.
Instances
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:
csirrsCancelledSpotInstanceRequests
- One or more Spot Instance requests.csirrsResponseStatus
- -- | The response status code.
data CancelSpotInstanceRequestsResponse Source #
Contains the output of CancelSpotInstanceRequests.
See: cancelSpotInstanceRequestsResponse
smart constructor.
Instances
Response Lenses
csirrsCancelledSpotInstanceRequests :: Lens' CancelSpotInstanceRequestsResponse [CancelledSpotInstanceRequest] Source #
One or more Spot Instance requests.
csirrsResponseStatus :: Lens' CancelSpotInstanceRequestsResponse Int Source #
- - | The response status code.