describeCluster method
Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
May throw InvalidResourceException.
Parameter clusterId
:
The automatically generated ID for a cluster.
Implementation
Future<DescribeClusterResult> describeCluster({
required String clusterId,
}) async {
ArgumentError.checkNotNull(clusterId, 'clusterId');
_s.validateStringLength(
'clusterId',
clusterId,
39,
39,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSIESnowballJobManagementService.DescribeCluster'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClusterId': clusterId,
},
);
return DescribeClusterResult.fromJson(jsonResponse.body);
}