CreateTaskTemplateRequest
¶
Source code in docs_src/capo_connect/types/create_task_template_request.py
client_token
instance-attribute
¶
client_token: NotRequired[ClientToken]
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
constraints
instance-attribute
¶
constraints: NotRequired[TaskTemplateConstraints]
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 CreateTaskTemplate or UpdateTaskTemplate. The RequiredFields array must contain at least one element, and the field of type NAME must be included in RequiredFields.
contact_flow_id
instance-attribute
¶
contact_flow_id: NotRequired[ContactFlowId]
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 ContactFlowId or a field of type QUICK_CONNECT.
defaults
instance-attribute
¶
defaults: NotRequired[TaskTemplateDefaults]
The default values for fields when a task is created by referencing this template.
description
instance-attribute
¶
description: NotRequired[TaskTemplateDescription]
The description of the task template.
fields
instance-attribute
¶
fields: TaskTemplateFields
Fields that are part of the template.
The request must contain exactly one field of type NAME. This field must also be listed in the RequiredFields array within the Constraints parameter.
instance_id
instance-attribute
¶
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.
self_assign_flow_id
instance-attribute
¶
self_assign_flow_id: NotRequired[ContactFlowId]
The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.
status
instance-attribute
¶
status: NotRequired[TaskTemplateStatus]
Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.