Assigns the specified secondary private IP addresses to the specified network interface
Source:R/ec2_operations.R
ec2_assign_private_ip_addresses.RdAssigns the specified secondary private IP addresses to the specified network interface.
See https://www.paws-r-sdk.com/docs/ec2_assign_private_ip_addresses/ for full documentation.
Usage
ec2_assign_private_ip_addresses(
Ipv4Prefixes = NULL,
Ipv4PrefixCount = NULL,
NetworkInterfaceId,
PrivateIpAddresses = NULL,
SecondaryPrivateIpAddressCount = NULL,
AllowReassignment = NULL
)Arguments
- Ipv4Prefixes
One or more IPv4 prefixes assigned to the network interface. You can't use this option if you use the
Ipv4PrefixCountoption.- Ipv4PrefixCount
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
Ipv4 Prefixesoption.- NetworkInterfaceId
[required] The ID of the network interface.
- PrivateIpAddresses
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.
If you don't specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.
- SecondaryPrivateIpAddressCount
The number of secondary IP addresses to assign to the network interface. You can't specify this parameter when also specifying private IP addresses.
- AllowReassignment
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.