describeAIWorkloadConfig method

Future<DescribeAIWorkloadConfigResponse> describeAIWorkloadConfig({
  1. required String aIWorkloadConfigName,
})

Returns details of an AI workload configuration, including the dataset configuration, benchmark tool settings, tags, and creation time.

May throw ResourceNotFound.

Parameter aIWorkloadConfigName : The name of the AI workload configuration to describe.

Implementation

Future<DescribeAIWorkloadConfigResponse> describeAIWorkloadConfig({
  required String aIWorkloadConfigName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeAIWorkloadConfig'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'AIWorkloadConfigName': aIWorkloadConfigName,
    },
  );

  return DescribeAIWorkloadConfigResponse.fromJson(jsonResponse.body);
}