Show / Hide Table of Contents

Interface CfnRuleGroup.IAsnMatchStatementProperty

A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address.

Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnRuleGroup.IAsnMatchStatementProperty
Syntax (vb)
Public Interface CfnRuleGroup.IAsnMatchStatementProperty
Remarks

For additional details, see ASN match rule statement in the AWS WAF Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-asnmatchstatement.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.WAFv2;

             var asnMatchStatementProperty = new AsnMatchStatementProperty {
                 AsnList = new [] { 123 },
                 ForwardedIpConfig = new ForwardedIPConfigurationProperty {
                     FallbackBehavior = "fallbackBehavior",
                     HeaderName = "headerName"
                 }
             };

Synopsis

Properties

AsnList

Contains one or more Autonomous System Numbers (ASNs).

ForwardedIpConfig

The configuration for inspecting IP addresses to match against an ASN in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.

Properties

AsnList

Contains one or more Autonomous System Numbers (ASNs).

object? AsnList { get; }
Property Value

object

Remarks

ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-asnmatchstatement.html#cfn-wafv2-rulegroup-asnmatchstatement-asnlist

Type union: either (double)[] or IResolvable

ForwardedIpConfig

The configuration for inspecting IP addresses to match against an ASN in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.

object? ForwardedIpConfig { get; }
Property Value

object

Remarks

Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-asnmatchstatement.html#cfn-wafv2-rulegroup-asnmatchstatement-forwardedipconfig

Type union: either IResolvable or CfnRuleGroup.IForwardedIPConfigurationProperty

Back to top Generated by DocFX