Amazon.Lightsail.AmazonLightsailClient.GetKeyPairsAsync C# (CSharp) Method

GetKeyPairsAsync() public method

Initiates the asynchronous execution of the GetKeyPairs operation.
public GetKeyPairsAsync ( GetKeyPairsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Lightsail.Model.GetKeyPairsRequest Container for the necessary parameters to execute the GetKeyPairs operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<GetKeyPairsResponse> GetKeyPairsAsync(GetKeyPairsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetKeyPairsRequestMarshaller();
            var unmarshaller = GetKeyPairsResponseUnmarshaller.Instance;

            return InvokeAsync<GetKeyPairsRequest,GetKeyPairsResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonLightsailClient