AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::PrefixList

CfnPrefixList

Specifies a managed prefix list. You can add one or more entries to the prefix list. Each entry consists of a CIDR block and an optional description.

Import

import { CfnPrefixList } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnPrefixList

Properties

Configuration passed to the constructor as CfnPrefixListProps.

addressFamilyRequired
string

The IP address type. Valid Values: `IPv4` | `IPv6`

prefixListNameRequired
string

A name for the prefix list. Constraints: Up to 255 characters in length. The name cannot start with `com.amazonaws` .

entriesOptional
IResolvable | IResolvable | EntryProperty[]

The entries for the prefix list.

maxEntriesOptional
number

The maximum number of entries for the prefix list. You can't modify the entries and the size of a prefix list at the same time. This property is required when you create a prefix list.

tagsOptional
CfnTag[]

The tags for the prefix list.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic