EC2.NetworkInterface.
detach
(**kwargs)¶Detaches a network interface from an instance.
See also: AWS API Documentation
Request Syntax
response = network_interface.detach(
DryRun=True|False,
Force=True|False
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.Specifies whether to force a detachment.
Note
Force
parameter only as a last resort to detach a network interface from a failed instance.Force
parameter to detach a network interface, you might not be able to attach a different network interface to the same index on the instance without first stopping and starting the instance.None