pub struct ImportInstanceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportInstance
.
We recommend that you use the ImportImage
API. For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.
Creates an import instance task using metadata from the specified disk image.
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.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage
instead.
For information about the import manifest referenced by this API action, see VM Import Manifest.
Implementations§
source§impl ImportInstanceFluentBuilder
impl ImportInstanceFluentBuilder
sourcepub fn as_input(&self) -> &ImportInstanceInputBuilder
pub fn as_input(&self) -> &ImportInstanceInputBuilder
Access the ImportInstance as a reference.
sourcepub async fn send(
self
) -> Result<ImportInstanceOutput, SdkError<ImportInstanceError, HttpResponse>>
pub async fn send( self ) -> Result<ImportInstanceOutput, SdkError<ImportInstanceError, 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 async fn customize(
self
) -> Result<CustomizableOperation<ImportInstanceOutput, ImportInstanceError>, SdkError<ImportInstanceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<ImportInstanceOutput, ImportInstanceError>, SdkError<ImportInstanceError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_disk_images(&self) -> &Option<Vec<DiskImage>>
pub fn get_disk_images(&self) -> &Option<Vec<DiskImage>>
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 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
.
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 get_launch_specification(
&self
) -> &Option<ImportInstanceLaunchSpecification>
pub fn get_launch_specification( &self ) -> &Option<ImportInstanceLaunchSpecification>
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.
sourcepub fn get_platform(&self) -> &Option<PlatformValues>
pub fn get_platform(&self) -> &Option<PlatformValues>
The instance operating system.
Trait Implementations§
source§impl Clone for ImportInstanceFluentBuilder
impl Clone for ImportInstanceFluentBuilder
source§fn clone(&self) -> ImportInstanceFluentBuilder
fn clone(&self) -> ImportInstanceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more