/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the wafv2-2019-07-29.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.WAFV2.Model { /// /// The set of IP addresses that are currently blocked for a RateBasedStatement. /// This is only available for rate-based rules that aggregate on just the IP address, /// with the AggregateKeyType set to IP or FORWARDED_IP. /// /// /// /// A rate-based rule applies its rule action to requests from IP addresses that are in /// the rule's managed keys list and that match the rule's scope-down statement. When /// a rule has no scope-down statement, it applies the action to all requests from the /// IP addresses that are in the list. The rule applies its rule action to rate limit /// the matching requests. The action is usually Block but it can be any valid rule action /// except for Allow. /// /// /// /// The maximum number of IP addresses that can be rate limited by a single rate-based /// rule instance is 10,000. If more than 10,000 addresses exceed the rate limit, WAF /// limits those with the highest rates. /// /// public partial class RateBasedStatementManagedKeysIPSet { private List _addresses = new List(); private IPAddressVersion _ipAddressVersion; /// /// Gets and sets the property Addresses. /// /// The IP addresses that are currently blocked. /// /// public List Addresses { get { return this._addresses; } set { this._addresses = value; } } // Check to see if Addresses property is set internal bool IsSetAddresses() { return this._addresses != null && this._addresses.Count > 0; } /// /// Gets and sets the property IPAddressVersion. /// /// The version of the IP addresses, either IPV4 or IPV6. /// /// public IPAddressVersion IPAddressVersion { get { return this._ipAddressVersion; } set { this._ipAddressVersion = value; } } // Check to see if IPAddressVersion property is set internal bool IsSetIPAddressVersion() { return this._ipAddressVersion != null; } } }