# AWS::Rekognition::Collection Tag A key-value pair to associate with a resource. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
    "Key" : String,
    "Value" : String
}
### YAML
Key: String
Value: String
## Properties #### Key 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, _, ., /, =, +, and -. _Required_: Yes _Type_: String _Maximum_: 128 _Pattern_: \A(?!aws:)[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) #### Value 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, _, ., /, =, +, and -. _Required_: Yes _Type_: String _Maximum_: 256 _Pattern_: \A[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)