

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::Connect::TaskTemplate
<a name="aws-resource-connect-tasktemplate"></a>

Specifies a task template for a Amazon Connect instance.

## Syntax
<a name="aws-resource-connect-tasktemplate-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-connect-tasktemplate-syntax.json"></a>

```
{
  "Type" : "AWS::Connect::TaskTemplate",
  "Properties" : {
      "[ClientToken](#cfn-connect-tasktemplate-clienttoken)" : String,
      "[Constraints](#cfn-connect-tasktemplate-constraints)" : Constraints,
      "[ContactFlowArn](#cfn-connect-tasktemplate-contactflowarn)" : String,
      "[Defaults](#cfn-connect-tasktemplate-defaults)" : [ DefaultFieldValue, ... ],
      "[Description](#cfn-connect-tasktemplate-description)" : String,
      "[Fields](#cfn-connect-tasktemplate-fields)" : [ Field, ... ],
      "[InstanceArn](#cfn-connect-tasktemplate-instancearn)" : String,
      "[Name](#cfn-connect-tasktemplate-name)" : String,
      "[SelfAssignContactFlowArn](#cfn-connect-tasktemplate-selfassigncontactflowarn)" : String,
      "[Status](#cfn-connect-tasktemplate-status)" : String,
      "[Tags](#cfn-connect-tasktemplate-tags)" : [ Tag, ... ]
    }
}
```

### YAML
<a name="aws-resource-connect-tasktemplate-syntax.yaml"></a>

```
Type: AWS::Connect::TaskTemplate
Properties:
  [ClientToken](#cfn-connect-tasktemplate-clienttoken): String
  [Constraints](#cfn-connect-tasktemplate-constraints): 
    Constraints
  [ContactFlowArn](#cfn-connect-tasktemplate-contactflowarn): String
  [Defaults](#cfn-connect-tasktemplate-defaults): 
    - DefaultFieldValue
  [Description](#cfn-connect-tasktemplate-description): String
  [Fields](#cfn-connect-tasktemplate-fields): 
    - Field
  [InstanceArn](#cfn-connect-tasktemplate-instancearn): String
  [Name](#cfn-connect-tasktemplate-name): String
  [SelfAssignContactFlowArn](#cfn-connect-tasktemplate-selfassigncontactflowarn): String
  [Status](#cfn-connect-tasktemplate-status): String
  [Tags](#cfn-connect-tasktemplate-tags): 
    - Tag
```

## Properties
<a name="aws-resource-connect-tasktemplate-properties"></a>

`ClientToken`  <a name="cfn-connect-tasktemplate-clienttoken"></a>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.  
*Required*: No  
*Type*: String  
*Pattern*: `^$|[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Constraints`  <a name="cfn-connect-tasktemplate-constraints"></a>
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](aws-properties-connect-tasktemplate-constraints.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ContactFlowArn`  <a name="cfn-connect-tasktemplate-contactflowarn"></a>
The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template. `ContactFlowArn` is not required when there is a field with `fieldType` = `QUICK_CONNECT`.  
*Required*: No  
*Type*: String  
*Pattern*: `^$|arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Defaults`  <a name="cfn-connect-tasktemplate-defaults"></a>
The default values for fields when a task is created by referencing this template.  
*Required*: No  
*Type*: Array of [DefaultFieldValue](aws-properties-connect-tasktemplate-defaultfieldvalue.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-connect-tasktemplate-description"></a>
The description of the task template.  
*Required*: No  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Fields`  <a name="cfn-connect-tasktemplate-fields"></a>
Fields that are part of the template. A template requires at least one field that has type `Name`.  
*Required*: No  
*Type*: Array of [Field](aws-properties-connect-tasktemplate-field.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`InstanceArn`  <a name="cfn-connect-tasktemplate-instancearn"></a>
The Amazon Resource Name (ARN) of the Amazon Connect instance.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-connect-tasktemplate-name"></a>
The name of the task template.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SelfAssignContactFlowArn`  <a name="cfn-connect-tasktemplate-selfassigncontactflowarn"></a>
The Amazon Resource Name (ARN) of the flow.  
*Required*: No  
*Type*: String  
*Pattern*: `^$|arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Status`  <a name="cfn-connect-tasktemplate-status"></a>
The status of the task template.  
*Required*: No  
*Type*: String  
*Allowed values*: `ACTIVE | INACTIVE`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-connect-tasktemplate-tags"></a>
The tags used to organize, track, or control access for this resource.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-connect-tasktemplate-tag.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-connect-tasktemplate-return-values"></a>

### Ref
<a name="aws-resource-connect-tasktemplate-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the task template. For example:

 `{ "Ref": "myTaskTemplate" }` 

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-connect-tasktemplate-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic 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::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-connect-tasktemplate-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the task template.

## Examples
<a name="aws-resource-connect-tasktemplate--examples"></a>

### JSON format for Constraints
<a name="aws-resource-connect-tasktemplate--examples--JSON_format_for_Constraints"></a>

Following is an example of the JSON format for the `Constraints` property.

#### JSON
<a name="aws-resource-connect-tasktemplate--examples--JSON_format_for_Constraints--json"></a>

```
{
  "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, ... ]
    }
}
```

# AWS::Connect::TaskTemplate Constraints
<a name="aws-properties-connect-tasktemplate-constraints"></a>

Describes constraints that apply to the template fields.

## Syntax
<a name="aws-properties-connect-tasktemplate-constraints-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-constraints-syntax.json"></a>

```
{
  "[InvisibleFields](#cfn-connect-tasktemplate-constraints-invisiblefields)" : [ InvisibleFieldInfo, ... ],
  "[ReadOnlyFields](#cfn-connect-tasktemplate-constraints-readonlyfields)" : [ ReadOnlyFieldInfo, ... ],
  "[RequiredFields](#cfn-connect-tasktemplate-constraints-requiredfields)" : [ RequiredFieldInfo, ... ]
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-constraints-syntax.yaml"></a>

```
  [InvisibleFields](#cfn-connect-tasktemplate-constraints-invisiblefields): 
    - InvisibleFieldInfo
  [ReadOnlyFields](#cfn-connect-tasktemplate-constraints-readonlyfields): 
    - ReadOnlyFieldInfo
  [RequiredFields](#cfn-connect-tasktemplate-constraints-requiredfields): 
    - RequiredFieldInfo
```

## Properties
<a name="aws-properties-connect-tasktemplate-constraints-properties"></a>

`InvisibleFields`  <a name="cfn-connect-tasktemplate-constraints-invisiblefields"></a>
Lists the fields that are invisible to agents.  
*Required*: No  
*Type*: Array of [InvisibleFieldInfo](aws-properties-connect-tasktemplate-invisiblefieldinfo.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ReadOnlyFields`  <a name="cfn-connect-tasktemplate-constraints-readonlyfields"></a>
Lists the fields that are read-only to agents, and cannot be edited.  
*Required*: No  
*Type*: Array of [ReadOnlyFieldInfo](aws-properties-connect-tasktemplate-readonlyfieldinfo.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RequiredFields`  <a name="cfn-connect-tasktemplate-constraints-requiredfields"></a>
Lists the fields that are required to be filled by agents.  
*Required*: No  
*Type*: Array of [RequiredFieldInfo](aws-properties-connect-tasktemplate-requiredfieldinfo.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate DefaultFieldValue
<a name="aws-properties-connect-tasktemplate-defaultfieldvalue"></a>

Describes a default field and its corresponding value.

## Syntax
<a name="aws-properties-connect-tasktemplate-defaultfieldvalue-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-defaultfieldvalue-syntax.json"></a>

```
{
  "[DefaultValue](#cfn-connect-tasktemplate-defaultfieldvalue-defaultvalue)" : String,
  "[Id](#cfn-connect-tasktemplate-defaultfieldvalue-id)" : FieldIdentifier
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-defaultfieldvalue-syntax.yaml"></a>

```
  [DefaultValue](#cfn-connect-tasktemplate-defaultfieldvalue-defaultvalue): String
  [Id](#cfn-connect-tasktemplate-defaultfieldvalue-id): 
    FieldIdentifier
```

## Properties
<a name="aws-properties-connect-tasktemplate-defaultfieldvalue-properties"></a>

`DefaultValue`  <a name="cfn-connect-tasktemplate-defaultfieldvalue-defaultvalue"></a>
Default value for the field.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `4096`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Id`  <a name="cfn-connect-tasktemplate-defaultfieldvalue-id"></a>
Identifier of a field.   
*Required*: Yes  
*Type*: [FieldIdentifier](aws-properties-connect-tasktemplate-fieldidentifier.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate Field
<a name="aws-properties-connect-tasktemplate-field"></a>

Describes a single task template field.

## Syntax
<a name="aws-properties-connect-tasktemplate-field-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-field-syntax.json"></a>

```
{
  "[Description](#cfn-connect-tasktemplate-field-description)" : String,
  "[Id](#cfn-connect-tasktemplate-field-id)" : FieldIdentifier,
  "[SingleSelectOptions](#cfn-connect-tasktemplate-field-singleselectoptions)" : [ String, ... ],
  "[Type](#cfn-connect-tasktemplate-field-type)" : String
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-field-syntax.yaml"></a>

```
  [Description](#cfn-connect-tasktemplate-field-description): String
  [Id](#cfn-connect-tasktemplate-field-id): 
    FieldIdentifier
  [SingleSelectOptions](#cfn-connect-tasktemplate-field-singleselectoptions): 
    - String
  [Type](#cfn-connect-tasktemplate-field-type): String
```

## Properties
<a name="aws-properties-connect-tasktemplate-field-properties"></a>

`Description`  <a name="cfn-connect-tasktemplate-field-description"></a>
The description of the field.  
*Required*: No  
*Type*: String  
*Minimum*: `0`  
*Maximum*: `255`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Id`  <a name="cfn-connect-tasktemplate-field-id"></a>
The unique identifier for the field.  
*Required*: Yes  
*Type*: [FieldIdentifier](aws-properties-connect-tasktemplate-fieldidentifier.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SingleSelectOptions`  <a name="cfn-connect-tasktemplate-field-singleselectoptions"></a>
A list of options for a single select field.  
*Required*: No  
*Type*: Array of String  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Type`  <a name="cfn-connect-tasktemplate-field-type"></a>
Indicates the type of field. Following are the valid field types: `NAME``DESCRIPTION` \$1 `SCHEDULED_TIME` \$1 `QUICK_CONNECT` \$1 `URL` \$1 `NUMBER` \$1 `TEXT` \$1 `TEXT_AREA` \$1 `DATE_TIME` \$1 `BOOLEAN` \$1 `SINGLE_SELECT` \$1 `EMAIL`  
*Required*: Yes  
*Type*: String  
*Allowed values*: `NAME | DESCRIPTION | SCHEDULED_TIME | QUICK_CONNECT | URL | NUMBER | TEXT | TEXT_AREA | DATE_TIME | BOOLEAN | SINGLE_SELECT | EMAIL | EXPIRY_DURATION | SELF_ASSIGN`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate FieldIdentifier
<a name="aws-properties-connect-tasktemplate-fieldidentifier"></a>

The identifier of the task template field.

## Syntax
<a name="aws-properties-connect-tasktemplate-fieldidentifier-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-fieldidentifier-syntax.json"></a>

```
{
  "[Name](#cfn-connect-tasktemplate-fieldidentifier-name)" : String
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-fieldidentifier-syntax.yaml"></a>

```
  [Name](#cfn-connect-tasktemplate-fieldidentifier-name): String
```

## Properties
<a name="aws-properties-connect-tasktemplate-fieldidentifier-properties"></a>

`Name`  <a name="cfn-connect-tasktemplate-fieldidentifier-name"></a>
The name of the task template field.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate InvisibleFieldInfo
<a name="aws-properties-connect-tasktemplate-invisiblefieldinfo"></a>

A field that is invisible to an agent.

## Syntax
<a name="aws-properties-connect-tasktemplate-invisiblefieldinfo-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-invisiblefieldinfo-syntax.json"></a>

```
{
  "[Id](#cfn-connect-tasktemplate-invisiblefieldinfo-id)" : FieldIdentifier
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-invisiblefieldinfo-syntax.yaml"></a>

```
  [Id](#cfn-connect-tasktemplate-invisiblefieldinfo-id): 
    FieldIdentifier
```

## Properties
<a name="aws-properties-connect-tasktemplate-invisiblefieldinfo-properties"></a>

`Id`  <a name="cfn-connect-tasktemplate-invisiblefieldinfo-id"></a>
Identifier of the invisible field.  
*Required*: Yes  
*Type*: [FieldIdentifier](aws-properties-connect-tasktemplate-fieldidentifier.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate ReadOnlyFieldInfo
<a name="aws-properties-connect-tasktemplate-readonlyfieldinfo"></a>

Indicates a field that is read-only to an agent.

## Syntax
<a name="aws-properties-connect-tasktemplate-readonlyfieldinfo-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-readonlyfieldinfo-syntax.json"></a>

```
{
  "[Id](#cfn-connect-tasktemplate-readonlyfieldinfo-id)" : FieldIdentifier
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-readonlyfieldinfo-syntax.yaml"></a>

```
  [Id](#cfn-connect-tasktemplate-readonlyfieldinfo-id): 
    FieldIdentifier
```

## Properties
<a name="aws-properties-connect-tasktemplate-readonlyfieldinfo-properties"></a>

`Id`  <a name="cfn-connect-tasktemplate-readonlyfieldinfo-id"></a>
Identifier of the read-only field.  
*Required*: Yes  
*Type*: [FieldIdentifier](aws-properties-connect-tasktemplate-fieldidentifier.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate RequiredFieldInfo
<a name="aws-properties-connect-tasktemplate-requiredfieldinfo"></a>

Information about a required field.

## Syntax
<a name="aws-properties-connect-tasktemplate-requiredfieldinfo-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-requiredfieldinfo-syntax.json"></a>

```
{
  "[Id](#cfn-connect-tasktemplate-requiredfieldinfo-id)" : FieldIdentifier
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-requiredfieldinfo-syntax.yaml"></a>

```
  [Id](#cfn-connect-tasktemplate-requiredfieldinfo-id): 
    FieldIdentifier
```

## Properties
<a name="aws-properties-connect-tasktemplate-requiredfieldinfo-properties"></a>

`Id`  <a name="cfn-connect-tasktemplate-requiredfieldinfo-id"></a>
The unique identifier for the field.  
*Required*: Yes  
*Type*: [FieldIdentifier](aws-properties-connect-tasktemplate-fieldidentifier.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::Connect::TaskTemplate Tag
<a name="aws-properties-connect-tasktemplate-tag"></a>

A key-value pair to associate with a resource.

## Syntax
<a name="aws-properties-connect-tasktemplate-tag-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-connect-tasktemplate-tag-syntax.json"></a>

```
{
  "[Key](#cfn-connect-tasktemplate-tag-key)" : String,
  "[Value](#cfn-connect-tasktemplate-tag-value)" : String
}
```

### YAML
<a name="aws-properties-connect-tasktemplate-tag-syntax.yaml"></a>

```
  [Key](#cfn-connect-tasktemplate-tag-key): String
  [Value](#cfn-connect-tasktemplate-tag-value): String
```

## Properties
<a name="aws-properties-connect-tasktemplate-tag-properties"></a>

`Key`  <a name="cfn-connect-tasktemplate-tag-key"></a>
The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, \$1, ., /, =, \$1, and -  
*Required*: Yes  
*Type*: String  
*Pattern*: `^(?!aws:)[a-zA-Z+-=._:/]+$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-connect-tasktemplate-tag-value"></a>
The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, \$1, ., /, =, \$1, and -  
*Required*: Yes  
*Type*: String  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)