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

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

A request to create a SqlInjectionMatchSet .

See: createSqlInjectionMatchSet smart constructor.

Instances

Eq CreateSqlInjectionMatchSet Source # 
Data CreateSqlInjectionMatchSet Source # 

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 Source # 
Show CreateSqlInjectionMatchSet Source # 
Generic CreateSqlInjectionMatchSet Source # 
Hashable CreateSqlInjectionMatchSet Source # 
ToJSON CreateSqlInjectionMatchSet Source # 
NFData CreateSqlInjectionMatchSet Source # 
AWSRequest CreateSqlInjectionMatchSet Source # 
ToPath CreateSqlInjectionMatchSet Source # 
ToHeaders CreateSqlInjectionMatchSet Source # 
ToQuery CreateSqlInjectionMatchSet Source # 
type Rep CreateSqlInjectionMatchSet Source # 
type Rep CreateSqlInjectionMatchSet = D1 (MetaData "CreateSqlInjectionMatchSet" "Network.AWS.WAF.CreateSqlInjectionMatchSet" "amazonka-waf-1.4.5-LwyS40mcrMjGU0oCXONgRC" 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 Source # 

Request Lenses

csimsName :: Lens' CreateSqlInjectionMatchSet Text Source #

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

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createSqlInjectionMatchSetResponse Source #

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

The response to a CreateSqlInjectionMatchSet request.

See: createSqlInjectionMatchSetResponse smart constructor.

Instances

Eq CreateSqlInjectionMatchSetResponse Source # 
Data CreateSqlInjectionMatchSetResponse Source # 

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 Source # 
Show CreateSqlInjectionMatchSetResponse Source # 
Generic CreateSqlInjectionMatchSetResponse Source # 
NFData CreateSqlInjectionMatchSetResponse Source # 
type Rep CreateSqlInjectionMatchSetResponse Source # 
type Rep CreateSqlInjectionMatchSetResponse = D1 (MetaData "CreateSqlInjectionMatchSetResponse" "Network.AWS.WAF.CreateSqlInjectionMatchSet" "amazonka-waf-1.4.5-LwyS40mcrMjGU0oCXONgRC" 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) Source #

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 .