AttachedDiskArgs class

The set of arguments for AttachedDisk. The set of arguments for AttachedDisk.

Constructors

AttachedDiskArgs({Input<String?>? deletionPolicy, Input<String?>? deviceName, required Input<String> disk, required Input<String> instance, Input<String?>? interface, Input<String?>? mode, Input<String?>? project, Input<String?>? zone})
Creates a new AttachedDiskArgs. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE". deviceName Specifies a unique device name of your choice that is disk name or selfLink of the disk that will be attached. instance name or selfLink of the compute instance that the disk will be attached to. interface The disk interface used for attaching this disk. mode The mode in which to attach this disk, either READ_WRITE or project The project that the referenced compute instance is a part of. If instance is referenced by its zone The zone that the referenced compute instance is located within. If instance is referenced by its
const
AttachedDiskArgs.fromMap(Map<String, dynamic> map)
factory

Properties

deletionPolicy → Input<String?>?
Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE". When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
final
deviceName → Input<String?>?
Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. This name can be used to reference the device for mounting, resizing, and so on, from within the instance.
final
disk → Input<String>
name or selfLink of the disk that will be attached.
final
hashCode → int
The hash code for this object.
no setterinherited
instance → Input<String>
name or selfLink of the compute instance that the disk will be attached to. If the selfLink is provided then zone and project are extracted from the self link. If only the name is used then zone and project must be defined as properties on the resource or provider.
final
interface → Input<String?>?
The disk interface used for attaching this disk.
final
mode → Input<String?>?
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.
final
project → Input<String?>?
The project that the referenced compute instance is a part of. If instance is referenced by its selfLink the project defined in the link will take precedence.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
zone → Input<String?>?
The zone that the referenced compute instance is located within. If instance is referenced by its selfLink the zone defined in the link will take precedence.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited