modify_ipam_resource_cidr
¶
modify_ipam_resource_cidr(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
resource_id: Optional[String] = None,
resource_cidr: Optional[String] = None,
resource_region: Optional[String] = None,
current_ipam_scope_id: Optional[IpamScopeId] = None,
destination_ipam_scope_id: Optional[IpamScopeId] = None,
monitored: Optional[Boolean] = None,
) -> ModifyIpamResourceCidrResult
Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.
For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs 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. -
resource_id(Optional[String], default:None) –The ID of the resource you want to modify.
-
resource_cidr(Optional[String], default:None) –The CIDR of the resource you want to modify.
-
resource_region(Optional[String], default:None) –The Amazon Web Services Region of the resource you want to modify.
-
current_ipam_scope_id(Optional[IpamScopeId], default:None) –The ID of the current scope that the resource CIDR is in.
-
destination_ipam_scope_id(Optional[IpamScopeId], default:None) –The ID of the scope you want to transfer the resource CIDR to.
-
monitored(Optional[Boolean], default:None) –Determines if the resource is monitored by IPAM. If a resource is monitored, the resource is discovered by IPAM and you can view details about the resource’s CIDR.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
51354 51355 51356 51357 51358 51359 51360 51361 51362 51363 51364 51365 51366 51367 51368 51369 51370 51371 51372 51373 51374 51375 51376 51377 51378 51379 51380 51381 51382 51383 51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 51394 51395 51396 51397 51398 51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 51410 51411 51412 51413 51414 51415 51416 51417 51418 51419 51420 51421 51422 51423 51424 | |