describeModelExplainabilityJobDefinition method

Future<DescribeModelExplainabilityJobDefinitionResponse> describeModelExplainabilityJobDefinition({
  1. required String jobDefinitionName,
})

Returns a description of a model explainability job definition.

May throw ResourceNotFound.

Parameter jobDefinitionName : The name of the model explainability job definition. The name must be unique within an AWS Region in the AWS account.

Implementation

Future<DescribeModelExplainabilityJobDefinitionResponse>
    describeModelExplainabilityJobDefinition({
  required String jobDefinitionName,
}) async {
  ArgumentError.checkNotNull(jobDefinitionName, 'jobDefinitionName');
  _s.validateStringLength(
    'jobDefinitionName',
    jobDefinitionName,
    1,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeModelExplainabilityJobDefinition'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'JobDefinitionName': jobDefinitionName,
    },
  );

  return DescribeModelExplainabilityJobDefinitionResponse.fromJson(
      jsonResponse.body);
}