unassign_private_ip_addresses
async
¶
unassign_private_ip_addresses(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
ipv4_prefixes: Optional[IpPrefixList] = None,
network_interface_id: Optional[NetworkInterfaceId] = None,
private_ip_addresses: Optional[PrivateIpAddressStringList] = None,
) -> None
Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface.
Parameters:
-
ipv4_prefixes(Optional[IpPrefixList], default:None) –The IPv4 prefixes to unassign from the network interface.
-
network_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the network interface.
-
private_ip_addresses(Optional[PrivateIpAddressStringList], default:None) –The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To unassign a secondary private IP address from a network interface This example unassigns the specified private IP address from the specified network interface.
>>> await client.unassign_private_ip_addresses(network_interface_id='eni-e5aa89a3', private_ip_addresses=['10.0.0.82'])
Source code in docs_src/capo_ec2/_services/async_ec2.py
60745 60746 60747 60748 60749 60750 60751 60752 60753 60754 60755 60756 60757 60758 60759 60760 60761 60762 60763 60764 60765 60766 60767 60768 60769 60770 60771 60772 60773 60774 60775 60776 60777 60778 60779 60780 60781 60782 60783 60784 60785 60786 60787 60788 60789 60790 60791 60792 60793 60794 60795 60796 60797 60798 60799 60800 60801 60802 60803 60804 | |