#[non_exhaustive]pub struct DetachNetworkInterfaceInput {
pub attachment_id: Option<String>,
pub dry_run: Option<bool>,
pub force: Option<bool>,
}
Expand description
Contains the parameters for DetachNetworkInterface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attachment_id: Option<String>
The ID of the attachment.
dry_run: Option<bool>
Checks 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 is UnauthorizedOperation
.
force: Option<bool>
Specifies whether to force a detachment.
-
Use the
Force
parameter only as a last resort to detach a network interface from a failed instance. -
If you use the
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. -
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
Implementations§
source§impl DetachNetworkInterfaceInput
impl DetachNetworkInterfaceInput
sourcepub fn attachment_id(&self) -> Option<&str>
pub fn attachment_id(&self) -> Option<&str>
The ID of the attachment.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks 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 is UnauthorizedOperation
.
sourcepub fn force(&self) -> Option<bool>
pub fn force(&self) -> Option<bool>
Specifies whether to force a detachment.
-
Use the
Force
parameter only as a last resort to detach a network interface from a failed instance. -
If you use the
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. -
If you force the detachment of a network interface, the instance metadata might not get updated. This means that the attributes associated with the detached network interface might still be visible. The instance metadata will get updated when you stop and start the instance.
source§impl DetachNetworkInterfaceInput
impl DetachNetworkInterfaceInput
sourcepub fn builder() -> DetachNetworkInterfaceInputBuilder
pub fn builder() -> DetachNetworkInterfaceInputBuilder
Creates a new builder-style object to manufacture DetachNetworkInterfaceInput
.
Trait Implementations§
source§impl Clone for DetachNetworkInterfaceInput
impl Clone for DetachNetworkInterfaceInput
source§fn clone(&self) -> DetachNetworkInterfaceInput
fn clone(&self) -> DetachNetworkInterfaceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetachNetworkInterfaceInput
impl Debug for DetachNetworkInterfaceInput
source§impl PartialEq<DetachNetworkInterfaceInput> for DetachNetworkInterfaceInput
impl PartialEq<DetachNetworkInterfaceInput> for DetachNetworkInterfaceInput
source§fn eq(&self, other: &DetachNetworkInterfaceInput) -> bool
fn eq(&self, other: &DetachNetworkInterfaceInput) -> bool
self
and other
values to be equal, and is used
by ==
.