

# Tag
<a name="API_wafRegional_Tag"></a>

**Note**  
 Amazon WAF Classic support will end on September 30, 2025.   
This is ** Amazon WAF Classic** documentation. For more information, see [Amazon WAF Classic](https://docs.amazonaws.cn/waf/latest/developerguide/classic-waf-chapter.html) in the developer guide.  
 **For the latest version of Amazon WAF **, use the Amazon WAFV2 API and see the [Amazon WAF Developer Guide](https://docs.amazonaws.cn/waf/latest/developerguide/waf-chapter.html). With the latest version, Amazon WAF has a single set of endpoints for regional and global use. 

A tag associated with an Amazon resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each Amazon resource, up to 50 tags for a resource.

Tagging is only available through the API, SDKs, and CLI. You can't manage or view tags through the Amazon WAF Classic console. You can tag the Amazon resources that you manage through Amazon WAF Classic: web ACLs, rule groups, and rules. 

## Contents
<a name="API_wafRegional_Tag_Contents"></a>

 ** Key **   <a name="WAF-Type-wafRegional_Tag-Key"></a>
  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `.*\S.*`   
Required: Yes

 ** Value **   <a name="WAF-Type-wafRegional_Tag-Value"></a>
  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 256.  
Pattern: `.*`   
Required: Yes

## See Also
<a name="API_wafRegional_Tag_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/waf-regional-2016-11-28/Tag) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/waf-regional-2016-11-28/Tag) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/waf-regional-2016-11-28/Tag) 