Amazon.Lightsail.AmazonLightsailClient.ImportKeyPairAsync C# (CSharp) Метод

ImportKeyPairAsync() публичный Метод

Initiates the asynchronous execution of the ImportKeyPair operation.
public ImportKeyPairAsync ( ImportKeyPairRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.Lightsail.Model.ImportKeyPairRequest Container for the necessary parameters to execute the ImportKeyPair operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
Результат Task
        public Task<ImportKeyPairResponse> ImportKeyPairAsync(ImportKeyPairRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new ImportKeyPairRequestMarshaller();
            var unmarshaller = ImportKeyPairResponseUnmarshaller.Instance;

            return InvokeAsync<ImportKeyPairRequest,ImportKeyPairResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonLightsailClient