update_task_template
async
¶
update_task_template(
task_template_id: TaskTemplateId,
instance_id: InstanceId,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
name: Optional[TaskTemplateName] = None,
description: Optional[TaskTemplateDescription] = None,
contact_flow_id: Optional[ContactFlowId] = None,
self_assign_flow_id: Optional[ContactFlowId] = None,
constraints: Optional[TaskTemplateConstraints] = None,
defaults: Optional[TaskTemplateDefaults] = None,
status: Optional[TaskTemplateStatus] = None,
fields: Optional[TaskTemplateFields] = None,
) -> UpdateTaskTemplateResponse
Updates details about a specific task template in the specified Connect Customer instance. This operation does not support partial updates. Instead it does a full update of template content.
Parameters:
-
task_template_id(TaskTemplateId) –A unique identifier for the task template.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
name(Optional[TaskTemplateName], default:None) –The name of the task template.
-
description(Optional[TaskTemplateDescription], default:None) –The description of the task template.
-
contact_flow_id(Optional[ContactFlowId], default:None) –The identifier of the flow that runs by default when a task is created by referencing this template.
Although this parameter is marked as optional, the request must contain either a
ContactFlowIdor a field of typeQUICK_CONNECT. -
self_assign_flow_id(Optional[ContactFlowId], default:None) –The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.
-
constraints(Optional[TaskTemplateConstraints], default:None) –Constraints that are applicable to the fields listed. Although this parameter is marked as optional in the API model, the service requires it when calling
CreateTaskTemplateorUpdateTaskTemplate. TheRequiredFieldsarray must contain at least one element, and the field of typeNAMEmust be included inRequiredFields. -
defaults(Optional[TaskTemplateDefaults], default:None) –The default values for fields when a task is created by referencing this template.
-
status(Optional[TaskTemplateStatus], default:None) –Marks a template as
ACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. If a template is marked asINACTIVE, then a task that refers to this template cannot be created.Although this parameter is marked as optional, the service requires it when calling
UpdateTaskTemplate. -
fields(Optional[TaskTemplateFields], default:None) –Fields that are part of the template.
The request must contain exactly one field of type
NAME. This field must also be listed in theRequiredFieldsarray within theConstraintsparameter.
Raises:
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
PropertyValidationException–The property is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
28787 28788 28789 28790 28791 28792 28793 28794 28795 28796 28797 28798 28799 28800 28801 28802 28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 | |