/// <summary> /// Initiates the asynchronous execution of the AllocatePrivateVirtualInterface operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AllocatePrivateVirtualInterface 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 <AllocatePrivateVirtualInterfaceResponse> AllocatePrivateVirtualInterfaceAsync(AllocatePrivateVirtualInterfaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AllocatePrivateVirtualInterfaceRequestMarshaller(); var unmarshaller = AllocatePrivateVirtualInterfaceResponseUnmarshaller.Instance; return(InvokeAsync <AllocatePrivateVirtualInterfaceRequest, AllocatePrivateVirtualInterfaceResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// <para>Provisions a private virtual interface to be owned by a different customer.</para> <para>The owner of a connection calls this function /// to provision a private virtual interface which will be owned by another AWS customer.</para> <para>Virtual interfaces created using this /// function must be confirmed by the virtual interface owner by calling ConfirmPrivateVirtualInterface. Until this step has been completed, /// the virtual interface will be in 'Confirming' state, and will not be available for handling traffic.</para> /// </summary> /// /// <param name="allocatePrivateVirtualInterfaceRequest">Container for the necessary parameters to execute the AllocatePrivateVirtualInterface /// service method on AmazonDirectConnect.</param> /// /// <returns>The response from the AllocatePrivateVirtualInterface 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 <AllocatePrivateVirtualInterfaceResponse> AllocatePrivateVirtualInterfaceAsync(AllocatePrivateVirtualInterfaceRequest allocatePrivateVirtualInterfaceRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new AllocatePrivateVirtualInterfaceRequestMarshaller(); var unmarshaller = AllocatePrivateVirtualInterfaceResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, AllocatePrivateVirtualInterfaceRequest, AllocatePrivateVirtualInterfaceResponse>(allocatePrivateVirtualInterfaceRequest, marshaller, unmarshaller, signer, cancellationToken)); }
internal AllocatePrivateVirtualInterfaceResponse AllocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest request) { var marshaller = new AllocatePrivateVirtualInterfaceRequestMarshaller(); var unmarshaller = AllocatePrivateVirtualInterfaceResponseUnmarshaller.Instance; return(Invoke <AllocatePrivateVirtualInterfaceRequest, AllocatePrivateVirtualInterfaceResponse>(request, marshaller, unmarshaller)); }
internal AllocatePrivateVirtualInterfaceResponse AllocatePrivateVirtualInterface(AllocatePrivateVirtualInterfaceRequest request) { var task = AllocatePrivateVirtualInterfaceAsync(request); try { return(task.Result); } catch (AggregateException e) { ExceptionDispatchInfo.Capture(e.InnerException).Throw(); return(null); } }