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 an IPSet. You can't delete an IPSet
if it's
still used in any Rules
or if it still includes any IP addresses.
If you just want to remove an IPSet
from a Rule
, use UpdateRule.
To permanently delete an IPSet
from AWS WAF, perform the following
steps:
- Update the
IPSet
to remove IP address ranges, if any. For more information, see UpdateIPSet. - Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aDeleteIPSet
request. - Submit a
DeleteIPSet
request.
Synopsis
- data DeleteIPSet = DeleteIPSet' {
- iPSetId :: Text
- changeToken :: Text
- newDeleteIPSet :: Text -> Text -> DeleteIPSet
- deleteIPSet_iPSetId :: Lens' DeleteIPSet Text
- deleteIPSet_changeToken :: Lens' DeleteIPSet Text
- data DeleteIPSetResponse = DeleteIPSetResponse' {
- changeToken :: Maybe Text
- httpStatus :: Int
- newDeleteIPSetResponse :: Int -> DeleteIPSetResponse
- deleteIPSetResponse_changeToken :: Lens' DeleteIPSetResponse (Maybe Text)
- deleteIPSetResponse_httpStatus :: Lens' DeleteIPSetResponse Int
Creating a Request
data DeleteIPSet Source #
See: newDeleteIPSet
smart constructor.
DeleteIPSet' | |
|
Instances
Create a value of DeleteIPSet
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:iPSetId:DeleteIPSet'
, deleteIPSet_iPSetId
- The IPSetId
of the IPSet that you want to delete. IPSetId
is
returned by CreateIPSet and by ListIPSets.
$sel:changeToken:DeleteIPSet'
, deleteIPSet_changeToken
- The value returned by the most recent call to GetChangeToken.
Request Lenses
deleteIPSet_iPSetId :: Lens' DeleteIPSet Text Source #
The IPSetId
of the IPSet that you want to delete. IPSetId
is
returned by CreateIPSet and by ListIPSets.
deleteIPSet_changeToken :: Lens' DeleteIPSet Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
data DeleteIPSetResponse Source #
See: newDeleteIPSetResponse
smart constructor.
DeleteIPSetResponse' | |
|
Instances
newDeleteIPSetResponse Source #
Create a value of DeleteIPSetResponse
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:DeleteIPSet'
, deleteIPSetResponse_changeToken
- The ChangeToken
that you used to submit the DeleteIPSet
request. You
can also use this value to query the status of the request. For more
information, see GetChangeTokenStatus.
$sel:httpStatus:DeleteIPSetResponse'
, deleteIPSetResponse_httpStatus
- The response's http status code.
Response Lenses
deleteIPSetResponse_changeToken :: Lens' DeleteIPSetResponse (Maybe Text) Source #
The ChangeToken
that you used to submit the DeleteIPSet
request. You
can also use this value to query the status of the request. For more
information, see GetChangeTokenStatus.
deleteIPSetResponse_httpStatus :: Lens' DeleteIPSetResponse Int Source #
The response's http status code.