<note> <p>This is <b>AWS WAF Classic</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p> </note> <p>Returns the <a>Rule</a> that is specified by the <code>RuleId</code> that you included in the <code>GetRule</code> request.</p>
post/#X-Amz-Target=AWSWAF_Regional_20161128.GetRule
Headers
X-Amz-Target'AWSWAF_Regional_20161128.GetRule' required
Request body
Response
Success
Example response
{
"Rule": {
"MetricName": "WAFByteHeaderRule",
"Name": "WAFByteHeaderRule",
"Predicates": [
{
"DataId": "MyByteMatchSetID",
"Negated": false,
"Type": "ByteMatch"
}
],
"RuleId": "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
}
}