import * as pulumi from "@pulumi/pulumi"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * // Add a team to the organization * const someTeam = new github.Team("some_team", { * name: "some-team", * description: "Some cool team", * privacy: "closed", * }); * ``` * * ## Import * * GitHub Teams can be imported using the GitHub team ID or name e.g. * * ```sh * $ pulumi import github:index/team:Team core 1234567 * ``` * * ```sh * $ pulumi import github:index/team:Team core Administrators * ``` */ export declare class Team extends pulumi.CustomResource { /** * Get an existing Team resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: TeamState, opts?: pulumi.CustomResourceOptions): Team; /** * Returns true if the given object is an instance of Team. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Team; /** * Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`. */ readonly createDefaultMaintainer: pulumi.Output; /** * A description of the team. */ readonly description: pulumi.Output; readonly etag: pulumi.Output; /** * The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server. */ readonly ldapDn: pulumi.Output; readonly membersCount: pulumi.Output; /** * The name of the team. */ readonly name: pulumi.Output; /** * The Node ID of the created team. */ readonly nodeId: pulumi.Output; /** * The ID or slug of the parent team, if this is a nested team. */ readonly parentTeamId: pulumi.Output; /** * The id of the parent team read in Github. */ readonly parentTeamReadId: pulumi.Output; /** * The id of the parent team read in Github. */ readonly parentTeamReadSlug: pulumi.Output; /** * The level of privacy for the team. Must be one of `secret` or `closed`. * Defaults to `secret`. */ readonly privacy: pulumi.Output; /** * 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.BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html). */ readonly slug: pulumi.Output; /** * Create a Team resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: TeamArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Team resources. */ export interface TeamState { /** * Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`. */ createDefaultMaintainer?: pulumi.Input; /** * A description of the team. */ description?: pulumi.Input; etag?: pulumi.Input; /** * The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server. */ ldapDn?: pulumi.Input; membersCount?: pulumi.Input; /** * The name of the team. */ name?: pulumi.Input; /** * The Node ID of the created team. */ nodeId?: pulumi.Input; /** * The ID or slug of the parent team, if this is a nested team. */ parentTeamId?: pulumi.Input; /** * The id of the parent team read in Github. */ parentTeamReadId?: pulumi.Input; /** * The id of the parent team read in Github. */ parentTeamReadSlug?: pulumi.Input; /** * The level of privacy for the team. Must be one of `secret` or `closed`. * Defaults to `secret`. */ privacy?: pulumi.Input; /** * 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.BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html). */ slug?: pulumi.Input; } /** * The set of arguments for constructing a Team resource. */ export interface TeamArgs { /** * Adds a default maintainer to the team. Defaults to `false` and adds the creating user to the team when `true`. */ createDefaultMaintainer?: pulumi.Input; /** * A description of the team. */ description?: pulumi.Input; /** * The LDAP Distinguished Name of the group where membership will be synchronized. Only available in GitHub Enterprise Server. */ ldapDn?: pulumi.Input; /** * The name of the team. */ name?: pulumi.Input; /** * The ID or slug of the parent team, if this is a nested team. */ parentTeamId?: pulumi.Input; /** * The id of the parent team read in Github. */ parentTeamReadId?: pulumi.Input; /** * The id of the parent team read in Github. */ parentTeamReadSlug?: pulumi.Input; /** * The level of privacy for the team. Must be one of `secret` or `closed`. * Defaults to `secret`. */ privacy?: pulumi.Input; }