aws_sdk_ec2/client/assign_private_ip_addresses.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 [`AssignPrivateIpAddresses`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`ipv4_prefixes(impl Into<String>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::ipv4_prefixes) / [`set_ipv4_prefixes(Option<Vec::<String>>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::set_ipv4_prefixes):<br>required: **false**<br><p>One or more IPv4 prefixes assigned to the network interface. You can't use this option if you use the <code>Ipv4PrefixCount</code> option.</p><br>
7 /// - [`ipv4_prefix_count(i32)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::ipv4_prefix_count) / [`set_ipv4_prefix_count(Option<i32>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::set_ipv4_prefix_count):<br>required: **false**<br><p>The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You can't use this option if you use the <code>Ipv4 Prefixes</code> option.</p><br>
8 /// - [`network_interface_id(impl Into<String>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::network_interface_id) / [`set_network_interface_id(Option<String>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::set_network_interface_id):<br>required: **true**<br><p>The ID of the network interface.</p><br>
9 /// - [`private_ip_addresses(impl Into<String>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::private_ip_addresses) / [`set_private_ip_addresses(Option<Vec::<String>>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::set_private_ip_addresses):<br>required: **false**<br><p>The IP addresses to be assigned as a secondary private IP address to the network interface. You can't specify this parameter when also specifying a number of secondary IP addresses.</p> <p>If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.</p><br>
10 /// - [`secondary_private_ip_address_count(i32)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::secondary_private_ip_address_count) / [`set_secondary_private_ip_address_count(Option<i32>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::set_secondary_private_ip_address_count):<br>required: **false**<br><p>The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.</p><br>
11 /// - [`allow_reassignment(bool)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::allow_reassignment) / [`set_allow_reassignment(Option<bool>)`](crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::set_allow_reassignment):<br>required: **false**<br><p>Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.</p><br>
12 /// - On success, responds with [`AssignPrivateIpAddressesOutput`](crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesOutput) with field(s):
13 /// - [`network_interface_id(Option<String>)`](crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesOutput::network_interface_id): <p>The ID of the network interface.</p>
14 /// - [`assigned_private_ip_addresses(Option<Vec::<AssignedPrivateIpAddress>>)`](crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesOutput::assigned_private_ip_addresses): <p>The private IP addresses assigned to the network interface.</p>
15 /// - [`assigned_ipv4_prefixes(Option<Vec::<Ipv4PrefixSpecification>>)`](crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesOutput::assigned_ipv4_prefixes): <p>The IPv4 prefixes that are assigned to the network interface.</p>
16 /// - On failure, responds with [`SdkError<AssignPrivateIpAddressesError>`](crate::operation::assign_private_ip_addresses::AssignPrivateIpAddressesError)
17 pub fn assign_private_ip_addresses(&self) -> crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder {
18 crate::operation::assign_private_ip_addresses::builders::AssignPrivateIpAddressesFluentBuilder::new(self.handle.clone())
19 }
20}