pulumi_wasm_providers_gcp_mini::compute::attached_disk

Struct AttachedDiskArgs

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

Fields§

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

Implementations§

source§

impl AttachedDiskArgs

source

pub fn builder() -> AttachedDiskArgsBuilder

Create an instance of AttachedDiskArgs using the builder syntax

Trait Implementations§

source§

impl Clone for AttachedDiskArgs

source§

fn clone(&self) -> AttachedDiskArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.