Struct aws_sdk_ec2::input::DetachNetworkInterfaceInput
source · #[non_exhaustive]pub struct DetachNetworkInterfaceInput { /* private fields */ }
Expand description
Contains the parameters for DetachNetworkInterface.
Implementations§
source§impl DetachNetworkInterfaceInput
impl DetachNetworkInterfaceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetachNetworkInterface, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetachNetworkInterface, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DetachNetworkInterface
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DetachNetworkInterfaceInput
.
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.
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 ==
.