delete_network_interface
(**kwargs)¶Deletes the specified network interface. You must detach the network interface before you can delete it.
See also: AWS API Documentation
Request Syntax
response = client.delete_network_interface(
DryRun=True|False,
NetworkInterfaceId='string'
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.[REQUIRED]
The ID of the network interface.
None
Examples
This example deletes the specified network interface.
response = client.delete_network_interface(
NetworkInterfaceId='eni-e5aa89a3',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}