AWS::WAFv2::WebACLAssociationAssociates WebACL to Application Load Balancer, CloudFront or API Gateway.
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ResourceArn | string | RequiredCreate-only |
WebACLArn | string | RequiredCreate-only |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::WAFv2::WebACLAssociation
Resources:
MyResource:
Type: AWS::WAFv2::WebACLAssociation
Properties:
ResourceArn: "arn:aws:service:region:account:resource"
WebACLArn: "arn:aws:service:region:account:resource"Permissions CloudFormation needs in your IAM role to manage this resource.
wafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLwafv2:PutPermissionPolicywafv2:GetPermissionPolicyelasticloadbalancing:SetWebACLapigateway:SetWebACLwafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLwafv2:PutPermissionPolicyelasticloadbalancing:SetWebACLapigateway:SetWebACLappsync:SetWebACLwafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLelasticloadbalancing:SetWebACLapigateway:SetWebACLappsync:SetWebACLcognito-idp:AssociateWebACLwafv2:AssociateWebACLwafv2:GetWebACLForResourcewafv2:GetWebACLwafv2:DisassociateWebACLelasticloadbalancing:SetWebACLapigateway:SetWebACLappsync:SetWebACLcognito-idp:AssociateWebACLOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterResourceArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ResourceArnWebACLArn