deleteImage method
Deletes a SageMaker AI image and all versions of the image. The container images aren't deleted.
May throw ResourceInUse.
May throw ResourceNotFound.
Parameter imageName :
The name of the image to delete.
Implementation
Future<void> deleteImage({
required String imageName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteImage'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ImageName': imageName,
},
);
}