amazonka-waf-1.6.0: 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.UpdateRegexPatternSet

Contents

Description

Inserts or deletes RegexPatternString objects in a RegexPatternSet . For each RegexPatternString object, you specify the following values:

  • Whether to insert or delete the RegexPatternString .
  • The regular expression pattern that you want to insert or delete. For more information, see RegexPatternSet .

For example, you can create a RegexPatternString such as B[a]dB[o0]t . AWS WAF will match this RegexPatternString@ to:

  • BadBot
  • BadB0t
  • B@dBot
  • B@dB0t

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

  • Create a RegexPatternSet. For more information, see CreateRegexPatternSet .
  • 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 regular expression pattern 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

updateRegexPatternSet Source #

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

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

data UpdateRegexPatternSet Source #

See: updateRegexPatternSet smart constructor.

Instances

Eq UpdateRegexPatternSet Source # 
Data UpdateRegexPatternSet Source # 

Methods

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

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

toConstr :: UpdateRegexPatternSet -> Constr #

dataTypeOf :: UpdateRegexPatternSet -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateRegexPatternSet Source # 
Show UpdateRegexPatternSet Source # 
Generic UpdateRegexPatternSet Source # 
Hashable UpdateRegexPatternSet Source # 
ToJSON UpdateRegexPatternSet Source # 
NFData UpdateRegexPatternSet Source # 

Methods

rnf :: UpdateRegexPatternSet -> () #

AWSRequest UpdateRegexPatternSet Source # 
ToHeaders UpdateRegexPatternSet Source # 
ToPath UpdateRegexPatternSet Source # 
ToQuery UpdateRegexPatternSet Source # 
type Rep UpdateRegexPatternSet Source # 
type Rep UpdateRegexPatternSet = D1 * (MetaData "UpdateRegexPatternSet" "Network.AWS.WAF.UpdateRegexPatternSet" "amazonka-waf-1.6.0-3fCImJDdtLm395kgBUHRQd" False) (C1 * (MetaCons "UpdateRegexPatternSet'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_urpsRegexPatternSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_urpsUpdates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 RegexPatternSetUpdate))) (S1 * (MetaSel (Just Symbol "_urpsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateRegexPatternSet Source # 

Request Lenses

urpsRegexPatternSetId :: Lens' UpdateRegexPatternSet Text Source #

The RegexPatternSetId of the RegexPatternSet that you want to update. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets .

urpsUpdates :: Lens' UpdateRegexPatternSet (NonEmpty RegexPatternSetUpdate) Source #

An array of RegexPatternSetUpdate objects that you want to insert into or delete from a RegexPatternSet .

urpsChangeToken :: Lens' UpdateRegexPatternSet Text Source #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

updateRegexPatternSetResponse Source #

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

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

  • urpsrsChangeToken - The ChangeToken that you used to submit the UpdateRegexPatternSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
  • urpsrsResponseStatus - -- | The response status code.

data UpdateRegexPatternSetResponse Source #

See: updateRegexPatternSetResponse smart constructor.

Instances

Eq UpdateRegexPatternSetResponse Source # 
Data UpdateRegexPatternSetResponse Source # 

Methods

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

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

toConstr :: UpdateRegexPatternSetResponse -> Constr #

dataTypeOf :: UpdateRegexPatternSetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateRegexPatternSetResponse Source # 
Show UpdateRegexPatternSetResponse Source # 
Generic UpdateRegexPatternSetResponse Source # 
NFData UpdateRegexPatternSetResponse Source # 
type Rep UpdateRegexPatternSetResponse Source # 
type Rep UpdateRegexPatternSetResponse = D1 * (MetaData "UpdateRegexPatternSetResponse" "Network.AWS.WAF.UpdateRegexPatternSet" "amazonka-waf-1.6.0-3fCImJDdtLm395kgBUHRQd" False) (C1 * (MetaCons "UpdateRegexPatternSetResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_urpsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_urpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

urpsrsChangeToken :: Lens' UpdateRegexPatternSetResponse (Maybe Text) Source #

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