import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to create and manage GitHub Codespaces secrets within your GitHub repositories. * You must have write access to a repository to use this resource. * * Secret values are encrypted using the [Go '/crypto/box' module](https://godoc.org/golang.org/x/crypto/nacl/box) which is * interoperable with [libsodium](https://libsodium.gitbook.io/doc/). Libsodium is used by GitHub to decrypt secret values. * * For the purposes of security, the contents of the `plaintextValue` field have been marked as `sensitive` to Terraform, * but it is important to note that **this does not hide it from state files**. You should treat state as sensitive always. * It is also advised that you do not store plaintext values in your code but rather populate the `encryptedValue` * using fields from a resource, data source or variable as, while encrypted in state, these will be easily accessible * in your code. See below for an example of this abstraction. * * ## Import * * This resource can be imported using an ID made up of the `repository` and `secretName`: * * ```sh * $ pulumi import github:index/codespacesSecret:CodespacesSecret example_secret example_repository/example_secret_name * ``` * * NOTE: the implementation is limited in that it won't fetch the value of the * `plaintextValue` or `encryptedValue` fields when importing. You may need to ignore changes for these as a workaround. */ export declare class CodespacesSecret extends pulumi.CustomResource { /** * Get an existing CodespacesSecret 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?: CodespacesSecretState, opts?: pulumi.CustomResourceOptions): CodespacesSecret; /** * Returns true if the given object is an instance of CodespacesSecret. 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 CodespacesSecret; /** * Date of codespacesSecret creation. */ readonly createdAt: pulumi.Output; /** * Encrypted value of the secret using the GitHub public key in Base64 format. */ readonly encryptedValue: pulumi.Output; /** * Plaintext value of the secret to be encrypted */ readonly plaintextValue: pulumi.Output; /** * Name of the repository */ readonly repository: pulumi.Output; /** * Name of the secret */ readonly secretName: pulumi.Output; /** * Date of codespacesSecret update. */ readonly updatedAt: pulumi.Output; /** * Create a CodespacesSecret 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: CodespacesSecretArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CodespacesSecret resources. */ export interface CodespacesSecretState { /** * Date of codespacesSecret creation. */ createdAt?: pulumi.Input; /** * Encrypted value of the secret using the GitHub public key in Base64 format. */ encryptedValue?: pulumi.Input; /** * Plaintext value of the secret to be encrypted */ plaintextValue?: pulumi.Input; /** * Name of the repository */ repository?: pulumi.Input; /** * Name of the secret */ secretName?: pulumi.Input; /** * Date of codespacesSecret update. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CodespacesSecret resource. */ export interface CodespacesSecretArgs { /** * Encrypted value of the secret using the GitHub public key in Base64 format. */ encryptedValue?: pulumi.Input; /** * Plaintext value of the secret to be encrypted */ plaintextValue?: pulumi.Input; /** * Name of the repository */ repository: pulumi.Input; /** * Name of the secret */ secretName: pulumi.Input; } //# sourceMappingURL=codespacesSecret.d.ts.map