aws_sdk_ec2/client/
describe_network_interface_attribute.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 [`DescribeNetworkInterfaceAttribute`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::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>
7    ///   - [`network_interface_id(impl Into<String>)`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::network_interface_id) / [`set_network_interface_id(Option<String>)`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::set_network_interface_id):<br>required: **true**<br><p>The ID of the network interface.</p><br>
8    ///   - [`attribute(NetworkInterfaceAttribute)`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::attribute) / [`set_attribute(Option<NetworkInterfaceAttribute>)`](crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::set_attribute):<br>required: **false**<br><p>The attribute of the network interface. This parameter is required.</p><br>
9    /// - On success, responds with [`DescribeNetworkInterfaceAttributeOutput`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput) with field(s):
10    ///   - [`attachment(Option<NetworkInterfaceAttachment>)`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput::attachment): <p>The attachment (if any) of the network interface.</p>
11    ///   - [`description(Option<AttributeValue>)`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput::description): <p>The description of the network interface.</p>
12    ///   - [`groups(Option<Vec::<GroupIdentifier>>)`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput::groups): <p>The security groups associated with the network interface.</p>
13    ///   - [`network_interface_id(Option<String>)`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput::network_interface_id): <p>The ID of the network interface.</p>
14    ///   - [`source_dest_check(Option<AttributeBooleanValue>)`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput::source_dest_check): <p>Indicates whether source/destination checking is enabled.</p>
15    ///   - [`associate_public_ip_address(Option<bool>)`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput::associate_public_ip_address): <p>Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).</p>
16    /// - On failure, responds with [`SdkError<DescribeNetworkInterfaceAttributeError>`](crate::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeError)
17    pub fn describe_network_interface_attribute(
18        &self,
19    ) -> crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder {
20        crate::operation::describe_network_interface_attribute::builders::DescribeNetworkInterfaceAttributeFluentBuilder::new(self.handle.clone())
21    }
22}