Struct aws_sdk_ec2::operation::create_instance_export_task::builders::CreateInstanceExportTaskFluentBuilder
source · pub struct CreateInstanceExportTaskFluentBuilder { /* 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 prerequisites for your Amazon S3 bucket, 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 CreateInstanceExportTaskFluentBuilder
impl CreateInstanceExportTaskFluentBuilder
sourcepub fn as_input(&self) -> &CreateInstanceExportTaskInputBuilder
pub fn as_input(&self) -> &CreateInstanceExportTaskInputBuilder
Access the CreateInstanceExportTask as a reference.
sourcepub async fn send(
self
) -> Result<CreateInstanceExportTaskOutput, SdkError<CreateInstanceExportTaskError, HttpResponse>>
pub async fn send( self ) -> Result<CreateInstanceExportTaskOutput, SdkError<CreateInstanceExportTaskError, 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<CreateInstanceExportTaskOutput, CreateInstanceExportTaskError>, SdkError<CreateInstanceExportTaskError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateInstanceExportTaskOutput, CreateInstanceExportTaskError>, SdkError<CreateInstanceExportTaskError>>
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 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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_export_to_s3_task(&self) -> &Option<ExportToS3TaskSpecification>
pub fn get_export_to_s3_task(&self) -> &Option<ExportToS3TaskSpecification>
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 get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
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 get_target_environment(&self) -> &Option<ExportEnvironment>
pub fn get_target_environment(&self) -> &Option<ExportEnvironment>
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.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the export instance task during creation.
Trait Implementations§
source§impl Clone for CreateInstanceExportTaskFluentBuilder
impl Clone for CreateInstanceExportTaskFluentBuilder
source§fn clone(&self) -> CreateInstanceExportTaskFluentBuilder
fn clone(&self) -> CreateInstanceExportTaskFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more