amazonka-shield-2.0: Amazon Shield 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.Shield.Types.ResponseAction

Description

 
Synopsis

Documentation

data ResponseAction Source #

Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.

See: newResponseAction smart constructor.

Constructors

ResponseAction' 

Fields

  • block :: Maybe BlockAction

    Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.

    You must specify exactly one action, either Block or Count.

  • count :: Maybe CountAction

    Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.

    You must specify exactly one action, either Block or Count.

Instances

Instances details
FromJSON ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

ToJSON ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

Generic ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

Associated Types

type Rep ResponseAction :: Type -> Type #

Read ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

Show ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

NFData ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

Methods

rnf :: ResponseAction -> () #

Eq ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

Hashable ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

type Rep ResponseAction Source # 
Instance details

Defined in Amazonka.Shield.Types.ResponseAction

type Rep ResponseAction = D1 ('MetaData "ResponseAction" "Amazonka.Shield.Types.ResponseAction" "amazonka-shield-2.0-Cz9Fa9OSQ93AE4UCXBDcFo" 'False) (C1 ('MetaCons "ResponseAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "block") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BlockAction)) :*: S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CountAction))))

newResponseAction :: ResponseAction Source #

Create a value of ResponseAction 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:block:ResponseAction', responseAction_block - Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.

You must specify exactly one action, either Block or Count.

$sel:count:ResponseAction', responseAction_count - Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.

You must specify exactly one action, either Block or Count.

responseAction_block :: Lens' ResponseAction (Maybe BlockAction) Source #

Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.

You must specify exactly one action, either Block or Count.

responseAction_count :: Lens' ResponseAction (Maybe CountAction) Source #

Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.

You must specify exactly one action, either Block or Count.