import * as pulumi from "@pulumi/pulumi"; /** * This resource adds permission for a repository to use an actions variables within your GitHub organization. * You must have write access to an organization variable to use this resource. * * This resource is only applicable when `visibility` of the existing organization variable has been set to `selected`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = new github.ActionsOrganizationVariable("example", { * variableName: "myvariable", * value: "foo", * visibility: "selected", * }); * const exampleRepository = new github.Repository("example", { * name: "myrepo", * visibility: "public", * }); * const exampleActionsOrganizationVariableRepository = new github.ActionsOrganizationVariableRepository("example", { * variableName: example.name, * repositoryId: exampleRepository.repoId, * }); * ``` * * ## Import * * This resource can be imported using an ID made of the variable name and repository name separated by a `:`. * * ### Import Command * * The following command imports the access of repository ID `123456` for the actions organization variable named `myvariable` to a `github.ActionsOrganizationVariableRepository` resource named `example`. * * ```sh * $ pulumi import github:index/actionsOrganizationVariableRepository:ActionsOrganizationVariableRepository example myvariable:123456 * ``` */ export declare class ActionsOrganizationVariableRepository extends pulumi.CustomResource { /** * Get an existing ActionsOrganizationVariableRepository 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?: ActionsOrganizationVariableRepositoryState, opts?: pulumi.CustomResourceOptions): ActionsOrganizationVariableRepository; /** * Returns true if the given object is an instance of ActionsOrganizationVariableRepository. 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 ActionsOrganizationVariableRepository; /** * ID of the repository that should be able to access the variable. */ readonly repositoryId: pulumi.Output; /** * Name of the actions organization variable. */ readonly variableName: pulumi.Output; /** * Create a ActionsOrganizationVariableRepository 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: ActionsOrganizationVariableRepositoryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionsOrganizationVariableRepository resources. */ export interface ActionsOrganizationVariableRepositoryState { /** * ID of the repository that should be able to access the variable. */ repositoryId?: pulumi.Input; /** * Name of the actions organization variable. */ variableName?: pulumi.Input; } /** * The set of arguments for constructing a ActionsOrganizationVariableRepository resource. */ export interface ActionsOrganizationVariableRepositoryArgs { /** * ID of the repository that should be able to access the variable. */ repositoryId: pulumi.Input; /** * Name of the actions organization variable. */ variableName: pulumi.Input; } //# sourceMappingURL=actionsOrganizationVariableRepository.d.ts.map