Skip to main content

task_templates

Creates, updates, deletes or gets a task_template resource or lists task_templates in a region

Overview

Nametask_templates
TypeResource
DescriptionResource Type definition for AWS::Connect::TaskTemplate.
Idawscc.connect.task_templates

Fields

NameDatatypeDescription
arnstringThe identifier (arn) of the task template.
instance_arnstringThe identifier (arn) of the instance.
namestringThe name of the task template.
descriptionstringThe description of the task template.
contact_flow_arnstringThe identifier of the contact flow.
self_assign_contact_flow_arnstringThe identifier of the contact flow.
constraintsobjectThe constraints for the task template
defaultsarray
fieldsarrayThe list of task template's fields
statusstringThe status of the task template
client_tokenstringthe client token string in uuid format
tagsarrayOne or more tags.
regionstringAWS region.

For more information, see AWS::Connect::TaskTemplate.

Methods

NameResourceAccessible byRequired Params
create_resourcetask_templatesINSERTInstanceArn, region
delete_resourcetask_templatesDELETEIdentifier, region
update_resourcetask_templatesUPDATEIdentifier, PatchDocument, region
list_resourcestask_templates_list_onlySELECTregion
get_resourcetask_templatesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual task_template.

SELECT
region,
arn,
instance_arn,
name,
description,
contact_flow_arn,
self_assign_contact_flow_arn,
constraints,
defaults,
fields,
status,
client_token,
tags
FROM awscc.connect.task_templates
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new task_template resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.connect.task_templates (
InstanceArn,
region
)
SELECT
'{{ instance_arn }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a task_template resource, using stack-deploy.

/*+ update */
UPDATE awscc.connect.task_templates
SET PatchDocument = string('{{ {
"InstanceArn": instance_arn,
"Name": name,
"Description": description,
"ContactFlowArn": contact_flow_arn,
"SelfAssignContactFlowArn": self_assign_contact_flow_arn,
"Constraints": constraints,
"Defaults": defaults,
"Fields": fields,
"Status": status,
"ClientToken": client_token,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.connect.task_templates
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the task_templates resource, the following permissions are required:

connect:CreateTaskTemplate,
connect:TagResource