1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetScalingPlanResourceForecastData`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`scaling_plan_name(impl Into<String>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::scaling_plan_name) / [`set_scaling_plan_name(Option<String>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_scaling_plan_name):<br>required: **true**<br><p>The name of the scaling plan.</p><br>
    ///   - [`scaling_plan_version(i64)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::scaling_plan_version) / [`set_scaling_plan_version(Option<i64>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_scaling_plan_version):<br>required: **true**<br><p>The version number of the scaling plan. Currently, the only valid value is <code>1</code>.</p><br>
    ///   - [`service_namespace(ServiceNamespace)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::service_namespace) / [`set_service_namespace(Option<ServiceNamespace>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_service_namespace):<br>required: **true**<br><p>The namespace of the AWS service. The only valid value is <code>autoscaling</code>.</p><br>
    ///   - [`resource_id(impl Into<String>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_resource_id):<br>required: **true**<br><p>The ID of the resource. This string consists of a prefix (<code>autoScalingGroup</code>) followed by the name of a specified Auto Scaling group (<code>my-asg</code>). Example: <code>autoScalingGroup/my-asg</code>.</p><br>
    ///   - [`scalable_dimension(ScalableDimension)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::scalable_dimension) / [`set_scalable_dimension(Option<ScalableDimension>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_scalable_dimension):<br>required: **true**<br><p>The scalable dimension for the resource. The only valid value is <code>autoscaling:autoScalingGroup:DesiredCapacity</code>.</p><br>
    ///   - [`forecast_data_type(ForecastDataType)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::forecast_data_type) / [`set_forecast_data_type(Option<ForecastDataType>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_forecast_data_type):<br>required: **true**<br><p>The type of forecast data to get.</p> <ul>  <li>   <p><code>LoadForecast</code>: The load metric forecast.</p></li>  <li>   <p><code>CapacityForecast</code>: The capacity forecast.</p></li>  <li>   <p><code>ScheduledActionMinCapacity</code>: The minimum capacity for each scheduled scaling action. This data is calculated as the larger of two values: the capacity forecast or the minimum capacity in the scaling instruction.</p></li>  <li>   <p><code>ScheduledActionMaxCapacity</code>: The maximum capacity for each scheduled scaling action. The calculation used is determined by the predictive scaling maximum capacity behavior setting in the scaling instruction.</p></li> </ul><br>
    ///   - [`start_time(DateTime)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::start_time) / [`set_start_time(Option<DateTime>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_start_time):<br>required: **true**<br><p>The inclusive start time of the time range for the forecast data to get. The date and time can be at most 56 days before the current date and time.</p><br>
    ///   - [`end_time(DateTime)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::end_time) / [`set_end_time(Option<DateTime>)`](crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::set_end_time):<br>required: **true**<br><p>The exclusive end time of the time range for the forecast data to get. The maximum time duration between the start and end time is seven days.</p> <p>Although this parameter can accept a date and time that is more than two days in the future, the availability of forecast data has limits. AWS Auto Scaling only issues forecasts for periods of two days in advance.</p><br>
    /// - On success, responds with [`GetScalingPlanResourceForecastDataOutput`](crate::operation::get_scaling_plan_resource_forecast_data::GetScalingPlanResourceForecastDataOutput) with field(s):
    ///   - [`datapoints(Vec::<Datapoint>)`](crate::operation::get_scaling_plan_resource_forecast_data::GetScalingPlanResourceForecastDataOutput::datapoints): <p>The data points to return.</p>
    /// - On failure, responds with [`SdkError<GetScalingPlanResourceForecastDataError>`](crate::operation::get_scaling_plan_resource_forecast_data::GetScalingPlanResourceForecastDataError)
    pub fn get_scaling_plan_resource_forecast_data(
        &self,
    ) -> crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder {
        crate::operation::get_scaling_plan_resource_forecast_data::builders::GetScalingPlanResourceForecastDataFluentBuilder::new(self.handle.clone())
    }
}