amazonka-network-firewall-2.0: Amazon Network Firewall SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.NetworkFirewall.Types.RulesSource

Description

 
Synopsis

Documentation

data RulesSource Source #

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.

See: newRulesSource smart constructor.

Constructors

RulesSource' 

Fields

  • rulesSourceList :: Maybe RulesSourceList

    Stateful inspection criteria for a domain list rule group.

  • rulesString :: Maybe Text

    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.

  • statefulRules :: Maybe [StatefulRule]

    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.

  • statelessRulesAndCustomActions :: Maybe StatelessRulesAndCustomActions

    Stateless inspection criteria to be used in a stateless rule group.

Instances

Instances details
FromJSON RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

ToJSON RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

Generic RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

Associated Types

type Rep RulesSource :: Type -> Type #

Read RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

Show RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

NFData RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

Methods

rnf :: RulesSource -> () #

Eq RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

Hashable RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

type Rep RulesSource Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.RulesSource

type Rep RulesSource = D1 ('MetaData "RulesSource" "Amazonka.NetworkFirewall.Types.RulesSource" "amazonka-network-firewall-2.0-4y6HybZBSNcEwGPO5AYVfm" 'False) (C1 ('MetaCons "RulesSource'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rulesSourceList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RulesSourceList)) :*: S1 ('MetaSel ('Just "rulesString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "statefulRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [StatefulRule])) :*: S1 ('MetaSel ('Just "statelessRulesAndCustomActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatelessRulesAndCustomActions)))))

newRulesSource :: RulesSource Source #

Create a value of RulesSource with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:rulesSourceList:RulesSource', rulesSource_rulesSourceList - Stateful inspection criteria for a domain list rule group.

$sel:rulesString:RulesSource', rulesSource_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.

$sel:statefulRules:RulesSource', rulesSource_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.

$sel:statelessRulesAndCustomActions:RulesSource', rulesSource_statelessRulesAndCustomActions - Stateless inspection criteria to be used in a stateless rule group.

rulesSource_rulesSourceList :: Lens' RulesSource (Maybe RulesSourceList) Source #

Stateful inspection criteria for a domain list rule group.

rulesSource_rulesString :: Lens' RulesSource (Maybe Text) Source #

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.

rulesSource_statefulRules :: Lens' RulesSource (Maybe [StatefulRule]) Source #

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.

rulesSource_statelessRulesAndCustomActions :: Lens' RulesSource (Maybe StatelessRulesAndCustomActions) Source #

Stateless inspection criteria to be used in a stateless rule group.