deleteTaskTemplate method

Future<void> deleteTaskTemplate({
  1. required String instanceId,
  2. required String taskTemplateId,
})

Deletes the task template.

May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter taskTemplateId : A unique identifier for the task template.

Implementation

Future<void> deleteTaskTemplate({
  required String instanceId,
  required String taskTemplateId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/instance/${Uri.encodeComponent(instanceId)}/task/template/${Uri.encodeComponent(taskTemplateId)}',
    exceptionFnMap: _exceptionFns,
  );
}