Search in sources :

Example 1 with ImportKeyPairRequest

use of com.amazonaws.services.ec2.model.ImportKeyPairRequest in project GNS by MobilityFirst.

the class AWSEC2 method importKeyPair.

/**
   *
   * @param ec2
   * @param name
   * @param publicKeyMaterial
   */
public static void importKeyPair(AmazonEC2 ec2, String name, String publicKeyMaterial) {
    ImportKeyPairRequest newKeyRequest = new ImportKeyPairRequest(name, publicKeyMaterial);
    ec2.importKeyPair(newKeyRequest);
}
Also used : ImportKeyPairRequest(com.amazonaws.services.ec2.model.ImportKeyPairRequest)

Aggregations

ImportKeyPairRequest (com.amazonaws.services.ec2.model.ImportKeyPairRequest)1