Show / Hide Table of Contents

Interface ICfnWebACLProps

Properties for defining a CfnWebACL.

Namespace: Amazon.CDK.AWS.WAF
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnWebACLProps
Syntax (vb)
Public Interface ICfnWebACLProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-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.WAF;

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

                 // the properties below are optional
                 Rules = new [] { new ActivatedRuleProperty {
                     Priority = 123,
                     RuleId = "ruleId",

                     // the properties below are optional
                     Action = new WafActionProperty {
                         Type = "type"
                     }
                 } }
             };

Synopsis

Properties

DefaultAction

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

MetricName

The name of 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 .

Properties

DefaultAction

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

object DefaultAction { get; }
Property Value

object

Remarks

The action is specified by the WafAction object.

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

Type union: either IResolvable or CfnWebACL.IWafActionProperty

MetricName

The name of the metrics for this WebACL .

string MetricName { get; }
Property Value

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 .

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

Name

A friendly name or description of the WebACL .

string Name { get; }
Property Value

string

Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-webacl.html#cfn-waf-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 .

object? Rules { get; }
Property Value

object

Remarks

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

Type union: either IResolvable or (either IResolvable or CfnWebACL.IActivatedRuleProperty)[]

Back to top Generated by DocFX