Package com.pulumi.gcp.compute
Class AttachedDiskArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.gcp.compute.AttachedDiskArgs
-
public final class AttachedDiskArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttachedDiskArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static AttachedDiskArgs
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachedDiskArgs.Builder
builder()
static AttachedDiskArgs.Builder
builder(AttachedDiskArgs defaults)
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
deviceName()
com.pulumi.core.Output<java.lang.String>
disk()
com.pulumi.core.Output<java.lang.String>
instance()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
mode()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
project()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
zone()
-
-
-
Field Detail
-
Empty
public static final AttachedDiskArgs Empty
-
-
Method Detail
-
deviceName
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> deviceName()
- Returns:
- 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
public com.pulumi.core.Output<java.lang.String> disk()
- Returns:
- `name` or `self_link` of the disk that will be attached. ***
-
instance
public com.pulumi.core.Output<java.lang.String> instance()
- Returns:
- `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.
-
mode
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> mode()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> project()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> zone()
- Returns:
- 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.
-
builder
public static AttachedDiskArgs.Builder builder()
-
builder
public static AttachedDiskArgs.Builder builder(AttachedDiskArgs defaults)
-
-