CfnPrefixListProps

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

Bases: object

Properties for defining a CfnPrefixList.

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

  • max_entries (Union[int, float]) – The maximum number of entries for the prefix list.

  • 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]) – One or more entries for the prefix list.

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

Link

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.
import aws_cdk.aws_ec2 as ec2

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

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

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

Attributes

address_family

The IP address type.

Valid Values: IPv4 | IPv6

Link

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

Return type

str

entries

One or more entries for the prefix list.

Link

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

Return type

Union[IResolvable, List[Union[IResolvable, EntryProperty]], None]

max_entries

The maximum number of entries for the prefix list.

Link

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

Return type

Union[int, float]

prefix_list_name

A name for the prefix list.

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

Link

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

Return type

str

tags

The tags for the prefix list.

Link

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

Return type

Optional[List[CfnTag]]