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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.connect.task_templates
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

connect:CreateTaskTemplate,
connect:TagResource