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 |
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 theChangeToken
parameter of aCreateXssMatchSet
request. - Submit a
CreateXssMatchSet
request. - Use
GetChangeToken
to get the change token that you provide in theChangeToken
parameter of anUpdateXssMatchSet
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
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 theXssMatchSet
that you're creating. You can't changeName
after 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.
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
- AnXssMatchSet
.cxmsrsChangeToken
- TheChangeToken
that you used to submit theCreateXssMatchSet
request. 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.
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.