Interface ComputeRegionPerInstanceConfigPreservedStateDisk

    • Method Detail

      • getDeviceName

        @Stability(Stable)
        @NotNull
        String getDeviceName()
        A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#device_name ComputeRegionPerInstanceConfig#device_name}

      • getSource

        @Stability(Stable)
        @NotNull
        String getSource()
        The URI of an existing persistent disk to attach under the specified device-name in the format 'projects/project-id/zones/zone/disks/disk-name'.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#source ComputeRegionPerInstanceConfig#source}

      • getDeleteRule

        @Stability(Stable)
        @Nullable
        default String getDeleteRule()
        A value that prescribes what should happen to the stateful disk when the VM instance is deleted.

        The available options are 'NEVER' and 'ON_PERMANENT_INSTANCE_DELETION'. 'NEVER' - detach the disk when the VM is deleted, but do not delete the disk. 'ON_PERMANENT_INSTANCE_DELETION' will delete the stateful disk when the VM is permanently deleted from the instance group. Default value: "NEVER" Possible values: ["NEVER", "ON_PERMANENT_INSTANCE_DELETION"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#delete_rule ComputeRegionPerInstanceConfig#delete_rule}

      • getMode

        @Stability(Stable)
        @Nullable
        default String getMode()
        The mode of the disk. Default value: "READ_WRITE" Possible values: ["READ_ONLY", "READ_WRITE"].

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_per_instance_config#mode ComputeRegionPerInstanceConfig#mode}