libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.NetworkFirewall.Types.CustomAction

Description

 
Synopsis

Documentation

data CustomAction Source #

An optional, non-standard action to use for stateless packet handling. You can define this in addition to the standard action that you must specify.

You define and name the custom actions that you want to be able to use, and then you reference them by name in your actions settings.

You can use custom actions in the following places:

  • In a rule group's StatelessRulesAndCustomActions specification. The custom actions are available for use by name inside the StatelessRulesAndCustomActions where you define them. You can use them for your stateless rule actions to specify what to do with a packet that matches the rule's match attributes.
  • In a FirewallPolicy specification, in StatelessCustomActions. The custom actions are available for use inside the policy where you define them. You can use them for the policy's default stateless actions settings to specify what to do with packets that don't match any of the policy's stateless rules.

See: newCustomAction smart constructor.

Constructors

CustomAction' 

Fields

Instances

Instances details
Eq CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

Read CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

Show CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

Generic CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

Associated Types

type Rep CustomAction :: Type -> Type #

NFData CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

Methods

rnf :: CustomAction -> () #

Hashable CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

ToJSON CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

FromJSON CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

type Rep CustomAction Source # 
Instance details

Defined in Amazonka.NetworkFirewall.Types.CustomAction

type Rep CustomAction = D1 ('MetaData "CustomAction" "Amazonka.NetworkFirewall.Types.CustomAction" "libZSservicesZSamazonka-network-firewallZSamazonka-network-firewall" 'False) (C1 ('MetaCons "CustomAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "actionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "actionDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ActionDefinition)))

newCustomAction Source #

Create a value of CustomAction 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:actionName:CustomAction', customAction_actionName - The descriptive name of the custom action. You can't change the name of a custom action after you create it.

$sel:actionDefinition:CustomAction', customAction_actionDefinition - The custom action associated with the action name.

customAction_actionName :: Lens' CustomAction Text Source #

The descriptive name of the custom action. You can't change the name of a custom action after you create it.

customAction_actionDefinition :: Lens' CustomAction ActionDefinition Source #

The custom action associated with the action name.