interface AsnMatchStatementProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.WAFv2.CfnWebACL.AsnMatchStatementProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnWebACL_AsnMatchStatementProperty |
![]() | software.amazon.awscdk.services.wafv2.CfnWebACL.AsnMatchStatementProperty |
![]() | aws_cdk.aws_wafv2.CfnWebACL.AsnMatchStatementProperty |
![]() | aws-cdk-lib » aws_wafv2 » CfnWebACL » AsnMatchStatementProperty |
A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address.
For additional details, see ASN match rule statement in the AWS WAF Developer Guide .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const asnMatchStatementProperty: wafv2.CfnWebACL.AsnMatchStatementProperty = {
asnList: [123],
forwardedIpConfig: {
fallbackBehavior: 'fallbackBehavior',
headerName: 'headerName',
},
};
Properties
Name | Type | Description |
---|---|---|
asn | number[] | IResolvable | Contains one or more Autonomous System Numbers (ASNs). |
forwarded | IResolvable | Forwarded | 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. |
asnList?
Type:
number[] |
IResolvable
(optional)
Contains one or more Autonomous System Numbers (ASNs).
ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.
forwardedIpConfig?
Type:
IResolvable
|
Forwarded
(optional)
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.
Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.