internal virtual DescribeWorkspaceResponse DescribeWorkspace(DescribeWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance; return(Invoke <DescribeWorkspaceResponse>(request, options)); }
/// <summary> /// Describes an existing AMP workspace. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWorkspace 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 DescribeWorkspace service method, as returned by PrometheusService.</returns> /// <exception cref="Amazon.PrometheusService.Model.AccessDeniedException"> /// User does not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.PrometheusService.Model.InternalServerException"> /// Unexpected error during processing of request. /// </exception> /// <exception cref="Amazon.PrometheusService.Model.ResourceNotFoundException"> /// Request references a resource which does not exist. /// </exception> /// <exception cref="Amazon.PrometheusService.Model.ThrottlingException"> /// Request was denied due to request throttling. /// </exception> /// <exception cref="Amazon.PrometheusService.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace">REST API Reference for DescribeWorkspace Operation</seealso> public virtual Task <DescribeWorkspaceResponse> DescribeWorkspaceAsync(DescribeWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance; return(InvokeAsync <DescribeWorkspaceResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeWorkspace operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeWorkspace operation on AmazonPrometheusServiceClient.</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 EndDescribeWorkspace /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace">REST API Reference for DescribeWorkspace Operation</seealso> public virtual IAsyncResult BeginDescribeWorkspace(DescribeWorkspaceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkspaceResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }