enable_fast_launch
¶
enable_fast_launch(
*,
config_overrides: Optional[EC2ClientConfig] = None,
image_id: Optional[ImageId] = None,
resource_type: Optional[String] = None,
snapshot_configuration: Optional[FastLaunchSnapshotConfigurationRequest] = None,
launch_template: Optional[FastLaunchLaunchTemplateSpecificationRequest] = None,
max_parallel_launches: Optional[Integer] = None,
dry_run: Optional[Boolean] = None,
) -> EnableFastLaunchResult
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.
Parameters:
-
image_id(Optional[ImageId], default:None) –Specify the ID of the image for which to enable Windows fast launch.
-
resource_type(Optional[String], default:None) –The type of resource to use for pre-provisioning the AMI for Windows fast launch. Supported values include:
snapshot, which is the default value. -
snapshot_configuration(Optional[FastLaunchSnapshotConfigurationRequest], default:None) –Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associated
ResourceTypemust besnapshot. -
launch_template(Optional[FastLaunchLaunchTemplateSpecificationRequest], default:None) –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.
-
max_parallel_launches(Optional[Integer], default:None) –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
6or greater. -
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
41089 41090 41091 41092 41093 41094 41095 41096 41097 41098 41099 41100 41101 41102 41103 41104 41105 41106 41107 41108 41109 41110 41111 41112 41113 41114 41115 41116 41117 41118 41119 41120 41121 41122 41123 41124 41125 41126 41127 41128 41129 41130 41131 41132 41133 41134 41135 41136 41137 41138 41139 41140 41141 41142 41143 41144 41145 41146 41147 41148 41149 41150 41151 41152 41153 41154 41155 | |