modify_ipam_pool
¶
modify_ipam_pool(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 51094 51095 51096 51097 51098 51099 51100 51101 51102 51103 51104 51105 51106 51107 51108 51109 51110 51111 51112 51113 51114 51115 51116 51117 51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 51128 51129 51130 51131 51132 51133 51134 51135 51136 51137 51138 51139 51140 51141 51142 51143 51144 51145 51146 51147 51148 51149 51150 51151 51152 51153 51154 51155 51156 51157 51158 51159 51160 51161 51162 51163 51164 51165 51166 51167 51168 51169 51170 51171 | |