import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to create and manage GitHub Actions variables within your GitHub organization. * You must have write access to a repository to use this resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const exampleVariable = new github.ActionsOrganizationVariable("example_variable", { * variableName: "example_variable_name", * visibility: "private", * value: "example_variable_value", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const repo = github.getRepository({ * fullName: "my-org/repo", * }); * const exampleVariable = new github.ActionsOrganizationVariable("example_variable", { * variableName: "example_variable_name", * visibility: "selected", * value: "example_variable_value", * selectedRepositoryIds: [repo.then(repo => repo.repoId)], * }); * ``` * * ## Import * * This resource can be imported using the variable name as the ID. * * ### Import Command * * The following command imports a GitHub actions organization variable named `myvariable` to a `github.ActionsOrganizationVariable` resource named `example`. * * ```sh * $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable example myvariable * ``` */ export declare class ActionsOrganizationVariable extends pulumi.CustomResource { /** * Get an existing ActionsOrganizationVariable 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?: ActionsOrganizationVariableState, opts?: pulumi.CustomResourceOptions): ActionsOrganizationVariable; /** * Returns true if the given object is an instance of ActionsOrganizationVariable. 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 ActionsOrganizationVariable; /** * Date the variable was created. */ readonly createdAt: pulumi.Output; /** * An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`. */ readonly selectedRepositoryIds: pulumi.Output; /** * Date the variable was last updated. */ readonly updatedAt: pulumi.Output; /** * Value of the variable. */ readonly value: pulumi.Output; /** * Name of the variable. */ readonly variableName: pulumi.Output; /** * Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`. */ readonly visibility: pulumi.Output; /** * Create a ActionsOrganizationVariable 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: ActionsOrganizationVariableArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionsOrganizationVariable resources. */ export interface ActionsOrganizationVariableState { /** * Date the variable was created. */ createdAt?: pulumi.Input; /** * An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`. */ selectedRepositoryIds?: pulumi.Input[] | undefined>; /** * Date the variable was last updated. */ updatedAt?: pulumi.Input; /** * Value of the variable. */ value?: pulumi.Input; /** * Name of the variable. */ variableName?: pulumi.Input; /** * Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`. */ visibility?: pulumi.Input; } /** * The set of arguments for constructing a ActionsOrganizationVariable resource. */ export interface ActionsOrganizationVariableArgs { /** * An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`. */ selectedRepositoryIds?: pulumi.Input[] | undefined>; /** * Value of the variable. */ value: pulumi.Input; /** * Name of the variable. */ variableName: pulumi.Input; /** * Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`. */ visibility: pulumi.Input; } //# sourceMappingURL=actionsOrganizationVariable.d.ts.map