InstanceAttachedDisk class
Constructors
-
InstanceAttachedDisk({Input<String?>? deviceName, Input<String?>? diskEncryptionKeyRaw, Input<String?>? diskEncryptionKeyRsa, Input<String?>? diskEncryptionKeySha256, Input<String?>? diskEncryptionServiceAccount, Input<bool?>? forceAttach, Input<String?>? kmsKeySelfLink, Input<String?>? mode, required Input<String> source})
-
Creates a new InstanceAttachedDisk.
deviceName Name with which the attached disk will be accessible
diskEncryptionKeyRaw A 256-bit customer-supplied encryption key,
diskEncryptionKeyRsa Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to encrypt this disk. Only one of kmsKeySelfLink, diskEncryptionKeyRsa and diskEncryptionKeyRaw
diskEncryptionKeySha256 The RFC 4648 base64
diskEncryptionServiceAccount The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
forceAttach Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error. Setting this parameter cause VM recreation.
kmsKeySelfLink The selfLink of the encryption key that is
mode Either "READ_ONLY" or "READ_WRITE", defaults to "READ_WRITE"
source The name or selfLink of the disk to attach to this instance.
const
-
InstanceAttachedDisk.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
deviceName
→ Input<String?>?
-
Name with which the attached disk will be accessible
under
/dev/disk/by-id/google-*
final
-
diskEncryptionKeyRaw
→ Input<String?>?
-
A 256-bit customer-supplied encryption key,
encoded in RFC 4648 base64
to encrypt this disk. Only one of
kmsKeySelfLink, diskEncryptionKeyRsa and diskEncryptionKeyRaw
may be set.
final
-
diskEncryptionKeyRsa
→ Input<String?>?
-
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to encrypt this disk. Only one of
kmsKeySelfLink, diskEncryptionKeyRsa and diskEncryptionKeyRaw
may be set.
final
-
diskEncryptionKeySha256
→ Input<String?>?
-
The RFC 4648 base64
encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
final
-
diskEncryptionServiceAccount
→ Input<String?>?
-
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
final
-
forceAttach
→ Input<bool?>?
-
Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error. Setting this parameter cause VM recreation.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
kmsKeySelfLink
→ Input<String?>?
-
The selfLink of the encryption key that is
stored in Google Cloud KMS to encrypt this disk. Only one of
kmsKeySelfLink, diskEncryptionKeyRsa and diskEncryptionKeyRaw
may be set.
final
-
mode
→ Input<String?>?
-
Either "READ_ONLY" or "READ_WRITE", defaults to "READ_WRITE"
If you have a persistent disk with data that you want to share
between multiple instances, detach it from any read-write instances and
attach it to one or more instances in read-only mode.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ Input<String>
-
The name or selfLink of the disk to attach to this instance.
final