Struct aws_sdk_ec2::input::ImportVolumeInput
source · #[non_exhaustive]pub struct ImportVolumeInput { /* private fields */ }
Implementations§
source§impl ImportVolumeInput
impl ImportVolumeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ImportVolume, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ImportVolume, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ImportVolume
>
Examples found in repository?
src/client.rs (line 62428)
62414 62415 62416 62417 62418 62419 62420 62421 62422 62423 62424 62425 62426 62427 62428 62429 62430 62431 62432 62433 62434 62435 62436 62437 62438 62439 62440 62441 62442 62443 62444 62445 62446 62447 62448 62449 62450 62451 62452 62453 62454 62455 62456
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ImportVolume,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ImportVolumeError>,
> {
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::ImportVolumeOutput,
aws_smithy_http::result::SdkError<crate::error::ImportVolumeError>,
> {
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 ImportVolumeInput
.
source§impl ImportVolumeInput
impl ImportVolumeInput
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone for the resulting EBS volume.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the volume.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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) -> Option<&DiskImageDetail>
pub fn image(&self) -> Option<&DiskImageDetail>
The disk image.
sourcepub fn volume(&self) -> Option<&VolumeDetail>
pub fn volume(&self) -> Option<&VolumeDetail>
The volume size.
Trait Implementations§
source§impl Clone for ImportVolumeInput
impl Clone for ImportVolumeInput
source§fn clone(&self) -> ImportVolumeInput
fn clone(&self) -> ImportVolumeInput
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