Struct aws_sdk_autoscaling::operation::get_predictive_scaling_forecast::builders::GetPredictiveScalingForecastFluentBuilder
source · pub struct GetPredictiveScalingForecastFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetPredictiveScalingForecast.
Retrieves the forecast data for a predictive scaling policy.
Load forecasts are predictions of the hourly load values using historical load data from CloudWatch and an analysis of historical trends. Capacity forecasts are represented as predicted values for the minimum capacity that is needed on an hourly basis, based on the hourly load forecast.
A minimum of 24 hours of data is required to create the initial forecasts. However, having a full 14 days of historical data results in more accurate forecasts.
For more information, see Predictive scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
Implementations§
source§impl GetPredictiveScalingForecastFluentBuilder
impl GetPredictiveScalingForecastFluentBuilder
sourcepub fn as_input(&self) -> &GetPredictiveScalingForecastInputBuilder
pub fn as_input(&self) -> &GetPredictiveScalingForecastInputBuilder
Access the GetPredictiveScalingForecast as a reference.
sourcepub async fn send(
self
) -> Result<GetPredictiveScalingForecastOutput, SdkError<GetPredictiveScalingForecastError, HttpResponse>>
pub async fn send( self ) -> Result<GetPredictiveScalingForecastOutput, SdkError<GetPredictiveScalingForecastError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetPredictiveScalingForecastOutput, GetPredictiveScalingForecastError, Self>
pub fn customize( self ) -> CustomizableOperation<GetPredictiveScalingForecastOutput, GetPredictiveScalingForecastError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
pub fn auto_scaling_group_name(self, input: impl Into<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
pub fn set_auto_scaling_group_name(self, input: Option<String>) -> Self
The name of the Auto Scaling group.
sourcepub fn get_auto_scaling_group_name(&self) -> &Option<String>
pub fn get_auto_scaling_group_name(&self) -> &Option<String>
The name of the Auto Scaling group.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The inclusive start time of the time range for the forecast data to get. At most, the date and time can be one year before the current date and time.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The inclusive start time of the time range for the forecast data to get. At most, the date and time can be one year before the current date and time.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The inclusive start time of the time range for the forecast data to get. At most, the date and time can be one year before the current date and time.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
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 30 days.
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. Amazon EC2 Auto Scaling only issues forecasts for periods of two days in advance.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
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 30 days.
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. Amazon EC2 Auto Scaling only issues forecasts for periods of two days in advance.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
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 30 days.
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. Amazon EC2 Auto Scaling only issues forecasts for periods of two days in advance.
Trait Implementations§
source§impl Clone for GetPredictiveScalingForecastFluentBuilder
impl Clone for GetPredictiveScalingForecastFluentBuilder
source§fn clone(&self) -> GetPredictiveScalingForecastFluentBuilder
fn clone(&self) -> GetPredictiveScalingForecastFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more