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

class GetOrganizationTeamSyncGroupsResult:
    """
    A collection of values returned by getOrganizationTeamSyncGroups.
    """
    def __init__(__self__, groups=None, id=None):
        if groups and not isinstance(groups, list):
            raise TypeError("Expected argument 'groups' to be a list")
        __self__.groups = groups
        """
        An Array of GitHub Identity Provider Groups.  Each `group` block consists of the fields documented below.
        """
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        __self__.id = id
        """
        The provider-assigned unique ID for this managed resource.
        """
class AwaitableGetOrganizationTeamSyncGroupsResult(GetOrganizationTeamSyncGroupsResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetOrganizationTeamSyncGroupsResult(
            groups=self.groups,
            id=self.id)

def get_organization_team_sync_groups(opts=None):
    """
    Use this data source to retrieve the identity provider (IdP) groups for an organization.

    ## Example Usage

    ```python
    import pulumi
    import pulumi_github as github

    test = github.get_organization_team_sync_groups()
    ```
    """
    __args__ = dict()


    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = utilities.get_version()
    __ret__ = pulumi.runtime.invoke('github:index/getOrganizationTeamSyncGroups:getOrganizationTeamSyncGroups', __args__, opts=opts).value

    return AwaitableGetOrganizationTeamSyncGroupsResult(
        groups=__ret__.get('groups'),
        id=__ret__.get('id'))
