ec2_create_nat_gateway: Creates a NAT gateway in the specified subnet

View source: R/ec2_operations.R

ec2_create_nat_gatewayR Documentation

Creates a NAT gateway in the specified subnet

Description

Creates a NAT gateway in the specified subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. You can create either a public NAT gateway or a private NAT gateway.

See https://www.paws-r-sdk.com/docs/ec2_create_nat_gateway/ for full documentation.

Usage

ec2_create_nat_gateway(
  AllocationId = NULL,
  ClientToken = NULL,
  DryRun = NULL,
  SubnetId,
  TagSpecifications = NULL,
  ConnectivityType = NULL,
  PrivateIpAddress = NULL,
  SecondaryAllocationIds = NULL,
  SecondaryPrivateIpAddresses = NULL,
  SecondaryPrivateIpAddressCount = NULL
)

Arguments

AllocationId

[Public NAT gateways only] The allocation ID of an Elastic IP address to associate with the NAT gateway. You cannot specify an Elastic IP address with a private NAT gateway. If the Elastic IP address is associated with another resource, you must first disassociate it.

ClientToken

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

Constraint: Maximum 64 ASCII characters.

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.

SubnetId

[required] The ID of the subnet in which to create the NAT gateway.

TagSpecifications

The tags to assign to the NAT gateway.

ConnectivityType

Indicates whether the NAT gateway supports public or private connectivity. The default is public connectivity.

PrivateIpAddress

The private IPv4 address to assign to the NAT gateway. If you don't provide an address, a private IPv4 address will be automatically assigned.

SecondaryAllocationIds

Secondary EIP allocation IDs. For more information, see Create a NAT gateway in the Amazon VPC User Guide.

SecondaryPrivateIpAddresses

Secondary private IPv4 addresses. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.

SecondaryPrivateIpAddressCount

[Private NAT gateway only] The number of secondary private IPv4 addresses you want to assign to the NAT gateway. For more information about secondary addresses, see Create a NAT gateway in the Amazon VPC User Guide.


paws.compute documentation built on Sept. 12, 2023, 1:28 a.m.