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 |
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
GetChangeToken
to get the change token that you provide in theChangeToken
parameter of anUpdateRegexPatternSet
request. - Submit an
UpdateRegexPatternSet
request 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 .
- 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 #
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
- TheRegexPatternSetId
of theRegexPatternSet
that you want to update.RegexPatternSetId
is returned byCreateRegexPatternSet
and byListRegexPatternSets
.urpsUpdates
- An array ofRegexPatternSetUpdate
objects 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.
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 #
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
- TheChangeToken
that you used to submit theUpdateRegexPatternSet
request. 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.
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.