unassign_private_ip_addresses
¶
unassign_private_ip_addresses(
*,
config_overrides: Optional[EC2ClientConfig] = 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.
>>> 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/ec2.py
59908 59909 59910 59911 59912 59913 59914 59915 59916 59917 59918 59919 59920 59921 59922 59923 59924 59925 59926 59927 59928 59929 59930 59931 59932 59933 59934 59935 59936 59937 59938 59939 59940 59941 59942 59943 59944 59945 59946 59947 59948 59949 59950 59951 59952 59953 59954 59955 59956 59957 59958 59959 59960 59961 59962 59963 59964 59965 59966 | |