Disk Args
data class DiskArgs(val advancedFeatures: Output<String>? = null, val availabilityZone: Output<String>? = null, val category: Output<String>? = null, val deleteAutoSnapshot: Output<Boolean>? = null, val deleteWithInstance: Output<Boolean>? = null, val description: Output<String>? = null, val diskName: Output<String>? = null, val dryRun: Output<Boolean>? = null, val enableAutoSnapshot: Output<Boolean>? = null, val encryptAlgorithm: Output<String>? = null, val encrypted: Output<Boolean>? = null, val instanceId: Output<String>? = null, val kmsKeyId: Output<String>? = null, val name: Output<String>? = null, val paymentType: Output<String>? = null, val performanceLevel: Output<String>? = null, val resourceGroupId: Output<String>? = null, val size: Output<Int>? = null, val snapshotId: Output<String>? = null, val storageSetId: Output<String>? = null, val storageSetPartitionNumber: Output<Int>? = null, val tags: Output<Map<String, Any>>? = null, val type: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<DiskArgs>
Provides a ECS disk resource.
DEPRECATED: This resource has been renamed to alicloud.ecs.EcsDisk from version 1.122.0. NOTE: One of
size
orsnapshot_id
is required when specifying an ECS disk. If all of them be specified,size
must more than the size of snapshot whichsnapshot_id
represents. Currently,alicloud.ecs.Disk
doesn't resize disk.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.Disk;
import com.pulumi.alicloud.ecs.DiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var ecsDisk = new Disk("ecsDisk", DiskArgs.builder()
.availabilityZone("cn-beijing-b")
.category("cloud_efficiency")
.description("Hello ecs disk.")
.encrypted(true)
.kmsKeyId("2a6767f0-a16c-4679-a60f-13bf*****")
.size("30")
.tags(Map.of("Name", "TerraformTest"))
.build());
}
}
Content copied to clipboard
Import
Cloud disk can be imported using the id, e.g.
$ pulumi import alicloud:ecs/disk:Disk example d-abc12345678
Content copied to clipboard
Constructors
Link copied to clipboard
fun DiskArgs(advancedFeatures: Output<String>? = null, availabilityZone: Output<String>? = null, category: Output<String>? = null, deleteAutoSnapshot: Output<Boolean>? = null, deleteWithInstance: Output<Boolean>? = null, description: Output<String>? = null, diskName: Output<String>? = null, dryRun: Output<Boolean>? = null, enableAutoSnapshot: Output<Boolean>? = null, encryptAlgorithm: Output<String>? = null, encrypted: Output<Boolean>? = null, instanceId: Output<String>? = null, kmsKeyId: Output<String>? = null, name: Output<String>? = null, paymentType: Output<String>? = null, performanceLevel: Output<String>? = null, resourceGroupId: Output<String>? = null, size: Output<Int>? = null, snapshotId: Output<String>? = null, storageSetId: Output<String>? = null, storageSetPartitionNumber: Output<Int>? = null, tags: Output<Map<String, Any>>? = null, type: Output<String>? = null, zoneId: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard