| 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.UpdateXSSMatchSet
Description
Inserts or deletes XssMatchTuple objects (filters) in an XssMatchSet . For each XssMatchTuple object, you specify the following values:
Action: Whether to insert the object into or delete the object from the array. To change aXssMatchTuple, you delete the existing object and add a new one.FieldToMatch: The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.TextTransformation: Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.
You use XssMatchSet objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an XssMatchSet with the applicable settings, and then configure AWS WAF to block the requests.
To create and configure an XssMatchSet , perform the following steps:
- Submit a
CreateXssMatchSetrequest. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of anUpdateIPSetrequest. - Submit an
UpdateXssMatchSetrequest to specify the parts of web requests that you want AWS WAF to inspect for 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
- updateXSSMatchSet :: Text -> Text -> NonEmpty XSSMatchSetUpdate -> UpdateXSSMatchSet
- data UpdateXSSMatchSet
- uxmsXSSMatchSetId :: Lens' UpdateXSSMatchSet Text
- uxmsChangeToken :: Lens' UpdateXSSMatchSet Text
- uxmsUpdates :: Lens' UpdateXSSMatchSet (NonEmpty XSSMatchSetUpdate)
- updateXSSMatchSetResponse :: Int -> UpdateXSSMatchSetResponse
- data UpdateXSSMatchSetResponse
- uxmsrsChangeToken :: Lens' UpdateXSSMatchSetResponse (Maybe Text)
- uxmsrsResponseStatus :: Lens' UpdateXSSMatchSetResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> NonEmpty XSSMatchSetUpdate | |
| -> UpdateXSSMatchSet |
Creates a value of UpdateXSSMatchSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uxmsXSSMatchSetId- TheXssMatchSetIdof theXssMatchSetthat you want to update.XssMatchSetIdis returned byCreateXssMatchSetand byListXssMatchSets.uxmsChangeToken- The value returned by the most recent call toGetChangeToken.uxmsUpdates- An array ofXssMatchSetUpdateobjects that you want to insert into or delete from aXssMatchSet. For more information, see the applicable data types: *XssMatchSetUpdate: ContainsActionandXssMatchTuple*XssMatchTuple: ContainsFieldToMatchandTextTransformation*FieldToMatch: ContainsDataandType
data UpdateXSSMatchSet Source #
A request to update an XssMatchSet .
See: updateXSSMatchSet smart constructor.
Instances
Request Lenses
uxmsXSSMatchSetId :: Lens' UpdateXSSMatchSet Text Source #
The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets .
uxmsChangeToken :: Lens' UpdateXSSMatchSet Text Source #
The value returned by the most recent call to GetChangeToken .
uxmsUpdates :: Lens' UpdateXSSMatchSet (NonEmpty XSSMatchSetUpdate) Source #
An array of XssMatchSetUpdate objects that you want to insert into or delete from a XssMatchSet . For more information, see the applicable data types: * XssMatchSetUpdate : Contains Action and XssMatchTuple * XssMatchTuple : Contains FieldToMatch and TextTransformation * FieldToMatch : Contains Data and Type
Destructuring the Response
updateXSSMatchSetResponse Source #
Arguments
| :: Int | |
| -> UpdateXSSMatchSetResponse |
Creates a value of UpdateXSSMatchSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uxmsrsChangeToken- TheChangeTokenthat you used to submit theUpdateXssMatchSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.uxmsrsResponseStatus- -- | The response status code.
data UpdateXSSMatchSetResponse Source #
The response to an UpdateXssMatchSets request.
See: updateXSSMatchSetResponse smart constructor.
Instances
Response Lenses
uxmsrsChangeToken :: Lens' UpdateXSSMatchSetResponse (Maybe Text) Source #
The ChangeToken that you used to submit the UpdateXssMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
uxmsrsResponseStatus :: Lens' UpdateXSSMatchSetResponse Int Source #
- - | The response status code.