describeClusterEvent method

Future<DescribeClusterEventResponse> describeClusterEvent({
  1. required String clusterName,
  2. required String eventId,
})

Retrieves detailed information about a specific event for a given HyperPod cluster. This functionality is only supported when the NodeProvisioningMode is set to Continuous.

May throw ResourceNotFound.

Parameter clusterName : The name or Amazon Resource Name (ARN) of the HyperPod cluster associated with the event.

Parameter eventId : The unique identifier (UUID) of the event to describe. This ID can be obtained from the ListClusterEvents operation.

Implementation

Future<DescribeClusterEventResponse> describeClusterEvent({
  required String clusterName,
  required String eventId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeClusterEvent'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ClusterName': clusterName,
      'EventId': eventId,
    },
  );

  return DescribeClusterEventResponse.fromJson(jsonResponse.body);
}