Skip to content

Unassign Private Ip Addresses

ec2_unassign_private_ip_addresses R Documentation

Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface

Description

Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.

Usage

ec2_unassign_private_ip_addresses(NetworkInterfaceId,
  PrivateIpAddresses, Ipv4Prefixes)

Arguments

NetworkInterfaceId

[required] The ID of the network interface.

PrivateIpAddresses

The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.

Ipv4Prefixes

The IPv4 prefixes to unassign from the network interface.

Value

An empty list.

Request syntax

svc$unassign_private_ip_addresses(
  NetworkInterfaceId = "string",
  PrivateIpAddresses = list(
    "string"
  ),
  Ipv4Prefixes = list(
    "string"
  )
)

Examples

## Not run: 
# This example unassigns the specified private IP address from the
# specified network interface.
svc$unassign_private_ip_addresses(
  NetworkInterfaceId = "eni-e5aa89a3",
  PrivateIpAddresses = list(
    "10.0.0.82"
  )
)

## End(Not run)