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 |
Network.AWS.EC2.CancelSpotInstanceRequests
Description
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 .
Important: 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 #
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 #
Contains the parameters for CancelSpotInstanceRequests.
See: cancelSpotInstanceRequests
smart constructor.
Instances
Request Lenses
csirDryRun :: Lens' CancelSpotInstanceRequests (Maybe Bool) #
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] #
One or more Spot instance request IDs.
Destructuring the Response
cancelSpotInstanceRequestsResponse #
Arguments
:: Int | |
-> CancelSpotInstanceRequestsResponse |
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 #
Contains the output of CancelSpotInstanceRequests.
See: cancelSpotInstanceRequestsResponse
smart constructor.
Instances
Response Lenses
csirrsCancelledSpotInstanceRequests :: Lens' CancelSpotInstanceRequestsResponse [CancelledSpotInstanceRequest] #
One or more Spot instance requests.
csirrsResponseStatus :: Lens' CancelSpotInstanceRequestsResponse Int #
- - | The response status code.