aws_sdk_ec2/client/attach_network_interface.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`AttachNetworkInterface`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`network_card_index(i32)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::network_card_index) / [`set_network_card_index(Option<i32>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_network_card_index):<br>required: **false**<br><p>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.</p><br>
7 /// - [`ena_srd_specification(EnaSrdSpecification)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::ena_srd_specification) / [`set_ena_srd_specification(Option<EnaSrdSpecification>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_ena_srd_specification):<br>required: **false**<br><p>Configures ENA Express for the network interface that this action attaches to the instance.</p><br>
8 /// - [`ena_queue_count(i32)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::ena_queue_count) / [`set_ena_queue_count(Option<i32>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_ena_queue_count):<br>required: **false**<br><p>The number of ENA queues to be created with the instance.</p><br>
9 /// - [`dry_run(bool)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
10 /// - [`network_interface_id(impl Into<String>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::network_interface_id) / [`set_network_interface_id(Option<String>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_network_interface_id):<br>required: **true**<br><p>The ID of the network interface.</p><br>
11 /// - [`instance_id(impl Into<String>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_instance_id):<br>required: **true**<br><p>The ID of the instance.</p><br>
12 /// - [`device_index(i32)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::device_index) / [`set_device_index(Option<i32>)`](crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::set_device_index):<br>required: **true**<br><p>The index of the device for the network interface attachment.</p><br>
13 /// - On success, responds with [`AttachNetworkInterfaceOutput`](crate::operation::attach_network_interface::AttachNetworkInterfaceOutput) with field(s):
14 /// - [`attachment_id(Option<String>)`](crate::operation::attach_network_interface::AttachNetworkInterfaceOutput::attachment_id): <p>The ID of the network interface attachment.</p>
15 /// - [`network_card_index(Option<i32>)`](crate::operation::attach_network_interface::AttachNetworkInterfaceOutput::network_card_index): <p>The index of the network card.</p>
16 /// - On failure, responds with [`SdkError<AttachNetworkInterfaceError>`](crate::operation::attach_network_interface::AttachNetworkInterfaceError)
17 pub fn attach_network_interface(&self) -> crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder {
18 crate::operation::attach_network_interface::builders::AttachNetworkInterfaceFluentBuilder::new(self.handle.clone())
19 }
20}