describeDataset method
Provides a JSON description of the data in each time series dataset, including names, column names, and data types.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter datasetName :
The name of the dataset to be described.
Implementation
Future<DescribeDatasetResponse> describeDataset({
required String datasetName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSLookoutEquipmentFrontendService.DescribeDataset'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatasetName': datasetName,
},
);
return DescribeDatasetResponse.fromJson(jsonResponse.body);
}