Team Args
data class TeamArgs(val createDefaultMaintainer: Output<Boolean>? = null, val description: Output<String>? = null, val ldapDn: Output<String>? = null, val name: Output<String>? = null, val parentTeamId: Output<String>? = null, val parentTeamReadId: Output<String>? = null, val parentTeamReadSlug: Output<String>? = null, val privacy: Output<String>? = null) : ConvertibleToJava<TeamArgs>
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());
}
}
Content copied to clipboard
Import
GitHub Teams can be imported using the GitHub team ID or name e.g.
$ pulumi import github:index/team:Team core 1234567
Content copied to clipboard
$ pulumi import github:index/team:Team core Administrators
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(createDefaultMaintainer: Output<Boolean>? = null, description: Output<String>? = null, ldapDn: Output<String>? = null, name: Output<String>? = null, parentTeamId: Output<String>? = null, parentTeamReadId: Output<String>? = null, parentTeamReadSlug: Output<String>? = null, privacy: Output<String>? = null)
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
A description of the team.
Link copied to clipboard
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.