import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Cloud disk is a block storage device with high availability, high reliability, high performance, and elastic scalability. It can be used as a scalable disk for cloud servers and elastic container services. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const volumeDemo = new volcenginecc.storageebs.Volume("VolumeDemo", { * volumeName: "EBS-VolumeDemo", * volumeType: "ESSD_PL0", * size: 10, * zoneId: "cn-beijing-x", * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:storageebs/volume:Volume example "volume_id" * ``` */ export declare class Volume extends pulumi.CustomResource { /** * Get an existing Volume 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?: VolumeState, opts?: pulumi.CustomResourceOptions): Volume; /** * Returns true if the given object is an instance of Volume. 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 Volume; /** * Automatic snapshot policy ID. */ readonly autoSnapshotPolicyId: pulumi.Output; /** * Automatic snapshot policy name. */ readonly autoSnapshotPolicyName: pulumi.Output; /** * Baseline performance. */ readonly baselinePerformance: pulumi.Output; /** * Disk creation time. */ readonly createdAt: pulumi.Output; /** * When releasing the instance, specify whether the disk is released along with the instance. Value description: true: The disk is released with the instance. false: The disk is not released with the instance. */ readonly deleteWithInstance: pulumi.Output; /** * Disk description. Default is empty. Length must be between 1 and 255 characters. */ readonly description: pulumi.Output; /** * Device name */ readonly deviceName: pulumi.Output; /** * Specific error */ readonly errorDetail: pulumi.Output; /** * Expiration time for yearly/monthly subscription. */ readonly expiredTime: pulumi.Output; /** * Extra performance. */ readonly extraPerformance: pulumi.Output; /** * Image ID in the disk. */ readonly imageId: pulumi.Output; /** * ECS instance ID mounted when creating the cloud disk. */ readonly instanceId: pulumi.Output; /** * Disk attribute. data indicates a data disk. The default value is data. Note: Only data disks can be created. */ readonly kind: pulumi.Output; /** * Disk overdue reclamation time. */ readonly overdueReclaimTime: pulumi.Output; /** * Disk overdue shutdown time. */ readonly overdueTime: pulumi.Output; /** * Payment type. Description: Pre: Prepaid (annual/monthly). Post: Postpaid (pay-as-you-go). */ readonly payType: pulumi.Output; /** * Project name to which the disk will be added. */ readonly projectName: pulumi.Output; /** * Renewal method 1: Manual renewal 2: Automatic renewal 3: Do not renew upon expiration. */ readonly renewType: pulumi.Output; /** * Size: data disk capacity in GiB. The capacity ranges for different types of data disks are as follows: ESSD*PL0: 10~65536 GiB; ESSD*FlexPL: 10~65536 GiB; TSSD_TL0: 40~65536 GiB */ readonly size: pulumi.Output; /** * Snapshot count. */ readonly snapshotCount: pulumi.Output; /** * Source snapshot. */ readonly sourceSnapshotId: pulumi.Output; /** * Disk status. Value description: available: Available. mounting: Mounting. mounted: Mounted. unmounting: Unmounting. creating: Creating. deleting: Deleting. error: Error. expanding: Expanding. */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Total performance. */ readonly totalPerformance: pulumi.Output; /** * Transaction status 0: Creating 1: Running 2: Creation failed */ readonly tradeStatus: pulumi.Output; /** * Disk update time. */ readonly updatedAt: pulumi.Output; /** * Disk ID. */ readonly volumeId: pulumi.Output; /** * Disk display name. Naming rules: The first character must be a Chinese character, a letter, or an underscore (*). Can contain Chinese characters, letters, numbers, underscores (*), or hyphens (-). Length must be between 1 and 128 characters. */ readonly volumeName: pulumi.Output; /** * Disk type. Value description: ESSD*PL0: Ultra-fast SSD disk, PL0 specification. ESSD*FlexPL: Ultra-fast SSD disk, FlexPL specification. TSSD_TL0: Throughput SSD disk. */ readonly volumeType: pulumi.Output; /** * Availability zone ID. */ readonly zoneId: pulumi.Output; /** * Create a Volume 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: VolumeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Volume resources. */ export interface VolumeState { /** * Automatic snapshot policy ID. */ autoSnapshotPolicyId?: pulumi.Input; /** * Automatic snapshot policy name. */ autoSnapshotPolicyName?: pulumi.Input; /** * Baseline performance. */ baselinePerformance?: pulumi.Input; /** * Disk creation time. */ createdAt?: pulumi.Input; /** * When releasing the instance, specify whether the disk is released along with the instance. Value description: true: The disk is released with the instance. false: The disk is not released with the instance. */ deleteWithInstance?: pulumi.Input; /** * Disk description. Default is empty. Length must be between 1 and 255 characters. */ description?: pulumi.Input; /** * Device name */ deviceName?: pulumi.Input; /** * Specific error */ errorDetail?: pulumi.Input; /** * Expiration time for yearly/monthly subscription. */ expiredTime?: pulumi.Input; /** * Extra performance. */ extraPerformance?: pulumi.Input; /** * Image ID in the disk. */ imageId?: pulumi.Input; /** * ECS instance ID mounted when creating the cloud disk. */ instanceId?: pulumi.Input; /** * Disk attribute. data indicates a data disk. The default value is data. Note: Only data disks can be created. */ kind?: pulumi.Input; /** * Disk overdue reclamation time. */ overdueReclaimTime?: pulumi.Input; /** * Disk overdue shutdown time. */ overdueTime?: pulumi.Input; /** * Payment type. Description: Pre: Prepaid (annual/monthly). Post: Postpaid (pay-as-you-go). */ payType?: pulumi.Input; /** * Project name to which the disk will be added. */ projectName?: pulumi.Input; /** * Renewal method 1: Manual renewal 2: Automatic renewal 3: Do not renew upon expiration. */ renewType?: pulumi.Input; /** * Size: data disk capacity in GiB. The capacity ranges for different types of data disks are as follows: ESSD*PL0: 10~65536 GiB; ESSD*FlexPL: 10~65536 GiB; TSSD_TL0: 40~65536 GiB */ size?: pulumi.Input; /** * Snapshot count. */ snapshotCount?: pulumi.Input; /** * Source snapshot. */ sourceSnapshotId?: pulumi.Input; /** * Disk status. Value description: available: Available. mounting: Mounting. mounted: Mounted. unmounting: Unmounting. creating: Creating. deleting: Deleting. error: Error. expanding: Expanding. */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Total performance. */ totalPerformance?: pulumi.Input; /** * Transaction status 0: Creating 1: Running 2: Creation failed */ tradeStatus?: pulumi.Input; /** * Disk update time. */ updatedAt?: pulumi.Input; /** * Disk ID. */ volumeId?: pulumi.Input; /** * Disk display name. Naming rules: The first character must be a Chinese character, a letter, or an underscore (*). Can contain Chinese characters, letters, numbers, underscores (*), or hyphens (-). Length must be between 1 and 128 characters. */ volumeName?: pulumi.Input; /** * Disk type. Value description: ESSD*PL0: Ultra-fast SSD disk, PL0 specification. ESSD*FlexPL: Ultra-fast SSD disk, FlexPL specification. TSSD_TL0: Throughput SSD disk. */ volumeType?: pulumi.Input; /** * Availability zone ID. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a Volume resource. */ export interface VolumeArgs { /** * Automatic snapshot policy ID. */ autoSnapshotPolicyId?: pulumi.Input; /** * When releasing the instance, specify whether the disk is released along with the instance. Value description: true: The disk is released with the instance. false: The disk is not released with the instance. */ deleteWithInstance?: pulumi.Input; /** * Disk description. Default is empty. Length must be between 1 and 255 characters. */ description?: pulumi.Input; /** * Extra performance. */ extraPerformance?: pulumi.Input; /** * ECS instance ID mounted when creating the cloud disk. */ instanceId?: pulumi.Input; /** * Disk attribute. data indicates a data disk. The default value is data. Note: Only data disks can be created. */ kind?: pulumi.Input; /** * Payment type. Description: Pre: Prepaid (annual/monthly). Post: Postpaid (pay-as-you-go). */ payType?: pulumi.Input; /** * Project name to which the disk will be added. */ projectName?: pulumi.Input; /** * Size: data disk capacity in GiB. The capacity ranges for different types of data disks are as follows: ESSD*PL0: 10~65536 GiB; ESSD*FlexPL: 10~65536 GiB; TSSD_TL0: 40~65536 GiB */ size: pulumi.Input; /** * Source snapshot. */ sourceSnapshotId?: pulumi.Input; tags?: pulumi.Input[]>; /** * Disk display name. Naming rules: The first character must be a Chinese character, a letter, or an underscore (*). Can contain Chinese characters, letters, numbers, underscores (*), or hyphens (-). Length must be between 1 and 128 characters. */ volumeName: pulumi.Input; /** * Disk type. Value description: ESSD*PL0: Ultra-fast SSD disk, PL0 specification. ESSD*FlexPL: Ultra-fast SSD disk, FlexPL specification. TSSD_TL0: Throughput SSD disk. */ volumeType: pulumi.Input; /** * Availability zone ID. */ zoneId: pulumi.Input; }