aws_sdk_ec2/client/enable_fast_launch.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`EnableFastLaunch`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`image_id(impl Into<String>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::image_id) / [`set_image_id(Option<String>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::set_image_id):<br>required: **true**<br><p>Specify the ID of the image for which to enable Windows fast launch.</p><br>
7 /// - [`resource_type(impl Into<String>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::resource_type) / [`set_resource_type(Option<String>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::set_resource_type):<br>required: **false**<br><p>The type of resource to use for pre-provisioning the AMI for Windows fast launch. Supported values include: <code>snapshot</code>, which is the default value.</p><br>
8 /// - [`snapshot_configuration(FastLaunchSnapshotConfigurationRequest)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::snapshot_configuration) / [`set_snapshot_configuration(Option<FastLaunchSnapshotConfigurationRequest>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::set_snapshot_configuration):<br>required: **false**<br><p>Configuration settings for creating and managing the snapshots that are used for pre-provisioning the AMI for Windows fast launch. The associated <code>ResourceType</code> must be <code>snapshot</code>.</p><br>
9 /// - [`launch_template(FastLaunchLaunchTemplateSpecificationRequest)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::launch_template) / [`set_launch_template(Option<FastLaunchLaunchTemplateSpecificationRequest>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::set_launch_template):<br>required: **false**<br><p>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.</p><br>
10 /// - [`max_parallel_launches(i32)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::max_parallel_launches) / [`set_max_parallel_launches(Option<i32>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::set_max_parallel_launches):<br>required: **false**<br><p>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 <code>6</code> or greater.</p><br>
11 /// - [`dry_run(bool)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
12 /// - On success, responds with [`EnableFastLaunchOutput`](crate::operation::enable_fast_launch::EnableFastLaunchOutput) with field(s):
13 /// - [`image_id(Option<String>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::image_id): <p>The image ID that identifies the AMI for which Windows fast launch was enabled.</p>
14 /// - [`resource_type(Option<FastLaunchResourceType>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::resource_type): <p>The type of resource that was defined for pre-provisioning the AMI for Windows fast launch.</p>
15 /// - [`snapshot_configuration(Option<FastLaunchSnapshotConfigurationResponse>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::snapshot_configuration): <p>Settings to create and manage the pre-provisioned snapshots that Amazon EC2 uses for faster launches from the Windows AMI. This property is returned when the associated <code>resourceType</code> is <code>snapshot</code>.</p>
16 /// - [`launch_template(Option<FastLaunchLaunchTemplateSpecificationResponse>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::launch_template): <p>The launch template that is used when launching Windows instances from pre-provisioned snapshots.</p>
17 /// - [`max_parallel_launches(Option<i32>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::max_parallel_launches): <p>The maximum number of instances that Amazon EC2 can launch at the same time to create pre-provisioned snapshots for Windows fast launch.</p>
18 /// - [`owner_id(Option<String>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::owner_id): <p>The owner ID for the AMI for which Windows fast launch was enabled.</p>
19 /// - [`state(Option<FastLaunchStateCode>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::state): <p>The current state of Windows fast launch for the specified AMI.</p>
20 /// - [`state_transition_reason(Option<String>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::state_transition_reason): <p>The reason that the state changed for Windows fast launch for the AMI.</p>
21 /// - [`state_transition_time(Option<DateTime>)`](crate::operation::enable_fast_launch::EnableFastLaunchOutput::state_transition_time): <p>The time that the state changed for Windows fast launch for the AMI.</p>
22 /// - On failure, responds with [`SdkError<EnableFastLaunchError>`](crate::operation::enable_fast_launch::EnableFastLaunchError)
23 pub fn enable_fast_launch(&self) -> crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder {
24 crate::operation::enable_fast_launch::builders::EnableFastLaunchFluentBuilder::new(self.handle.clone())
25 }
26}