Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Deletes a fleet. Before you delete a fleet, all vehicles must be dissociated from the fleet. For more information, see Delete a fleet (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.
If the fleet is successfully deleted, Amazon Web Services IoT FleetWise sends back an HTTP 200 response with an empty body.
Synopsis
- data DeleteFleet = DeleteFleet' {}
- newDeleteFleet :: Text -> DeleteFleet
- deleteFleet_fleetId :: Lens' DeleteFleet Text
- data DeleteFleetResponse = DeleteFleetResponse' {}
- newDeleteFleetResponse :: Int -> DeleteFleetResponse
- deleteFleetResponse_arn :: Lens' DeleteFleetResponse (Maybe Text)
- deleteFleetResponse_id :: Lens' DeleteFleetResponse (Maybe Text)
- deleteFleetResponse_httpStatus :: Lens' DeleteFleetResponse Int
Creating a Request
data DeleteFleet Source #
See: newDeleteFleet
smart constructor.
Instances
Create a value of DeleteFleet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fleetId:DeleteFleet'
, deleteFleet_fleetId
- The ID of the fleet to delete.
Request Lenses
deleteFleet_fleetId :: Lens' DeleteFleet Text Source #
The ID of the fleet to delete.
Destructuring the Response
data DeleteFleetResponse Source #
See: newDeleteFleetResponse
smart constructor.
Instances
newDeleteFleetResponse Source #
Create a value of DeleteFleetResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteFleetResponse
, deleteFleetResponse_arn
- The Amazon Resource Name (ARN) of the deleted fleet.
DeleteFleetResponse
, deleteFleetResponse_id
- The ID of the deleted fleet.
$sel:httpStatus:DeleteFleetResponse'
, deleteFleetResponse_httpStatus
- The response's http status code.
Response Lenses
deleteFleetResponse_arn :: Lens' DeleteFleetResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the deleted fleet.
deleteFleetResponse_id :: Lens' DeleteFleetResponse (Maybe Text) Source #
The ID of the deleted fleet.
deleteFleetResponse_httpStatus :: Lens' DeleteFleetResponse Int Source #
The response's http status code.