Show / Hide Table of Contents

Class CfnWebACLProps

Properties for defining a CfnWebACL.

Inheritance
System.Object
CfnWebACLProps
Implements
ICfnWebACLProps
Namespace: Amazon.CDK.AWS.WAFRegional
Assembly: Amazon.CDK.AWS.WAFRegional.dll
Syntax (csharp)
public class CfnWebACLProps : Object, ICfnWebACLProps
Syntax (vb)
Public Class CfnWebACLProps
    Inherits Object
    Implements ICfnWebACLProps
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFRegional;

var cfnWebACLProps = new CfnWebACLProps {
    DefaultAction = new ActionProperty {
        Type = "type"
    },
    MetricName = "metricName",
    Name = "name",

    // the properties below are optional
    Rules = new [] { new RuleProperty {
        Action = new ActionProperty {
            Type = "type"
        },
        Priority = 123,
        RuleId = "ruleId"
    } }
};

Synopsis

Constructors

CfnWebACLProps()

Properties

DefaultAction

The action to perform if none of the Rules contained in the WebACL match.

MetricName

A name for the metrics for this WebACL .

Name

A friendly name or description of the WebACL .

Rules

An array that contains the action for each Rule in a WebACL , the priority of the Rule , and the ID of the Rule .

Constructors

CfnWebACLProps()

public CfnWebACLProps()

Properties

DefaultAction

The action to perform if none of the Rules contained in the WebACL match.

public object DefaultAction { get; set; }
Property Value

System.Object

Remarks

The action is specified by the WafAction object.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-defaultaction

MetricName

A name for the metrics for this WebACL .

public string MetricName { get; set; }
Property Value

System.String

Remarks

The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-metricname

Name

A friendly name or description of the WebACL .

public string Name { get; set; }
Property Value

System.String

Remarks

You can't change the name of a WebACL after you create it.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-name

Rules

An array that contains the action for each Rule in a WebACL , the priority of the Rule , and the ID of the Rule .

public object Rules { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-webacl.html#cfn-wafregional-webacl-rules

Implements

ICfnWebACLProps
Back to top Generated by DocFX