import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to create and manage GitHub Actions variables within your GitHub repository environments. * 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 example = new github.ActionsEnvironmentVariable("example", { * repository: "example-repo", * environment: "example-environment", * variableName: "example_variable_name", * value: "example-value", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = github.getRepository({ * fullName: "my-org/repo", * }); * const exampleRepositoryEnvironment = new github.RepositoryEnvironment("example", { * repository: example.then(example => example.name), * environment: "example_environment", * }); * const exampleActionsEnvironmentVariable = new github.ActionsEnvironmentVariable("example", { * repository: example.then(example => example.name), * environment: exampleRepositoryEnvironment.environment, * variableName: "example_variable_name", * value: "example-value", * }); * ``` * * ## Import * * This resource can be imported using an ID made of the repository name, environment name (any `:` in the environment name need to be escaped as `??`), and variable name all separated by a `:`. * * ### Import Command * * The following command imports a GitHub actions environment variable named `myvariable` for the repo `myrepo` and environment `myenv` to a `github.ActionsEnvironmentVariable` resource named `example`. * * ```sh * $ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable example myrepo:myenv:myvariable * ``` */ export declare class ActionsEnvironmentVariable extends pulumi.CustomResource { /** * Get an existing ActionsEnvironmentVariable 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?: ActionsEnvironmentVariableState, opts?: pulumi.CustomResourceOptions): ActionsEnvironmentVariable; /** * Returns true if the given object is an instance of ActionsEnvironmentVariable. 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 ActionsEnvironmentVariable; /** * Date the variable was created. */ readonly createdAt: pulumi.Output; /** * Name of the environment. */ readonly environment: pulumi.Output; /** * Name of the repository. */ readonly repository: pulumi.Output; /** * ID of the repository. */ readonly repositoryId: 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; /** * Create a ActionsEnvironmentVariable 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: ActionsEnvironmentVariableArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionsEnvironmentVariable resources. */ export interface ActionsEnvironmentVariableState { /** * Date the variable was created. */ createdAt?: pulumi.Input; /** * Name of the environment. */ environment?: pulumi.Input; /** * Name of the repository. */ repository?: pulumi.Input; /** * ID of the repository. */ repositoryId?: pulumi.Input; /** * Date the variable was last updated. */ updatedAt?: pulumi.Input; /** * Value of the variable. */ value?: pulumi.Input; /** * Name of the variable. */ variableName?: pulumi.Input; } /** * The set of arguments for constructing a ActionsEnvironmentVariable resource. */ export interface ActionsEnvironmentVariableArgs { /** * Name of the environment. */ environment: pulumi.Input; /** * Name of the repository. */ repository: pulumi.Input; /** * Value of the variable. */ value: pulumi.Input; /** * Name of the variable. */ variableName: pulumi.Input; } //# sourceMappingURL=actionsEnvironmentVariable.d.ts.map