Skip to content

Assign Private Nat Gateway Address

ec2_assign_private_nat_gateway_address R Documentation

Assigns private IPv4 addresses to a private NAT gateway

Description

Assigns private IPv4 addresses to a private NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.

Usage

ec2_assign_private_nat_gateway_address(NatGatewayId, PrivateIpAddresses,
  PrivateIpAddressCount, DryRun)

Arguments

NatGatewayId

[required] The ID of the NAT gateway.

PrivateIpAddresses

The private IPv4 addresses you want to assign to the private NAT gateway.

PrivateIpAddressCount

The number of private IP addresses to assign to the NAT gateway. You can't specify this parameter when also specifying private IP addresses.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Value

A list with the following syntax:

list(
  NatGatewayId = "string",
  NatGatewayAddresses = list(
    list(
      AllocationId = "string",
      NetworkInterfaceId = "string",
      PrivateIp = "string",
      PublicIp = "string",
      AssociationId = "string",
      IsPrimary = TRUE|FALSE,
      FailureMessage = "string",
      Status = "assigning"|"unassigning"|"associating"|"disassociating"|"succeeded"|"failed"
    )
  )
)

Request syntax

svc$assign_private_nat_gateway_address(
  NatGatewayId = "string",
  PrivateIpAddresses = list(
    "string"
  ),
  PrivateIpAddressCount = 123,
  DryRun = TRUE|FALSE
)