| 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 |
Network.AWS.WAF.DeleteWebACL
Description
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, seeUpdateWebACL. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteWebACLrequest. - Submit a
DeleteWebACLrequest.
Synopsis
- deleteWebACL :: Text -> Text -> DeleteWebACL
- data DeleteWebACL
- dwaWebACLId :: Lens' DeleteWebACL Text
- dwaChangeToken :: Lens' DeleteWebACL Text
- deleteWebACLResponse :: Int -> DeleteWebACLResponse
- data DeleteWebACLResponse
- dwarsChangeToken :: Lens' DeleteWebACLResponse (Maybe Text)
- dwarsResponseStatus :: Lens' DeleteWebACLResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeleteWebACL |
Creates a value of DeleteWebACL with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dwaWebACLId- TheWebACLIdof theWebACLthat you want to delete.WebACLIdis returned byCreateWebACLand byListWebACLs.dwaChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteWebACL Source #
See: deleteWebACL smart constructor.
Instances
Request Lenses
dwaWebACLId :: Lens' DeleteWebACL Text Source #
The WebACLId of the WebACL that you want to delete. WebACLId is returned by CreateWebACL and by ListWebACLs .
dwaChangeToken :: Lens' DeleteWebACL Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
Arguments
| :: Int | |
| -> DeleteWebACLResponse |
Creates a value of DeleteWebACLResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dwarsChangeToken- TheChangeTokenthat you used to submit theDeleteWebACLrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.dwarsResponseStatus- -- | The response status code.
data DeleteWebACLResponse Source #
See: deleteWebACLResponse smart constructor.
Instances
Response Lenses
dwarsChangeToken :: 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 .
dwarsResponseStatus :: Lens' DeleteWebACLResponse Int Source #
- - | The response status code.