Struct aws_sdk_ec2::operation::detach_network_interface::builders::DetachNetworkInterfaceFluentBuilder
source · pub struct DetachNetworkInterfaceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DetachNetworkInterface
.
Detaches a network interface from an instance.
Implementations§
source§impl DetachNetworkInterfaceFluentBuilder
impl DetachNetworkInterfaceFluentBuilder
sourcepub fn as_input(&self) -> &DetachNetworkInterfaceInputBuilder
pub fn as_input(&self) -> &DetachNetworkInterfaceInputBuilder
Access the DetachNetworkInterface as a reference.
sourcepub async fn send(
self
) -> Result<DetachNetworkInterfaceOutput, SdkError<DetachNetworkInterfaceError, HttpResponse>>
pub async fn send( self ) -> Result<DetachNetworkInterfaceOutput, SdkError<DetachNetworkInterfaceError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DetachNetworkInterfaceOutput, DetachNetworkInterfaceError>, SdkError<DetachNetworkInterfaceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<DetachNetworkInterfaceOutput, DetachNetworkInterfaceError>, SdkError<DetachNetworkInterfaceError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn attachment_id(self, input: impl Into<String>) -> Self
pub fn attachment_id(self, input: impl Into<String>) -> Self
The ID of the attachment.
sourcepub fn set_attachment_id(self, input: Option<String>) -> Self
pub fn set_attachment_id(self, input: Option<String>) -> Self
The ID of the attachment.
sourcepub fn get_attachment_id(&self) -> &Option<String>
pub fn get_attachment_id(&self) -> &Option<String>
The ID of the attachment.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 get_dry_run(&self) -> &Option<bool>
pub fn get_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, input: bool) -> Self
pub fn force(self, input: bool) -> Self
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.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
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.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_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 DetachNetworkInterfaceFluentBuilder
impl Clone for DetachNetworkInterfaceFluentBuilder
source§fn clone(&self) -> DetachNetworkInterfaceFluentBuilder
fn clone(&self) -> DetachNetworkInterfaceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more