Package com.pulumi.gcp.compute
Class DiskArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.gcp.compute.DiskArgs
-
public final class DiskArgs extends com.pulumi.resources.ResourceArgs
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DiskArgs.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<com.pulumi.core.Output<DiskAsyncPrimaryDiskArgs>>
asyncPrimaryDisk()
static DiskArgs.Builder
builder()
static DiskArgs.Builder
builder(DiskArgs defaults)
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
description()
java.util.Optional<com.pulumi.core.Output<DiskDiskEncryptionKeyArgs>>
diskEncryptionKey()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
enableConfidentialCompute()
java.util.Optional<com.pulumi.core.Output<java.util.List<DiskGuestOsFeatureArgs>>>
guestOsFeatures()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
image()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
interface_()
Deprecated.`interface` is deprecated and will be removed in a future major release.java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>>
labels()
java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>
licenses()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
multiWriter()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
name()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
physicalBlockSizeBytes()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
project()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
provisionedIops()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
provisionedThroughput()
java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>
resourcePolicies()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
size()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
snapshot()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
sourceDisk()
java.util.Optional<com.pulumi.core.Output<DiskSourceImageEncryptionKeyArgs>>
sourceImageEncryptionKey()
java.util.Optional<com.pulumi.core.Output<DiskSourceSnapshotEncryptionKeyArgs>>
sourceSnapshotEncryptionKey()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
type()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
zone()
-
-
-
Field Detail
-
Empty
public static final DiskArgs Empty
-
-
Method Detail
-
asyncPrimaryDisk
public java.util.Optional<com.pulumi.core.Output<DiskAsyncPrimaryDiskArgs>> asyncPrimaryDisk()
- Returns:
- A nested object resource Structure is documented below.
-
description
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
- Returns:
- An optional description of this resource. Provide this property when you create the resource.
-
diskEncryptionKey
public java.util.Optional<com.pulumi.core.Output<DiskDiskEncryptionKeyArgs>> diskEncryptionKey()
- Returns:
- 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.
-
enableConfidentialCompute
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enableConfidentialCompute()
- Returns:
- Whether this disk is using confidential compute mode. Note: Only supported on hyperdisk skus, disk_encryption_key is required when setting to true
-
guestOsFeatures
public java.util.Optional<com.pulumi.core.Output<java.util.List<DiskGuestOsFeatureArgs>>> guestOsFeatures()
- Returns:
- A list of features to enable on the guest operating system. Applicable only for bootable disks. Structure is documented below.
-
image
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> image()
- Returns:
- The image from which to initialize this disk. This can be one of: the image's `self_link`, `projects/{project}/global/images/{image}`, `projects/{project}/global/images/family/{family}`, `global/images/{image}`, `global/images/family/{family}`, `family/{family}`, `{project}/{family}`, `{project}/{image}`, `{family}`, or `{image}`. If referred by family, the images names must include the family name. If they don't, use the [gcp.compute.Image data source](https://www.terraform.io/docs/providers/google/d/compute_image.html). For instance, the image `centos-6-v20180104` includes its family name `centos-6`. These images can be referred by family name here.
-
interface_
@Deprecated public java.util.Optional<com.pulumi.core.Output<java.lang.String>> interface_()
Deprecated.`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.- Returns:
- (Optional, Deprecated) 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.
-
labels
public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>> labels()
- Returns:
- Labels to apply to this disk. A list of key->value pairs.
-
licenses
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> licenses()
- Returns:
- Any applicable license URI.
-
multiWriter
public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> multiWriter()
- Returns:
- Indicates whether or not the disk can be read/write attached to more than one instance.
-
name
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
- Returns:
- 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. ***
-
physicalBlockSizeBytes
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> physicalBlockSizeBytes()
- Returns:
- 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
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> project()
- Returns:
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
-
provisionedIops
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> provisionedIops()
- Returns:
- Indicates how many IOPS must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of IOPS every 4 hours. To update your hyperdisk more frequently, you'll need to manually delete and recreate it
-
provisionedThroughput
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> provisionedThroughput()
- Returns:
- Indicates how much Throughput must be provisioned for the disk. Note: Updating currently is only supported by hyperdisk skus without the need to delete and recreate the disk, hyperdisk allows for an update of Throughput every 4 hours. To update your hyperdisk more frequently, you'll need to manually delete and recreate it
-
resourcePolicies
public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> resourcePolicies()
- Returns:
- Resource policies applied to this disk for automatic snapshot creations. ~>**NOTE** This value does not support updating the resource policy, as resource policies can not be updated more than one at a time. Use `gcp.compute.DiskResourcePolicyAttachment` to allow for updating the resource policy attached to the disk.
-
size
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> size()
- Returns:
- Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the `image` or `snapshot` parameter, or specify it alone to create an empty persistent disk. If you specify this field along with `image` or `snapshot`, the value must not be less than the size of the image or the size of the snapshot. ~>**NOTE** If you change the size, the provider updates the disk size if upsizing is detected but recreates the disk if downsizing is requested. You can add `lifecycle.prevent_destroy` in the config to prevent destroying and recreating.
-
snapshot
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> snapshot()
- Returns:
- The source snapshot used to create this disk. You can provide this as a partial or full URL to the resource. If the snapshot is in another project than this disk, you must supply a full URL. 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' * 'snapshot'
-
sourceDisk
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> sourceDisk()
- Returns:
- 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}
-
sourceImageEncryptionKey
public java.util.Optional<com.pulumi.core.Output<DiskSourceImageEncryptionKeyArgs>> sourceImageEncryptionKey()
- Returns:
- The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. Structure is documented below.
-
sourceSnapshotEncryptionKey
public java.util.Optional<com.pulumi.core.Output<DiskSourceSnapshotEncryptionKeyArgs>> sourceSnapshotEncryptionKey()
- Returns:
- 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.
-
type
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> type()
- Returns:
- URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.
-
zone
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> zone()
- Returns:
- A reference to the zone where the disk resides.
-
builder
public static DiskArgs.Builder builder()
-
builder
public static DiskArgs.Builder builder(DiskArgs defaults)
-
-