describeDeviceFleet method

Future<DescribeDeviceFleetResponse> describeDeviceFleet({
  1. required String deviceFleetName,
})

A description of the fleet the device belongs to.

May throw ResourceNotFound.

Parameter deviceFleetName : The name of the fleet.

Implementation

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

  return DescribeDeviceFleetResponse.fromJson(jsonResponse.body);
}