Struct aws_sdk_iot::input::GetStatisticsInput
source · #[non_exhaustive]pub struct GetStatisticsInput { /* private fields */ }
Implementations§
source§impl GetStatisticsInput
impl GetStatisticsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetStatistics, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetStatistics, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetStatistics
>
Examples found in repository?
src/client.rs (line 15584)
15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetStatistics,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetStatisticsError>,
> {
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::GetStatisticsOutput,
aws_smithy_http::result::SdkError<crate::error::GetStatisticsError>,
> {
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 GetStatisticsInput
.
source§impl GetStatisticsInput
impl GetStatisticsInput
sourcepub fn index_name(&self) -> Option<&str>
pub fn index_name(&self) -> Option<&str>
The name of the index to search. The default value is AWS_Things
.
sourcepub fn query_string(&self) -> Option<&str>
pub fn query_string(&self) -> Option<&str>
The query used to search. You can specify "*" for the query string to get the count of all indexed things in your Amazon Web Services account.
sourcepub fn aggregation_field(&self) -> Option<&str>
pub fn aggregation_field(&self) -> Option<&str>
The aggregation field name.
sourcepub fn query_version(&self) -> Option<&str>
pub fn query_version(&self) -> Option<&str>
The version of the query used to search.
Trait Implementations§
source§impl Clone for GetStatisticsInput
impl Clone for GetStatisticsInput
source§fn clone(&self) -> GetStatisticsInput
fn clone(&self) -> GetStatisticsInput
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