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.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 # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Data CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.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 Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Show CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Generic CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Associated Types

type Rep CreateSqlInjectionMatchSet :: Type -> Type #

Hashable CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

ToJSON CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

AWSRequest CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Associated Types

type Rs CreateSqlInjectionMatchSet :: Type #

ToHeaders CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

ToPath CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

ToQuery CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

NFData CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

type Rep CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

type Rep CreateSqlInjectionMatchSet = D1 (MetaData "CreateSqlInjectionMatchSet" "Network.AWS.WAF.CreateSqlInjectionMatchSet" "amazonka-waf-1.6.1-AAUMqlxoZ2N3dlHnZE2nzz" False) (C1 (MetaCons "CreateSqlInjectionMatchSet'" PrefixI True) (S1 (MetaSel (Just "_csimsName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_csimsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateSqlInjectionMatchSet Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

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 # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Data CreateSqlInjectionMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

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 # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Show CreateSqlInjectionMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Generic CreateSqlInjectionMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

Associated Types

type Rep CreateSqlInjectionMatchSetResponse :: Type -> Type #

NFData CreateSqlInjectionMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

type Rep CreateSqlInjectionMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAF.CreateSqlInjectionMatchSet

type Rep CreateSqlInjectionMatchSetResponse = D1 (MetaData "CreateSqlInjectionMatchSetResponse" "Network.AWS.WAF.CreateSqlInjectionMatchSet" "amazonka-waf-1.6.1-AAUMqlxoZ2N3dlHnZE2nzz" False) (C1 (MetaCons "CreateSqlInjectionMatchSetResponse'" PrefixI True) (S1 (MetaSel (Just "_csimsrsSqlInjectionMatchSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SqlInjectionMatchSet)) :*: (S1 (MetaSel (Just "_csimsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csimsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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 .