Struct aws_sdk_ec2::input::ImportInstanceInput
source · #[non_exhaustive]pub struct ImportInstanceInput { /* private fields */ }
Implementations§
source§impl ImportInstanceInput
impl ImportInstanceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ImportInstance, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ImportInstance, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ImportInstance
>
Examples found in repository?
src/client.rs (line 61995)
61981 61982 61983 61984 61985 61986 61987 61988 61989 61990 61991 61992 61993 61994 61995 61996 61997 61998 61999 62000 62001 62002 62003 62004 62005 62006 62007 62008 62009 62010 62011 62012 62013 62014 62015 62016 62017 62018 62019 62020 62021 62022 62023
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ImportInstance,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ImportInstanceError>,
> {
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::ImportInstanceOutput,
aws_smithy_http::result::SdkError<crate::error::ImportInstanceError>,
> {
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 ImportInstanceInput
.
source§impl ImportInstanceInput
impl ImportInstanceInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the instance being imported.
sourcepub fn disk_images(&self) -> Option<&[DiskImage]>
pub fn disk_images(&self) -> Option<&[DiskImage]>
The disk image.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn 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
.
sourcepub fn launch_specification(&self) -> Option<&ImportInstanceLaunchSpecification>
pub fn launch_specification(&self) -> Option<&ImportInstanceLaunchSpecification>
The launch specification.
sourcepub fn platform(&self) -> Option<&PlatformValues>
pub fn platform(&self) -> Option<&PlatformValues>
The instance operating system.
Trait Implementations§
source§impl Clone for ImportInstanceInput
impl Clone for ImportInstanceInput
source§fn clone(&self) -> ImportInstanceInput
fn clone(&self) -> ImportInstanceInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more