| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WAF.CreateXSSMatchSet
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
ChangeTokenparameter of aCreateXssMatchSetrequest. - Submit a
CreateXssMatchSetrequest. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter 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.
- createXSSMatchSet :: Text -> Text -> CreateXSSMatchSet
- data CreateXSSMatchSet
- cxmsName :: Lens' CreateXSSMatchSet Text
- cxmsChangeToken :: Lens' CreateXSSMatchSet Text
- createXSSMatchSetResponse :: Int -> CreateXSSMatchSetResponse
- data CreateXSSMatchSetResponse
- cxmsrsXSSMatchSet :: Lens' CreateXSSMatchSetResponse (Maybe XSSMatchSet)
- cxmsrsChangeToken :: Lens' CreateXSSMatchSetResponse (Maybe Text)
- cxmsrsResponseStatus :: Lens' CreateXSSMatchSetResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> CreateXSSMatchSet |
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:
data CreateXSSMatchSet Source #
A request to create an XssMatchSet.
See: createXSSMatchSet smart constructor.
Instances
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 #
Arguments
| :: Int | |
| -> CreateXSSMatchSetResponse |
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:
data CreateXSSMatchSetResponse Source #
The response to a CreateXssMatchSet request.
See: createXSSMatchSetResponse smart constructor.
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.
cxmsrsResponseStatus :: Lens' CreateXSSMatchSetResponse Int Source #
The response status code.