GET /#Action=ModifySubnetAttribute

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

Use this action to modify subnets on Amazon Web Services Outposts.

For more information about Amazon Web Services Outposts, see the following:

Servers

Request headers

Name Type Required Description
X-Amz-Content-Sha256 String No
X-Amz-Credential String No
X-Amz-Date String No
X-Amz-Algorithm String No
X-Amz-SignedHeaders String No
X-Amz-Security-Token String No
X-Amz-Signature String No

Query parameters

Name Type Required Description
Version String Yes

Possible values:

  • "2016-11-15"
PrivateDnsHostnameTypeOnLaunch String No

The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance DNS name must be based on the instance ID (resource-name).

Possible values:

  • "resource-name"
  • "ip-name"
MapPublicIpOnLaunch Object No

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

EnableResourceNameDnsAAAARecordOnLaunch Object No

Indicates whether to respond to DNS queries for instance hostnames with DNS AAAA records.

EnableLniAtDeviceIndex Integer No

Indicates the device position for local network interfaces in this subnet. For example, 1 indicates local network interfaces in this subnet are the secondary network interface (eth1). A local network interface cannot be the primary network interface (eth0).

EnableResourceNameDnsARecordOnLaunch Object No

Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

EnableDns64 Object No

Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this subnet should return synthetic IPv6 addresses for IPv4-only destinations.

CustomerOwnedIpv4Pool String No

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

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

DisableLniAtDeviceIndex Object No

Specify true to indicate that local network interfaces at the current position should be disabled.

AssignIpv6AddressOnCreation Object No

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.

SubnetId String Yes

The ID of the subnet.

MapCustomerOwnedIpOnLaunch Object No

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.

Action String Yes

Possible values:

  • "ModifySubnetAttribute"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.