getCloudVmCluster method

Future<GetCloudVmClusterOutput> getCloudVmCluster({
  1. required String cloudVmClusterId,
})

Returns information about the specified VM cluster.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter cloudVmClusterId : The unique identifier of the VM cluster.

Implementation

Future<GetCloudVmClusterOutput> getCloudVmCluster({
  required String cloudVmClusterId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Odb.GetCloudVmCluster'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'cloudVmClusterId': cloudVmClusterId,
    },
  );

  return GetCloudVmClusterOutput.fromJson(jsonResponse.body);
}