/// <summary> /// Lists the budgets associated with an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets service method.</param> /// /// <returns>The response from the DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> public virtual DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request) { var marshaller = DescribeBudgetsRequestMarshaller.Instance; var unmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return(Invoke <DescribeBudgetsRequest, DescribeBudgetsResponse>(request, marshaller, unmarshaller)); }
internal DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request) { var marshaller = new DescribeBudgetsRequestMarshaller(); var unmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return(Invoke <DescribeBudgetsRequest, DescribeBudgetsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeBudgets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public virtual Task <DescribeBudgetsResponse> DescribeBudgetsAsync(DescribeBudgetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeBudgetsRequestMarshaller.Instance; var unmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeBudgetsRequest, DescribeBudgetsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Lists the budgets that are associated with an account. /// /// <important> /// <para> /// The Request Syntax section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_DescribeBudgets.html#API_DescribeBudgets_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBudgets 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 DescribeBudgets service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.AccessDeniedException"> /// You are not authorized to use this operation with the given parameters. /// </exception> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// The pagination token expired. /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// An error on the server occurred during the processing of your request. Try again later. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// The pagination token is invalid. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// An error on the client occurred. Typically, the cause is an invalid input value. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// We can’t locate the resource that you specified. /// </exception> public virtual Task <DescribeBudgetsResponse> DescribeBudgetsAsync(DescribeBudgetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return(InvokeAsync <DescribeBudgetsResponse>(request, options, cancellationToken)); }
internal virtual DescribeBudgetsResponse DescribeBudgets(DescribeBudgetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeBudgetsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeBudgetsResponseUnmarshaller.Instance; return(Invoke <DescribeBudgetsResponse>(request, options)); }