/// <summary> /// Initiates the asynchronous execution of the EstimateTemplateCost operation. /// <seealso cref="Amazon.CloudFormation.IAmazonCloudFormation.EstimateTemplateCost"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost 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 <EstimateTemplateCostResponse> EstimateTemplateCostAsync(EstimateTemplateCostRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EstimateTemplateCostRequestMarshaller(); var unmarshaller = EstimateTemplateCostResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, EstimateTemplateCostRequest, EstimateTemplateCostResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request) { var marshaller = new EstimateTemplateCostRequestMarshaller(); var unmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return(Invoke <EstimateTemplateCostRequest, EstimateTemplateCostResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the EstimateTemplateCost operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost 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 <EstimateTemplateCostResponse> EstimateTemplateCostAsync(EstimateTemplateCostRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new EstimateTemplateCostRequestMarshaller(); var unmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance; return(InvokeAsync <EstimateTemplateCostRequest, EstimateTemplateCostResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// <para>Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that /// describes the resources required to run the template.</para> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EstimateTemplateCost service method on /// AmazonCloudFormation.</param> /// /// <returns>The response from the EstimateTemplateCost service method, as returned by AmazonCloudFormation.</returns> public EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request) { var task = EstimateTemplateCostAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }