/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Provides details about rules in a rule group. A rule identifies web requests that /// you want to allow, block, or count. Each rule includes one top-level Statement that /// WAF uses to identify matching web requests, and parameters that govern how WAF handles /// them. /// public partial class AwsWafv2RulesDetails { private AwsWafv2RulesActionDetails _action; private string _name; private string _overrideAction; private int? _priority; private AwsWafv2VisibilityConfigDetails _visibilityConfig; /// /// Gets and sets the property Action. /// /// The action that WAF should take on a web request when it matches the rule statement. /// Settings at the web ACL level can override the rule action setting. /// /// public AwsWafv2RulesActionDetails Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// /// Gets and sets the property Name. /// /// The name of the rule. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property OverrideAction. /// /// The action to use in the place of the action that results from the rule group evaluation. /// /// /// public string OverrideAction { get { return this._overrideAction; } set { this._overrideAction = value; } } // Check to see if OverrideAction property is set internal bool IsSetOverrideAction() { return this._overrideAction != null; } /// /// Gets and sets the property Priority. /// /// If you define more than one Rule in a WebACL, WAF evaluates each request against /// the Rules in order based on the value of Priority. WAF processes rules /// with lower priority first. The priorities don't need to be consecutive, but they must /// all be different. /// /// public int Priority { get { return this._priority.GetValueOrDefault(); } set { this._priority = value; } } // Check to see if Priority property is set internal bool IsSetPriority() { return this._priority.HasValue; } /// /// Gets and sets the property VisibilityConfig. /// /// Defines and enables Amazon CloudWatch metrics and web request sample collection. /// /// /// public AwsWafv2VisibilityConfigDetails VisibilityConfig { get { return this._visibilityConfig; } set { this._visibilityConfig = value; } } // Check to see if VisibilityConfig property is set internal bool IsSetVisibilityConfig() { return this._visibilityConfig != null; } } }