Struct aws_sdk_ec2::input::ModifyVolumeAttributeInput
source · #[non_exhaustive]pub struct ModifyVolumeAttributeInput { /* private fields */ }
Implementations§
source§impl ModifyVolumeAttributeInput
impl ModifyVolumeAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVolumeAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVolumeAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyVolumeAttribute
>
Examples found in repository?
src/client.rs (line 69052)
69038 69039 69040 69041 69042 69043 69044 69045 69046 69047 69048 69049 69050 69051 69052 69053 69054 69055 69056 69057 69058 69059 69060 69061 69062 69063 69064 69065 69066 69067 69068 69069 69070 69071 69072 69073 69074 69075 69076 69077 69078 69079 69080
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyVolumeAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyVolumeAttributeError>,
> {
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::ModifyVolumeAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyVolumeAttributeError>,
> {
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 ModifyVolumeAttributeInput
.
source§impl ModifyVolumeAttributeInput
impl ModifyVolumeAttributeInput
sourcepub fn auto_enable_io(&self) -> Option<&AttributeBooleanValue>
pub fn auto_enable_io(&self) -> Option<&AttributeBooleanValue>
Indicates whether the volume should be auto-enabled for I/O operations.
Trait Implementations§
source§impl Clone for ModifyVolumeAttributeInput
impl Clone for ModifyVolumeAttributeInput
source§fn clone(&self) -> ModifyVolumeAttributeInput
fn clone(&self) -> ModifyVolumeAttributeInput
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