deleteKeyPair
inline suspend fun Ec2Client.deleteKeyPair(crossinline block: DeleteKeyPairRequest.Builder.() -> Unit): DeleteKeyPairResponse
Deletes the specified key pair, by removing the public key from Amazon EC2.
Samples
fun main() {
//sampleStart
// This example deletes the specified key pair.
ec2Client.deleteKeyPair {
keyName = "my-key-pair"
}
//sampleEnd
}