{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-describe-managed-rule-group-response-schema.json",
  "title": "DescribeManagedRuleGroupResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-operations-api-openapi.yml#/components/schemas/DescribeManagedRuleGroupResponse",
  "type": "object",
  "properties": {
    "VersionName": {
      "type": "string",
      "description": "The managed rule group's version."
    },
    "SnsTopicArn": {
      "type": "string",
      "description": "The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's used to provide notification of changes to the managed rule group. You can subscribe to the SNS topic to receive notifications when the managed rule group is modified, such as for new versions and for version expiration. For more information, see the Amazon Simple Notification Service Developer Guide."
    },
    "Capacity": {
      "type": "integer",
      "description": "The web ACL capacity units (WCUs) required for this rule group. WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group. For more information, see WAF web ACL capacity units (WCU) in the WAF Developer Guide."
    },
    "Rules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RuleSummary"
      }
    },
    "LabelNamespace": {
      "type": "string",
      "description": "The label namespace prefix for this rule group. All labels added by rules in this rule group have this prefix. The syntax for the label namespace prefix for a managed rule group is the following: awswaf:managed::: When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon: :"
    },
    "AvailableLabels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LabelSummary"
      },
      "description": "The labels that one or more rules in this rule group add to matching web requests. These labels are defined in the RuleLabels for a Rule."
    },
    "ConsumedLabels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LabelSummary"
      },
      "description": "The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a LabelMatchStatement specification, in the Statement definition of a rule."
    }
  },
  "$defs": {
    "AllowAction": {
      "type": "object",
      "properties": {
        "CustomRequestHandling": {
          "$ref": "#/$defs/CustomRequestHandling"
        }
      }
    },
    "BlockAction": {
      "type": "object",
      "properties": {
        "CustomResponse": {
          "$ref": "#/$defs/CustomResponse"
        }
      }
    },
    "CaptchaAction": {
      "type": "object",
      "properties": {
        "CustomRequestHandling": {
          "$ref": "#/$defs/CustomRequestHandling"
        }
      }
    },
    "ChallengeAction": {
      "type": "object",
      "properties": {
        "CustomRequestHandling": {
          "$ref": "#/$defs/CustomRequestHandling"
        }
      }
    },
    "CountAction": {
      "type": "object",
      "properties": {
        "CustomRequestHandling": {
          "$ref": "#/$defs/CustomRequestHandling"
        }
      }
    },
    "CustomHTTPHeader": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the custom header. For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample."
        },
        "Value": {
          "type": "string",
          "description": "The value of the custom header."
        }
      },
      "required": [
        "Name",
        "Value"
      ]
    },
    "CustomRequestHandling": {
      "type": "object",
      "properties": {
        "InsertHeaders": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomHTTPHeader"
          },
          "description": "The HTTP headers to insert into the request. Duplicate header names are not allowed. For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide."
        }
      },
      "required": [
        "InsertHeaders"
      ]
    },
    "CustomResponse": {
      "type": "object",
      "properties": {
        "ResponseCode": {
          "type": "integer",
          "description": "The HTTP status code to return to the client. For a list of status codes that you can use in your custom responses, see Supported status codes for custom response in the WAF Developer Guide."
        },
        "CustomResponseBodyKey": {
          "type": "string",
          "description": "References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first define the response body key and value in the CustomResponseBodies setting for the WebACL or RuleGroup where you want to use it. Then, in the rule action or web ACL default action BlockAction setting, you reference the response body using this key."
        },
        "ResponseHeaders": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomHTTPHeader"
          },
          "description": "The HTTP headers to use in the response. You can specify any header name except for content-type. Duplicate header names are not allowed. For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide."
        }
      },
      "required": [
        "ResponseCode"
      ]
    },
    "LabelSummary": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "An individual label specification."
        }
      }
    },
    "MonetizeAction": {
      "type": "object",
      "properties": {
        "PriceMultiplier": {
          "type": "string",
          "description": "An integer multiplier applied to the base price defined in the web ACL's MonetizationConfig. The effective price for the request is the base price multiplied by this value. Specify as a string. Valid values: 1 to 100."
        }
      }
    },
    "RuleAction": {
      "type": "object",
      "properties": {
        "Block": {
          "$ref": "#/$defs/BlockAction"
        },
        "Allow": {
          "$ref": "#/$defs/AllowAction"
        },
        "Count": {
          "$ref": "#/$defs/CountAction"
        },
        "Captcha": {
          "$ref": "#/$defs/CaptchaAction"
        },
        "Challenge": {
          "$ref": "#/$defs/ChallengeAction"
        },
        "Monetize": {
          "$ref": "#/$defs/MonetizeAction"
        }
      }
    },
    "RuleSummary": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the rule."
        },
        "Action": {
          "$ref": "#/$defs/RuleAction"
        }
      }
    }
  }
}