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 |
Updates a vehicle.
Synopsis
- data UpdateVehicle = UpdateVehicle' {}
- newUpdateVehicle :: Text -> UpdateVehicle
- updateVehicle_attributeUpdateMode :: Lens' UpdateVehicle (Maybe UpdateMode)
- updateVehicle_attributes :: Lens' UpdateVehicle (Maybe (HashMap Text Text))
- updateVehicle_decoderManifestArn :: Lens' UpdateVehicle (Maybe Text)
- updateVehicle_modelManifestArn :: Lens' UpdateVehicle (Maybe Text)
- updateVehicle_vehicleName :: Lens' UpdateVehicle Text
- data UpdateVehicleResponse = UpdateVehicleResponse' {
- arn :: Maybe Text
- vehicleName :: Maybe Text
- httpStatus :: Int
- newUpdateVehicleResponse :: Int -> UpdateVehicleResponse
- updateVehicleResponse_arn :: Lens' UpdateVehicleResponse (Maybe Text)
- updateVehicleResponse_vehicleName :: Lens' UpdateVehicleResponse (Maybe Text)
- updateVehicleResponse_httpStatus :: Lens' UpdateVehicleResponse Int
Creating a Request
data UpdateVehicle Source #
See: newUpdateVehicle
smart constructor.
UpdateVehicle' | |
|
Instances
Create a value of UpdateVehicle
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:
UpdateVehicle
, updateVehicle_attributeUpdateMode
- The method the specified attributes will update the existing attributes
on the vehicle. UseOverwite
to replace the vehicle attributes with the
specified attributes. Or use Merge
to combine all attributes.
This is required if attributes are present in the input.
UpdateVehicle
, updateVehicle_attributes
- Static information about a vehicle in a key-value pair. For example:
"engineType"
: "1.3 L R2"
UpdateVehicle
, updateVehicle_decoderManifestArn
- The ARN of the decoder manifest associated with this vehicle.
UpdateVehicle
, updateVehicle_modelManifestArn
- The ARN of a vehicle model (model manifest) associated with the vehicle.
UpdateVehicle
, updateVehicle_vehicleName
- The unique ID of the vehicle to update.
Request Lenses
updateVehicle_attributeUpdateMode :: Lens' UpdateVehicle (Maybe UpdateMode) Source #
The method the specified attributes will update the existing attributes
on the vehicle. UseOverwite
to replace the vehicle attributes with the
specified attributes. Or use Merge
to combine all attributes.
This is required if attributes are present in the input.
updateVehicle_attributes :: Lens' UpdateVehicle (Maybe (HashMap Text Text)) Source #
Static information about a vehicle in a key-value pair. For example:
"engineType"
: "1.3 L R2"
updateVehicle_decoderManifestArn :: Lens' UpdateVehicle (Maybe Text) Source #
The ARN of the decoder manifest associated with this vehicle.
updateVehicle_modelManifestArn :: Lens' UpdateVehicle (Maybe Text) Source #
The ARN of a vehicle model (model manifest) associated with the vehicle.
updateVehicle_vehicleName :: Lens' UpdateVehicle Text Source #
The unique ID of the vehicle to update.
Destructuring the Response
data UpdateVehicleResponse Source #
See: newUpdateVehicleResponse
smart constructor.
UpdateVehicleResponse' | |
|
Instances
newUpdateVehicleResponse Source #
Create a value of UpdateVehicleResponse
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:
UpdateVehicleResponse
, updateVehicleResponse_arn
- The ARN of the updated vehicle.
UpdateVehicle
, updateVehicleResponse_vehicleName
- The ID of the updated vehicle.
$sel:httpStatus:UpdateVehicleResponse'
, updateVehicleResponse_httpStatus
- The response's http status code.
Response Lenses
updateVehicleResponse_arn :: Lens' UpdateVehicleResponse (Maybe Text) Source #
The ARN of the updated vehicle.
updateVehicleResponse_vehicleName :: Lens' UpdateVehicleResponse (Maybe Text) Source #
The ID of the updated vehicle.
updateVehicleResponse_httpStatus :: Lens' UpdateVehicleResponse Int Source #
The response's http status code.