ComputeInstanceBootDisk class
boot_disk block (single, required by GCP). At least one of
initializeParams (create a new disk) or source (attach an existing
disk) is required by Terraform; this helper does not enforce that
because both are nullable in the schema.
- Annotations
-
- @immutable
Constructors
-
ComputeInstanceBootDisk({ComputeInstanceInitializeParams? initializeParams, TfArg<
String> ? source, TfArg<String> ? deviceName, TfArg<bool> ? autoDelete, TfArg<String> ? mode, TfArg<String> ? kmsKeySelfLink, TfArg<String> ? diskEncryptionKeyRaw, TfArg<String> ? diskEncryptionServiceAccount}) -
const
Properties
-
autoDelete
→ TfArg<
bool> ? -
Whether to auto-delete the disk when the instance is deleted.
Defaults to
trueserver-side for boot disks.final -
deviceName
→ TfArg<
String> ? -
Device name as exposed under
/dev/disk/by-id/. Optional; defaults to the instance name.final -
diskEncryptionKeyRaw
→ TfArg<
String> ? -
256-bit customer-supplied encryption key, RFC4648 base64. Sensitive.
final
-
diskEncryptionServiceAccount
→ TfArg<
String> ? -
Service account used for the KMS encryption request.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializeParams → ComputeInstanceInitializeParams?
-
New-disk initialization parameters. Mutually exclusive with source.
final
-
kmsKeySelfLink
→ TfArg<
String> ? -
KMS CryptoKey self-link. Mutually exclusive with
diskEncryptionKeyRaw.
final
-
mode
→ TfArg<
String> ? -
Read/write mode. One of
'READ_ONLY'/'READ_WRITE'.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ TfArg<
String> ? -
Existing disk name or self-link. Mutually exclusive with
initializeParams.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited