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

CreateKeyPairAsync() public method

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

            return InvokeAsync<CreateKeyPairRequest,CreateKeyPairResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
AmazonEC2Client