Amazon.EC2.AmazonEC2Client.RejectVpcPeeringConnectionAsync C# (CSharp) Method

RejectVpcPeeringConnectionAsync() public method

Initiates the asynchronous execution of the RejectVpcPeeringConnection operation.
public RejectVpcPeeringConnectionAsync ( RejectVpcPeeringConnectionRequest request, System cancellationToken = default(CancellationToken) ) : Task
request RejectVpcPeeringConnectionRequest Container for the necessary parameters to execute the RejectVpcPeeringConnection operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<RejectVpcPeeringConnectionResponse> RejectVpcPeeringConnectionAsync(RejectVpcPeeringConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new RejectVpcPeeringConnectionRequestMarshaller();
            var unmarshaller = RejectVpcPeeringConnectionResponseUnmarshaller.Instance;

            return InvokeAsync<RejectVpcPeeringConnectionRequest,RejectVpcPeeringConnectionResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client