| 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.DeleteRegexMatchSet
Description
Permanently deletes a RegexMatchSet . You can't delete a RegexMatchSet if it's still used in any Rules or if it still includes any RegexMatchTuples objects (any filters).
If you just want to remove a RegexMatchSet from a Rule , use UpdateRule .
To permanently delete a RegexMatchSet , perform the following steps:
- Update the
RegexMatchSetto remove filters, if any. For more information, seeUpdateRegexMatchSet. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteRegexMatchSetrequest. - Submit a
DeleteRegexMatchSetrequest.
Synopsis
- deleteRegexMatchSet :: Text -> Text -> DeleteRegexMatchSet
- data DeleteRegexMatchSet
- drmsRegexMatchSetId :: Lens' DeleteRegexMatchSet Text
- drmsChangeToken :: Lens' DeleteRegexMatchSet Text
- deleteRegexMatchSetResponse :: Int -> DeleteRegexMatchSetResponse
- data DeleteRegexMatchSetResponse
- drmsrsChangeToken :: Lens' DeleteRegexMatchSetResponse (Maybe Text)
- drmsrsResponseStatus :: Lens' DeleteRegexMatchSetResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeleteRegexMatchSet |
Creates a value of DeleteRegexMatchSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drmsRegexMatchSetId- TheRegexMatchSetIdof theRegexMatchSetthat you want to delete.RegexMatchSetIdis returned byCreateRegexMatchSetand byListRegexMatchSets.drmsChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteRegexMatchSet Source #
See: deleteRegexMatchSet smart constructor.
Instances
Request Lenses
drmsRegexMatchSetId :: Lens' DeleteRegexMatchSet Text Source #
The RegexMatchSetId of the RegexMatchSet that you want to delete. RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets .
drmsChangeToken :: Lens' DeleteRegexMatchSet Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
deleteRegexMatchSetResponse Source #
Arguments
| :: Int | |
| -> DeleteRegexMatchSetResponse |
Creates a value of DeleteRegexMatchSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drmsrsChangeToken- TheChangeTokenthat you used to submit theDeleteRegexMatchSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.drmsrsResponseStatus- -- | The response status code.
data DeleteRegexMatchSetResponse Source #
See: deleteRegexMatchSetResponse smart constructor.
Instances
Response Lenses
drmsrsChangeToken :: Lens' DeleteRegexMatchSetResponse (Maybe Text) Source #
The ChangeToken that you used to submit the DeleteRegexMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
drmsrsResponseStatus :: Lens' DeleteRegexMatchSetResponse Int Source #
- - | The response status code.