describeDataset method
Retrieves information about a dataset.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ThrottlingException.
Parameter datasetName
:
The name of the data set whose information is retrieved.
Implementation
Future<DescribeDatasetResponse> describeDataset({
required String datasetName,
}) async {
ArgumentError.checkNotNull(datasetName, 'datasetName');
_s.validateStringLength(
'datasetName',
datasetName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/datasets/${Uri.encodeComponent(datasetName)}',
exceptionFnMap: _exceptionFns,
);
return DescribeDatasetResponse.fromJson(response);
}