![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.kotlin.outputs.VirtualMachineStorageDataDisk.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property caching Specifies the caching requirements for the Data Disk. Possible values include `None`, `ReadOnly` and `ReadWrite`.
* @property createOption Specifies how the data disk should be created. Possible values are `Attach`, `FromImage` and `Empty`.
* > **NOTE:** If using an image that does not have data to be written to the Data Disk, use `Empty` as the create option in order to create the desired disk without any data.
* @property diskSizeGb Specifies the size of the data disk in gigabytes.
* @property lun Specifies the logical unit number of the data disk. This needs to be unique within all the Data Disks on the Virtual Machine.
* @property managedDiskId Specifies the ID of an Existing Managed Disk which should be attached to this Virtual Machine. When this field is set `create_option` must be set to `Attach`.
* The following properties apply when using Unmanaged Disks:
* @property managedDiskType Specifies the type of managed disk to create. Possible values are either `Standard_LRS`, `StandardSSD_LRS`, `Premium_LRS` or `UltraSSD_LRS`.
* > **Note:** `managed_disk_type` of type `UltraSSD_LRS` is currently in preview and are not available to subscriptions that have not [requested](https://aka.ms/UltraSSDPreviewSignUp) onboarding to `Azure Ultra Disk Storage` preview. `Azure Ultra Disk Storage` is only available in `East US 2`, `North Europe`, and `Southeast Asia` regions. For more information see the `Azure Ultra Disk Storage` [product documentation](https://docs.microsoft.com/azure/virtual-machines/windows/disks-enable-ultra-ssd), [product blog](https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-azure-ultra-disk-storage/) and [FAQ](https://docs.microsoft.com/azure/virtual-machines/windows/faq-for-disks#ultra-disks). You must also set `additional_capabilities.ultra_ssd_enabled` to `true`.
* @property name The name of the Data Disk.
* @property vhdUri Specifies the URI of the VHD file backing this Unmanaged Data Disk.
* @property writeAcceleratorEnabled Specifies if Write Accelerator is enabled on the disk. This can only be enabled on `Premium_LRS` managed disks with no caching and [M-Series VMs](https://docs.microsoft.com/azure/virtual-machines/workloads/sap/how-to-enable-write-accelerator). Defaults to `false`.
* The following properties apply when using Managed Disks:
*/
public data class VirtualMachineStorageDataDisk(
public val caching: String? = null,
public val createOption: String,
public val diskSizeGb: Int? = null,
public val lun: Int,
public val managedDiskId: String? = null,
public val managedDiskType: String? = null,
public val name: String,
public val vhdUri: String? = null,
public val writeAcceleratorEnabled: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.VirtualMachineStorageDataDisk): VirtualMachineStorageDataDisk = VirtualMachineStorageDataDisk(
caching = javaType.caching().map({ args0 -> args0 }).orElse(null),
createOption = javaType.createOption(),
diskSizeGb = javaType.diskSizeGb().map({ args0 -> args0 }).orElse(null),
lun = javaType.lun(),
managedDiskId = javaType.managedDiskId().map({ args0 -> args0 }).orElse(null),
managedDiskType = javaType.managedDiskType().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
vhdUri = javaType.vhdUri().map({ args0 -> args0 }).orElse(null),
writeAcceleratorEnabled = javaType.writeAcceleratorEnabled().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy