Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModifySubnetAttributeCommand

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.

  • To modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex or DisableLniAtDeviceIndex.

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

example

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);
see

ModifySubnetAttributeCommandInput for command's input shape.

see

ModifySubnetAttributeCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ModifySubnetAttributeCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions