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

DownloadDefaultKeyPairAsync() public method

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

            return InvokeAsync<DownloadDefaultKeyPairRequest,DownloadDefaultKeyPairResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonLightsailClient