deleteDeviceFleet method

Future<void> deleteDeviceFleet({
  1. required String deviceFleetName,
})

Deletes a fleet.

May throw ResourceInUse.

Parameter deviceFleetName : The name of the fleet to delete.

Implementation

Future<void> deleteDeviceFleet({
  required String deviceFleetName,
}) async {
  ArgumentError.checkNotNull(deviceFleetName, 'deviceFleetName');
  _s.validateStringLength(
    'deviceFleetName',
    deviceFleetName,
    1,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DeleteDeviceFleet'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DeviceFleetName': deviceFleetName,
    },
  );
}