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.CreateXSSMatchSet

Contents

Description

Creates an XssMatchSet , which you use to allow, block, or count requests that contain cross-site scripting attacks in the specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.

To create and configure an XssMatchSet , perform the following steps:

  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateXssMatchSet request.
  • Submit a CreateXssMatchSet request.
  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateXssMatchSet request.
  • Submit an UpdateXssMatchSet request to specify the parts of web requests in which you want to allow, block, or count cross-site scripting attacks.

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

createXSSMatchSet Source #

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

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

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

data CreateXSSMatchSet Source #

A request to create an XssMatchSet .

See: createXSSMatchSet smart constructor.

Instances

Eq CreateXSSMatchSet Source # 
Data CreateXSSMatchSet Source # 

Methods

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

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

toConstr :: CreateXSSMatchSet -> Constr #

dataTypeOf :: CreateXSSMatchSet -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateXSSMatchSet -> () #

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

Request Lenses

cxmsName :: Lens' CreateXSSMatchSet Text Source #

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

cxmsChangeToken :: Lens' CreateXSSMatchSet Text Source #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createXSSMatchSetResponse Source #

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

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

  • cxmsrsXSSMatchSet - An XssMatchSet .
  • cxmsrsChangeToken - The ChangeToken that you used to submit the CreateXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
  • cxmsrsResponseStatus - -- | The response status code.

data CreateXSSMatchSetResponse Source #

The response to a CreateXssMatchSet request.

See: createXSSMatchSetResponse smart constructor.

Instances

Eq CreateXSSMatchSetResponse Source # 
Data CreateXSSMatchSetResponse Source # 

Methods

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

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

toConstr :: CreateXSSMatchSetResponse -> Constr #

dataTypeOf :: CreateXSSMatchSetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateXSSMatchSetResponse Source # 
Show CreateXSSMatchSetResponse Source # 
Generic CreateXSSMatchSetResponse Source # 
NFData CreateXSSMatchSetResponse Source # 
type Rep CreateXSSMatchSetResponse Source # 
type Rep CreateXSSMatchSetResponse = D1 * (MetaData "CreateXSSMatchSetResponse" "Network.AWS.WAFRegional.CreateXSSMatchSet" "amazonka-waf-regional-1.6.0-8hbXet7pAjcFZLYYuMOYQd" False) (C1 * (MetaCons "CreateXSSMatchSetResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cxmsrsXSSMatchSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe XSSMatchSet))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cxmsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cxmsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

cxmsrsChangeToken :: Lens' CreateXSSMatchSetResponse (Maybe Text) Source #

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