amazonka-waf-1.4.5: Amazon WAF SDK.

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

Network.AWS.WAF.CreateSqlInjectionMatchSet

Contents

Description

Creates a SqlInjectionMatchSet , which you use to allow, block, or count requests that contain snippets of SQL code in a specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.

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

  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateSqlInjectionMatchSet request.
  • Submit a CreateSqlInjectionMatchSet request.
  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateSqlInjectionMatchSet request.
  • Submit an UpdateSqlInjectionMatchSet request to specify the parts of web requests in which you want to allow, block, or count malicious SQL code.

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

createSqlInjectionMatchSet #

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

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

  • csimsName - A friendly name or description for the SqlInjectionMatchSet that you're creating. You can't change Name after you create the SqlInjectionMatchSet .
  • csimsChangeToken - The value returned by the most recent call to GetChangeToken .

data CreateSqlInjectionMatchSet #

A request to create a SqlInjectionMatchSet .

See: createSqlInjectionMatchSet smart constructor.

Instances

Eq CreateSqlInjectionMatchSet # 
Data CreateSqlInjectionMatchSet # 

Methods

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

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

toConstr :: CreateSqlInjectionMatchSet -> Constr #

dataTypeOf :: CreateSqlInjectionMatchSet -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSqlInjectionMatchSet # 
Show CreateSqlInjectionMatchSet # 
Generic CreateSqlInjectionMatchSet # 
Hashable CreateSqlInjectionMatchSet # 
ToJSON CreateSqlInjectionMatchSet # 
NFData CreateSqlInjectionMatchSet # 
AWSRequest CreateSqlInjectionMatchSet # 
ToQuery CreateSqlInjectionMatchSet # 
ToPath CreateSqlInjectionMatchSet # 
ToHeaders CreateSqlInjectionMatchSet # 
type Rep CreateSqlInjectionMatchSet # 
type Rep CreateSqlInjectionMatchSet = D1 (MetaData "CreateSqlInjectionMatchSet" "Network.AWS.WAF.CreateSqlInjectionMatchSet" "amazonka-waf-1.4.5-FqbkHngJH7OAVhvyuXSuC3" False) (C1 (MetaCons "CreateSqlInjectionMatchSet'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csimsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_csimsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateSqlInjectionMatchSet # 

Request Lenses

csimsName :: Lens' CreateSqlInjectionMatchSet Text #

A friendly name or description for the SqlInjectionMatchSet that you're creating. You can't change Name after you create the SqlInjectionMatchSet .

csimsChangeToken :: Lens' CreateSqlInjectionMatchSet Text #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createSqlInjectionMatchSetResponse #

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

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

data CreateSqlInjectionMatchSetResponse #

The response to a CreateSqlInjectionMatchSet request.

See: createSqlInjectionMatchSetResponse smart constructor.

Instances

Eq CreateSqlInjectionMatchSetResponse # 
Data CreateSqlInjectionMatchSetResponse # 

Methods

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

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

toConstr :: CreateSqlInjectionMatchSetResponse -> Constr #

dataTypeOf :: CreateSqlInjectionMatchSetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSqlInjectionMatchSetResponse # 
Show CreateSqlInjectionMatchSetResponse # 
Generic CreateSqlInjectionMatchSetResponse # 
NFData CreateSqlInjectionMatchSetResponse # 
type Rep CreateSqlInjectionMatchSetResponse # 
type Rep CreateSqlInjectionMatchSetResponse = D1 (MetaData "CreateSqlInjectionMatchSetResponse" "Network.AWS.WAF.CreateSqlInjectionMatchSet" "amazonka-waf-1.4.5-FqbkHngJH7OAVhvyuXSuC3" False) (C1 (MetaCons "CreateSqlInjectionMatchSetResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csimsrsSqlInjectionMatchSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SqlInjectionMatchSet))) ((:*:) (S1 (MetaSel (Just Symbol "_csimsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_csimsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

csimsrsChangeToken :: Lens' CreateSqlInjectionMatchSetResponse (Maybe Text) #

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