describeProject method

Future<DescribeProjectOutput> describeProject({
  1. required String projectName,
})

Describes the details of a project.

Parameter projectName : The name of the project to describe.

Implementation

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

  return DescribeProjectOutput.fromJson(jsonResponse.body);
}