describeDatasetGroup method
Describes the given dataset group. For more information on dataset groups, see CreateDatasetGroup.
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter datasetGroupArn
:
The Amazon Resource Name (ARN) of the dataset group to describe.
Implementation
Future<DescribeDatasetGroupResponse> describeDatasetGroup({
required String datasetGroupArn,
}) async {
ArgumentError.checkNotNull(datasetGroupArn, 'datasetGroupArn');
_s.validateStringLength(
'datasetGroupArn',
datasetGroupArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonPersonalize.DescribeDatasetGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'datasetGroupArn': datasetGroupArn,
},
);
return DescribeDatasetGroupResponse.fromJson(jsonResponse.body);
}