CfnPrefixListProps Struct
Properties for defining a CfnPrefixList.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnPrefixListProps: ec2.CfnPrefixListProps = {
addressFamily: 'addressFamily',
prefixListName: 'prefixListName',
// the properties below are optional
entries: [{
cidr: 'cidr',
// the properties below are optional
description: 'description',
}],
maxEntries: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
addressFamilystringaddress_familystraddressFamilyStringAddressFamilystringAddressFamily*stringrequired#The IP address type.
Valid Values: IPv4 | IPv6
entriesoptionalIResolvable | IResolvable | CfnPrefixList.EntryProperty[]entriesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EntryProperty]]]entriesoptionalIResolvableEntriesoptionalIResolvableEntriesoptionalinterface{}#The entries for the prefix list.
maxEntriesoptionalnumbermax_entriesoptionalint | floatmaxEntriesoptionalNumberMaxEntriesoptionaldoubleMaxEntriesoptional*float64#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.
prefixListNamestringprefix_list_namestrprefixListNameStringPrefixListNamestringPrefixListName*stringrequired#A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .