CmdID

CmdID / aws / aws ec2

aws ec2 create-managed-prefix-list

Creates a managed prefix list. AWS CLI reference

1 example 7 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a prefix list

The following create-managed-prefix-list example creates an IPv4 prefix list with a maximum of 10 entries, and creates 2 entries in the prefix list.

aws ec2 create-managed-prefix-list --address-family IPv4 --max-entries 10 --entries Cidr=10.0.0.0/16,Description=vpc-a Cidr=10.2.0.0/16,Description=vpc-b --prefix-list-name vpc-cidrsIdentify
--address-familyThe IP address type.
--max-entriesThe maximum number of entries for the prefix list.
--entriesOne or more entries for the prefix list.
--prefix-list-nameA name for the prefix list.
Its output
{
    "PrefixList": {
        "PrefixListId": "pl-0123456abcabcabc1",
        "AddressFamily": "IPv4",
        "State": "create-in-progress",
        "PrefixListArn": "arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456abcabcabc1",
        "PrefixListName": "vpc-cidrs",
        "MaxEntries": 10,
        "Version": 1,
        "Tags": [],
        "OwnerId": "123456789012"
    }
}

For more information, see Managed prefix lists in the Amazon VPC User Guide.

Options

7 in the AWS CLI reference
--address-familyThe IP address type.
--client-tokenUnique, case-sensitive identifier you provide to ensure the idempotency of the request.
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--entriesOne or more entries for the prefix list.
--max-entriesThe maximum number of entries for the prefix list.
--prefix-list-nameA name for the prefix list.
--tag-specificationsThe tags to apply to the prefix list during creation.