key_pair#

async idem_aws.exec.aws.ec2.key_pair.get(hub, ctx, name, resource_id: str = None, filters: List[Dict[str, str]] = None) Dict[source]#

Get a key_pair resource from AWS.

Supply one of the inputs as the filter to find a key pair. If more than one resource is found, the first resource returned from AWS will be used. The function returns None when no resource is found.

Parameters: