aws ec2 modify-subnet-attribute

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

Options

NameDescription
--assign-ipv6-address-on-creation <structure>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
--map-public-ip-on-launch <structure>Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address
--subnet-ids <arg> [arg...]The IDs of the subnets to associate with the transit gateway multicast domain
--map-customer-owned-ip-on-launch <structure>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
--customer-owned-ipv4-pool <string>The customer-owned IPv4 address pool associated with the subnet. You must set this value when you specify true for MapCustomerOwnedIpOnLaunch
--no-assign-ipv6-address-on-creation <structure>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
--no-map-public-ip-on-launch <structure>Specify true to indicate that network interfaces attached to instances created in the specified subnet should be assigned a public IPv4 address
--no-map-customer-owned-ip-on-launch <structure>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
--cli-input-json <string>Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally
--generate-cli-skeleton <string>Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command