Copyright | (c) 2013-2021 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 |
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
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, see UpdateByteMatchSet. - Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aDeleteByteMatchSet
request. - Submit a
DeleteByteMatchSet
request.
Synopsis
- data DeleteByteMatchSet = DeleteByteMatchSet' {}
- newDeleteByteMatchSet :: Text -> Text -> DeleteByteMatchSet
- deleteByteMatchSet_byteMatchSetId :: Lens' DeleteByteMatchSet Text
- deleteByteMatchSet_changeToken :: Lens' DeleteByteMatchSet Text
- data DeleteByteMatchSetResponse = DeleteByteMatchSetResponse' {
- changeToken :: Maybe Text
- httpStatus :: Int
- newDeleteByteMatchSetResponse :: Int -> DeleteByteMatchSetResponse
- deleteByteMatchSetResponse_changeToken :: Lens' DeleteByteMatchSetResponse (Maybe Text)
- deleteByteMatchSetResponse_httpStatus :: Lens' DeleteByteMatchSetResponse Int
Creating a Request
data DeleteByteMatchSet Source #
See: newDeleteByteMatchSet
smart constructor.
DeleteByteMatchSet' | |
|
Instances
newDeleteByteMatchSet Source #
:: Text | |
-> Text | |
-> DeleteByteMatchSet |
Create a value of DeleteByteMatchSet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:byteMatchSetId:DeleteByteMatchSet'
, deleteByteMatchSet_byteMatchSetId
- The ByteMatchSetId
of the ByteMatchSet that you want to delete.
ByteMatchSetId
is returned by CreateByteMatchSet and by
ListByteMatchSets.
$sel:changeToken:DeleteByteMatchSet'
, deleteByteMatchSet_changeToken
- The value returned by the most recent call to GetChangeToken.
Request Lenses
deleteByteMatchSet_byteMatchSetId :: Lens' DeleteByteMatchSet Text Source #
The ByteMatchSetId
of the ByteMatchSet that you want to delete.
ByteMatchSetId
is returned by CreateByteMatchSet and by
ListByteMatchSets.
deleteByteMatchSet_changeToken :: Lens' DeleteByteMatchSet Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
data DeleteByteMatchSetResponse Source #
See: newDeleteByteMatchSetResponse
smart constructor.
DeleteByteMatchSetResponse' | |
|
Instances
newDeleteByteMatchSetResponse Source #
Create a value of DeleteByteMatchSetResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:changeToken:DeleteByteMatchSet'
, deleteByteMatchSetResponse_changeToken
- 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.
$sel:httpStatus:DeleteByteMatchSetResponse'
, deleteByteMatchSetResponse_httpStatus
- The response's http status code.
Response Lenses
deleteByteMatchSetResponse_changeToken :: 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.
deleteByteMatchSetResponse_httpStatus :: Lens' DeleteByteMatchSetResponse Int Source #
The response's http status code.