def assign_private_ip_addresses(network_interface_id, options={})
if options['PrivateIpAddresses'] && options['SecondaryPrivateIpAddressCount']
raise Fog::Compute::AWS::Error.new("You may specify secondaryPrivateIpAddressCount or specific secondary private IP addresses, but not both.")
end
if private_ip_addresses = options.delete('PrivateIpAddresses')
options.merge!(Fog::AWS.indexed_param('PrivateIpAddress.%d', [*private_ip_addresses]))
end
request({
'Action' => 'AssignPrivateIpAddresses',
'NetworkInterfaceId' => network_interface_id,
:parser => Fog::Parsers::Compute::AWS::AssignPrivateIpAddresses.new
}.merge(options))
end