/// <summary> /// <para>Deletes the connection.</para> <para>Deleting a connection only stops the AWS Direct Connect port hour and data transfer charges. You /// separately need to cancel any services or charges for cross-connects or network circuits that connect you to the AWS Direct Connect location /// with the providers of those services.</para> /// </summary> /// /// <param name="deleteConnectionRequest">Container for the necessary parameters to execute the DeleteConnection service method on /// AmazonDirectConnect.</param> /// /// <returns>The response from the DeleteConnection 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 <DeleteConnectionResponse> DeleteConnectionAsync(DeleteConnectionRequest deleteConnectionRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DeleteConnectionRequestMarshaller(); var unmarshaller = DeleteConnectionResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DeleteConnectionRequest, DeleteConnectionResponse>(deleteConnectionRequest, marshaller, unmarshaller, signer, cancellationToken)); }
public override DeleteConnectionResponse GetResponse(UnmarshallerContext unmarshallerContext) { return(DeleteConnectionResponseUnmarshaller.Unmarshall(unmarshallerContext)); }