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 |
Deletes the specified EC2 Fleet.
After you delete an EC2 Fleet, the EC2 Fleet launches no new instances. You must specify whether the EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating
state. Otherwise, the EC2 Fleet enters the deleted_running
state, and the instances continue to run until they are interrupted or you terminate them manually.
Synopsis
- deleteFleets :: Bool -> DeleteFleets
- data DeleteFleets
- dfDryRun :: Lens' DeleteFleets (Maybe Bool)
- dfFleetIds :: Lens' DeleteFleets [Text]
- dfTerminateInstances :: Lens' DeleteFleets Bool
- deleteFleetsResponse :: Int -> DeleteFleetsResponse
- data DeleteFleetsResponse
- dfrsSuccessfulFleetDeletions :: Lens' DeleteFleetsResponse [DeleteFleetSuccessItem]
- dfrsUnsuccessfulFleetDeletions :: Lens' DeleteFleetsResponse [DeleteFleetErrorItem]
- dfrsResponseStatus :: Lens' DeleteFleetsResponse Int
Creating a Request
Creates a value of DeleteFleets
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dfDryRun
- 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
.dfFleetIds
- The IDs of the EC2 Fleets.dfTerminateInstances
- Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully.
data DeleteFleets Source #
See: deleteFleets
smart constructor.
Instances
Request Lenses
dfDryRun :: Lens' DeleteFleets (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
.
dfFleetIds :: Lens' DeleteFleets [Text] Source #
The IDs of the EC2 Fleets.
dfTerminateInstances :: Lens' DeleteFleets Bool Source #
Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully.
Destructuring the Response
Creates a value of DeleteFleetsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dfrsSuccessfulFleetDeletions
- Information about the EC2 Fleets that are successfully deleted.dfrsUnsuccessfulFleetDeletions
- Information about the EC2 Fleets that are not successfully deleted.dfrsResponseStatus
- -- | The response status code.
data DeleteFleetsResponse Source #
See: deleteFleetsResponse
smart constructor.
Instances
Response Lenses
dfrsSuccessfulFleetDeletions :: Lens' DeleteFleetsResponse [DeleteFleetSuccessItem] Source #
Information about the EC2 Fleets that are successfully deleted.
dfrsUnsuccessfulFleetDeletions :: Lens' DeleteFleetsResponse [DeleteFleetErrorItem] Source #
Information about the EC2 Fleets that are not successfully deleted.
dfrsResponseStatus :: Lens' DeleteFleetsResponse Int Source #
- - | The response status code.