modify_managed_prefix_list
¶
modify_managed_prefix_list(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
prefix_list_id: Optional[PrefixListResourceId] = None,
current_version: Optional[Long] = None,
prefix_list_name: Optional[String] = None,
add_entries: Optional[AddPrefixListEntries] = None,
remove_entries: Optional[RemovePrefixListEntries] = None,
max_entries: Optional[Integer] = None,
ipam_prefix_list_resolver_sync_enabled: Optional[BoxedBoolean] = None,
) -> ModifyManagedPrefixListResult
Modifies the specified managed prefix list.
Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.
If you specify a current version number that does not match the true current version number, the request fails.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
prefix_list_id(Optional[PrefixListResourceId], default:None) –The ID of the prefix list.
-
current_version(Optional[Long], default:None) –The current version of the prefix list.
-
prefix_list_name(Optional[String], default:None) –A name for the prefix list.
-
add_entries(Optional[AddPrefixListEntries], default:None) –One or more entries to add to the prefix list.
-
remove_entries(Optional[RemovePrefixListEntries], default:None) –One or more entries to remove from the prefix list.
-
max_entries(Optional[Integer], default:None) –The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.
If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.
-
ipam_prefix_list_resolver_sync_enabled(Optional[BoxedBoolean], default:None) –Indicates whether synchronization with an IPAM prefix list resolver should be enabled for this managed prefix list. When enabled, the prefix list CIDRs are automatically updated based on the associated resolver's CIDR selection rules.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
51810 51811 51812 51813 51814 51815 51816 51817 51818 51819 51820 51821 51822 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 51836 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 51854 51855 51856 51857 51858 51859 51860 51861 51862 51863 51864 51865 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 51878 51879 51880 51881 51882 51883 51884 51885 51886 51887 51888 51889 51890 51891 51892 | |