Team

class Team : KotlinCustomResource

Provides a GitHub team resource. This resource allows you to add/remove teams from your organization. When applied, a new team will be created. When destroyed, that team will be removed.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.Team;
import com.pulumi.github.TeamArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var someTeam = new Team("someTeam", TeamArgs.builder()
.description("Some cool team")
.privacy("closed")
.build());
}
}

Import

GitHub Teams can be imported using the GitHub team ID or name e.g.

$ pulumi import github:index/team:Team core 1234567
$ pulumi import github:index/team:Team core Administrators

Properties

Link copied to clipboard

Adds a default maintainer to the team. Defaults to false and adds the creating user to the team when true.

Link copied to clipboard
val description: Output<String>?

A description of the team.

Link copied to clipboard
val etag: Output<String>
Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ldapDn: Output<String>?

The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server.

Link copied to clipboard
val membersCount: Output<Int>
Link copied to clipboard
val name: Output<String>

The name of the team.

Link copied to clipboard
val nodeId: Output<String>

The Node ID of the created team.

Link copied to clipboard
val parentTeamId: Output<String>?

The ID or slug of the parent team, if this is a nested team.

Link copied to clipboard

The id of the parent team read in Github.

Link copied to clipboard

The id of the parent team read in Github.

Link copied to clipboard
val privacy: Output<String>?

The level of privacy for the team. Must be one of secret or closed. Defaults to secret.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val slug: Output<String>

The slug of the created team, which may or may not differ from name, depending on whether name contains "URL-unsafe" characters. Useful when referencing the team in github&#46;BranchProtection.

Link copied to clipboard
val urn: Output<String>