Struct aws_sdk_ec2::input::UnmonitorInstancesInput
source · #[non_exhaustive]pub struct UnmonitorInstancesInput { /* private fields */ }
Implementations§
source§impl UnmonitorInstancesInput
impl UnmonitorInstancesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UnmonitorInstances, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UnmonitorInstances, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UnmonitorInstances
>
Examples found in repository?
src/client.rs (line 78837)
78823 78824 78825 78826 78827 78828 78829 78830 78831 78832 78833 78834 78835 78836 78837 78838 78839 78840 78841 78842 78843 78844 78845 78846 78847 78848 78849 78850 78851 78852 78853 78854 78855 78856 78857 78858 78859 78860 78861 78862 78863 78864 78865
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UnmonitorInstances,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UnmonitorInstancesError>,
> {
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::UnmonitorInstancesOutput,
aws_smithy_http::result::SdkError<crate::error::UnmonitorInstancesError>,
> {
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 UnmonitorInstancesInput
.
source§impl UnmonitorInstancesInput
impl UnmonitorInstancesInput
sourcepub fn instance_ids(&self) -> Option<&[String]>
pub fn instance_ids(&self) -> Option<&[String]>
The IDs of the instances.
Trait Implementations§
source§impl Clone for UnmonitorInstancesInput
impl Clone for UnmonitorInstancesInput
source§fn clone(&self) -> UnmonitorInstancesInput
fn clone(&self) -> UnmonitorInstancesInput
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