Skip to content

/AWS1/CL_EC2=>RESETINSTANCEATTRIBUTE()

About ResetInstanceAttribute

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.

Method Signature

IMPORTING

Required arguments:

IV_ATTRIBUTE TYPE /AWS1/EC2INSTANCEATTRIBUTENAME /AWS1/EC2INSTANCEATTRIBUTENAME

The attribute to reset.

You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.