internal ConfirmPublicVirtualInterfaceResponse ConfirmPublicVirtualInterface(ConfirmPublicVirtualInterfaceRequest request) { var marshaller = new ConfirmPublicVirtualInterfaceRequestMarshaller(); var unmarshaller = ConfirmPublicVirtualInterfaceResponseUnmarshaller.Instance; return(Invoke <ConfirmPublicVirtualInterfaceRequest, ConfirmPublicVirtualInterfaceResponse>(request, marshaller, unmarshaller)); }
internal ConfirmPublicVirtualInterfaceResponse ConfirmPublicVirtualInterface(ConfirmPublicVirtualInterfaceRequest request) { var task = ConfirmPublicVirtualInterfaceAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }
/// <summary> /// Initiates the asynchronous execution of the ConfirmPublicVirtualInterface operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ConfirmPublicVirtualInterface 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 <ConfirmPublicVirtualInterfaceResponse> ConfirmPublicVirtualInterfaceAsync(ConfirmPublicVirtualInterfaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ConfirmPublicVirtualInterfaceRequestMarshaller(); var unmarshaller = ConfirmPublicVirtualInterfaceResponseUnmarshaller.Instance; return(InvokeAsync <ConfirmPublicVirtualInterfaceRequest, ConfirmPublicVirtualInterfaceResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// <para>Accept ownership of a public virtual interface created by another customer.</para> <para>After the virtual interface owner calls this /// function, the specified virtual interface will be created and made available for handling traffic.</para> /// </summary> /// /// <param name="confirmPublicVirtualInterfaceRequest">Container for the necessary parameters to execute the ConfirmPublicVirtualInterface /// service method on AmazonDirectConnect.</param> /// /// <returns>The response from the ConfirmPublicVirtualInterface service method, as returned by AmazonDirectConnect.</returns> /// /// <exception cref="T:Amazon.DirectConnect.Model.DirectConnectServerException" /> /// <exception cref="T:Amazon.DirectConnect.Model.DirectConnectClientException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <ConfirmPublicVirtualInterfaceResponse> ConfirmPublicVirtualInterfaceAsync(ConfirmPublicVirtualInterfaceRequest confirmPublicVirtualInterfaceRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ConfirmPublicVirtualInterfaceRequestMarshaller(); var unmarshaller = ConfirmPublicVirtualInterfaceResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, ConfirmPublicVirtualInterfaceRequest, ConfirmPublicVirtualInterfaceResponse>(confirmPublicVirtualInterfaceRequest, marshaller, unmarshaller, signer, cancellationToken)); }