modify_ipam_pool
async
¶
modify_ipam_pool(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
ipam_pool_id: Optional[IpamPoolId] = None,
description: Optional[String] = None,
auto_import: Optional[Boolean] = None,
allocation_min_netmask_length: Optional[IpamNetmaskLength] = None,
allocation_max_netmask_length: Optional[IpamNetmaskLength] = None,
allocation_default_netmask_length: Optional[IpamNetmaskLength] = None,
clear_allocation_default_netmask_length: Optional[Boolean] = None,
add_allocation_resource_tags: Optional[RequestIpamResourceTagList] = None,
remove_allocation_resource_tags: Optional[RequestIpamResourceTagList] = None,
) -> ModifyIpamPoolResult
Modify the configurations of an IPAM pool.
For more information, see Modify a pool in the Amazon VPC IPAM User Guide.
Parameters:
-
dry_run(Optional[Boolean], default:None) –A check for 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. -
ipam_pool_id(Optional[IpamPoolId], default:None) –The ID of the IPAM pool you want to modify.
-
description(Optional[String], default:None) –The description of the IPAM pool you want to modify.
-
auto_import(Optional[Boolean], default:None) –If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
-
allocation_min_netmask_length(Optional[IpamNetmaskLength], default:None) –The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length.
-
allocation_max_netmask_length(Optional[IpamNetmaskLength], default:None) –The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length.
-
allocation_default_netmask_length(Optional[IpamNetmaskLength], default:None) –The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
-
clear_allocation_default_netmask_length(Optional[Boolean], default:None) –Clear the default netmask length allocation rule for this pool.
-
add_allocation_resource_tags(Optional[RequestIpamResourceTagList], default:None) –Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
-
remove_allocation_resource_tags(Optional[RequestIpamResourceTagList], default:None) –Remove tag allocation rules from a pool.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
51788 51789 51790 51791 51792 51793 51794 51795 51796 51797 51798 51799 51800 51801 51802 51803 51804 51805 51806 51807 51808 51809 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 | |