EC2.ServiceResource.
KeyPair
Creates a KeyPairInfo resource.:
key_pair_info = ec2.KeyPair('name')
EC2.KeyPairInfo