/// <summary> /// Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana Enterprise /// incurs additional fees. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html">Upgrade /// a workspace to Grafana Enterprise</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateLicense 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 AssociateLicense service method, as returned by ManagedGrafana.</returns> /// <exception cref="Amazon.ManagedGrafana.Model.AccessDeniedException"> /// You do not have sufficient permissions to perform this action. /// </exception> /// <exception cref="Amazon.ManagedGrafana.Model.InternalServerException"> /// Unexpected error while processing the request. Retry the request. /// </exception> /// <exception cref="Amazon.ManagedGrafana.Model.ResourceNotFoundException"> /// The request references a resource that does not exist. /// </exception> /// <exception cref="Amazon.ManagedGrafana.Model.ThrottlingException"> /// The request was denied because of request throttling. Retry the request. /// </exception> /// <exception cref="Amazon.ManagedGrafana.Model.ValidationException"> /// The value of a parameter in the request caused an error. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/AssociateLicense">REST API Reference for AssociateLicense Operation</seealso> public virtual Task <AssociateLicenseResponse> AssociateLicenseAsync(AssociateLicenseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateLicenseRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateLicenseResponseUnmarshaller.Instance; return(InvokeAsync <AssociateLicenseResponse>(request, options, cancellationToken)); }
internal virtual AssociateLicenseResponse AssociateLicense(AssociateLicenseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateLicenseRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateLicenseResponseUnmarshaller.Instance; return(Invoke <AssociateLicenseResponse>(request, options)); }