import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Resource for creating an encrypted text secret * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const _default = harness.getSecretManager({ * "default": true, * }); * const example = new harness.EncryptedText("example", { * name: "example-secret", * value: "someval", * secretManagerId: _default.then(_default => _default.id), * usageScopes: [ * { * environmentFilterType: "PRODUCTION_ENVIRONMENTS", * }, * { * environmentFilterType: "NON_PRODUCTION_ENVIRONMENTS", * }, * ], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import using the Harness encrypted text format. * NOTE: The secret value cannot be decrypted and imported. * * ```sh * $ pulumi import harness:index/encryptedText:EncryptedText example * ``` */ export declare class EncryptedText extends pulumi.CustomResource { /** * Get an existing EncryptedText 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?: EncryptedTextState, opts?: pulumi.CustomResourceOptions): EncryptedText; /** * Returns true if the given object is an instance of EncryptedText. 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 EncryptedText; /** * Boolean that indicates whether or not to inherit the usage scopes from the secret manager */ readonly inheritScopesFromSecretManager: pulumi.Output; /** * Name of the encrypted text secret */ readonly name: pulumi.Output; /** * Boolean that indicates whether or not the secret is scoped to the account */ readonly scopedToAccount: pulumi.Output; /** * The id of the secret manager to associate the secret with. Once set, this field cannot be changed. */ readonly secretManagerId: pulumi.Output; /** * Name of the existing secret. If you already have secrets created in a secrets manager such as HashiCorp Vault or AWS Secrets Manager, you do not need to re-create the existing secrets in Harness. */ readonly secretReference: pulumi.Output; /** * This block is used for scoping the resource to a specific set of applications or environments. */ readonly usageScopes: pulumi.Output; /** * The value of the secret. */ readonly value: pulumi.Output; /** * Create a EncryptedText 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: EncryptedTextArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EncryptedText resources. */ export interface EncryptedTextState { /** * Boolean that indicates whether or not to inherit the usage scopes from the secret manager */ inheritScopesFromSecretManager?: pulumi.Input; /** * Name of the encrypted text secret */ name?: pulumi.Input; /** * Boolean that indicates whether or not the secret is scoped to the account */ scopedToAccount?: pulumi.Input; /** * The id of the secret manager to associate the secret with. Once set, this field cannot be changed. */ secretManagerId?: pulumi.Input; /** * Name of the existing secret. If you already have secrets created in a secrets manager such as HashiCorp Vault or AWS Secrets Manager, you do not need to re-create the existing secrets in Harness. */ secretReference?: pulumi.Input; /** * This block is used for scoping the resource to a specific set of applications or environments. */ usageScopes?: pulumi.Input[] | undefined>; /** * The value of the secret. */ value?: pulumi.Input; } /** * The set of arguments for constructing a EncryptedText resource. */ export interface EncryptedTextArgs { /** * Boolean that indicates whether or not to inherit the usage scopes from the secret manager */ inheritScopesFromSecretManager?: pulumi.Input; /** * Name of the encrypted text secret */ name?: pulumi.Input; /** * Boolean that indicates whether or not the secret is scoped to the account */ scopedToAccount?: pulumi.Input; /** * The id of the secret manager to associate the secret with. Once set, this field cannot be changed. */ secretManagerId: pulumi.Input; /** * Name of the existing secret. If you already have secrets created in a secrets manager such as HashiCorp Vault or AWS Secrets Manager, you do not need to re-create the existing secrets in Harness. */ secretReference?: pulumi.Input; /** * This block is used for scoping the resource to a specific set of applications or environments. */ usageScopes?: pulumi.Input[] | undefined>; /** * The value of the secret. */ value?: pulumi.Input; } //# sourceMappingURL=encryptedText.d.ts.map