import * as pulumi from "@pulumi/pulumi"; /** * Manage a custom organization role. * * > **Note**: Custom organization roles are currently only available in GitHub Enterprise Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = new github.OrganizationRole("example", { * name: "example", * baseRole: "read", * permissions: [ * "read_organization_custom_org_role", * "read_organization_custom_repo_role", * ], * }); * ``` * * ## Import * * A custom organization role can be imported using its ID. * * ```sh * $ pulumi import github:index/organizationRole:OrganizationRole example 1234 * ``` */ export declare class OrganizationRole extends pulumi.CustomResource { /** * Get an existing OrganizationRole 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?: OrganizationRoleState, opts?: pulumi.CustomResourceOptions): OrganizationRole; /** * Returns true if the given object is an instance of OrganizationRole. 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 OrganizationRole; /** * The system role from which this role inherits permissions; one of `none`, `read`, `triage`, `write`, `maintain`, or `admin`. Defaults to `none`. */ readonly baseRole: pulumi.Output; /** * The description of the organization role. */ readonly description: pulumi.Output; /** * The name of the organization role. */ readonly name: pulumi.Output; /** * The permissions included in this role. Only organization permissions can be set if the `baseRole` isn't set or is set to `none`. */ readonly permissions: pulumi.Output; /** * The ID of the organization role. */ readonly roleId: pulumi.Output; /** * Create a OrganizationRole 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: OrganizationRoleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationRole resources. */ export interface OrganizationRoleState { /** * The system role from which this role inherits permissions; one of `none`, `read`, `triage`, `write`, `maintain`, or `admin`. Defaults to `none`. */ baseRole?: pulumi.Input; /** * The description of the organization role. */ description?: pulumi.Input; /** * The name of the organization role. */ name?: pulumi.Input; /** * The permissions included in this role. Only organization permissions can be set if the `baseRole` isn't set or is set to `none`. */ permissions?: pulumi.Input[] | undefined>; /** * The ID of the organization role. */ roleId?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationRole resource. */ export interface OrganizationRoleArgs { /** * The system role from which this role inherits permissions; one of `none`, `read`, `triage`, `write`, `maintain`, or `admin`. Defaults to `none`. */ baseRole?: pulumi.Input; /** * The description of the organization role. */ description?: pulumi.Input; /** * The name of the organization role. */ name?: pulumi.Input; /** * The permissions included in this role. Only organization permissions can be set if the `baseRole` isn't set or is set to `none`. */ permissions: pulumi.Input[]>; } //# sourceMappingURL=organizationRole.d.ts.map