modify_managed_prefix_list
async
¶
modify_managed_prefix_list(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
52531 52532 52533 52534 52535 52536 52537 52538 52539 52540 52541 52542 52543 52544 52545 52546 52547 52548 52549 52550 52551 52552 52553 52554 52555 52556 52557 52558 52559 52560 52561 52562 52563 52564 52565 52566 52567 52568 52569 52570 52571 52572 52573 52574 52575 52576 52577 52578 52579 52580 52581 52582 52583 52584 52585 52586 52587 52588 52589 52590 52591 52592 52593 52594 52595 52596 52597 52598 52599 52600 52601 52602 52603 52604 52605 52606 52607 52608 52609 52610 52611 52612 52613 52614 | |