Class CfnRuleGroup.AsnMatchStatementProperty
A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.AsnMatchStatementProperty : CfnRuleGroup.IAsnMatchStatementProperty
Syntax (vb)
Public Class CfnRuleGroup.AsnMatchStatementProperty Implements CfnRuleGroup.IAsnMatchStatementProperty
Remarks
For additional details, see ASN match rule statement in the AWS WAF Developer Guide .
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
Constructors
AsnMatchStatementProperty() | A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address. |
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. |
Constructors
AsnMatchStatementProperty()
A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address.
public AsnMatchStatementProperty()
Remarks
For additional details, see ASN match rule statement in the AWS WAF Developer Guide .
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"
}
};
Properties
AsnList
Contains one or more Autonomous System Numbers (ASNs).
public object? AsnList { get; set; }
Property Value
Remarks
ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.
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.
public object? ForwardedIpConfig { get; set; }
Property Value
Remarks
Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.