Struct aws_sdk_ec2::input::AttachNetworkInterfaceInput
source · #[non_exhaustive]pub struct AttachNetworkInterfaceInput { /* private fields */ }
Expand description
Contains the parameters for AttachNetworkInterface.
Implementations§
source§impl AttachNetworkInterfaceInput
impl AttachNetworkInterfaceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AttachNetworkInterface, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AttachNetworkInterface, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AttachNetworkInterface
>
Examples found in repository?
11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AttachNetworkInterface,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AttachNetworkInterfaceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AttachNetworkInterfaceOutput,
aws_smithy_http::result::SdkError<crate::error::AttachNetworkInterfaceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AttachNetworkInterfaceInput
.
source§impl AttachNetworkInterfaceInput
impl AttachNetworkInterfaceInput
sourcepub fn device_index(&self) -> Option<i32>
pub fn device_index(&self) -> Option<i32>
The index of the device for the network interface 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 instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn network_card_index(&self) -> Option<i32>
pub fn network_card_index(&self) -> Option<i32>
The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.
Trait Implementations§
source§impl Clone for AttachNetworkInterfaceInput
impl Clone for AttachNetworkInterfaceInput
source§fn clone(&self) -> AttachNetworkInterfaceInput
fn clone(&self) -> AttachNetworkInterfaceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more