Ecs Disk Args
data class EcsDiskArgs(val advancedFeatures: Output<String>? = null, val availabilityZone: Output<String>? = null, val category: Output<String>? = null, val dedicatedBlockStorageClusterId: 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<EcsDiskArgs>
Provides a ECS Disk resource. For information about ECS Disk and how to use it, see What is Disk.
NOTE: Available in v1.122.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsDisk;
import com.pulumi.alicloud.ecs.EcsDiskArgs;
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 example = new EcsDisk("example", EcsDiskArgs.builder()
.category("cloud_efficiency")
.description("Hello ecs disk.")
.diskName("tf-test")
.encrypted(true)
.kmsKeyId("2a6767f0-a16c-4679-a60f-13bf*****")
.size("30")
.tags(Map.of("Name", "TerraformTest"))
.zoneId("cn-beijing-b")
.build());
}
}
Content copied to clipboard
Import
ECS Disk can be imported using the id, e.g.
$ pulumi import alicloud:ecs/ecsDisk:EcsDisk example d-abcd12345
Content copied to clipboard
Constructors
Link copied to clipboard
fun EcsDiskArgs(advancedFeatures: Output<String>? = null, availabilityZone: Output<String>? = null, category: Output<String>? = null, dedicatedBlockStorageClusterId: 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
Link copied to clipboard