pulumi_wasm_providers_gcp_mini::compute::attached_disk

Struct AttachedDiskResult

source
pub struct AttachedDiskResult {
    pub device_name: Output<String>,
    pub disk: Output<String>,
    pub instance: Output<String>,
    pub interface: Output<Option<String>>,
    pub mode: Output<Option<String>>,
    pub project: Output<String>,
    pub zone: Output<String>,
}

Fields§

§device_name: Output<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.

If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disks-x, where x is a number assigned by Google Compute Engine.

§disk: Output<String>

name or self_link of the disk that will be attached.


§instance: Output<String>

name or self_link of the compute instance that the disk will be attached to. If the self_link 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.

§interface: Output<Option<String>>

The disk interface used for attaching this disk.

This field is only used for specific cases, please don’t specify this field without advice from Google. Not specifying the field will allow the the server to assign the correct interface.

Possible values: “SCSI” “NVME”

§mode: Output<Option<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.

Possible values: “READ_ONLY” “READ_WRITE”

§project: Output<String>

The project that the referenced compute instance is a part of. If instance is referenced by its self_link the project defined in the link will take precedence.

§zone: Output<String>

The zone that the referenced compute instance is located within. If instance is referenced by its self_link the zone defined in the link will take precedence.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.