import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ### File Audit Device) * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const test = new vault.Audit("test", { * type: "file", * options: { * file_path: "C:/temp/audit.txt", * }, * }); * ``` * * ### Socket Audit Device) * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vault from "@pulumi/vault"; * * const test = new vault.Audit("test", { * type: "socket", * path: "app_socket", * local: false, * options: { * address: "127.0.0.1:8000", * socket_type: "tcp", * description: "application x socket", * }, * }); * ``` * * ## Import * * Audit devices can be imported using the `path`, e.g. * * ```sh * $ pulumi import vault:index/audit:Audit test syslog * ``` */ export declare class Audit extends pulumi.CustomResource { /** * Get an existing Audit 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?: AuditState, opts?: pulumi.CustomResourceOptions): Audit; /** * Returns true if the given object is an instance of Audit. 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 Audit; /** * Human-friendly description of the audit device. */ readonly description: pulumi.Output; /** * Specifies if the audit device is a local only. Local audit devices are not replicated nor (if a secondary) removed by replication. */ readonly local: pulumi.Output; /** * The namespace to provision the resource in. * The value should not contain leading or trailing forward slashes. * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ readonly namespace: pulumi.Output; /** * Configuration options to pass to the audit device itself. * * For a reference of the device types and their options, consult the [Vault documentation.](https://www.vaultproject.io/docs/audit/index.html) */ readonly options: pulumi.Output<{ [key: string]: string; }>; /** * The path to mount the audit device. This defaults to the type. */ readonly path: pulumi.Output; /** * Type of the audit device, such as 'file'. */ readonly type: pulumi.Output; /** * Create a Audit 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: AuditArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Audit resources. */ export interface AuditState { /** * Human-friendly description of the audit device. */ description?: pulumi.Input; /** * Specifies if the audit device is a local only. Local audit devices are not replicated nor (if a secondary) removed by replication. */ local?: pulumi.Input; /** * The namespace to provision the resource in. * The value should not contain leading or trailing forward slashes. * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ namespace?: pulumi.Input; /** * Configuration options to pass to the audit device itself. * * For a reference of the device types and their options, consult the [Vault documentation.](https://www.vaultproject.io/docs/audit/index.html) */ options?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The path to mount the audit device. This defaults to the type. */ path?: pulumi.Input; /** * Type of the audit device, such as 'file'. */ type?: pulumi.Input; } /** * The set of arguments for constructing a Audit resource. */ export interface AuditArgs { /** * Human-friendly description of the audit device. */ description?: pulumi.Input; /** * Specifies if the audit device is a local only. Local audit devices are not replicated nor (if a secondary) removed by replication. */ local?: pulumi.Input; /** * The namespace to provision the resource in. * The value should not contain leading or trailing forward slashes. * The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). * *Available only for Vault Enterprise*. */ namespace?: pulumi.Input; /** * Configuration options to pass to the audit device itself. * * For a reference of the device types and their options, consult the [Vault documentation.](https://www.vaultproject.io/docs/audit/index.html) */ options: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The path to mount the audit device. This defaults to the type. */ path?: pulumi.Input; /** * Type of the audit device, such as 'file'. */ type: pulumi.Input; }