CfnPrefixListProps

class aws_cdk.aws_ec2.CfnPrefixListProps(*, address_family, prefix_list_name, entries=None, max_entries=None, tags=None)

Bases: object

Properties for defining a CfnPrefixList.

Parameters:
  • address_family (str) – The IP address type. Valid Values: IPv4 | IPv6

  • prefix_list_name (str) – A name for the prefix list. Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .

  • entries (Union[IResolvable, Sequence[Union[IResolvable, EntryProperty, Dict[str, Any]]], None]) – The entries for the prefix list.

  • max_entries (Union[int, float, None]) – 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.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags for the prefix list.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_prefix_list_props = ec2.CfnPrefixListProps(
    address_family="addressFamily",
    prefix_list_name="prefixListName",

    # the properties below are optional
    entries=[ec2.CfnPrefixList.EntryProperty(
        cidr="cidr",

        # the properties below are optional
        description="description"
    )],
    max_entries=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

address_family

The IP address type.

Valid Values: IPv4 | IPv6

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-addressfamily

entries

The entries for the prefix list.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-entries

max_entries

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-maxentries

prefix_list_name

A name for the prefix list.

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-prefixlistname

tags

The tags for the prefix list.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-prefixlist.html#cfn-ec2-prefixlist-tags