Struct aws_sdk_ec2::input::CreateInstanceExportTaskInput
source · #[non_exhaustive]pub struct CreateInstanceExportTaskInput { /* private fields */ }
Implementations§
source§impl CreateInstanceExportTaskInput
impl CreateInstanceExportTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateInstanceExportTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateInstanceExportTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateInstanceExportTask
>
Examples found in repository?
src/client.rs (line 16966)
16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateInstanceExportTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateInstanceExportTaskError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateInstanceExportTaskOutput,
aws_smithy_http::result::SdkError<crate::error::CreateInstanceExportTaskError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateInstanceExportTaskInput
.
source§impl CreateInstanceExportTaskInput
impl CreateInstanceExportTaskInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the conversion task or the resource being exported. The maximum length is 255 characters.
sourcepub fn export_to_s3_task(&self) -> Option<&ExportToS3TaskSpecification>
pub fn export_to_s3_task(&self) -> Option<&ExportToS3TaskSpecification>
The format and location for an export instance task.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn target_environment(&self) -> Option<&ExportEnvironment>
pub fn target_environment(&self) -> Option<&ExportEnvironment>
The target virtualization environment.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the export instance task during creation.
Trait Implementations§
source§impl Clone for CreateInstanceExportTaskInput
impl Clone for CreateInstanceExportTaskInput
source§fn clone(&self) -> CreateInstanceExportTaskInput
fn clone(&self) -> CreateInstanceExportTaskInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more