WebAclAssociationArgs

data class WebAclAssociationArgs(val resourceArn: Output<String>? = null, val webAclArn: Output<String>? = null) : ConvertibleToJava<WebAclAssociationArgs>

Creates a WAFv2 Web ACL Association.

NOTE on associating a WAFv2 Web ACL with a Cloudfront distribution: Do not use this resource to associate a WAFv2 Web ACL with a Cloudfront Distribution. The AWS API call backing this resource notes that you should use the web_acl_id property on the cloudfront_distribution instead. 1: https://docs.aws.amazon.com/waf/latest/APIReference/API_AssociateWebACL.html

Import

Using pulumi import, import WAFv2 Web ACL Association using WEB_ACL_ARN,RESOURCE_ARN. For example:

$ pulumi import aws:wafv2/webAclAssociation:WebAclAssociation example arn:aws:wafv2:...7ce849ea,arn:aws:apigateway:...ages/name

Constructors

Link copied to clipboard
constructor(resourceArn: Output<String>? = null, webAclArn: Output<String>? = null)

Properties

Link copied to clipboard
val resourceArn: Output<String>? = null

The Amazon Resource Name (ARN) of the resource to associate with the web ACL. This must be an ARN of an Application Load Balancer, an Amazon API Gateway stage (REST only, HTTP is unsupported), an Amazon Cognito User Pool, an Amazon AppSync GraphQL API, an Amazon App Runner service, or an Amazon Verified Access instance.

Link copied to clipboard
val webAclArn: Output<String>? = null

The Amazon Resource Name (ARN) of the Web ACL that you want to associate with the resource.

Functions

Link copied to clipboard
open override fun toJava(): WebAclAssociationArgs