enable_fast_launch
async
¶
enable_fast_launch(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
41646 41647 41648 41649 41650 41651 41652 41653 41654 41655 41656 41657 41658 41659 41660 41661 41662 41663 41664 41665 41666 41667 41668 41669 41670 41671 41672 41673 41674 41675 41676 41677 41678 41679 41680 41681 41682 41683 41684 41685 41686 41687 41688 41689 41690 41691 41692 41693 41694 41695 41696 41697 41698 41699 41700 41701 41702 41703 41704 41705 41706 41707 41708 41709 41710 41711 41712 41713 | |