pub struct CreateInstanceExportTask { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInstanceExportTask
.
Exports a running or stopped instance to an Amazon S3 bucket.
For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.
Implementations§
source§impl CreateInstanceExportTask
impl CreateInstanceExportTask
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateInstanceExportTask, AwsResponseRetryClassifier>, SdkError<CreateInstanceExportTaskError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateInstanceExportTask, AwsResponseRetryClassifier>, SdkError<CreateInstanceExportTaskError>>
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<CreateInstanceExportTaskOutput, SdkError<CreateInstanceExportTaskError>>
pub async fn send(
self
) -> Result<CreateInstanceExportTaskOutput, SdkError<CreateInstanceExportTaskError>>
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 conversion task or the resource being exported. The maximum length is 255 characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the conversion task or the resource being exported. The maximum length is 255 characters.
sourcepub fn export_to_s3_task(self, input: ExportToS3TaskSpecification) -> Self
pub fn export_to_s3_task(self, input: ExportToS3TaskSpecification) -> Self
The format and location for an export instance task.
sourcepub fn set_export_to_s3_task(
self,
input: Option<ExportToS3TaskSpecification>
) -> Self
pub fn set_export_to_s3_task(
self,
input: Option<ExportToS3TaskSpecification>
) -> Self
The format and location for an export instance task.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the instance.
sourcepub fn target_environment(self, input: ExportEnvironment) -> Self
pub fn target_environment(self, input: ExportEnvironment) -> Self
The target virtualization environment.
sourcepub fn set_target_environment(self, input: Option<ExportEnvironment>) -> Self
pub fn set_target_environment(self, input: Option<ExportEnvironment>) -> Self
The target virtualization environment.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to TagSpecifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the export instance task during creation.
sourcepub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
pub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
The tags to apply to the export instance task during creation.
Trait Implementations§
source§impl Clone for CreateInstanceExportTask
impl Clone for CreateInstanceExportTask
source§fn clone(&self) -> CreateInstanceExportTask
fn clone(&self) -> CreateInstanceExportTask
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more