pulumi_wasm_providers_gcp_mini::compute::region_disk

Struct RegionDiskResult

source
pub struct RegionDiskResult {
Show 27 fields pub async_primary_disk: Output<Option<RegionDiskAsyncPrimaryDisk>>, pub creation_timestamp: Output<String>, pub description: Output<Option<String>>, pub disk_encryption_key: Output<Option<RegionDiskDiskEncryptionKey>>, pub effective_labels: Output<HashMap<String, String>>, pub guest_os_features: Output<Vec<RegionDiskGuestOsFeature>>, pub interface: Output<Option<String>>, pub label_fingerprint: Output<String>, pub labels: Output<Option<HashMap<String, String>>>, pub last_attach_timestamp: Output<String>, pub last_detach_timestamp: Output<String>, pub licenses: Output<Vec<String>>, pub name: Output<String>, pub physical_block_size_bytes: Output<i32>, pub project: Output<String>, pub pulumi_labels: Output<HashMap<String, String>>, pub region: Output<String>, pub replica_zones: Output<Vec<String>>, pub self_link: Output<String>, pub size: Output<i32>, pub snapshot: Output<Option<String>>, pub source_disk: Output<Option<String>>, pub source_disk_id: Output<String>, pub source_snapshot_encryption_key: Output<Option<RegionDiskSourceSnapshotEncryptionKey>>, pub source_snapshot_id: Output<String>, pub type_: Output<Option<String>>, pub users: Output<Vec<String>>,
}

Fields§

§async_primary_disk: Output<Option<RegionDiskAsyncPrimaryDisk>>

A nested object resource. Structure is documented below.

§creation_timestamp: Output<String>

Creation timestamp in RFC3339 text format.

§description: Output<Option<String>>

An optional description of this resource. Provide this property when you create the resource.

§disk_encryption_key: Output<Option<RegionDiskDiskEncryptionKey>>

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

§effective_labels: Output<HashMap<String, String>>

All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.

§guest_os_features: Output<Vec<RegionDiskGuestOsFeature>>

A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.

§interface: Output<Option<String>>

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.

Warning: interface is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.

§label_fingerprint: Output<String>

The fingerprint used for optimistic locking of this resource. Used internally during updates.

§labels: Output<Option<HashMap<String, String>>>

Labels to apply to this disk. A list of key->value pairs.

Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

§last_attach_timestamp: Output<String>

Last attach timestamp in RFC3339 text format.

§last_detach_timestamp: Output<String>

Last detach timestamp in RFC3339 text format.

§licenses: Output<Vec<String>>

Any applicable license URI.

§name: Output<String>

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

§physical_block_size_bytes: Output<i32>

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

§project: Output<String>

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

§pulumi_labels: Output<HashMap<String, String>>

The combination of labels configured directly on the resource and default labels configured on the provider.

§region: Output<String>

A reference to the region where the disk resides.

§replica_zones: Output<Vec<String>>

URLs of the zones where the disk should be replicated to.


§self_link: Output<String>

The URI of the created resource.

§size: Output<i32>

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

§snapshot: Output<Option<String>>

The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

  • https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot
  • projects/project/global/snapshots/snapshot
  • global/snapshots/snapshot
§source_disk: Output<Option<String>>

The source disk used to create this disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values:

  • https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk}
  • https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk}
  • projects/{project}/zones/{zone}/disks/{disk}
  • projects/{project}/regions/{region}/disks/{disk}
  • zones/{zone}/disks/{disk}
  • regions/{region}/disks/{disk}
§source_disk_id: Output<String>

The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.

§source_snapshot_encryption_key: Output<Option<RegionDiskSourceSnapshotEncryptionKey>>

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

§source_snapshot_id: Output<String>

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

§type_: Output<Option<String>>

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

§users: Output<Vec<String>>

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

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.