aws-cdk-lib.aws_ec2.CfnPrefixListProps

interface CfnPrefixListProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnPrefixListProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnPrefixListProps
Javasoftware.amazon.awscdk.services.ec2.CfnPrefixListProps
Pythonaws_cdk.aws_ec2.CfnPrefixListProps
TypeScript aws-cdk-lib » aws_ec2 » CfnPrefixListProps

Properties for defining a CfnPrefixList.

Example

// 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',
  maxEntries: 123,
  prefixListName: 'prefixListName',

  // the properties below are optional
  entries: [{
    cidr: 'cidr',

    // the properties below are optional
    description: 'description',
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
addressFamilystringThe IP address type.
maxEntriesnumberThe maximum number of entries for the prefix list.
prefixListNamestringA name for the prefix list.
entries?IResolvable | IResolvable | EntryProperty[]One or more entries for the prefix list.
tags?CfnTag[]The tags for the prefix list.

addressFamily

Type: string

The IP address type.

Valid Values: IPv4 | IPv6


maxEntries

Type: number

The maximum number of entries for the prefix list.


prefixListName

Type: string

A name for the prefix list.

Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .


entries?

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

One or more entries for the prefix list.


tags?

Type: CfnTag[] (optional)

The tags for the prefix list.