# NOT RUN {
# This example assigns the specified secondary private IP address to the
# specified network interface.
# }
# NOT RUN {
svc$assign_private_ip_addresses(
NetworkInterfaceId = "eni-e5aa89a3",
PrivateIpAddresses = list(
"10.0.0.82"
)
)
# }
# NOT RUN {
# This example assigns two secondary private IP addresses to the specified
# network interface. Amazon EC2 automatically assigns these IP addresses
# from the available IP addresses in the CIDR block range of the subnet
# the network interface is associated with.
# }
# NOT RUN {
svc$assign_private_ip_addresses(
NetworkInterfaceId = "eni-e5aa89a3",
SecondaryPrivateIpAddressCount = 2L
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab