# coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._enums import *

__all__ = [
    'GetOwnerResult',
    'AwaitableGetOwnerResult',
    'get_owner',
    'get_owner_output',
]

@pulumi.output_type
class GetOwnerResult:
    def __init__(__self__, items=None):
        if items and not isinstance(items, dict):
            raise TypeError("Expected argument 'items' to be a dict")
        pulumi.set(__self__, "items", items)

    @property
    @pulumi.getter
    def items(self) -> 'outputs.Owner':
        return pulumi.get(self, "items")


class AwaitableGetOwnerResult(GetOwnerResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetOwnerResult(
            items=self.items)


def get_owner(id: Optional[str] = None,
              opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOwnerResult:
    """
    Use this data source to access information about an existing resource.

    :param str id: (Required) The ID of the user or team
    """
    __args__ = dict()
    __args__['id'] = id
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('render:owners:getOwner', __args__, opts=opts, typ=GetOwnerResult).value

    return AwaitableGetOwnerResult(
        items=__ret__.items)


@_utilities.lift_output_func(get_owner)
def get_owner_output(id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetOwnerResult]:
    """
    Use this data source to access information about an existing resource.

    :param str id: (Required) The ID of the user or team
    """
    ...
