Skip to content

/AWS1/CL_EC2=>RUNSCHEDULEDINSTANCES()

About RunScheduledInstances

Launches the specified Scheduled Instances.

Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

You must launch a Scheduled Instance during its scheduled time period. You can't stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon EC2 User Guide.

Method Signature

IMPORTING

Required arguments:

IO_LAUNCHSPECIFICATION TYPE REF TO /AWS1/CL_EC2SCHDINSTSLAUNCHS00 /AWS1/CL_EC2SCHDINSTSLAUNCHS00

The launch specification. You must match the instance type, Availability Zone, network, and platform of the schedule that you purchased.

IV_SCHEDULEDINSTANCEID TYPE /AWS1/EC2SCHEDULEDINSTANCEID /AWS1/EC2SCHEDULEDINSTANCEID

The Scheduled Instance ID.

Optional arguments:

IV_CLIENTTOKEN TYPE /AWS1/EC2STRING /AWS1/EC2STRING

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

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.

IV_INSTANCECOUNT TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The number of instances.

Default: 1

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2RUNSCHDDINSTSRSLT /AWS1/CL_EC2RUNSCHDDINSTSRSLT