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 |
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
ByteMatchSet
to remove filters, if any. For more information, seeUpdateByteMatchSet
. - Use
GetChangeToken
to get the change token that you provide in theChangeToken
parameter of aDeleteByteMatchSet
request. - Submit a
DeleteByteMatchSet
request.
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
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
- TheByteMatchSetId
of theByteMatchSet
that you want to delete.ByteMatchSetId
is returned byCreateByteMatchSet
and 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 #
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
- TheChangeToken
that you used to submit theDeleteByteMatchSet
request. 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.