def _get_key_id(alias, region=None, key=None, keyid=None, profile=None):
 key_metadata = describe_key(alias, region, key, keyid, profile)['key_metadata']
 return key_metadata['KeyId']

def _get_key_id ( alias , region = None , key = None , keyid = None , profile = None ) : key_metadata = describe_key ( alias , region , key , keyid , profile ) [ 'key_metadata' ] return key_metadata [ 'KeyId' ]
from an alias .