TeamSyncGroupMappingArgs

data class TeamSyncGroupMappingArgs(val groups: Output<List<TeamSyncGroupMappingGroupArgs>>? = null, val teamSlug: Output<String>? = null) : ConvertibleToJava<TeamSyncGroupMappingArgs>

This resource allows you to create and manage Identity Provider (IdP) group connections within your GitHub teams. You must have team synchronization enabled for organizations owned by enterprise accounts. To learn more about team synchronization between IdPs and GitHub, please refer to: https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/synchronizing-teams-between-your-identity-provider-and-github

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const exampleGroups = github.getOrganizationTeamSyncGroups({});
const exampleGroupMapping = new github.TeamSyncGroupMapping("example_group_mapping", {
groups: .map(entry => ({
groupId: entry.value.groupId,
groupName: entry.value.groupName,
groupDescription: entry.value.groupDescription,
})),
teamSlug: "example",
});
import pulumi
import pulumi_github as github
example_groups = github.get_organization_team_sync_groups()
example_group_mapping = github.TeamSyncGroupMapping("example_group_mapping",
groups=[{"key": k, "value": v} for k, v in [g for g in example_groups&#46;groups if g&#46;group_name == "some_team_group"]].apply(lambda entries: [{
"groupId": entry["value"].group_id,
"groupName": entry["value"].group_name,
"groupDescription": entry["value"].group_description,
} for entry in entries]),
team_slug="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var exampleGroups = Github.GetOrganizationTeamSyncGroups.Invoke();
var exampleGroupMapping = new Github.TeamSyncGroupMapping("example_group_mapping", new()
{
Groups = ,
TeamSlug = "example",
});
});

Import

GitHub Team Sync Group Mappings can be imported using the GitHub team slug e.g.

$ pulumi import github:index/teamSyncGroupMapping:TeamSyncGroupMapping example some_team

Constructors

Link copied to clipboard
constructor(groups: Output<List<TeamSyncGroupMappingGroupArgs>>? = null, teamSlug: Output<String>? = null)

Properties

Link copied to clipboard

An Array of GitHub Identity Provider Groups (or empty []). Each group block consists of the fields documented below.

Link copied to clipboard
val teamSlug: Output<String>? = null

Slug of the team

Functions

Link copied to clipboard
open override fun toJava(): TeamSyncGroupMappingArgs