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.
Idaws.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.
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.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all task_templates in a region.

SELECT
region,
arn,
instance_arn,
name,
description,
contact_flow_arn,
constraints,
defaults,
fields,
status,
client_token,
tags
FROM aws.connect.task_templates
WHERE region = 'us-east-1';

Gets all properties from an individual task_template.

SELECT
region,
arn,
instance_arn,
name,
description,
contact_flow_arn,
constraints,
defaults,
fields,
status,
client_token,
tags
FROM aws.connect.task_templates
WHERE region = 'us-east-1' AND data__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 aws.connect.task_templates (
InstanceArn,
region
)
SELECT
'{{ InstanceArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.task_templates
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

connect:CreateTaskTemplate,
connect:TagResource

Read

connect:GetTaskTemplate

List

connect:ListTaskTemplates

Update

connect:UpdateTaskTemplate,
connect:TagResource,
connect:UntagResource

Delete

connect:DeleteTaskTemplate,
connect:UntagResource,
connect:GetTaskTemplate