Struct aws_sdk_ec2::input::ResetImageAttributeInput
source · #[non_exhaustive]pub struct ResetImageAttributeInput { /* private fields */ }
Expand description
Contains the parameters for ResetImageAttribute.
Implementations§
source§impl ResetImageAttributeInput
impl ResetImageAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetImageAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetImageAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ResetImageAttribute
>
Examples found in repository?
src/client.rs (line 75085)
75071 75072 75073 75074 75075 75076 75077 75078 75079 75080 75081 75082 75083 75084 75085 75086 75087 75088 75089 75090 75091 75092 75093 75094 75095 75096 75097 75098 75099 75100 75101 75102 75103 75104 75105 75106 75107 75108 75109 75110 75111 75112 75113
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ResetImageAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ResetImageAttributeError>,
> {
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::ResetImageAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ResetImageAttributeError>,
> {
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 ResetImageAttributeInput
.
source§impl ResetImageAttributeInput
impl ResetImageAttributeInput
sourcepub fn attribute(&self) -> Option<&ResetImageAttributeName>
pub fn attribute(&self) -> Option<&ResetImageAttributeName>
The attribute to reset (currently you can only reset the launch permission attribute).
Trait Implementations§
source§impl Clone for ResetImageAttributeInput
impl Clone for ResetImageAttributeInput
source§fn clone(&self) -> ResetImageAttributeInput
fn clone(&self) -> ResetImageAttributeInput
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