AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the ListRules operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.WAFRegional.Model.ListRulesResponse

Namespace: Amazon.WAFRegional.Model
Assembly: AWSSDK.WAFRegional.dll
Version: 3.x.y.z

Syntax

C#
public class ListRulesResponse : AmazonWebServiceResponse

The ListRulesResponse type exposes the following members

Constructors

NameDescription
Public Method ListRulesResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property NextMarker System.String

Gets and sets the property NextMarker.

If you have more Rules than the number that you specified for Limit in the request, the response includes a NextMarker value. To list more Rules, submit another ListRules request, and specify the NextMarker value from the response in the NextMarker value in the next request.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Rules System.Collections.Generic.List<Amazon.WAFRegional.Model.RuleSummary>

Gets and sets the property Rules.

An array of RuleSummary objects.

Examples

The following example returns an array of up to 100 rules.

To list rules


var client = new AmazonWAFRegionalClient();
var response = client.ListRules(new ListRulesRequest 
{
    Limit = 100
});

List<RuleSummary> rules = response.Rules;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5