internal DescribeClusterResponse DescribeCluster(DescribeClusterRequest request) { var marshaller = new DescribeClusterRequestMarshaller(); var unmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(Invoke <DescribeClusterRequest, DescribeClusterResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCluster operation. /// <seealso cref="Amazon.ElasticMapReduce.IAmazonElasticMapReduce"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCluster 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 <DescribeClusterResponse> DescribeClusterAsync(DescribeClusterRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeClusterRequestMarshaller(); var unmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(Invoke <IRequest, DescribeClusterRequest, DescribeClusterResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCluster operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCluster operation on AmazonEKSClient.</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 EndDescribeCluster /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster">REST API Reference for DescribeCluster Operation</seealso> public virtual IAsyncResult BeginDescribeCluster(DescribeClusterRequest request, AsyncCallback callback, object state) { var marshaller = DescribeClusterRequestMarshaller.Instance; var unmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(BeginInvoke <DescribeClusterRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCluster operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCluster 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/eks-2017-11-01/DescribeCluster">REST API Reference for DescribeCluster Operation</seealso> public virtual Task <DescribeClusterResponse> DescribeClusterAsync(DescribeClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeClusterRequestMarshaller.Instance; var unmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(InvokeAsync <DescribeClusterRequest, DescribeClusterResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCluster operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCluster 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/snowball-2016-06-30/DescribeCluster">REST API Reference for DescribeCluster Operation</seealso> public virtual Task <DescribeClusterResponse> DescribeClusterAsync(DescribeClusterRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(InvokeAsync <DescribeClusterResponse>(request, options, cancellationToken)); }
internal virtual DescribeClusterResponse DescribeCluster(DescribeClusterRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(Invoke <DescribeClusterResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeCluster operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCluster operation on AmazonEKSClient.</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 EndDescribeCluster /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster">REST API Reference for DescribeCluster Operation</seealso> public virtual IAsyncResult BeginDescribeCluster(DescribeClusterRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeClusterRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeClusterResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
internal DescribeClusterResponse DescribeCluster(DescribeClusterRequest request) { var task = DescribeClusterAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// 查询单个集群详情。 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <DescribeClusterResponse> DescribeCluster(DescribeClusterRequest request) { return(await new DescribeClusterExecutor().Client(this).Execute <DescribeClusterResponse, DescribeClusterResult, DescribeClusterRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 查询单个集群详情。 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public DescribeClusterResponse DescribeCluster(DescribeClusterRequest request) { return(new DescribeClusterExecutor().Client(this).Execute <DescribeClusterResponse, DescribeClusterResult, DescribeClusterRequest>(request)); }