aws_sdk_codeguruprofiler/client/
get_recommendations.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetRecommendations`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`profiling_group_name(impl Into<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::profiling_group_name) / [`set_profiling_group_name(Option<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_profiling_group_name):<br>required: **true**<br><p>The name of the profiling group to get analysis data about.</p><br>
7    ///   - [`start_time(DateTime)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::start_time) / [`set_start_time(Option<DateTime>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_start_time):<br>required: **true**<br><p>The end time of the profile to get analysis data about. You must specify <code>startTime</code> and <code>endTime</code>. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.</p><br>
8    ///   - [`end_time(DateTime)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::end_time) / [`set_end_time(Option<DateTime>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_end_time):<br>required: **true**<br><p>The start time of the profile to get analysis data about. You must specify <code>startTime</code> and <code>endTime</code>. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.</p><br>
9    ///   - [`locale(impl Into<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::locale) / [`set_locale(Option<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_locale):<br>required: **false**<br><p>The language used to provide analysis. Specify using a string that is one of the following <code>BCP 47</code> language codes.</p> <ul>  <li>   <p><code>de-DE</code> - German, Germany</p></li>  <li>   <p><code>en-GB</code> - English, United Kingdom</p></li>  <li>   <p><code>en-US</code> - English, United States</p></li>  <li>   <p><code>es-ES</code> - Spanish, Spain</p></li>  <li>   <p><code>fr-FR</code> - French, France</p></li>  <li>   <p><code>it-IT</code> - Italian, Italy</p></li>  <li>   <p><code>ja-JP</code> - Japanese, Japan</p></li>  <li>   <p><code>ko-KR</code> - Korean, Republic of Korea</p></li>  <li>   <p><code>pt-BR</code> - Portugese, Brazil</p></li>  <li>   <p><code>zh-CN</code> - Chinese, China</p></li>  <li>   <p><code>zh-TW</code> - Chinese, Taiwan</p></li> </ul><br>
10    /// - On success, responds with [`GetRecommendationsOutput`](crate::operation::get_recommendations::GetRecommendationsOutput) with field(s):
11    ///   - [`profiling_group_name(String)`](crate::operation::get_recommendations::GetRecommendationsOutput::profiling_group_name): <p>The name of the profiling group the analysis data is about.</p>
12    ///   - [`profile_start_time(DateTime)`](crate::operation::get_recommendations::GetRecommendationsOutput::profile_start_time): <p>The start time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.</p>
13    ///   - [`profile_end_time(DateTime)`](crate::operation::get_recommendations::GetRecommendationsOutput::profile_end_time): <p>The end time of the profile the analysis data is about. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.</p>
14    ///   - [`recommendations(Vec::<Recommendation>)`](crate::operation::get_recommendations::GetRecommendationsOutput::recommendations): <p>The list of recommendations that the analysis found for this profile.</p>
15    ///   - [`anomalies(Vec::<Anomaly>)`](crate::operation::get_recommendations::GetRecommendationsOutput::anomalies): <p>The list of anomalies that the analysis has found for this profile.</p>
16    /// - On failure, responds with [`SdkError<GetRecommendationsError>`](crate::operation::get_recommendations::GetRecommendationsError)
17    pub fn get_recommendations(&self) -> crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder {
18        crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::new(self.handle.clone())
19    }
20}