# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import pulumi
import pulumi.runtime
from .. import utilities

class GetSSHKeyResult(object):
    """
    A collection of values returned by getSSHKey.
    """
    def __init__(__self__, fingerprint=None, public_key=None, id=None):
        if fingerprint and not isinstance(fingerprint, basestring):
            raise TypeError('Expected argument fingerprint to be a basestring')
        __self__.fingerprint = fingerprint
        if public_key and not isinstance(public_key, basestring):
            raise TypeError('Expected argument public_key to be a basestring')
        __self__.public_key = public_key
        if id and not isinstance(id, basestring):
            raise TypeError('Expected argument id to be a basestring')
        __self__.id = id
        """
        id is the provider-assigned unique ID for this managed resource.
        """

def get_ssh_key(name=None):
    __args__ = dict()

    __args__['name'] = name
    __ret__ = pulumi.runtime.invoke('do:core/getSSHKey:getSSHKey', __args__)

    return GetSSHKeyResult(
        fingerprint=__ret__.get('fingerprint'),
        public_key=__ret__.get('publicKey'),
        id=__ret__.get('id'))
