ec2_modify_subnet_attribute {aws.ecx}R Documentation

Modify Subnet Attribute

Description

Modifies a subnet attribute. You can only modify one attribute at a time.

Usage

ec2_modify_subnet_attribute(
  SubnetId,
  AssignIpv6AddressOnCreation = NULL,
  MapPublicIpOnLaunch = NULL,
  MapCustomerOwnedIpOnLaunch = NULL,
  CustomerOwnedIpv4Pool = NULL,
  simplify = TRUE,
  others = list(),
  print_on_error = aws_get_print_on_error(),
  retry_time = aws_get_retry_time(),
  network_timeout = aws_get_network_timeout(),
  region = aws_get_region()
)

Arguments

SubnetId

Character. The ID of the subnet.

AssignIpv6AddressOnCreation

Object. Specify true to indicate that network interfaces created in the specified subnet should be assigned...[optional]

MapPublicIpOnLaunch

Object. Specify true to indicate that network interfaces attached to instances created in the specified...[optional]

MapCustomerOwnedIpOnLaunch

Object. Specify true to indicate that network interfaces attached to instances created in the specified...[optional]

CustomerOwnedIpv4Pool

Character. The customer-owned IPv4 address pool associated with the subnet.[optional]

simplify

Logical. Whether to simplify the result and handle nextToken in the response[optional]

others

Named list. The parameters that are not included in the function parameters and need to be added into the request[optional]

print_on_error

Logical. Whether to show an error message when a network error occurs.

retry_time

Integer. Number of retries for a REST request when encounter the network issue. If the request has been sent retry_time times but still not be able to get the response, an error will be thrown.

network_timeout

Numeric. Number of seconds to wait for a REST response until giving up. Can not be less than 1 ms.

region

Character. The region of the AWS service.

Value

A list object or a character vector

SubnetId

The ID of the subnet.

AssignIpv6AddressOnCreation

Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address. This includes a network interface that\'s created when launching an instance into the subnet (the instance therefore receives an IPv6 address).

If you enable the IPv6 addressing feature for your subnet, your network interface or instance only receives an IPv6 address if it\'s created using version 2016-11-15 or later of the Amazon EC2 API.

MapPublicIpOnLaunch

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address.

MapCustomerOwnedIpOnLaunch

Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a customer-owned IPv4 address.

When this value is true, you must specify the customer-owned IP pool using CustomerOwnedIpv4Pool.

CustomerOwnedIpv4Pool

The customer-owned IPv4 address pool associated with the subnet.

You must set this value when you specify true for MapCustomerOwnedIpOnLaunch.


[Package aws.ecx version 1.0.5 Index]