deleteDataset method
Deletes a dataset. You can't delete a dataset if an associated
DatasetImportJob
or SolutionVersion
is in the
CREATE PENDING or IN PROGRESS state. For more information on datasets, see
CreateDataset.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw ResourceInUseException.
Parameter datasetArn
:
The Amazon Resource Name (ARN) of the dataset to delete.
Implementation
Future<void> deleteDataset({
required String datasetArn,
}) async {
ArgumentError.checkNotNull(datasetArn, 'datasetArn');
_s.validateStringLength(
'datasetArn',
datasetArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonPersonalize.DeleteDataset'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'datasetArn': datasetArn,
},
);
}