Struct aws_sdk_ec2::operation::disable_fast_launch::builders::DisableFastLaunchFluentBuilder
source · pub struct DisableFastLaunchFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DisableFastLaunch
.
Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots. After you disable Windows fast launch, the AMI uses the standard launch process for each new instance. Amazon EC2 must remove all pre-provisioned snapshots before you can enable Windows fast launch again.
You can only change these settings for Windows AMIs that you own or that have been shared with you.
Implementations§
source§impl DisableFastLaunchFluentBuilder
impl DisableFastLaunchFluentBuilder
sourcepub fn as_input(&self) -> &DisableFastLaunchInputBuilder
pub fn as_input(&self) -> &DisableFastLaunchInputBuilder
Access the DisableFastLaunch as a reference.
sourcepub async fn send(
self
) -> Result<DisableFastLaunchOutput, SdkError<DisableFastLaunchError, HttpResponse>>
pub async fn send( self ) -> Result<DisableFastLaunchOutput, SdkError<DisableFastLaunchError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<DisableFastLaunchOutput, DisableFastLaunchError, Self>
pub fn customize( self ) -> CustomizableOperation<DisableFastLaunchOutput, DisableFastLaunchError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn image_id(self, input: impl Into<String>) -> Self
pub fn image_id(self, input: impl Into<String>) -> Self
Specify the ID of the image for which to disable Windows fast launch.
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
Specify the ID of the image for which to disable Windows fast launch.
sourcepub fn get_image_id(&self) -> &Option<String>
pub fn get_image_id(&self) -> &Option<String>
Specify the ID of the image for which to disable Windows fast launch.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
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.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
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.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
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.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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
.
Trait Implementations§
source§impl Clone for DisableFastLaunchFluentBuilder
impl Clone for DisableFastLaunchFluentBuilder
source§fn clone(&self) -> DisableFastLaunchFluentBuilder
fn clone(&self) -> DisableFastLaunchFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more