1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::import_instance::_import_instance_output::ImportInstanceOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::import_instance::_import_instance_input::ImportInstanceInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::import_instance::_import_instance_output::ImportInstanceOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::import_instance::builders::ImportInstanceInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::import_instance::ImportInstanceOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::import_instance::ImportInstanceError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.import_instance();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `ImportInstance`.
|
24 24 | ///
|
25 25 | /// <note>
|
26 26 | /// <p>We recommend that you use the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html"> <code>ImportImage</code> </a> API instead. For more information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html">Importing a VM as an image using VM Import/Export</a> in the <i>VM Import/Export User Guide</i>.</p>
|
27 27 | /// </note>
|
28 28 | /// <p>Creates an import instance task using metadata from the specified disk image.</p>
|
29 29 | /// <p>This API action supports only single-volume VMs. To import multi-volume VMs, use <code>ImportImage</code> instead.</p>
|
30 30 | /// <p>For information about the import manifest referenced by this API action, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html">VM Import Manifest</a>.</p>
|
31 31 | /// <p>This API action is not supported by the Command Line Interface (CLI).</p>
|
32 32 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
33 33 | pub struct ImportInstanceFluentBuilder {
|
34 34 | handle: ::std::sync::Arc<crate::client::Handle>,
|
35 35 | inner: crate::operation::import_instance::builders::ImportInstanceInputBuilder,
|