/// <summary> /// Retrieves the reservation coverage for your account. This enables you to see how much /// of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database /// Service, or Amazon Redshift usage is covered by a reservation. An organization's master /// account can see the coverage of the associated member accounts. For any time period, /// you can filter data about reservation usage by the following dimensions: /// /// <ul> <li> /// <para> /// AZ /// </para> /// </li> <li> /// <para> /// CACHE_ENGINE /// </para> /// </li> <li> /// <para> /// DATABASE_ENGINE /// </para> /// </li> <li> /// <para> /// DEPLOYMENT_OPTION /// </para> /// </li> <li> /// <para> /// INSTANCE_TYPE /// </para> /// </li> <li> /// <para> /// LINKED_ACCOUNT /// </para> /// </li> <li> /// <para> /// OPERATING_SYSTEM /// </para> /// </li> <li> /// <para> /// PLATFORM /// </para> /// </li> <li> /// <para> /// REGION /// </para> /// </li> <li> /// <para> /// SERVICE /// </para> /// </li> <li> /// <para> /// TAG /// </para> /// </li> <li> /// <para> /// TENANCY /// </para> /// </li> </ul> /// <para> /// To determine valid values for a dimension, use the <code>GetDimensionValues</code> /// operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetReservationCoverage service method.</param> /// /// <returns>The response from the GetReservationCoverage service method, as returned by CostExplorer.</returns> /// <exception cref="Amazon.CostExplorer.Model.DataUnavailableException"> /// The requested data is unavailable. /// </exception> /// <exception cref="Amazon.CostExplorer.Model.InvalidNextTokenException"> /// The pagination token is invalid. Try again without a pagination token. /// </exception> /// <exception cref="Amazon.CostExplorer.Model.LimitExceededException"> /// You made too many calls in a short period of time. Try again later. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationCoverage">REST API Reference for GetReservationCoverage Operation</seealso> public virtual GetReservationCoverageResponse GetReservationCoverage(GetReservationCoverageRequest request) { var marshaller = GetReservationCoverageRequestMarshaller.Instance; var unmarshaller = GetReservationCoverageResponseUnmarshaller.Instance; return(Invoke <GetReservationCoverageRequest, GetReservationCoverageResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetReservationCoverage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetReservationCoverage operation on AmazonCostExplorerClient.</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 EndGetReservationCoverage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationCoverage">REST API Reference for GetReservationCoverage Operation</seealso> public virtual IAsyncResult BeginGetReservationCoverage(GetReservationCoverageRequest request, AsyncCallback callback, object state) { var marshaller = GetReservationCoverageRequestMarshaller.Instance; var unmarshaller = GetReservationCoverageResponseUnmarshaller.Instance; return(BeginInvoke <GetReservationCoverageRequest>(request, marshaller, unmarshaller, callback, state)); }
internal virtual GetReservationCoverageResponse GetReservationCoverage(GetReservationCoverageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetReservationCoverageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReservationCoverageResponseUnmarshaller.Instance; return(Invoke <GetReservationCoverageResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the GetReservationCoverage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetReservationCoverage operation on AmazonCostExplorerClient.</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 EndGetReservationCoverage /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationCoverage">REST API Reference for GetReservationCoverage Operation</seealso> public virtual IAsyncResult BeginGetReservationCoverage(GetReservationCoverageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetReservationCoverageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReservationCoverageResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Retrieves the reservation coverage for your account. This enables you to see how much /// of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database /// Service, or Amazon Redshift usage is covered by a reservation. An organization's master /// account can see the coverage of the associated member accounts. For any time period, /// you can filter data about reservation usage by the following dimensions: /// /// <ul> <li> /// <para> /// AZ /// </para> /// </li> <li> /// <para> /// CACHE_ENGINE /// </para> /// </li> <li> /// <para> /// DATABASE_ENGINE /// </para> /// </li> <li> /// <para> /// DEPLOYMENT_OPTION /// </para> /// </li> <li> /// <para> /// INSTANCE_TYPE /// </para> /// </li> <li> /// <para> /// LINKED_ACCOUNT /// </para> /// </li> <li> /// <para> /// OPERATING_SYSTEM /// </para> /// </li> <li> /// <para> /// PLATFORM /// </para> /// </li> <li> /// <para> /// REGION /// </para> /// </li> <li> /// <para> /// SERVICE /// </para> /// </li> <li> /// <para> /// TAG /// </para> /// </li> <li> /// <para> /// TENANCY /// </para> /// </li> </ul> /// <para> /// To determine valid values for a dimension, use the <code>GetDimensionValues</code> /// operation. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetReservationCoverage 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 GetReservationCoverage service method, as returned by CostExplorer.</returns> /// <exception cref="Amazon.CostExplorer.Model.DataUnavailableException"> /// The requested data is unavailable. /// </exception> /// <exception cref="Amazon.CostExplorer.Model.InvalidNextTokenException"> /// The pagination token is invalid. Try again without a pagination token. /// </exception> /// <exception cref="Amazon.CostExplorer.Model.LimitExceededException"> /// You made too many calls in a short period of time. Try again later. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationCoverage">REST API Reference for GetReservationCoverage Operation</seealso> public virtual Task <GetReservationCoverageResponse> GetReservationCoverageAsync(GetReservationCoverageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetReservationCoverageRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReservationCoverageResponseUnmarshaller.Instance; return(InvokeAsync <GetReservationCoverageResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetReservationCoverage operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetReservationCoverage 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationCoverage">REST API Reference for GetReservationCoverage Operation</seealso> public virtual Task <GetReservationCoverageResponse> GetReservationCoverageAsync(GetReservationCoverageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = GetReservationCoverageRequestMarshaller.Instance; var unmarshaller = GetReservationCoverageResponseUnmarshaller.Instance; return(InvokeAsync <GetReservationCoverageRequest, GetReservationCoverageResponse>(request, marshaller, unmarshaller, cancellationToken)); }