Interface ComputeAttachedDiskConfig

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments
    All Known Implementing Classes:
    ComputeAttachedDiskConfig.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-31T03:59:18.287Z")
    @Stability(Stable)
    public interface ComputeAttachedDiskConfig
    extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments
    • Method Detail

      • getDisk

        @Stability(Stable)
        @NotNull
        String getDisk()
        name or self_link of the disk that will be attached.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#disk ComputeAttachedDisk#disk}

      • getInstance

        @Stability(Stable)
        @NotNull
        String getInstance()
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#instance ComputeAttachedDisk#instance}

      • getDeviceName

        @Stability(Stable)
        @Nullable
        default String getDeviceName()
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#device_name ComputeAttachedDisk#device_name}

      • getId

        @Stability(Stable)
        @Nullable
        default String getId()
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#id ComputeAttachedDisk#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

      • getMode

        @Stability(Stable)
        @Nullable
        default String getMode()
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#mode ComputeAttachedDisk#mode}

      • getProject

        @Stability(Stable)
        @Nullable
        default String getProject()
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#project ComputeAttachedDisk#project}

      • getTimeouts

        @Stability(Stable)
        @Nullable
        default ComputeAttachedDiskTimeouts getTimeouts()
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#timeouts ComputeAttachedDisk#timeouts}

      • getZone

        @Stability(Stable)
        @Nullable
        default String getZone()
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_attached_disk#zone ComputeAttachedDisk#zone}