update_task_template
¶
update_task_template(
task_template_id: TaskTemplateId,
instance_id: InstanceId,
*,
config_overrides: Optional[ConnectClientConfig] = 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/connect.py
28400 28401 28402 28403 28404 28405 28406 28407 28408 28409 28410 28411 28412 28413 28414 28415 28416 28417 28418 28419 28420 28421 28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 28450 28451 28452 28453 28454 28455 28456 28457 28458 28459 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 28481 28482 28483 28484 28485 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 | |