# 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 builtins
import copy
import warnings
import sys
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
if sys.version_info >= (3, 11):
    from typing import NotRequired, TypedDict, TypeAlias
else:
    from typing_extensions import NotRequired, TypedDict, TypeAlias
from .. import _utilities

__all__ = [
    'GetClusterUserGroupResult',
    'AwaitableGetClusterUserGroupResult',
    'get_cluster_user_group',
    'get_cluster_user_group_output',
]

@pulumi.output_type
class GetClusterUserGroupResult:
    """
    A collection of values returned by getClusterUserGroup.
    """
    def __init__(__self__, cluster_id=None, description=None, id=None, members=None, user_group_name=None):
        if cluster_id and not isinstance(cluster_id, str):
            raise TypeError("Expected argument 'cluster_id' to be a str")
        pulumi.set(__self__, "cluster_id", cluster_id)
        if description and not isinstance(description, str):
            raise TypeError("Expected argument 'description' to be a str")
        pulumi.set(__self__, "description", description)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if members and not isinstance(members, list):
            raise TypeError("Expected argument 'members' to be a list")
        pulumi.set(__self__, "members", members)
        if user_group_name and not isinstance(user_group_name, str):
            raise TypeError("Expected argument 'user_group_name' to be a str")
        pulumi.set(__self__, "user_group_name", user_group_name)

    @property
    @pulumi.getter(name="clusterId")
    def cluster_id(self) -> builtins.str:
        """
        集群ID。
        """
        return pulumi.get(self, "cluster_id")

    @property
    @pulumi.getter
    def description(self) -> builtins.str:
        """
        用户组描述。
        """
        return pulumi.get(self, "description")

    @property
    @pulumi.getter
    def id(self) -> builtins.str:
        """
        Uniquely identifies the resource.
        """
        return pulumi.get(self, "id")

    @property
    @pulumi.getter
    def members(self) -> Sequence[builtins.str]:
        """
        用户组成员。不支持操作特殊用户，如admin等。
        """
        return pulumi.get(self, "members")

    @property
    @pulumi.getter(name="userGroupName")
    def user_group_name(self) -> builtins.str:
        """
        用户组名称。
        """
        return pulumi.get(self, "user_group_name")


class AwaitableGetClusterUserGroupResult(GetClusterUserGroupResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetClusterUserGroupResult(
            cluster_id=self.cluster_id,
            description=self.description,
            id=self.id,
            members=self.members,
            user_group_name=self.user_group_name)


def get_cluster_user_group(id: Optional[builtins.str] = None,
                           opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClusterUserGroupResult:
    """
    Data Source schema for Byteplus::EMR::ClusterUserGroup


    :param builtins.str id: Uniquely identifies the resource.
    """
    __args__ = dict()
    __args__['id'] = id
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('bytepluscc:emr/getClusterUserGroup:getClusterUserGroup', __args__, opts=opts, typ=GetClusterUserGroupResult).value

    return AwaitableGetClusterUserGroupResult(
        cluster_id=pulumi.get(__ret__, 'cluster_id'),
        description=pulumi.get(__ret__, 'description'),
        id=pulumi.get(__ret__, 'id'),
        members=pulumi.get(__ret__, 'members'),
        user_group_name=pulumi.get(__ret__, 'user_group_name'))
def get_cluster_user_group_output(id: Optional[pulumi.Input[builtins.str]] = None,
                                  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClusterUserGroupResult]:
    """
    Data Source schema for Byteplus::EMR::ClusterUserGroup


    :param builtins.str id: Uniquely identifies the resource.
    """
    __args__ = dict()
    __args__['id'] = id
    opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke_output('bytepluscc:emr/getClusterUserGroup:getClusterUserGroup', __args__, opts=opts, typ=GetClusterUserGroupResult)
    return __ret__.apply(lambda __response__: GetClusterUserGroupResult(
        cluster_id=pulumi.get(__response__, 'cluster_id'),
        description=pulumi.get(__response__, 'description'),
        id=pulumi.get(__response__, 'id'),
        members=pulumi.get(__response__, 'members'),
        user_group_name=pulumi.get(__response__, 'user_group_name')))
