AWS::Connect::TaskTemplate
Specifies a task template for a Amazon Connect instance.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Connect::TaskTemplate", "Properties" : { "ClientToken" :String, "Constraints" :Constraints, "ContactFlowArn" :String, "Defaults" :[ DefaultFieldValue, ... ], "Description" :String, "Fields" :[ Field, ... ], "InstanceArn" :String, "Name" :String, "Status" :String, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::Connect::TaskTemplate Properties: ClientToken:StringConstraints:ConstraintsContactFlowArn:StringDefaults:- DefaultFieldValueDescription:StringFields:- FieldInstanceArn:StringName:StringStatus:StringTags:- Tag
Properties
ClientToken-
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Required: No
Type: String
Update requires: No interruption
Constraints-
Constraints that are applicable to the fields listed.
The values can be represented in either JSON or YAML format. For an example of the JSON configuration, see Examples at the bottom of this page.
Required: No
Type: Constraints
Update requires: No interruption
ContactFlowArn-
The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.
ContactFlowArnis not required when there is a field withfieldType=QUICK_CONNECT.Required: No
Type: String
Update requires: No interruption
Defaults-
The default values for fields when a task is created by referencing this template.
Required: No
Type: List of DefaultFieldValue
Update requires: No interruption
Description-
The description of the task template.
Required: No
Type: String
Update requires: No interruption
Fields-
Fields that are part of the template. A template requires at least one field that has type
Name.Required: No
Type: List of Field
Update requires: No interruption
InstanceArn-
The Amazon Resource Name (ARN) of the Amazon Connect instance.
Required: Yes
Type: String
Update requires: No interruption
Name-
The name of the task template.
Required: No
Type: String
Update requires: No interruption
Status-
The status of the task template.
Required: No
Type: String
Update requires: No interruption
Tags-
The tags used to organize, track, or control access for this resource.
Required: No
Type: List of Tag
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the task template. For example:
{ "Ref": "myTaskTemplate" }
For more information about using the Reffunction, see Ref.
Fn::GetAtt
The Fn::GetAttintrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAttintrinsic function, see Fn::GetAtt.
Examples
JSON format for Constraints
Following is an example of the JSON format for the Constraints
property.
JSON
{ "Type" : "AWS::Connect::TaskTemplate", "Properties" : { "ClientToken" : String, "Constraints" : Constraints, "ContactFlowArn" : String, "Defaults" : [ DefaultFieldValue, ... ], "Description" : String, "Fields" : [ Field, ... ], "InstanceArn" : String, "Name" : String, "Status" : String, "Tags" : [ Tag, ... ] } }