amazonka-waf-regional-1.6.0: Amazon WAF Regional 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.WAFRegional.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 Source #

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 Source #

See: createRegexPatternSet smart constructor.

Instances

Eq CreateRegexPatternSet Source # 
Data CreateRegexPatternSet Source # 

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 Source # 
Show CreateRegexPatternSet Source # 
Generic CreateRegexPatternSet Source # 
Hashable CreateRegexPatternSet Source # 
ToJSON CreateRegexPatternSet Source # 
NFData CreateRegexPatternSet Source # 

Methods

rnf :: CreateRegexPatternSet -> () #

AWSRequest CreateRegexPatternSet Source # 
ToHeaders CreateRegexPatternSet Source # 
ToPath CreateRegexPatternSet Source # 
ToQuery CreateRegexPatternSet Source # 
type Rep CreateRegexPatternSet Source # 
type Rep CreateRegexPatternSet = D1 * (MetaData "CreateRegexPatternSet" "Network.AWS.WAFRegional.CreateRegexPatternSet" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "CreateRegexPatternSet'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crpsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_crpsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs CreateRegexPatternSet Source # 

Request Lenses

crpsName :: Lens' CreateRegexPatternSet Text Source #

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

crpsChangeToken :: Lens' CreateRegexPatternSet Text Source #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createRegexPatternSetResponse Source #

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 Source #

See: createRegexPatternSetResponse smart constructor.

Instances

Eq CreateRegexPatternSetResponse Source # 
Data CreateRegexPatternSetResponse Source # 

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 Source # 
Show CreateRegexPatternSetResponse Source # 
Generic CreateRegexPatternSetResponse Source # 
NFData CreateRegexPatternSetResponse Source # 
type Rep CreateRegexPatternSetResponse Source # 
type Rep CreateRegexPatternSetResponse = D1 * (MetaData "CreateRegexPatternSetResponse" "Network.AWS.WAFRegional.CreateRegexPatternSet" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "CreateRegexPatternSetResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_crpsrsRegexPatternSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe RegexPatternSet))) ((:*:) * (S1 * (MetaSel (Just Symbol "_crpsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_crpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

crpsrsChangeToken :: Lens' CreateRegexPatternSetResponse (Maybe Text) Source #

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 .