getDeviceFleetReport method

Future<GetDeviceFleetReportResponse> getDeviceFleetReport({
  1. required String deviceFleetName,
})

Describes a fleet.

Parameter deviceFleetName : The name of the fleet.

Implementation

Future<GetDeviceFleetReportResponse> getDeviceFleetReport({
  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.GetDeviceFleetReport'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DeviceFleetName': deviceFleetName,
    },
  );

  return GetDeviceFleetReportResponse.fromJson(jsonResponse.body);
}