disassociateVehicleFleet method
Removes, or disassociates, a vehicle from a fleet. Disassociating a vehicle from a fleet doesn't delete the vehicle.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter fleetId :
The unique ID of a fleet.
Parameter vehicleName :
The unique ID of the vehicle to disassociate from the fleet.
Implementation
Future<void> disassociateVehicleFleet({
required String fleetId,
required String vehicleName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'IoTAutobahnControlPlane.DisassociateVehicleFleet'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'fleetId': fleetId,
'vehicleName': vehicleName,
},
);
}