import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Workspace is an abstract integration of data collection and rules in the VMP service, providing users with physical or logical isolation for Prometheus capabilities. You can create different workspaces in the VMP service, and data in different workspaces is isolated from each other * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const workspaceDemo = new volcenginecc.vmp.Workspace("WorkspaceDemo", { * authType: "BearerToken", * bearerToken: "M3cSN7gssM09-6wO8vdqo_xxxxxxxx", * deleteProtectionEnabled: false, * description: "test workspace", * instanceTypeId: "vmp.standard.30d", * name: "terraform_test_BearerToken", * projectName: "default", * publicAccessEnabled: true, * publicQueryBandwidth: 2, * publicWriteBandwidth: 50, * searchLatencyOffset: "32s", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:vmp/workspace:Workspace example "workspace_id" * ``` */ export declare class Workspace extends pulumi.CustomResource { /** * Get an existing Workspace 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?: WorkspaceState, opts?: pulumi.CustomResourceOptions): Workspace; /** * Returns true if the given object is an instance of Workspace. 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 Workspace; /** * Workspace authentication type. Options: BasicAuth: Basic authentication, requires Username and Password for authentication. BearerToken: Token authentication, requires BearerToken for authentication. None: No custom authentication required. Note: When the authentication type is set to None, AK/SK authentication is used by default. */ readonly authType: pulumi.Output; /** * Workspace Bearer Token. Note: Configure this parameter only when the AuthType parameter is set to BearerToken. */ readonly bearerToken: pulumi.Output; /** * Workspace creation time, RFC3339 format */ readonly createTime: pulumi.Output; /** * Enable workspace deletion protection: true for enabled, false for disabled */ readonly deleteProtectionEnabled: pulumi.Output; /** * Workspace description, string, length limit 0–200 */ readonly description: pulumi.Output; /** * Workspace specification details */ readonly instanceType: pulumi.Output; /** * Workspace specifications: vmp.standard.15d: workspace with 15 days storage duration. vmp.standard.30d: workspace with 30 days storage duration. vmp.standard.90d: workspace with 90 days storage duration. vmp.standard.180d: workspace with 180 days storage duration. vmp.standard.1y: workspace with 1 year storage duration */ readonly instanceTypeId: pulumi.Output; /** * Workspace name, string, length limit 1–100 */ readonly name: pulumi.Output; /** * Workspace expected overdue recovery time, RFC3339 format */ readonly overdueReclaimTime: pulumi.Output; /** * Workspace BasicAuth password */ readonly password: pulumi.Output; /** * Project name */ readonly projectName: pulumi.Output; /** * Workspace public Push Gateway URL address. */ readonly prometheusPushEndpoint: pulumi.Output; /** * Workspace Push Gateway URL address */ readonly prometheusPushIntranetEndpoint: pulumi.Output; /** * Workspace public Query URL address. */ readonly prometheusQueryEndpoint: pulumi.Output; /** * Workspace Query URL address */ readonly prometheusQueryIntranetEndpoint: pulumi.Output; /** * Workspace public RemoteWrite URL address. */ readonly prometheusWriteEndpoint: pulumi.Output; /** * Workspace RemoteWrite URL address */ readonly prometheusWriteIntranetEndpoint: pulumi.Output; /** * Whether to enable workspace public access capability. true: enabled, false: disabled. */ readonly publicAccessEnabled: pulumi.Output; /** * Workspace public Query bandwidth (Mbps). */ readonly publicQueryBandwidth: pulumi.Output; /** * Workspace public RemoteWrite bandwidth (Mbps). */ readonly publicWriteBandwidth: pulumi.Output; /** * Workspace quota details */ readonly quota: pulumi.Output; /** * Workspace public Query search latency offset. */ readonly searchLatencyOffset: pulumi.Output; /** * Workspace status. Values: Creating: creating Active: active Updating: updating Deleting: deleting OverdueShutted: overdue shutdown Resuming: resuming Error: error */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Workspace usage */ readonly usage: pulumi.Output; /** * Workspace BasicAuth username */ readonly username: pulumi.Output; /** * Workspace ID */ readonly workspaceId: pulumi.Output; /** * Create a Workspace 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: WorkspaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Workspace resources. */ export interface WorkspaceState { /** * Workspace authentication type. Options: BasicAuth: Basic authentication, requires Username and Password for authentication. BearerToken: Token authentication, requires BearerToken for authentication. None: No custom authentication required. Note: When the authentication type is set to None, AK/SK authentication is used by default. */ authType?: pulumi.Input; /** * Workspace Bearer Token. Note: Configure this parameter only when the AuthType parameter is set to BearerToken. */ bearerToken?: pulumi.Input; /** * Workspace creation time, RFC3339 format */ createTime?: pulumi.Input; /** * Enable workspace deletion protection: true for enabled, false for disabled */ deleteProtectionEnabled?: pulumi.Input; /** * Workspace description, string, length limit 0–200 */ description?: pulumi.Input; /** * Workspace specification details */ instanceType?: pulumi.Input; /** * Workspace specifications: vmp.standard.15d: workspace with 15 days storage duration. vmp.standard.30d: workspace with 30 days storage duration. vmp.standard.90d: workspace with 90 days storage duration. vmp.standard.180d: workspace with 180 days storage duration. vmp.standard.1y: workspace with 1 year storage duration */ instanceTypeId?: pulumi.Input; /** * Workspace name, string, length limit 1–100 */ name?: pulumi.Input; /** * Workspace expected overdue recovery time, RFC3339 format */ overdueReclaimTime?: pulumi.Input; /** * Workspace BasicAuth password */ password?: pulumi.Input; /** * Project name */ projectName?: pulumi.Input; /** * Workspace public Push Gateway URL address. */ prometheusPushEndpoint?: pulumi.Input; /** * Workspace Push Gateway URL address */ prometheusPushIntranetEndpoint?: pulumi.Input; /** * Workspace public Query URL address. */ prometheusQueryEndpoint?: pulumi.Input; /** * Workspace Query URL address */ prometheusQueryIntranetEndpoint?: pulumi.Input; /** * Workspace public RemoteWrite URL address. */ prometheusWriteEndpoint?: pulumi.Input; /** * Workspace RemoteWrite URL address */ prometheusWriteIntranetEndpoint?: pulumi.Input; /** * Whether to enable workspace public access capability. true: enabled, false: disabled. */ publicAccessEnabled?: pulumi.Input; /** * Workspace public Query bandwidth (Mbps). */ publicQueryBandwidth?: pulumi.Input; /** * Workspace public RemoteWrite bandwidth (Mbps). */ publicWriteBandwidth?: pulumi.Input; /** * Workspace quota details */ quota?: pulumi.Input; /** * Workspace public Query search latency offset. */ searchLatencyOffset?: pulumi.Input; /** * Workspace status. Values: Creating: creating Active: active Updating: updating Deleting: deleting OverdueShutted: overdue shutdown Resuming: resuming Error: error */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Workspace usage */ usage?: pulumi.Input; /** * Workspace BasicAuth username */ username?: pulumi.Input; /** * Workspace ID */ workspaceId?: pulumi.Input; } /** * The set of arguments for constructing a Workspace resource. */ export interface WorkspaceArgs { /** * Workspace authentication type. Options: BasicAuth: Basic authentication, requires Username and Password for authentication. BearerToken: Token authentication, requires BearerToken for authentication. None: No custom authentication required. Note: When the authentication type is set to None, AK/SK authentication is used by default. */ authType?: pulumi.Input; /** * Workspace Bearer Token. Note: Configure this parameter only when the AuthType parameter is set to BearerToken. */ bearerToken?: pulumi.Input; /** * Enable workspace deletion protection: true for enabled, false for disabled */ deleteProtectionEnabled?: pulumi.Input; /** * Workspace description, string, length limit 0–200 */ description?: pulumi.Input; /** * Workspace specifications: vmp.standard.15d: workspace with 15 days storage duration. vmp.standard.30d: workspace with 30 days storage duration. vmp.standard.90d: workspace with 90 days storage duration. vmp.standard.180d: workspace with 180 days storage duration. vmp.standard.1y: workspace with 1 year storage duration */ instanceTypeId: pulumi.Input; /** * Workspace name, string, length limit 1–100 */ name: pulumi.Input; /** * Workspace BasicAuth password */ password?: pulumi.Input; /** * Project name */ projectName?: pulumi.Input; /** * Whether to enable workspace public access capability. true: enabled, false: disabled. */ publicAccessEnabled?: pulumi.Input; /** * Workspace public Query bandwidth (Mbps). */ publicQueryBandwidth?: pulumi.Input; /** * Workspace public RemoteWrite bandwidth (Mbps). */ publicWriteBandwidth?: pulumi.Input; /** * Workspace quota details */ quota?: pulumi.Input; /** * Workspace public Query search latency offset. */ searchLatencyOffset?: pulumi.Input; tags?: pulumi.Input[]>; /** * Workspace BasicAuth username */ username?: pulumi.Input; }