Show / Hide Table of Contents

Class CfnWebACLAssociationProps

Properties for defining a CfnWebACLAssociation.

Inheritance
object
CfnWebACLAssociationProps
Implements
ICfnWebACLAssociationProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACLAssociationProps : ICfnWebACLAssociationProps
Syntax (vb)
Public Class CfnWebACLAssociationProps Implements ICfnWebACLAssociationProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html

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 CfnWebACLAssociation.

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html

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

object

Remarks

The ARN must be in one of the following formats:

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-resourcearn

    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; }
    Property Value

    string

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-webaclarn

    Implements

    ICfnWebACLAssociationProps
    Back to top Generated by DocFX