Skip to content

/AWS1/CL_EC2=>ENABLEFASTLAUNCH()

About EnableFastLaunch

When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.

You can only change these settings for Windows AMIs that you own or that have been shared with you.

Method Signature

IMPORTING

Required arguments:

IV_IMAGEID TYPE /AWS1/EC2IMAGEID /AWS1/EC2IMAGEID

Specify the ID of the image for which to enable Windows fast launch.

Optional arguments:

IV_RESOURCETYPE TYPE /AWS1/EC2STRING /AWS1/EC2STRING

The type of resource to use for pre-provisioning the AMI for Windows fast launch. Supported values include: snapshot, which is the default value.

IO_SNAPSHOTCONFIGURATION TYPE REF TO /AWS1/CL_EC2FASTLAUNCHSNAPCO01 /AWS1/CL_EC2FASTLAUNCHSNAPCO01

Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associated ResourceType must be snapshot.

IO_LAUNCHTEMPLATE TYPE REF TO /AWS1/CL_EC2FASTLAUNCHLAUNCH01 /AWS1/CL_EC2FASTLAUNCHLAUNCH01

The launch template to use when launching Windows instances from pre-provisioned snapshots. Launch template parameters can include either the name or ID of the launch template, but not both.

IV_MAXPARALLELLAUNCHES TYPE /AWS1/EC2INTEGER /AWS1/EC2INTEGER

The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch. Value must be 6 or greater.

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_EC2ENBFASTLAUNCHRSLT /AWS1/CL_EC2ENBFASTLAUNCHRSLT