deleteDatasetGroup method
Deletes a dataset group. Before you delete a dataset group, you must delete the following:
- All associated event trackers.
- All associated solutions.
- All datasets in the dataset group.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw ResourceInUseException.
Parameter datasetGroupArn
:
The ARN of the dataset group to delete.
Implementation
Future<void> deleteDatasetGroup({
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.DeleteDatasetGroup'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'datasetGroupArn': datasetGroupArn,
},
);
}