InstanceBootDiskArgs

data class InstanceBootDiskArgs(val autoDelete: Output<Boolean>? = null, val deviceName: Output<String>? = null, val diskEncryptionKeyRaw: Output<String>? = null, val diskEncryptionKeyRsa: Output<String>? = null, val diskEncryptionKeySha256: Output<String>? = null, val diskEncryptionServiceAccount: Output<String>? = null, val guestOsFeatures: Output<List<String>>? = null, val initializeParams: Output<InstanceBootDiskInitializeParamsArgs>? = null, val interface: Output<String>? = null, val kmsKeySelfLink: Output<String>? = null, val mode: Output<String>? = null, val source: Output<String>? = null) : ConvertibleToJava<InstanceBootDiskArgs>

Constructors

Link copied to clipboard
constructor(autoDelete: Output<Boolean>? = null, deviceName: Output<String>? = null, diskEncryptionKeyRaw: Output<String>? = null, diskEncryptionKeyRsa: Output<String>? = null, diskEncryptionKeySha256: Output<String>? = null, diskEncryptionServiceAccount: Output<String>? = null, guestOsFeatures: Output<List<String>>? = null, initializeParams: Output<InstanceBootDiskInitializeParamsArgs>? = null, interface: Output<String>? = null, kmsKeySelfLink: Output<String>? = null, mode: Output<String>? = null, source: Output<String>? = null)

Properties

Link copied to clipboard
val autoDelete: Output<Boolean>? = null

Whether the disk will be auto-deleted when the instance is deleted. Defaults to true.

Link copied to clipboard
val deviceName: Output<String>? = null

Name with which attached disk will be accessible. On the instance, this device will be /dev/disk/by-id/google-{{device_name}}.

Link copied to clipboard
val diskEncryptionKeyRaw: Output<String>? = null

A 256-bit customer-supplied encryption key (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption), encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.

Link copied to clipboard
val diskEncryptionKeyRsa: Output<String>? = null

Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw

Link copied to clipboard
val diskEncryptionKeySha256: Output<String>? = null

The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) that protects this resource.

Link copied to clipboard

The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.

Link copied to clipboard
val guestOsFeatures: Output<List<String>>? = null

A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.

Link copied to clipboard

Parameters for a new disk that will be created alongside the new instance. Either initialize_params or source must be set. Structure is documented below.

Link copied to clipboard
val interface: Output<String>? = null

The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)

Link copied to clipboard
val kmsKeySelfLink: Output<String>? = null

The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.

Link copied to clipboard
val mode: Output<String>? = null

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.

Link copied to clipboard
val source: Output<String>? = null

The name or self_link of the existing disk (such as those managed by gcp.compute.Disk) or disk image. To create an instance from a snapshot, first create a gcp.compute.Disk from a snapshot and reference it here.

Functions

Link copied to clipboard
open override fun toJava(): InstanceBootDiskArgs