/* * 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 network-firewall-2020-11-12.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.NetworkFirewall.Model { /// /// The stateless or stateful rules definitions for use in a single rule group. Each rule /// group requires a single RulesSource. You can use an instance of this /// for either stateless rules or stateful rules. /// public partial class RulesSource { private RulesSourceList _rulesSourceList; private string _rulesString; private List _statefulRules = new List(); private StatelessRulesAndCustomActions _statelessRulesAndCustomActions; /// /// Gets and sets the property RulesSourceList. /// /// Stateful inspection criteria for a domain list rule group. /// /// public RulesSourceList RulesSourceList { get { return this._rulesSourceList; } set { this._rulesSourceList = value; } } // Check to see if RulesSourceList property is set internal bool IsSetRulesSourceList() { return this._rulesSourceList != null; } /// /// Gets and sets the property RulesString. /// /// Stateful inspection criteria, provided in Suricata compatible intrusion prevention /// system (IPS) rules. Suricata is an open-source network IPS that includes a standard /// rule-based language for network traffic inspection. /// /// /// /// These rules contain the inspection criteria and the action to take for traffic that /// matches the criteria, so this type of rule group doesn't have a separate action setting. /// /// [AWSProperty(Min=0, Max=2000000)] public string RulesString { get { return this._rulesString; } set { this._rulesString = value; } } // Check to see if RulesString property is set internal bool IsSetRulesString() { return this._rulesString != null; } /// /// Gets and sets the property StatefulRules. /// /// An array of individual stateful rules inspection criteria to be used together in a /// stateful rule group. Use this option to specify simple Suricata rules with protocol, /// source and destination, ports, direction, and rule options. For information about /// the Suricata Rules format, see Rules /// Format. /// /// public List StatefulRules { get { return this._statefulRules; } set { this._statefulRules = value; } } // Check to see if StatefulRules property is set internal bool IsSetStatefulRules() { return this._statefulRules != null && this._statefulRules.Count > 0; } /// /// Gets and sets the property StatelessRulesAndCustomActions. /// /// Stateless inspection criteria to be used in a stateless rule group. /// /// public StatelessRulesAndCustomActions StatelessRulesAndCustomActions { get { return this._statelessRulesAndCustomActions; } set { this._statelessRulesAndCustomActions = value; } } // Check to see if StatelessRulesAndCustomActions property is set internal bool IsSetStatelessRulesAndCustomActions() { return this._statelessRulesAndCustomActions != null; } } }