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 WebACL. You can't delete a WebACL
if it still
contains any Rules
.
To delete a WebACL
, perform the following steps:
- Update the
WebACL
to removeRules
, if any. For more information, see UpdateWebACL. - Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aDeleteWebACL
request. - Submit a
DeleteWebACL
request.
Synopsis
- data DeleteWebACL = DeleteWebACL' {
- webACLId :: Text
- changeToken :: Text
- newDeleteWebACL :: Text -> Text -> DeleteWebACL
- deleteWebACL_webACLId :: Lens' DeleteWebACL Text
- deleteWebACL_changeToken :: Lens' DeleteWebACL Text
- data DeleteWebACLResponse = DeleteWebACLResponse' {
- changeToken :: Maybe Text
- httpStatus :: Int
- newDeleteWebACLResponse :: Int -> DeleteWebACLResponse
- deleteWebACLResponse_changeToken :: Lens' DeleteWebACLResponse (Maybe Text)
- deleteWebACLResponse_httpStatus :: Lens' DeleteWebACLResponse Int
Creating a Request
data DeleteWebACL Source #
See: newDeleteWebACL
smart constructor.
DeleteWebACL' | |
|
Instances
Create a value of DeleteWebACL
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:webACLId:DeleteWebACL'
, deleteWebACL_webACLId
- The WebACLId
of the WebACL that you want to delete. WebACLId
is
returned by CreateWebACL and by ListWebACLs.
$sel:changeToken:DeleteWebACL'
, deleteWebACL_changeToken
- The value returned by the most recent call to GetChangeToken.
Request Lenses
deleteWebACL_webACLId :: Lens' DeleteWebACL Text Source #
The WebACLId
of the WebACL that you want to delete. WebACLId
is
returned by CreateWebACL and by ListWebACLs.
deleteWebACL_changeToken :: Lens' DeleteWebACL Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
data DeleteWebACLResponse Source #
See: newDeleteWebACLResponse
smart constructor.
DeleteWebACLResponse' | |
|
Instances
newDeleteWebACLResponse Source #
Create a value of DeleteWebACLResponse
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:DeleteWebACL'
, deleteWebACLResponse_changeToken
- The ChangeToken
that you used to submit the DeleteWebACL
request.
You can also use this value to query the status of the request. For more
information, see GetChangeTokenStatus.
$sel:httpStatus:DeleteWebACLResponse'
, deleteWebACLResponse_httpStatus
- The response's http status code.
Response Lenses
deleteWebACLResponse_changeToken :: Lens' DeleteWebACLResponse (Maybe Text) Source #
The ChangeToken
that you used to submit the DeleteWebACL
request.
You can also use this value to query the status of the request. For more
information, see GetChangeTokenStatus.
deleteWebACLResponse_httpStatus :: Lens' DeleteWebACLResponse Int Source #
The response's http status code.