updateDatasetGroup method
Replaces the datasets in a dataset group with the specified datasets.
May throw InvalidInputException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
Parameter datasetArns :
An array of the Amazon Resource Names (ARNs) of the datasets to add to the
dataset group.
Parameter datasetGroupArn :
The ARN of the dataset group.
Implementation
Future<void> updateDatasetGroup({
required List<String> datasetArns,
required String datasetGroupArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.UpdateDatasetGroup'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatasetArns': datasetArns,
'DatasetGroupArn': datasetGroupArn,
},
);
}