Struct aws_sdk_iot::input::DeleteCustomMetricInput
source · #[non_exhaustive]pub struct DeleteCustomMetricInput { /* private fields */ }
Implementations§
source§impl DeleteCustomMetricInput
impl DeleteCustomMetricInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteCustomMetric, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteCustomMetric, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteCustomMetric
>
Examples found in repository?
src/client.rs (line 9312)
9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteCustomMetric,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteCustomMetricError>,
> {
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::DeleteCustomMetricOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteCustomMetricError>,
> {
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 DeleteCustomMetricInput
.
source§impl DeleteCustomMetricInput
impl DeleteCustomMetricInput
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the custom metric.
Trait Implementations§
source§impl Clone for DeleteCustomMetricInput
impl Clone for DeleteCustomMetricInput
source§fn clone(&self) -> DeleteCustomMetricInput
fn clone(&self) -> DeleteCustomMetricInput
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