UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

193 lines (192 loc) 6.29 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage vepfs mount service * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-test-subnet", * cidrBlock: "172.16.0.0/24", * zoneId: "cn-beijing-a", * vpcId: fooVpc.id, * }); * const fooMountService = new volcengine.vepfs.MountService("fooMountService", { * mountServiceName: "acc-test-mount-service", * subnetId: fooSubnet.id, * nodeType: "ecs.g1ie.large", * project: "default", * }); * ``` * * ## Import * * VepfsMountService can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:vepfs/mountService:MountService default resource_id * ``` */ export declare class MountService extends pulumi.CustomResource { /** * Get an existing MountService 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?: MountServiceState, opts?: pulumi.CustomResourceOptions): MountService; /** * Returns true if the given object is an instance of MountService. 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 MountService; /** * The account id of the vepfs file system. */ readonly accountId: pulumi.Output<string>; /** * The attached file system info of the mount service. */ readonly attachFileSystems: pulumi.Output<outputs.vepfs.MountServiceAttachFileSystem[]>; /** * The created time of the mount service. */ readonly createTime: pulumi.Output<string>; /** * The name of the mount service. */ readonly mountServiceName: pulumi.Output<string>; /** * The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields. */ readonly nodeType: pulumi.Output<string>; /** * The nodes info of the mount service. */ readonly nodes: pulumi.Output<outputs.vepfs.MountServiceNode[]>; /** * The node type of the mount service. */ readonly project: pulumi.Output<string>; /** * The region id of the mount service. */ readonly regionId: pulumi.Output<string>; /** * The status of the mount service. */ readonly status: pulumi.Output<string>; /** * The subnet id of the mount service. */ readonly subnetId: pulumi.Output<string>; /** * The vpc id of the mount service. */ readonly vpcId: pulumi.Output<string>; /** * The zone id of the mount service. */ readonly zoneId: pulumi.Output<string>; /** * The zone name of the mount service. */ readonly zoneName: pulumi.Output<string>; /** * Create a MountService 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: MountServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MountService resources. */ export interface MountServiceState { /** * The account id of the vepfs file system. */ accountId?: pulumi.Input<string>; /** * The attached file system info of the mount service. */ attachFileSystems?: pulumi.Input<pulumi.Input<inputs.vepfs.MountServiceAttachFileSystem>[]>; /** * The created time of the mount service. */ createTime?: pulumi.Input<string>; /** * The name of the mount service. */ mountServiceName?: pulumi.Input<string>; /** * The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields. */ nodeType?: pulumi.Input<string>; /** * The nodes info of the mount service. */ nodes?: pulumi.Input<pulumi.Input<inputs.vepfs.MountServiceNode>[]>; /** * The node type of the mount service. */ project?: pulumi.Input<string>; /** * The region id of the mount service. */ regionId?: pulumi.Input<string>; /** * The status of the mount service. */ status?: pulumi.Input<string>; /** * The subnet id of the mount service. */ subnetId?: pulumi.Input<string>; /** * The vpc id of the mount service. */ vpcId?: pulumi.Input<string>; /** * The zone id of the mount service. */ zoneId?: pulumi.Input<string>; /** * The zone name of the mount service. */ zoneName?: pulumi.Input<string>; } /** * The set of arguments for constructing a MountService resource. */ export interface MountServiceArgs { /** * The name of the mount service. */ mountServiceName: pulumi.Input<string>; /** * The node type of the mount service. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignoreChanges ignore changes in fields. */ nodeType: pulumi.Input<string>; /** * The node type of the mount service. */ project?: pulumi.Input<string>; /** * The subnet id of the mount service. */ subnetId: pulumi.Input<string>; }