aws ec2 modify-managed-prefix-list
Modifies the specified managed prefix list. AWS CLI reference
1 example 8 options Its page in the AWS CLI reference
Examples
To modify a prefix list
The following modify-managed-prefix-list example adds an entry to the specified prefix list.
aws ec2 modify-managed-prefix-list --prefix-list-id pl-0123456abcabcabc1 --add-entries Cidr=10.1.0.0/16,Description=vpc-c --current-version 1Identify--prefix-list-idThe ID of the prefix list.--add-entriesOne or more entries to add to the prefix list.--current-versionThe current version of the prefix list.Its output
{
"PrefixList": {
"PrefixListId": "pl-0123456abcabcabc1",
"AddressFamily": "IPv4",
"State": "modify-in-progress",
"PrefixListArn": "arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456abcabcabc1",
"PrefixListName": "vpc-cidrs",
"MaxEntries": 10,
"Version": 1,
"OwnerId": "123456789012"
}
}For more information, see Managed prefix lists in the Amazon VPC User Guide.
Options
--add-entriesOne or more entries to add to the prefix list.--current-versionThe current version of the prefix list.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--ipam-prefix-list-resolver-sync-enabledIndicates whether synchronization with an IPAM prefix list resolver should be enabled for this managed prefix list.--max-entriesThe maximum number of entries for the prefix list.--prefix-list-idThe ID of the prefix list.--prefix-list-nameA name for the prefix list.--remove-entriesOne or more entries to remove from the prefix list.