aws-cdk-lib.aws_waf.CfnIPSetProps

interface CfnIPSetProps

LanguageType name
.NETAmazon.CDK.AWS.WAF.CfnIPSetProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswaf#CfnIPSetProps
Javasoftware.amazon.awscdk.services.waf.CfnIPSetProps
Pythonaws_cdk.aws_waf.CfnIPSetProps
TypeScript aws-cdk-lib » aws_waf » CfnIPSetProps

Properties for defining a CfnIPSet.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_waf as waf } from 'aws-cdk-lib';
const cfnIPSetProps: waf.CfnIPSetProps = {
  name: 'name',

  // the properties below are optional
  ipSetDescriptors: [{
    type: 'type',
    value: 'value',
  }],
};

Properties

NameTypeDescription
namestringThe name of the IPSet .
ipSetDescriptors?IResolvable | IResolvable | IPSetDescriptorProperty[]The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.

name

Type: string

The name of the IPSet .

You can't change the name of an IPSet after you create it.


ipSetDescriptors?

Type: IResolvable | IResolvable | IPSetDescriptorProperty[] (optional)

The IP address type ( IPV4 or IPV6 ) and the IP address range (in CIDR notation) that web requests originate from.

If the WebACL is associated with an Amazon CloudFront distribution and the viewer did not use an HTTP proxy or a load balancer to send the request, this is the value of the c-ip field in the CloudFront access logs.