Struct aws_sdk_ec2::client::fluent_builders::ImportInstance
source · pub struct ImportInstance { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportInstance
.
Creates an import instance task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage
instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
Implementations§
source§impl ImportInstance
impl ImportInstance
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ImportInstance, AwsResponseRetryClassifier>, SdkError<ImportInstanceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ImportInstance, AwsResponseRetryClassifier>, SdkError<ImportInstanceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ImportInstanceOutput, SdkError<ImportInstanceError>>
pub async fn send(
self
) -> Result<ImportInstanceOutput, SdkError<ImportInstanceError>>
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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the instance being imported.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the instance being imported.
sourcepub fn disk_images(self, input: DiskImage) -> Self
pub fn disk_images(self, input: DiskImage) -> Self
Appends an item to DiskImages
.
To override the contents of this collection use set_disk_images
.
The disk image.
sourcepub fn set_disk_images(self, input: Option<Vec<DiskImage>>) -> Self
pub fn set_disk_images(self, input: Option<Vec<DiskImage>>) -> Self
The disk image.
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 launch_specification(
self,
input: ImportInstanceLaunchSpecification
) -> Self
pub fn launch_specification(
self,
input: ImportInstanceLaunchSpecification
) -> Self
The launch specification.
sourcepub fn set_launch_specification(
self,
input: Option<ImportInstanceLaunchSpecification>
) -> Self
pub fn set_launch_specification(
self,
input: Option<ImportInstanceLaunchSpecification>
) -> Self
The launch specification.
sourcepub fn platform(self, input: PlatformValues) -> Self
pub fn platform(self, input: PlatformValues) -> Self
The instance operating system.
sourcepub fn set_platform(self, input: Option<PlatformValues>) -> Self
pub fn set_platform(self, input: Option<PlatformValues>) -> Self
The instance operating system.
Trait Implementations§
source§impl Clone for ImportInstance
impl Clone for ImportInstance
source§fn clone(&self) -> ImportInstance
fn clone(&self) -> ImportInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more