Struct aws_sdk_ec2::input::EnableFastLaunchInput
source · #[non_exhaustive]pub struct EnableFastLaunchInput { /* private fields */ }
Implementations§
source§impl EnableFastLaunchInput
impl EnableFastLaunchInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableFastLaunch, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableFastLaunch, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EnableFastLaunch
>
Examples found in repository?
55681 55682 55683 55684 55685 55686 55687 55688 55689 55690 55691 55692 55693 55694 55695 55696 55697 55698 55699 55700 55701 55702 55703 55704 55705 55706 55707 55708 55709 55710 55711 55712 55713 55714 55715 55716 55717 55718 55719 55720 55721 55722 55723
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableFastLaunch,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EnableFastLaunchError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::EnableFastLaunchOutput,
aws_smithy_http::result::SdkError<crate::error::EnableFastLaunchError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnableFastLaunchInput
.
source§impl EnableFastLaunchInput
impl EnableFastLaunchInput
sourcepub fn image_id(&self) -> Option<&str>
pub fn image_id(&self) -> Option<&str>
The ID of the image for which you’re enabling faster launching.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of resource to use for pre-provisioning the Windows AMI for faster launching. Supported values include: snapshot
, which is the default value.
sourcepub fn snapshot_configuration(
&self
) -> Option<&FastLaunchSnapshotConfigurationRequest>
pub fn snapshot_configuration(
&self
) -> Option<&FastLaunchSnapshotConfigurationRequest>
Configuration settings for creating and managing the snapshots that are used for pre-provisioning the Windows AMI for faster launching. The associated ResourceType
must be snapshot
.
sourcepub fn launch_template(
&self
) -> Option<&FastLaunchLaunchTemplateSpecificationRequest>
pub fn launch_template(
&self
) -> Option<&FastLaunchLaunchTemplateSpecificationRequest>
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.
sourcepub fn max_parallel_launches(&self) -> Option<i32>
pub fn max_parallel_launches(&self) -> Option<i32>
The maximum number of parallel instances to launch for creating resources. Value must be 6
or greater.
Trait Implementations§
source§impl Clone for EnableFastLaunchInput
impl Clone for EnableFastLaunchInput
source§fn clone(&self) -> EnableFastLaunchInput
fn clone(&self) -> EnableFastLaunchInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more