import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const jwt = new vault.Plugin("jwt", { * type: "auth", * name: "jwt", * command: "vault-plugin-auth-jwt", * version: "v0.17.0", * sha256: "6bd0a803ed742aa3ce35e4fa23d2c8d550e6c1567bf63410cec489c28b68b0fc", * envs: ["HTTP_PROXY=http://proxy.example.com:8080"], * }); * const jwtAuth = new vault.AuthBackend("jwt_auth", {type: jwt.name}); * ``` * * ## Import * * Plugins can be imported using `:type/name/:name` or `:type/version/:version/name/:name` as the ID if the version is non-empty, e.g. * * ```sh * $ pulumi import vault:index/plugin:Plugin jwt auth/name/jwt * ``` * ```sh * $ pulumi import vault:index/plugin:Plugin jwt auth/version/v0.17.0/name/jwt * ``` */ export declare class Plugin extends pulumi.CustomResource { /** * Get an existing Plugin 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?: PluginState, opts?: pulumi.CustomResourceOptions): Plugin; /** * Returns true if the given object is an instance of Plugin. 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 Plugin; /** * List of additional args to pass to the plugin. */ readonly args: pulumi.Output; /** * Command to execute the plugin, relative to the server's configured `pluginDirectory`. */ readonly command: pulumi.Output; /** * List of additional environment variables to run the plugin with in KEY=VALUE form. */ readonly envs: pulumi.Output; /** * Name of the plugin. */ readonly name: pulumi.Output; /** * Specifies OCI image to run. If specified, setting * `command`, `args`, and `env` will update the container's entrypoint, args, and * environment variables (append-only) respectively. */ readonly ociImage: pulumi.Output; /** * Vault plugin runtime to use if `ociImage` is specified. */ readonly runtime: pulumi.Output; /** * SHA256 sum of the plugin binary. */ readonly sha256: pulumi.Output; /** * Type of plugin; one of "auth", "secret", or "database". */ readonly type: pulumi.Output; /** * Semantic version of the plugin. */ readonly version: pulumi.Output; /** * Create a Plugin 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: PluginArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Plugin resources. */ export interface PluginState { /** * List of additional args to pass to the plugin. */ args?: pulumi.Input[]>; /** * Command to execute the plugin, relative to the server's configured `pluginDirectory`. */ command?: pulumi.Input; /** * List of additional environment variables to run the plugin with in KEY=VALUE form. */ envs?: pulumi.Input[]>; /** * Name of the plugin. */ name?: pulumi.Input; /** * Specifies OCI image to run. If specified, setting * `command`, `args`, and `env` will update the container's entrypoint, args, and * environment variables (append-only) respectively. */ ociImage?: pulumi.Input; /** * Vault plugin runtime to use if `ociImage` is specified. */ runtime?: pulumi.Input; /** * SHA256 sum of the plugin binary. */ sha256?: pulumi.Input; /** * Type of plugin; one of "auth", "secret", or "database". */ type?: pulumi.Input; /** * Semantic version of the plugin. */ version?: pulumi.Input; } /** * The set of arguments for constructing a Plugin resource. */ export interface PluginArgs { /** * List of additional args to pass to the plugin. */ args?: pulumi.Input[]>; /** * Command to execute the plugin, relative to the server's configured `pluginDirectory`. */ command: pulumi.Input; /** * List of additional environment variables to run the plugin with in KEY=VALUE form. */ envs?: pulumi.Input[]>; /** * Name of the plugin. */ name?: pulumi.Input; /** * Specifies OCI image to run. If specified, setting * `command`, `args`, and `env` will update the container's entrypoint, args, and * environment variables (append-only) respectively. */ ociImage?: pulumi.Input; /** * Vault plugin runtime to use if `ociImage` is specified. */ runtime?: pulumi.Input; /** * SHA256 sum of the plugin binary. */ sha256: pulumi.Input; /** * Type of plugin; one of "auth", "secret", or "database". */ type: pulumi.Input; /** * Semantic version of the plugin. */ version?: pulumi.Input; }