Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
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 aCreateXssMatchSet
request. - Submit a
CreateXssMatchSet
request. - Use
GetChangeToken
to get the change token that you provide in theChangeToken
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
- data CreateXssMatchSet = CreateXssMatchSet' {
- name :: Text
- changeToken :: Text
- newCreateXssMatchSet :: Text -> Text -> CreateXssMatchSet
- createXssMatchSet_name :: Lens' CreateXssMatchSet Text
- createXssMatchSet_changeToken :: Lens' CreateXssMatchSet Text
- data CreateXssMatchSetResponse = CreateXssMatchSetResponse' {}
- newCreateXssMatchSetResponse :: Int -> CreateXssMatchSetResponse
- createXssMatchSetResponse_changeToken :: Lens' CreateXssMatchSetResponse (Maybe Text)
- createXssMatchSetResponse_xssMatchSet :: Lens' CreateXssMatchSetResponse (Maybe XssMatchSet)
- createXssMatchSetResponse_httpStatus :: Lens' CreateXssMatchSetResponse Int
Creating a Request
data CreateXssMatchSet Source #
A request to create an XssMatchSet.
See: newCreateXssMatchSet
smart constructor.
CreateXssMatchSet' | |
|
Instances
Create a value of CreateXssMatchSet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateXssMatchSet
, createXssMatchSet_name
- A friendly name or description for the XssMatchSet that you're
creating. You can't change Name
after you create the XssMatchSet
.
CreateXssMatchSet
, createXssMatchSet_changeToken
- The value returned by the most recent call to GetChangeToken.
Request Lenses
createXssMatchSet_name :: 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
.
createXssMatchSet_changeToken :: Lens' CreateXssMatchSet Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
data CreateXssMatchSetResponse Source #
The response to a CreateXssMatchSet
request.
See: newCreateXssMatchSetResponse
smart constructor.
CreateXssMatchSetResponse' | |
|
Instances
newCreateXssMatchSetResponse Source #
Create a value of CreateXssMatchSetResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateXssMatchSet
, createXssMatchSetResponse_changeToken
- 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.
$sel:xssMatchSet:CreateXssMatchSetResponse'
, createXssMatchSetResponse_xssMatchSet
- An XssMatchSet.
$sel:httpStatus:CreateXssMatchSetResponse'
, createXssMatchSetResponse_httpStatus
- The response's http status code.
Response Lenses
createXssMatchSetResponse_changeToken :: 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.
createXssMatchSetResponse_xssMatchSet :: Lens' CreateXssMatchSetResponse (Maybe XssMatchSet) Source #
An XssMatchSet.
createXssMatchSetResponse_httpStatus :: Lens' CreateXssMatchSetResponse Int Source #
The response's http status code.