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 |
Amazonka.IoTFleetWise.UpdateFleet
Description
Updates the description of an existing fleet.
If the fleet is successfully updated, Amazon Web Services IoT FleetWise sends back an HTTP 200 response with an empty HTTP body.
Synopsis
- data UpdateFleet = UpdateFleet' {
- description :: Maybe Text
- fleetId :: Text
- newUpdateFleet :: Text -> UpdateFleet
- updateFleet_description :: Lens' UpdateFleet (Maybe Text)
- updateFleet_fleetId :: Lens' UpdateFleet Text
- data UpdateFleetResponse = UpdateFleetResponse' {}
- newUpdateFleetResponse :: Int -> UpdateFleetResponse
- updateFleetResponse_arn :: Lens' UpdateFleetResponse (Maybe Text)
- updateFleetResponse_id :: Lens' UpdateFleetResponse (Maybe Text)
- updateFleetResponse_httpStatus :: Lens' UpdateFleetResponse Int
Creating a Request
data UpdateFleet Source #
See: newUpdateFleet
smart constructor.
Constructors
UpdateFleet' | |
Fields
|
Instances
Arguments
:: Text | |
-> UpdateFleet |
Create a value of UpdateFleet
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:
UpdateFleet
, updateFleet_description
- An updated description of the fleet.
$sel:fleetId:UpdateFleet'
, updateFleet_fleetId
- The ID of the fleet to update.
Request Lenses
updateFleet_description :: Lens' UpdateFleet (Maybe Text) Source #
An updated description of the fleet.
updateFleet_fleetId :: Lens' UpdateFleet Text Source #
The ID of the fleet to update.
Destructuring the Response
data UpdateFleetResponse Source #
See: newUpdateFleetResponse
smart constructor.
Constructors
UpdateFleetResponse' | |
Instances
newUpdateFleetResponse Source #
Arguments
:: Int | |
-> UpdateFleetResponse |
Create a value of UpdateFleetResponse
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:
UpdateFleetResponse
, updateFleetResponse_arn
- The Amazon Resource Name (ARN) of the updated fleet.
UpdateFleetResponse
, updateFleetResponse_id
- The ID of the updated fleet.
$sel:httpStatus:UpdateFleetResponse'
, updateFleetResponse_httpStatus
- The response's http status code.
Response Lenses
updateFleetResponse_arn :: Lens' UpdateFleetResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the updated fleet.
updateFleetResponse_id :: Lens' UpdateFleetResponse (Maybe Text) Source #
The ID of the updated fleet.
updateFleetResponse_httpStatus :: Lens' UpdateFleetResponse Int Source #
The response's http status code.