deleteCluster method
Delete a SageMaker HyperPod cluster.
May throw ConflictException.
May throw ResourceNotFound.
Parameter clusterName :
The string name or the Amazon Resource Name (ARN) of the SageMaker
HyperPod cluster to delete.
Implementation
Future<DeleteClusterResponse> deleteCluster({
required String clusterName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteCluster'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClusterName': clusterName,
},
);
return DeleteClusterResponse.fromJson(jsonResponse.body);
}