Struct aws_sdk_ec2::input::ReleaseHostsInput
source · #[non_exhaustive]pub struct ReleaseHostsInput { /* private fields */ }
Implementations§
source§impl ReleaseHostsInput
impl ReleaseHostsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReleaseHosts, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ReleaseHosts, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ReleaseHosts
>
Examples found in repository?
src/client.rs (line 73211)
73197 73198 73199 73200 73201 73202 73203 73204 73205 73206 73207 73208 73209 73210 73211 73212 73213 73214 73215 73216 73217 73218 73219 73220 73221 73222 73223 73224 73225 73226 73227 73228 73229 73230 73231 73232 73233 73234 73235 73236 73237 73238 73239
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ReleaseHosts,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ReleaseHostsError>,
> {
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::ReleaseHostsOutput,
aws_smithy_http::result::SdkError<crate::error::ReleaseHostsError>,
> {
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 ReleaseHostsInput
.
Trait Implementations§
source§impl Clone for ReleaseHostsInput
impl Clone for ReleaseHostsInput
source§fn clone(&self) -> ReleaseHostsInput
fn clone(&self) -> ReleaseHostsInput
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