# AWS::Logs::MetricFilter Dimension the key-value pairs that further define a metric. ## 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 of the dimension. Maximum length of 255. _Required_: Yes _Type_: String _Minimum_:
1
_Maximum_: 255
_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 of the dimension. Maximum length of 255.
_Required_: Yes
_Type_: String
_Minimum_: 1
_Maximum_: 255
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)