/// <summary> /// Get notifications of a budget /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget service method.</param> /// /// <returns>The response from the DescribeNotificationsForBudget service method, as returned by Budgets.</returns> /// <exception cref="Amazon.Budgets.Model.ExpiredNextTokenException"> /// This exception is thrown if the paging token is expired - past its TTL /// </exception> /// <exception cref="Amazon.Budgets.Model.InternalErrorException"> /// This exception is thrown on an unknown internal failure. /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidNextTokenException"> /// This exception is thrown if paging token signature didn't match the token, or the /// paging token isn't for this request /// </exception> /// <exception cref="Amazon.Budgets.Model.InvalidParameterException"> /// This exception is thrown if any request is given an invalid parameter. E.g., if a /// required Date field is null. /// </exception> /// <exception cref="Amazon.Budgets.Model.NotFoundException"> /// This exception is thrown if a requested entity is not found. E.g., if a budget id /// doesn't exist for an account ID. /// </exception> public DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { var marshaller = new DescribeNotificationsForBudgetRequestMarshaller(); var unmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return(Invoke <DescribeNotificationsForBudgetRequest, DescribeNotificationsForBudgetResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Lists the notifications that are associated with a budget. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget 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 DescribeNotificationsForBudget 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 <DescribeNotificationsForBudgetResponse> DescribeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return(InvokeAsync <DescribeNotificationsForBudgetResponse>(request, options, cancellationToken)); }
internal virtual DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return(Invoke <DescribeNotificationsForBudgetResponse>(request, options)); }
internal virtual DescribeNotificationsForBudgetResponse DescribeNotificationsForBudget(DescribeNotificationsForBudgetRequest request) { var marshaller = DescribeNotificationsForBudgetRequestMarshaller.Instance; var unmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return(Invoke <DescribeNotificationsForBudgetRequest, DescribeNotificationsForBudgetResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeNotificationsForBudget operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationsForBudget 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 Task <DescribeNotificationsForBudgetResponse> DescribeNotificationsForBudgetAsync(DescribeNotificationsForBudgetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeNotificationsForBudgetRequestMarshaller(); var unmarshaller = DescribeNotificationsForBudgetResponseUnmarshaller.Instance; return(InvokeAsync <DescribeNotificationsForBudgetRequest, DescribeNotificationsForBudgetResponse>(request, marshaller, unmarshaller, cancellationToken)); }