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 and CustomerOwnedIpv4Pool. These two parameters act as a single attribute.
MapCustomerOwnedIpOnLaunch
CustomerOwnedIpv4Pool
To modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex or DisableLniAtDeviceIndex.
EnableLniAtDeviceIndex
DisableLniAtDeviceIndex
For more information about Amazon Web Services Outposts, see the following:
Outpost servers
Outpost racks
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, ModifySubnetAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, ModifySubnetAttributeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new ModifySubnetAttributeCommand(input); const response = await client.send(command);
ModifySubnetAttributeCommandInput for command's input shape.
input
ModifySubnetAttributeCommandOutput for command's response shape.
response
config for EC2Client's config shape.
config
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
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, ModifySubnetAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, ModifySubnetAttributeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new ModifySubnetAttributeCommand(input); const response = await client.send(command);
ModifySubnetAttributeCommandInput for command's
input
shape.ModifySubnetAttributeCommandOutput for command's
response
shape.config for EC2Client's
config
shape.