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,
contact_hooks: Optional[TaskTemplateContactHooks] = 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.
-
contact_hooks(Optional[TaskTemplateContactHooks], default:None) –The event hooks that are set on tasks created by using this template.
-
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
29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166 29167 29168 29169 29170 29171 29172 29173 29174 29175 29176 29177 29178 29179 29180 29181 29182 29183 29184 29185 29186 29187 29188 29189 29190 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 | |