Struct aws_sdk_ec2::input::ResetSnapshotAttributeInput
source · #[non_exhaustive]pub struct ResetSnapshotAttributeInput { /* private fields */ }
Implementations§
source§impl ResetSnapshotAttributeInput
impl ResetSnapshotAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetSnapshotAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetSnapshotAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ResetSnapshotAttribute
>
Examples found in repository?
src/client.rs (line 75382)
75368 75369 75370 75371 75372 75373 75374 75375 75376 75377 75378 75379 75380 75381 75382 75383 75384 75385 75386 75387 75388 75389 75390 75391 75392 75393 75394 75395 75396 75397 75398 75399 75400 75401 75402 75403 75404 75405 75406 75407 75408 75409 75410
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ResetSnapshotAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ResetSnapshotAttributeError>,
> {
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::ResetSnapshotAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ResetSnapshotAttributeError>,
> {
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 ResetSnapshotAttributeInput
.
source§impl ResetSnapshotAttributeInput
impl ResetSnapshotAttributeInput
sourcepub fn attribute(&self) -> Option<&SnapshotAttributeName>
pub fn attribute(&self) -> Option<&SnapshotAttributeName>
The attribute to reset. Currently, only the attribute for permission to create volumes can be reset.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
Trait Implementations§
source§impl Clone for ResetSnapshotAttributeInput
impl Clone for ResetSnapshotAttributeInput
source§fn clone(&self) -> ResetSnapshotAttributeInput
fn clone(&self) -> ResetSnapshotAttributeInput
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