| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@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
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aCreateXssMatchSetrequest. - Submit a
CreateXssMatchSetrequest. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of anUpdateXssMatchSetrequest. - Submit an
UpdateXssMatchSetrequest 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
- 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:
cxmsName- A friendly name or description for theXssMatchSetthat you're creating. You can't changeNameafter you create theXssMatchSet.cxmsChangeToken- The value returned by the most recent call toGetChangeToken.
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:
cxmsrsXSSMatchSet- AnXssMatchSet.cxmsrsChangeToken- TheChangeTokenthat you used to submit theCreateXssMatchSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.cxmsrsResponseStatus- -- | The response status code.
data CreateXSSMatchSetResponse Source #
The response to a CreateXssMatchSet request.
See: createXSSMatchSetResponse smart constructor.
Instances
Response Lenses
cxmsrsXSSMatchSet :: Lens' CreateXSSMatchSetResponse (Maybe XSSMatchSet) Source #
An XssMatchSet .
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.