@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
213 lines (212 loc) • 6.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage vmp workspace
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.vmp.Workspace("foo", {
* deleteProtectionEnabled: false,
* description: "acc-test",
* instanceTypeId: "vmp.standard.15d",
* password: "Pass123456",
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* username: "admin123",
* });
* ```
*
* ## Import
*
* Workspace can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:vmp/workspace:Workspace default 60dde3ca-951c-4c05-8777-e5a7caa07ad6
* ```
*/
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<pulumi.ID>, 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;
/**
* The create time of workspace.
*/
readonly createTime: pulumi.Output<string>;
/**
* Whether enable delete protection.
*/
readonly deleteProtectionEnabled: pulumi.Output<boolean | undefined>;
/**
* The description of the workspace.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The instance type id of the workspace.
*/
readonly instanceTypeId: pulumi.Output<string>;
/**
* The name of the workspace.
*/
readonly name: pulumi.Output<string>;
/**
* The overdue reclaim time.
*/
readonly overdueReclaimTime: pulumi.Output<string>;
/**
* The password of the workspace.
*/
readonly password: pulumi.Output<string | undefined>;
/**
* The project name of the vmp workspace.
*/
readonly projectName: pulumi.Output<string>;
/**
* The prometheus push intranet endpoint.
*/
readonly prometheusPushIntranetEndpoint: pulumi.Output<string>;
/**
* The prometheus query intranet endpoint.
*/
readonly prometheusQueryIntranetEndpoint: pulumi.Output<string>;
/**
* The prometheus write intranet endpoint.
*/
readonly prometheusWriteIntranetEndpoint: pulumi.Output<string>;
/**
* The status of workspace.
*/
readonly status: pulumi.Output<string>;
/**
* Tags.
*/
readonly tags: pulumi.Output<outputs.vmp.WorkspaceTag[] | undefined>;
/**
* The username of the workspace.
*/
readonly username: pulumi.Output<string | undefined>;
/**
* 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 {
/**
* The create time of workspace.
*/
createTime?: pulumi.Input<string>;
/**
* Whether enable delete protection.
*/
deleteProtectionEnabled?: pulumi.Input<boolean>;
/**
* The description of the workspace.
*/
description?: pulumi.Input<string>;
/**
* The instance type id of the workspace.
*/
instanceTypeId?: pulumi.Input<string>;
/**
* The name of the workspace.
*/
name?: pulumi.Input<string>;
/**
* The overdue reclaim time.
*/
overdueReclaimTime?: pulumi.Input<string>;
/**
* The password of the workspace.
*/
password?: pulumi.Input<string>;
/**
* The project name of the vmp workspace.
*/
projectName?: pulumi.Input<string>;
/**
* The prometheus push intranet endpoint.
*/
prometheusPushIntranetEndpoint?: pulumi.Input<string>;
/**
* The prometheus query intranet endpoint.
*/
prometheusQueryIntranetEndpoint?: pulumi.Input<string>;
/**
* The prometheus write intranet endpoint.
*/
prometheusWriteIntranetEndpoint?: pulumi.Input<string>;
/**
* The status of workspace.
*/
status?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.vmp.WorkspaceTag>[]>;
/**
* The username of the workspace.
*/
username?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Workspace resource.
*/
export interface WorkspaceArgs {
/**
* Whether enable delete protection.
*/
deleteProtectionEnabled?: pulumi.Input<boolean>;
/**
* The description of the workspace.
*/
description?: pulumi.Input<string>;
/**
* The instance type id of the workspace.
*/
instanceTypeId: pulumi.Input<string>;
/**
* The name of the workspace.
*/
name?: pulumi.Input<string>;
/**
* The password of the workspace.
*/
password?: pulumi.Input<string>;
/**
* The project name of the vmp workspace.
*/
projectName?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.vmp.WorkspaceTag>[]>;
/**
* The username of the workspace.
*/
username?: pulumi.Input<string>;
}