describeDatasetGroup method
Describes a dataset group created using the CreateDatasetGroup operation.
In addition to listing the parameters provided in the
CreateDatasetGroup
request, this operation includes the
following properties:
-
DatasetArns
- The datasets belonging to the group. -
CreationTime
-
LastModificationTime
-
Status
May throw InvalidInputException. May throw ResourceNotFoundException.
Parameter datasetGroupArn
:
The Amazon Resource Name (ARN) of the dataset group.
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': 'AmazonForecast.DescribeDatasetGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatasetGroupArn': datasetGroupArn,
},
);
return DescribeDatasetGroupResponse.fromJson(jsonResponse.body);
}