| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WAFRegional.DeleteWebACL
Description
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
WebACLto removeRules, if any. For more information, see UpdateWebACL. - Use GetChangeToken to get the change token that you provide in the
ChangeTokenparameter of aDeleteWebACLrequest. - Submit a
DeleteWebACLrequest.
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.
Constructors
| DeleteWebACL' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteWebACL |
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:
DeleteWebACL, deleteWebACL_webACLId - The WebACLId of the WebACL that you want to delete. WebACLId is
returned by CreateWebACL and by ListWebACLs.
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.
Constructors
| DeleteWebACLResponse' | |
Fields
| |
Instances
newDeleteWebACLResponse Source #
Arguments
| :: Int | |
| -> DeleteWebACLResponse |
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:
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.