deleteHumanTaskUi method
Use this operation to delete a human task user interface (worker task template).
To see a list of human task user interfaces (work task templates) in your
account, use . When you delete a worker task template, it no longer
appears when you call ListHumanTaskUis
.
May throw ResourceNotFound.
Parameter humanTaskUiName
:
The name of the human task user interface (work task template) you want to
delete.
Implementation
Future<void> deleteHumanTaskUi({
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.DeleteHumanTaskUi'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'HumanTaskUiName': humanTaskUiName,
},
);
}