deleteVehicle method
Deletes a vehicle and removes it from any campaigns.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter vehicleName :
The ID of the vehicle to delete.
Implementation
Future<DeleteVehicleResponse> deleteVehicle({
required String vehicleName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'IoTAutobahnControlPlane.DeleteVehicle'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'vehicleName': vehicleName,
},
);
return DeleteVehicleResponse.fromJson(jsonResponse.body);
}