aws_sdk_xray/client/get_sampling_targets.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetSamplingTargets`](crate::operation::get_sampling_targets::builders::GetSamplingTargetsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`sampling_statistics_documents(SamplingStatisticsDocument)`](crate::operation::get_sampling_targets::builders::GetSamplingTargetsFluentBuilder::sampling_statistics_documents) / [`set_sampling_statistics_documents(Option<Vec::<SamplingStatisticsDocument>>)`](crate::operation::get_sampling_targets::builders::GetSamplingTargetsFluentBuilder::set_sampling_statistics_documents):<br>required: **true**<br><p>Information about rules that the service is using to sample requests.</p><br>
/// - On success, responds with [`GetSamplingTargetsOutput`](crate::operation::get_sampling_targets::GetSamplingTargetsOutput) with field(s):
/// - [`sampling_target_documents(Option<Vec::<SamplingTargetDocument>>)`](crate::operation::get_sampling_targets::GetSamplingTargetsOutput::sampling_target_documents): <p>Updated rules that the service should use to sample requests.</p>
/// - [`last_rule_modification(Option<DateTime>)`](crate::operation::get_sampling_targets::GetSamplingTargetsOutput::last_rule_modification): <p>The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call <a href="https://docs.aws.amazon.com/xray/latest/api/API_GetSamplingRules.html">GetSamplingRules</a> to get the latest version.</p>
/// - [`unprocessed_statistics(Option<Vec::<UnprocessedStatistics>>)`](crate::operation::get_sampling_targets::GetSamplingTargetsOutput::unprocessed_statistics): <p>Information about <a href="https://docs.aws.amazon.com/xray/latest/api/API_SamplingStatisticsDocument.html">SamplingStatisticsDocument</a> that X-Ray could not process.</p>
/// - On failure, responds with [`SdkError<GetSamplingTargetsError>`](crate::operation::get_sampling_targets::GetSamplingTargetsError)
pub fn get_sampling_targets(&self) -> crate::operation::get_sampling_targets::builders::GetSamplingTargetsFluentBuilder {
crate::operation::get_sampling_targets::builders::GetSamplingTargetsFluentBuilder::new(self.handle.clone())
}
}