@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
211 lines (210 loc) • 6.33 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage vepfs fileset
* ## 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 fooFileSystem = new volcengine.vepfs.FileSystem("fooFileSystem", {
* fileSystemName: "acc-test-file-system",
* subnetId: fooSubnet.id,
* storeType: "Advance_100",
* description: "tf-test",
* capacity: 12,
* project: "default",
* enableRestripe: false,
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* const fooFileset = new volcengine.vepfs.Fileset("fooFileset", {
* fileSystemId: fooFileSystem.id,
* filesetName: "acc-test-fileset",
* filesetPath: "/tf-test/",
* maxIops: 100,
* maxBandwidth: 10,
* fileLimit: 20,
* capacityLimit: 30,
* });
* ```
*
* ## Import
*
* VepfsFileset can be imported using the file_system_id:fileset_id, e.g.
*
* ```sh
* $ pulumi import volcengine:vepfs/fileset:Fileset default file_system_id:fileset_id
* ```
*/
export declare class Fileset extends pulumi.CustomResource {
/**
* Get an existing Fileset 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?: FilesetState, opts?: pulumi.CustomResourceOptions): Fileset;
/**
* Returns true if the given object is an instance of Fileset. 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 Fileset;
/**
* The capacity limit of the vepfs fileset. Unit: Gib.
*/
readonly capacityLimit: pulumi.Output<number | undefined>;
/**
* The used capacity of the vepfs fileset. Unit: GiB.
*/
readonly capacityUsed: pulumi.Output<number>;
/**
* The create time of the vepfs fileset.
*/
readonly createTime: pulumi.Output<string>;
/**
* The file number limit of the vepfs fileset.
*/
readonly fileLimit: pulumi.Output<number | undefined>;
/**
* The id of the vepfs file system.
*/
readonly fileSystemId: pulumi.Output<string>;
/**
* The used file number of the vepfs fileset.
*/
readonly fileUsed: pulumi.Output<number>;
/**
* The name of the vepfs fileset.
*/
readonly filesetName: pulumi.Output<string>;
/**
* The path of the vepfs fileset.
*/
readonly filesetPath: pulumi.Output<string>;
/**
* The max bandwidth qos limit of the vepfs fileset. Unit: MB/s.
*/
readonly maxBandwidth: pulumi.Output<number | undefined>;
/**
* The max number of inode in the vepfs fileset.
*/
readonly maxInodeNum: pulumi.Output<number>;
/**
* The max IOPS qos limit of the vepfs fileset.
*/
readonly maxIops: pulumi.Output<number | undefined>;
/**
* The status of the vepfs fileset.
*/
readonly status: pulumi.Output<string>;
/**
* Create a Fileset 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: FilesetArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Fileset resources.
*/
export interface FilesetState {
/**
* The capacity limit of the vepfs fileset. Unit: Gib.
*/
capacityLimit?: pulumi.Input<number>;
/**
* The used capacity of the vepfs fileset. Unit: GiB.
*/
capacityUsed?: pulumi.Input<number>;
/**
* The create time of the vepfs fileset.
*/
createTime?: pulumi.Input<string>;
/**
* The file number limit of the vepfs fileset.
*/
fileLimit?: pulumi.Input<number>;
/**
* The id of the vepfs file system.
*/
fileSystemId?: pulumi.Input<string>;
/**
* The used file number of the vepfs fileset.
*/
fileUsed?: pulumi.Input<number>;
/**
* The name of the vepfs fileset.
*/
filesetName?: pulumi.Input<string>;
/**
* The path of the vepfs fileset.
*/
filesetPath?: pulumi.Input<string>;
/**
* The max bandwidth qos limit of the vepfs fileset. Unit: MB/s.
*/
maxBandwidth?: pulumi.Input<number>;
/**
* The max number of inode in the vepfs fileset.
*/
maxInodeNum?: pulumi.Input<number>;
/**
* The max IOPS qos limit of the vepfs fileset.
*/
maxIops?: pulumi.Input<number>;
/**
* The status of the vepfs fileset.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Fileset resource.
*/
export interface FilesetArgs {
/**
* The capacity limit of the vepfs fileset. Unit: Gib.
*/
capacityLimit?: pulumi.Input<number>;
/**
* The file number limit of the vepfs fileset.
*/
fileLimit?: pulumi.Input<number>;
/**
* The id of the vepfs file system.
*/
fileSystemId: pulumi.Input<string>;
/**
* The name of the vepfs fileset.
*/
filesetName: pulumi.Input<string>;
/**
* The path of the vepfs fileset.
*/
filesetPath: pulumi.Input<string>;
/**
* The max bandwidth qos limit of the vepfs fileset. Unit: MB/s.
*/
maxBandwidth?: pulumi.Input<number>;
/**
* The max IOPS qos limit of the vepfs fileset.
*/
maxIops?: pulumi.Input<number>;
}