TeamSyncGroupMapping

class TeamSyncGroupMapping : KotlinCustomResource

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=[{
"group_id": entry["value"],
"group_name": entry["value"],
"group_description": entry["value"],
} for entry in [{"key": k, "value": v} for k, v in [g for g in example_groups.groups if g.group_name == "some_team_group"]]],
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

Properties

Link copied to clipboard
val etag: Output<String>
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 id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val teamSlug: Output<String>

Slug of the team

Link copied to clipboard
val urn: Output<String>