aws_sdk_ec2/client/disable_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 [`DisableFastLaunch`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`image_id(impl Into<String>)`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::image_id) / [`set_image_id(Option<String>)`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::set_image_id):<br>required: **true**<br><p>Specify the ID of the image for which to disable Windows fast launch.</p><br>
7 /// - [`force(bool)`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::set_force):<br>required: **false**<br><p>Forces the image settings to turn off Windows fast launch for your Windows AMI. This parameter overrides any errors that are encountered while cleaning up resources in your account.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::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>
9 /// - On success, responds with [`DisableFastLaunchOutput`](crate::operation::disable_fast_launch::DisableFastLaunchOutput) with field(s):
10 /// - [`image_id(Option<String>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::image_id): <p>The ID of the image for which Windows fast launch was disabled.</p>
11 /// - [`resource_type(Option<FastLaunchResourceType>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::resource_type): <p>The pre-provisioning resource type that must be cleaned after turning off Windows fast launch for the Windows AMI. Supported values include: <code>snapshot</code>.</p>
12 /// - [`snapshot_configuration(Option<FastLaunchSnapshotConfigurationResponse>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::snapshot_configuration): <p>Parameters that were used for Windows fast launch for the Windows AMI before Windows fast launch was disabled. This informs the clean-up process.</p>
13 /// - [`launch_template(Option<FastLaunchLaunchTemplateSpecificationResponse>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::launch_template): <p>The launch template that was used to launch Windows instances from pre-provisioned snapshots.</p>
14 /// - [`max_parallel_launches(Option<i32>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::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>
15 /// - [`owner_id(Option<String>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::owner_id): <p>The owner of the Windows AMI for which Windows fast launch was disabled.</p>
16 /// - [`state(Option<FastLaunchStateCode>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::state): <p>The current state of Windows fast launch for the specified Windows AMI.</p>
17 /// - [`state_transition_reason(Option<String>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::state_transition_reason): <p>The reason that the state changed for Windows fast launch for the Windows AMI.</p>
18 /// - [`state_transition_time(Option<DateTime>)`](crate::operation::disable_fast_launch::DisableFastLaunchOutput::state_transition_time): <p>The time that the state changed for Windows fast launch for the Windows AMI.</p>
19 /// - On failure, responds with [`SdkError<DisableFastLaunchError>`](crate::operation::disable_fast_launch::DisableFastLaunchError)
20 pub fn disable_fast_launch(&self) -> crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder {
21 crate::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder::new(self.handle.clone())
22 }
23}