Smaws_Client_WAFV2.DeleteWebACL
Deletes the specified WebACL
.
You can only use this if ManagedByFirewallManager
is false in the web ACL.
Before deleting any web ACL, first disassociate it from all resources.
To retrieve a list of the resources that are associated with a web ACL, use the following calls:
ListDistributionsByWebACLId
. For information, see ListDistributionsByWebACLId in the Amazon CloudFront API Reference.ListResourcesForWebACL
.To disassociate a resource from a web ACL, use the following calls:
UpdateDistribution
. For information, see UpdateDistribution in the Amazon CloudFront API Reference.DisassociateWebACL
.val request :
Smaws_Lib.Context.t ->
Types.delete_web_acl_request ->
(Types.delete_web_acl_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `WAFAssociatedItemException of Types.waf_associated_item_exception
| `WAFInternalErrorException of Types.waf_internal_error_exception
| `WAFInvalidOperationException of Types.waf_invalid_operation_exception
| `WAFInvalidParameterException of Types.waf_invalid_parameter_exception
| `WAFNonexistentItemException of Types.waf_nonexistent_item_exception
| `WAFOptimisticLockException of Types.waf_optimistic_lock_exception
| `WAFTagOperationException of Types.waf_tag_operation_exception
| `WAFTagOperationInternalErrorException of
Types.waf_tag_operation_internal_error_exception ])
Stdlib.result