import * as pulumi from "@pulumi/pulumi"; /** * Allows to manipulate LDP tokens. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const token = new ovh.dbaas.LogsToken("token", { * serviceName: "ldp-xx-xxxxx", * name: "ExampleToken", * }); * ``` * * ## Import * * A token can be imported using the `service_name` and `token_id` fields. * * Using the following configuration: * * terraform * * import { * * to = ovh_dbaas_logs_token.token * * id = "/, state?: LogsTokenState, opts?: pulumi.CustomResourceOptions): LogsToken; /** * Returns true if the given object is an instance of LogsToken. 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 LogsToken; /** * Cluster ID. If not provided, the default clusterId is used */ readonly clusterId: pulumi.Output; /** * Token creation date */ readonly createdAt: pulumi.Output; /** * Name of the token */ readonly name: pulumi.Output; /** * The LDP service name */ readonly serviceName: pulumi.Output; /** * ID of the token */ readonly tokenId: pulumi.Output; /** * Token last update date */ readonly updatedAt: pulumi.Output; /** * Token value */ readonly value: pulumi.Output; /** * Create a LogsToken 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: LogsTokenArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LogsToken resources. */ export interface LogsTokenState { /** * Cluster ID. If not provided, the default clusterId is used */ clusterId?: pulumi.Input; /** * Token creation date */ createdAt?: pulumi.Input; /** * Name of the token */ name?: pulumi.Input; /** * The LDP service name */ serviceName?: pulumi.Input; /** * ID of the token */ tokenId?: pulumi.Input; /** * Token last update date */ updatedAt?: pulumi.Input; /** * Token value */ value?: pulumi.Input; } /** * The set of arguments for constructing a LogsToken resource. */ export interface LogsTokenArgs { /** * Cluster ID. If not provided, the default clusterId is used */ clusterId?: pulumi.Input; /** * Name of the token */ name?: pulumi.Input; /** * The LDP service name */ serviceName: pulumi.Input; }