Module Smaws_Client_WAFV2.GetWebACLForResource

val request : Smaws_Lib.Context.t -> get_web_acl_for_resource_request -> (get_web_acl_for_resource_response, [> Smaws_Lib.Protocols.AwsJson.error | `WAFInternalErrorException of waf_internal_error_exception | `WAFInvalidOperationException of waf_invalid_operation_exception | `WAFInvalidParameterException of waf_invalid_parameter_exception | `WAFNonexistentItemException of waf_nonexistent_item_exception | `WAFUnavailableEntityException of waf_unavailable_entity_exception ]) Stdlib.result

Retrieves the WebACL for the specified resource.

This call uses GetWebACL, to verify that your account has permission to access the retrieved web ACL. If you get an error that indicates that your account isn't authorized to perform wafv2:GetWebACL on the resource, that error won't be included in your CloudTrail event history.

For Amazon CloudFront, don't use this call. Instead, call the CloudFront action GetDistributionConfig. For information, see GetDistributionConfig in the Amazon CloudFront API Reference.

Required permissions for customer-managed IAM policies

This call requires permissions that are specific to the protected resource type. For details, see Permissions for GetWebACLForResource in the WAF Developer Guide.