/// <summary> /// Initiates the asynchronous execution of the GetScalingPlanResourceForecastData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetScalingPlanResourceForecastData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual IAsyncResult BeginGetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request, AsyncCallback callback, object state) { var marshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; var unmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return(BeginInvoke <GetScalingPlanResourceForecastDataRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the GetScalingPlanResourceForecastData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetScalingPlanResourceForecastData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual IAsyncResult BeginGetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual Task <GetScalingPlanResourceForecastDataResponse> GetScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return(InvokeAsync <GetScalingPlanResourceForecastDataResponse>(request, options, cancellationToken)); }
internal virtual GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return(Invoke <GetScalingPlanResourceForecastDataResponse>(request, options)); }
internal virtual GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request) { var marshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; var unmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return(Invoke <GetScalingPlanResourceForecastDataRequest, GetScalingPlanResourceForecastDataResponse>(request, marshaller, unmarshaller)); }