Struct aws_sdk_ec2::input::DetachNetworkInterfaceInput [−][src]
#[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
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetachNetworkInterface, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DetachNetworkInterface, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<DetachNetworkInterface
>
Creates a new builder-style object to manufacture DetachNetworkInterfaceInput
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DetachNetworkInterfaceInput
impl Send for DetachNetworkInterfaceInput
impl Sync for DetachNetworkInterfaceInput
impl Unpin for DetachNetworkInterfaceInput
impl UnwindSafe for DetachNetworkInterfaceInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more