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);
}
Aggregations