/// <summary> /// Creates a new tunnel, and returns two client access tokens for clients to use to connect /// to the AWS IoT Secure Tunneling proxy server. . /// </summary> /// <param name="request">Container for the necessary parameters to execute the OpenTunnel service method.</param> /// /// <returns>The response from the OpenTunnel service method, as returned by IoTSecureTunneling.</returns> /// <exception cref="Amazon.IoTSecureTunneling.Model.LimitExceededException"> /// Thrown when a tunnel limit is exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/OpenTunnel">REST API Reference for OpenTunnel Operation</seealso> public virtual OpenTunnelResponse OpenTunnel(OpenTunnelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = OpenTunnelRequestMarshaller.Instance; options.ResponseUnmarshaller = OpenTunnelResponseUnmarshaller.Instance; return(Invoke <OpenTunnelResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the OpenTunnel operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the OpenTunnel operation on AmazonIoTSecureTunnelingClient.</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 EndOpenTunnel /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/OpenTunnel">REST API Reference for OpenTunnel Operation</seealso> public virtual IAsyncResult BeginOpenTunnel(OpenTunnelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = OpenTunnelRequestMarshaller.Instance; options.ResponseUnmarshaller = OpenTunnelResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// Creates a new tunnel, and returns two client access tokens for clients to use to connect /// to the AWS IoT Secure Tunneling proxy server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the OpenTunnel 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 OpenTunnel service method, as returned by IoTSecureTunneling.</returns> /// <exception cref="Amazon.IoTSecureTunneling.Model.LimitExceededException"> /// Thrown when a tunnel limit is exceeded. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/OpenTunnel">REST API Reference for OpenTunnel Operation</seealso> public virtual Task <OpenTunnelResponse> OpenTunnelAsync(OpenTunnelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = OpenTunnelRequestMarshaller.Instance; options.ResponseUnmarshaller = OpenTunnelResponseUnmarshaller.Instance; return(InvokeAsync <OpenTunnelResponse>(request, options, cancellationToken)); }