amazonka-waf-1.6.1: Amazon WAF SDK.

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

Network.AWS.WAF.CreateRegexPatternSet

Contents

Description

Creates a RegexPatternSet . You then use UpdateRegexPatternSet to specify the regular expression (regex) pattern that you want AWS WAF to search for, such as B[a]dB[o0]t@ . You can then configure AWS WAF to reject those requests.

To create and configure a RegexPatternSet , perform the following steps:

  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateRegexPatternSet request.
  • Submit a CreateRegexPatternSet request.
  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRegexPatternSet request.
  • Submit an UpdateRegexPatternSet request to specify the string that you want AWS WAF to watch for.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide .

Synopsis

Creating a Request

createRegexPatternSet #

Creates a value of CreateRegexPatternSet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • crpsName - A friendly name or description of the RegexPatternSet . You can't change Name after you create a RegexPatternSet .
  • crpsChangeToken - The value returned by the most recent call to GetChangeToken .

data CreateRegexPatternSet #

See: createRegexPatternSet smart constructor.

Instances
Eq CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Data CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateRegexPatternSet -> c CreateRegexPatternSet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateRegexPatternSet #

toConstr :: CreateRegexPatternSet -> Constr #

dataTypeOf :: CreateRegexPatternSet -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateRegexPatternSet) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateRegexPatternSet) #

gmapT :: (forall b. Data b => b -> b) -> CreateRegexPatternSet -> CreateRegexPatternSet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateRegexPatternSet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateRegexPatternSet -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateRegexPatternSet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateRegexPatternSet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateRegexPatternSet -> m CreateRegexPatternSet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRegexPatternSet -> m CreateRegexPatternSet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRegexPatternSet -> m CreateRegexPatternSet #

Read CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Show CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Generic CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Associated Types

type Rep CreateRegexPatternSet :: Type -> Type #

Hashable CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

ToJSON CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

AWSRequest CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Associated Types

type Rs CreateRegexPatternSet :: Type #

ToHeaders CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

ToPath CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

ToQuery CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

NFData CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Methods

rnf :: CreateRegexPatternSet -> () #

type Rep CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

type Rep CreateRegexPatternSet = D1 (MetaData "CreateRegexPatternSet" "Network.AWS.WAF.CreateRegexPatternSet" "amazonka-waf-1.6.1-58qiOW5VcwnIkfAeSj6srS" False) (C1 (MetaCons "CreateRegexPatternSet'" PrefixI True) (S1 (MetaSel (Just "_crpsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_crpsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateRegexPatternSet # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Request Lenses

crpsName :: Lens' CreateRegexPatternSet Text #

A friendly name or description of the RegexPatternSet . You can't change Name after you create a RegexPatternSet .

crpsChangeToken :: Lens' CreateRegexPatternSet Text #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createRegexPatternSetResponse #

Creates a value of CreateRegexPatternSetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateRegexPatternSetResponse #

See: createRegexPatternSetResponse smart constructor.

Instances
Eq CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Data CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateRegexPatternSetResponse -> c CreateRegexPatternSetResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateRegexPatternSetResponse #

toConstr :: CreateRegexPatternSetResponse -> Constr #

dataTypeOf :: CreateRegexPatternSetResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateRegexPatternSetResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateRegexPatternSetResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateRegexPatternSetResponse -> CreateRegexPatternSetResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateRegexPatternSetResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateRegexPatternSetResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateRegexPatternSetResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateRegexPatternSetResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateRegexPatternSetResponse -> m CreateRegexPatternSetResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRegexPatternSetResponse -> m CreateRegexPatternSetResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateRegexPatternSetResponse -> m CreateRegexPatternSetResponse #

Read CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Show CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Generic CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

Associated Types

type Rep CreateRegexPatternSetResponse :: Type -> Type #

NFData CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

type Rep CreateRegexPatternSetResponse # 
Instance details

Defined in Network.AWS.WAF.CreateRegexPatternSet

type Rep CreateRegexPatternSetResponse = D1 (MetaData "CreateRegexPatternSetResponse" "Network.AWS.WAF.CreateRegexPatternSet" "amazonka-waf-1.6.1-58qiOW5VcwnIkfAeSj6srS" False) (C1 (MetaCons "CreateRegexPatternSetResponse'" PrefixI True) (S1 (MetaSel (Just "_crpsrsRegexPatternSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RegexPatternSet)) :*: (S1 (MetaSel (Just "_crpsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_crpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

crpsrsChangeToken :: Lens' CreateRegexPatternSetResponse (Maybe Text) #

The ChangeToken that you used to submit the CreateRegexPatternSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .