describeHumanTaskUi method

Future<DescribeHumanTaskUiResponse> describeHumanTaskUi({
  1. required String humanTaskUiName,
})

Returns information about the requested human task user interface (worker task template).

May throw ResourceNotFound.

Parameter humanTaskUiName : The name of the human task user interface (worker task template) you want information about.

Implementation

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

  return DescribeHumanTaskUiResponse.fromJson(jsonResponse.body);
}