Modifies a subnet attribute. You can only modify one attribute at a time.
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()
)
Character. The ID of the subnet.
Object. Specify true
to indicate that network interfaces created in the specified subnet should be assigned...[optional]
Object. Specify true
to indicate that network interfaces attached to instances created in the specified...[optional]
Object. Specify true
to indicate that network interfaces attached to instances created in the specified...[optional]
Character. The customer-owned IPv4 address pool associated with the subnet.[optional]
Logical. Whether to simplify the result and handle nextToken
in the response[optional]
Named list. The parameters that are not included in the function parameters and need to be added into the request[optional]
Logical. Whether to show an error message when a network error occurs.
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.
Numeric. Number of seconds to wait for a REST response until giving up. Can not be less than 1 ms.
Character. The region of the AWS service.
A list object or a character vector
The ID of the subnet.
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.
Specify true
to indicate that network interfaces
attached to instances created in the specified subnet should be assigned
a public IPv4 address.
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
.
The customer-owned IPv4 address pool associated with the subnet.
You must set this value when you specify true
for
MapCustomerOwnedIpOnLaunch
.