| 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.UpdateRegexPatternSet
Description
Inserts or deletes RegexPatternString objects in a RegexPatternSet . For each RegexPatternString object, you specify the following values:
- Whether to insert or delete the
RegexPatternString. - The regular expression pattern that you want to insert or delete. For more information, see
RegexPatternSet.
For example, you can create a RegexPatternString such as B[a]dB[o0]t . AWS WAF will match this RegexPatternString@ to:
- BadBot
- BadB0t
- B@dBot
- B@dB0t
To create and configure a RegexPatternSet , perform the following steps:
- Create a
RegexPatternSet.For more information, seeCreateRegexPatternSet. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of anUpdateRegexPatternSetrequest. - Submit an
UpdateRegexPatternSetrequest to specify the regular expression pattern that you want AWS WAF to watch for.
For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide .
Synopsis
- updateRegexPatternSet :: Text -> NonEmpty RegexPatternSetUpdate -> Text -> UpdateRegexPatternSet
- data UpdateRegexPatternSet
- urpsRegexPatternSetId :: Lens' UpdateRegexPatternSet Text
- urpsUpdates :: Lens' UpdateRegexPatternSet (NonEmpty RegexPatternSetUpdate)
- urpsChangeToken :: Lens' UpdateRegexPatternSet Text
- updateRegexPatternSetResponse :: Int -> UpdateRegexPatternSetResponse
- data UpdateRegexPatternSetResponse
- urpsrsChangeToken :: Lens' UpdateRegexPatternSetResponse (Maybe Text)
- urpsrsResponseStatus :: Lens' UpdateRegexPatternSetResponse Int
Creating a Request
updateRegexPatternSet Source #
Arguments
| :: Text | |
| -> NonEmpty RegexPatternSetUpdate | |
| -> Text | |
| -> UpdateRegexPatternSet |
Creates a value of UpdateRegexPatternSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urpsRegexPatternSetId- TheRegexPatternSetIdof theRegexPatternSetthat you want to update.RegexPatternSetIdis returned byCreateRegexPatternSetand byListRegexPatternSets.urpsUpdates- An array ofRegexPatternSetUpdateobjects that you want to insert into or delete from aRegexPatternSet.urpsChangeToken- The value returned by the most recent call toGetChangeToken.
data UpdateRegexPatternSet Source #
See: updateRegexPatternSet smart constructor.
Instances
Request Lenses
urpsRegexPatternSetId :: Lens' UpdateRegexPatternSet Text Source #
The RegexPatternSetId of the RegexPatternSet that you want to update. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets .
urpsUpdates :: Lens' UpdateRegexPatternSet (NonEmpty RegexPatternSetUpdate) Source #
An array of RegexPatternSetUpdate objects that you want to insert into or delete from a RegexPatternSet .
urpsChangeToken :: Lens' UpdateRegexPatternSet Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
updateRegexPatternSetResponse Source #
Arguments
| :: Int | |
| -> UpdateRegexPatternSetResponse |
Creates a value of UpdateRegexPatternSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urpsrsChangeToken- TheChangeTokenthat you used to submit theUpdateRegexPatternSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.urpsrsResponseStatus- -- | The response status code.
data UpdateRegexPatternSetResponse Source #
See: updateRegexPatternSetResponse smart constructor.
Instances
Response Lenses
urpsrsChangeToken :: Lens' UpdateRegexPatternSetResponse (Maybe Text) Source #
The ChangeToken that you used to submit the UpdateRegexPatternSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
urpsrsResponseStatus :: Lens' UpdateRegexPatternSetResponse Int Source #
- - | The response status code.