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