

# ListFirewallRuleTypes
<a name="API_route53resolver_ListFirewallRuleTypes"></a>

Retrieves the available rule types that can be used in DNS Firewall rules.

## Request Syntax
<a name="API_route53resolver_ListFirewallRuleTypes_RequestSyntax"></a>

```
{
   "MaxResults": {{number}},
   "NextToken": "{{string}}",
   "RuleType": "{{string}}"
}
```

## Request Parameters
<a name="API_route53resolver_ListFirewallRuleTypes_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [MaxResults](#API_route53resolver_ListFirewallRuleTypes_RequestSyntax) **   <a name="Route53Resolver-route53resolver_ListFirewallRuleTypes-request-MaxResults"></a>
The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a `NextToken` value that you can use in a subsequent call to get the next batch of objects.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 100.  
Required: No

 ** [NextToken](#API_route53resolver_ListFirewallRuleTypes_RequestSyntax) **   <a name="Route53Resolver-route53resolver_ListFirewallRuleTypes-request-NextToken"></a>
For the first call to this list request, omit this value. When you request a list of objects, Resolver returns at most the number of objects specified in `MaxResults`. If more objects are available for retrieval, Resolver provides a `NextToken` value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.  
Type: String  
Required: No

 ** [RuleType](#API_route53resolver_ListFirewallRuleTypes_RequestSyntax) **   <a name="Route53Resolver-route53resolver_ListFirewallRuleTypes-request-RuleType"></a>
The rule type to filter by. If specified, only rule types matching this value are returned.  
Type: String  
Length Constraints: Maximum length of 128.  
Required: No

## Response Syntax
<a name="API_route53resolver_ListFirewallRuleTypes_ResponseSyntax"></a>

```
{
   "FirewallRuleTypes": [ 
      { 
         "Description": "string",
         "DisplayName": "string",
         "RuleType": "string",
         "Value": "string"
      }
   ],
   "NextToken": "string"
}
```

## Response Elements
<a name="API_route53resolver_ListFirewallRuleTypes_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [FirewallRuleTypes](#API_route53resolver_ListFirewallRuleTypes_ResponseSyntax) **   <a name="Route53Resolver-route53resolver_ListFirewallRuleTypes-response-FirewallRuleTypes"></a>
A list of the available rule type definitions.  
Type: Array of [FirewallRuleTypeDefinition](API_route53resolver_FirewallRuleTypeDefinition.md) objects

 ** [NextToken](#API_route53resolver_ListFirewallRuleTypes_ResponseSyntax) **   <a name="Route53Resolver-route53resolver_ListFirewallRuleTypes-response-NextToken"></a>
If objects are still available for retrieval, Resolver returns this token in the response. To retrieve the next batch of objects, provide this token in your next request.  
Type: String

## Errors
<a name="API_route53resolver_ListFirewallRuleTypes_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
The current account doesn't have the IAM permissions required to perform the specified Resolver operation.  
This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.  
HTTP Status Code: 400

 ** InternalServiceErrorException **   
We encountered an unknown error. Try again in a few minutes.  
HTTP Status Code: 400

 ** ThrottlingException **   
The request was throttled. Try again in a few minutes.  
HTTP Status Code: 400

 ** ValidationException **   
You have provided an invalid command. If you ran the `UpdateFirewallDomains` request. supported values are `ADD`, `REMOVE`, or `REPLACE` a domain.  
HTTP Status Code: 400

## Examples
<a name="API_route53resolver_ListFirewallRuleTypes_Examples"></a>

### ListFirewallRuleTypes Example
<a name="API_route53resolver_ListFirewallRuleTypes_Example_1"></a>

This example illustrates one usage of ListFirewallRuleTypes.

#### Sample Request
<a name="API_route53resolver_ListFirewallRuleTypes_Example_1_Request"></a>

```
POST / HTTP/1.1
Host: route53resolver.us-east-1.amazonaws.com
Accept-Encoding: identity
Content-Length: 22
X-Amz-Target: Route53Resolver.ListFirewallRuleTypes
X-Amz-Date: 20260420T120000Z
User-Agent: aws-cli/2.15.0 Python/3.11.6
Content-Type: application/x-amz-json-1.1
Authorization: AWS4-HMAC-SHA256
               Credential=AKIAJJ2SONIPEXAMPLE/20260420/us-east-1/route53resolver/aws4_request,
               SignedHeaders=content-type;host;x-amz-date;x-amz-target,
               Signature=[calculated-signature]

{
    "MaxResults": 10
}
```

#### Sample Response
<a name="API_route53resolver_ListFirewallRuleTypes_Example_1_Response"></a>

```
HTTP/1.1 200 OK
Date: Sun, 20 Apr 2026 12:00:04 GMT
Content-Type: application/x-amz-json-1.1
Content-Length: 450
x-amzn-RequestId: 7e5d4f6a-8b9c-0d1e-2f3a-4b5c6example
Connection: keep-alive

{
    "FirewallRuleTypes": [
        {
            "RuleType": "FirewallAdvancedContentCategory",
            "Value": "VIOLENCE_AND_HATE_SPEECH",
            "DisplayName": "Violence and Hate Speech",
            "Description": "Content category: Violence and Hate Speech"
        },
        {
            "RuleType": "FirewallAdvancedThreatCategory",
            "Value": "PHISHING",
            "DisplayName": "Phishing",
            "Description": "Advanced threat category: Phishing"
        }
    ]
}
```

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/route53resolver-2018-04-01/ListFirewallRuleTypes) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/route53resolver-2018-04-01/ListFirewallRuleTypes) 