Skip to content

/AWS1/CL_EC2=>MODIFYINSTMAINTENANCEOPTIONS()

About ModifyInstanceMaintenanceOptions

Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance.

Optional arguments:

IV_AUTORECOVERY TYPE /AWS1/EC2INSTAUTORECOVERYSTATE /AWS1/EC2INSTAUTORECOVERYSTATE

Disables the automatic recovery behavior of your instance or sets it to default.

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2MODINSTMAINTENAN01 /AWS1/CL_EC2MODINSTMAINTENAN01