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 the specified Spot fleet requests.
After you cancel a Spot fleet request, the Spot fleet launches no new
Spot instances. You must specify whether the Spot fleet should also
terminate its Spot instances. If you terminate the instances, the Spot
fleet request enters the cancelled_terminating
state. Otherwise, the
Spot fleet request enters the cancelled_running
state and the
instances continue to run until they are interrupted or you terminate
them manually.
- cancelSpotFleetRequests :: Bool -> CancelSpotFleetRequests
- data CancelSpotFleetRequests
- csfrDryRun :: Lens' CancelSpotFleetRequests (Maybe Bool)
- csfrSpotFleetRequestIds :: Lens' CancelSpotFleetRequests [Text]
- csfrTerminateInstances :: Lens' CancelSpotFleetRequests Bool
- cancelSpotFleetRequestsResponse :: Int -> CancelSpotFleetRequestsResponse
- data CancelSpotFleetRequestsResponse
- csfrrsSuccessfulFleetRequests :: Lens' CancelSpotFleetRequestsResponse [CancelSpotFleetRequestsSuccessItem]
- csfrrsUnsuccessfulFleetRequests :: Lens' CancelSpotFleetRequestsResponse [CancelSpotFleetRequestsErrorItem]
- csfrrsResponseStatus :: Lens' CancelSpotFleetRequestsResponse Int
Creating a Request
cancelSpotFleetRequests Source #
Creates a value of CancelSpotFleetRequests
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CancelSpotFleetRequests Source #
Contains the parameters for CancelSpotFleetRequests.
See: cancelSpotFleetRequests
smart constructor.
Request Lenses
csfrDryRun :: Lens' CancelSpotFleetRequests (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
.
csfrSpotFleetRequestIds :: Lens' CancelSpotFleetRequests [Text] Source #
The IDs of the Spot fleet requests.
csfrTerminateInstances :: Lens' CancelSpotFleetRequests Bool Source #
Indicates whether to terminate instances for a Spot fleet request if it is canceled successfully.
Destructuring the Response
cancelSpotFleetRequestsResponse Source #
Creates a value of CancelSpotFleetRequestsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CancelSpotFleetRequestsResponse Source #
Contains the output of CancelSpotFleetRequests.
See: cancelSpotFleetRequestsResponse
smart constructor.
Response Lenses
csfrrsSuccessfulFleetRequests :: Lens' CancelSpotFleetRequestsResponse [CancelSpotFleetRequestsSuccessItem] Source #
Information about the Spot fleet requests that are successfully canceled.
csfrrsUnsuccessfulFleetRequests :: Lens' CancelSpotFleetRequestsResponse [CancelSpotFleetRequestsErrorItem] Source #
Information about the Spot fleet requests that are not successfully canceled.
csfrrsResponseStatus :: Lens' CancelSpotFleetRequestsResponse Int Source #
The response status code.