# 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 json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables

class GetPluginResult:
    """
    A collection of values returned by getPlugin.
    """
    def __init__(__self__, guid=None, id=None):
        if guid and not isinstance(guid, str):
            raise TypeError("Expected argument 'guid' to be a str")
        __self__.guid = guid
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        __self__.id = id
        """
        The ID of the installed plugin instance.
        """
class AwaitableGetPluginResult(GetPluginResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetPluginResult(
            guid=self.guid,
            id=self.id)

def get_plugin(guid=None,opts=None):
    """
    Use this data source to access information about an existing resource.
    
    :param str guid: The GUID of the plugin in New Relic.

    > This content is derived from https://github.com/terraform-providers/terraform-provider-newrelic/blob/master/website/docs/d/plugin.html.markdown.
    """
    __args__ = dict()

    __args__['guid'] = guid
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = utilities.get_version()
    __ret__ = pulumi.runtime.invoke('newrelic:plugins/getPlugin:getPlugin', __args__, opts=opts).value

    return AwaitableGetPluginResult(
        guid=__ret__.get('guid'),
        id=__ret__.get('id'))
