Class CfnWebACLAssociationProps
Properties for defining a CfnWebACLAssociation.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACLAssociationProps : ICfnWebACLAssociationProps
Syntax (vb)
Public Class CfnWebACLAssociationProps Implements ICfnWebACLAssociationProps
Remarks
ExampleMetadata: infused
Examples
EventApi api;
CfnWebACL webAcl;
// Associate waf with Event API
// Associate waf with Event API
new CfnWebACLAssociation(this, "WafAssociation", new CfnWebACLAssociationProps {
ResourceArn = api.ApiArn,
WebAclArn = webAcl.AttrArn
});
Synopsis
Constructors
| CfnWebACLAssociationProps() | Properties for defining a |
Properties
| ResourceArn | The Amazon Resource Name (ARN) of the resource to associate with the web ACL. |
| WebAclArn | The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource. |
Constructors
CfnWebACLAssociationProps()
Properties for defining a CfnWebACLAssociation.
public CfnWebACLAssociationProps()
Remarks
ExampleMetadata: infused
Examples
EventApi api;
CfnWebACL webAcl;
// Associate waf with Event API
// Associate waf with Event API
new CfnWebACLAssociation(this, "WafAssociation", new CfnWebACLAssociationProps {
ResourceArn = api.ApiArn,
WebAclArn = webAcl.AttrArn
});
Properties
ResourceArn
The Amazon Resource Name (ARN) of the resource to associate with the web ACL.
public object ResourceArn { get; set; }
Property Value
Remarks
The ARN must be in one of the following formats:
Type union: either string or IGraphQLApiRef or ILoadBalancerRef or IWebACLRef
WebAclArn
The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
public string WebAclArn { get; set; }