Resets an attribute of an instance to its default value. To reset the
kernel or ramdisk, the instance must be in a stopped
state. To reset the sourceDestCheck, the instance can be either running or
stopped.
The sourceDestCheck attribute controls whether source/destination
checking is enabled. The default value is true, which means checking is
enabled. This value must be false for a NAT instance to perform NAT. For
more information, see NAT Instances in the
Amazon VPC User Guide.
example
Use a bare-bones client and the command you need to make an API call.
Resets an attribute of an instance to its default value. To reset the
kernel
orramdisk
, the instance must be in a stopped state. To reset thesourceDestCheck
, the instance can be either running or stopped.The
sourceDestCheck
attribute controls whether source/destination checking is enabled. The default value istrue
, which means checking is enabled. This value must befalse
for a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon VPC User Guide.Use a bare-bones client and the command you need to make an API call.
import { EC2Client, ResetInstanceAttributeCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, ResetInstanceAttributeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new ResetInstanceAttributeCommand(input); const response = await client.send(command);
ResetInstanceAttributeCommandInput for command's
input
shape.ResetInstanceAttributeCommandOutput for command's
response
shape.config for EC2Client's
config
shape.