| 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.DeleteByteMatchSet
Description
Permanently deletes a ByteMatchSet . You can't delete a ByteMatchSet if it's still used in any Rules or if it still includes any ByteMatchTuple objects (any filters).
If you just want to remove a ByteMatchSet from a Rule , use UpdateRule .
To permanently delete a ByteMatchSet , perform the following steps:
- Update the
ByteMatchSetto remove filters, if any. For more information, seeUpdateByteMatchSet. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteByteMatchSetrequest. - Submit a
DeleteByteMatchSetrequest.
Synopsis
- deleteByteMatchSet :: Text -> Text -> DeleteByteMatchSet
- data DeleteByteMatchSet
- dbmsByteMatchSetId :: Lens' DeleteByteMatchSet Text
- dbmsChangeToken :: Lens' DeleteByteMatchSet Text
- deleteByteMatchSetResponse :: Int -> DeleteByteMatchSetResponse
- data DeleteByteMatchSetResponse
- dbmsrsChangeToken :: Lens' DeleteByteMatchSetResponse (Maybe Text)
- dbmsrsResponseStatus :: Lens' DeleteByteMatchSetResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeleteByteMatchSet |
Creates a value of DeleteByteMatchSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbmsByteMatchSetId- TheByteMatchSetIdof theByteMatchSetthat you want to delete.ByteMatchSetIdis returned byCreateByteMatchSetand byListByteMatchSets.dbmsChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteByteMatchSet Source #
See: deleteByteMatchSet smart constructor.
Instances
Request Lenses
dbmsByteMatchSetId :: Lens' DeleteByteMatchSet Text Source #
The ByteMatchSetId of the ByteMatchSet that you want to delete. ByteMatchSetId is returned by CreateByteMatchSet and by ListByteMatchSets .
dbmsChangeToken :: Lens' DeleteByteMatchSet Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
deleteByteMatchSetResponse Source #
Arguments
| :: Int | |
| -> DeleteByteMatchSetResponse |
Creates a value of DeleteByteMatchSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbmsrsChangeToken- TheChangeTokenthat you used to submit theDeleteByteMatchSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.dbmsrsResponseStatus- -- | The response status code.
data DeleteByteMatchSetResponse Source #
See: deleteByteMatchSetResponse smart constructor.
Instances
Response Lenses
dbmsrsChangeToken :: Lens' DeleteByteMatchSetResponse (Maybe Text) Source #
The ChangeToken that you used to submit the DeleteByteMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
dbmsrsResponseStatus :: Lens' DeleteByteMatchSetResponse Int Source #
- - | The response status code.