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 .
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
Remarks
ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.
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
Remarks
Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
Type union: either IResolvable or CfnRuleGroup.IForwardedIPConfigurationProperty