Struct aws_sdk_ec2::input::DescribeVolumeAttributeInput
source · #[non_exhaustive]pub struct DescribeVolumeAttributeInput { /* private fields */ }
Implementations§
source§impl DescribeVolumeAttributeInput
impl DescribeVolumeAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeVolumeAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeVolumeAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeVolumeAttribute
>
Examples found in repository?
src/client.rs (line 50502)
50488 50489 50490 50491 50492 50493 50494 50495 50496 50497 50498 50499 50500 50501 50502 50503 50504 50505 50506 50507 50508 50509 50510 50511 50512 50513 50514 50515 50516 50517 50518 50519 50520 50521 50522 50523 50524 50525 50526 50527 50528 50529 50530
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeVolumeAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeVolumeAttributeError>,
> {
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::DescribeVolumeAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeVolumeAttributeError>,
> {
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 DescribeVolumeAttributeInput
.
source§impl DescribeVolumeAttributeInput
impl DescribeVolumeAttributeInput
sourcepub fn attribute(&self) -> Option<&VolumeAttributeName>
pub fn attribute(&self) -> Option<&VolumeAttributeName>
The attribute of the volume. This parameter is required.
Trait Implementations§
source§impl Clone for DescribeVolumeAttributeInput
impl Clone for DescribeVolumeAttributeInput
source§fn clone(&self) -> DescribeVolumeAttributeInput
fn clone(&self) -> DescribeVolumeAttributeInput
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