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.
-
To modify a subnet on an Outpost rack, set both
MapCustomerOwnedIpOnLaunch
andCustomerOwnedIpv4Pool
. These two parameters act as a single attribute. -
To modify a subnet on an Outpost server, set either
EnableLniAtDeviceIndex
orDisableLniAtDeviceIndex
.
For more information about Amazon Web Services Outposts, see the following:
-
Outpost servers
-
Outpost racks
Servers
- https://ec2.{region}.amazonaws.com
- https://ec2.amazonaws.com
- https://ec2.{region}.amazonaws.com.cn
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:
|
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:
|
MapPublicIpOnLaunch |
Object | No |
Specify |
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, |
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 |
DisableLniAtDeviceIndex |
Object | No |
Specify |
AssignIpv6AddressOnCreation |
Object | No |
Specify 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 |
SubnetId |
String | Yes |
The ID of the subnet. |
MapCustomerOwnedIpOnLaunch |
Object | No |
Specify When this value is |
Action |
String | Yes |
Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.