Module Smaws_Client_WAFV2.AssociateWebACL

Associates a web ACL with a resource, to protect the resource.

Use this for all resource types except for Amazon CloudFront distributions. For Amazon CloudFront, call UpdateDistribution for the distribution and provide the Amazon Resource Name (ARN) of the web ACL in the web ACL ID. For information, see UpdateDistribution in the Amazon CloudFront Developer Guide.

Required permissions for customer-managed IAM policies

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

Temporary inconsistencies during updates

When you create or change a web ACL or other WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes.

The following are examples of the temporary inconsistencies that you might notice during change propagation:

val request : Smaws_Lib.Context.t -> Types.associate_web_acl_request -> (Types.associate_web_acl_response, [> Smaws_Lib.Protocols.AwsJson.error | `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 | `WAFUnavailableEntityException of Types.waf_unavailable_entity_exception ]) Stdlib.result