Struct aws_sdk_ec2::client::fluent_builders::ImportVolume
source · pub struct ImportVolume { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportVolume
.
Creates an import volume task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage
instead. To import a disk to a snapshot, use ImportSnapshot
instead.
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 Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
Implementations§
source§impl ImportVolume
impl ImportVolume
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ImportVolume, AwsResponseRetryClassifier>, SdkError<ImportVolumeError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ImportVolume, AwsResponseRetryClassifier>, SdkError<ImportVolumeError>>
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<ImportVolumeOutput, SdkError<ImportVolumeError>>
pub async fn send(
self
) -> Result<ImportVolumeOutput, SdkError<ImportVolumeError>>
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 availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for the resulting EBS volume.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone for the resulting EBS volume.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the volume.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the volume.
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 image(self, input: DiskImageDetail) -> Self
pub fn image(self, input: DiskImageDetail) -> Self
The disk image.
sourcepub fn set_image(self, input: Option<DiskImageDetail>) -> Self
pub fn set_image(self, input: Option<DiskImageDetail>) -> Self
The disk image.
sourcepub fn volume(self, input: VolumeDetail) -> Self
pub fn volume(self, input: VolumeDetail) -> Self
The volume size.
sourcepub fn set_volume(self, input: Option<VolumeDetail>) -> Self
pub fn set_volume(self, input: Option<VolumeDetail>) -> Self
The volume size.
Trait Implementations§
source§impl Clone for ImportVolume
impl Clone for ImportVolume
source§fn clone(&self) -> ImportVolume
fn clone(&self) -> ImportVolume
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more