com.pulumi.gcp.compute.kotlin.RegionDisk.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin
import com.pulumi.core.Output
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskAsyncPrimaryDisk
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskDiskEncryptionKey
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskGuestOsFeature
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskSourceSnapshotEncryptionKey
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskAsyncPrimaryDisk.Companion.toKotlin as regionDiskAsyncPrimaryDiskToKotlin
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskDiskEncryptionKey.Companion.toKotlin as regionDiskDiskEncryptionKeyToKotlin
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskGuestOsFeature.Companion.toKotlin as regionDiskGuestOsFeatureToKotlin
import com.pulumi.gcp.compute.kotlin.outputs.RegionDiskSourceSnapshotEncryptionKey.Companion.toKotlin as regionDiskSourceSnapshotEncryptionKeyToKotlin
/**
* Builder for [RegionDisk].
*/
@PulumiTagMarker
public class RegionDiskResourceBuilder internal constructor() {
public var name: String? = null
public var args: RegionDiskArgs = RegionDiskArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend RegionDiskArgsBuilder.() -> Unit) {
val builder = RegionDiskArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): RegionDisk {
val builtJavaResource = com.pulumi.gcp.compute.RegionDisk(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return RegionDisk(builtJavaResource)
}
}
/**
* Persistent disks are durable storage devices that function similarly to
* the physical disks in a desktop or a server. Compute Engine manages the
* hardware behind these devices to ensure data redundancy and optimize
* performance for you. Persistent disks are available as either standard
* hard disk drives (HDD) or solid-state drives (SSD).
* Persistent disks are located independently from your virtual machine
* instances, so you can detach or move persistent disks to keep your data
* even after you delete your instances. Persistent disk performance scales
* automatically with size, so you can resize your existing persistent disks
* or add more persistent disks to an instance to meet your performance and
* storage space requirements.
* Add a persistent disk to your instance when you need reliable and
* affordable storage with consistent performance characteristics.
* To get more information about RegionDisk, see:
* * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks)
* * How-to Guides
* * [Adding or Resizing Regional Persistent Disks](https://cloud.google.com/compute/docs/disks/regional-persistent-disk)
* ## Example Usage
* ### Region Disk Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const disk = new gcp.compute.Disk("disk", {
* name: "my-disk",
* image: "debian-cloud/debian-11",
* size: 50,
* type: "pd-ssd",
* zone: "us-central1-a",
* });
* const snapdisk = new gcp.compute.Snapshot("snapdisk", {
* name: "my-snapshot",
* sourceDisk: disk.name,
* zone: "us-central1-a",
* });
* const regiondisk = new gcp.compute.RegionDisk("regiondisk", {
* name: "my-region-disk",
* snapshot: snapdisk.id,
* type: "pd-ssd",
* region: "us-central1",
* physicalBlockSizeBytes: 4096,
* replicaZones: [
* "us-central1-a",
* "us-central1-f",
* ],
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* disk = gcp.compute.Disk("disk",
* name="my-disk",
* image="debian-cloud/debian-11",
* size=50,
* type="pd-ssd",
* zone="us-central1-a")
* snapdisk = gcp.compute.Snapshot("snapdisk",
* name="my-snapshot",
* source_disk=disk.name,
* zone="us-central1-a")
* regiondisk = gcp.compute.RegionDisk("regiondisk",
* name="my-region-disk",
* snapshot=snapdisk.id,
* type="pd-ssd",
* region="us-central1",
* physical_block_size_bytes=4096,
* replica_zones=[
* "us-central1-a",
* "us-central1-f",
* ])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var disk = new Gcp.Compute.Disk("disk", new()
* {
* Name = "my-disk",
* Image = "debian-cloud/debian-11",
* Size = 50,
* Type = "pd-ssd",
* Zone = "us-central1-a",
* });
* var snapdisk = new Gcp.Compute.Snapshot("snapdisk", new()
* {
* Name = "my-snapshot",
* SourceDisk = disk.Name,
* Zone = "us-central1-a",
* });
* var regiondisk = new Gcp.Compute.RegionDisk("regiondisk", new()
* {
* Name = "my-region-disk",
* Snapshot = snapdisk.Id,
* Type = "pd-ssd",
* Region = "us-central1",
* PhysicalBlockSizeBytes = 4096,
* ReplicaZones = new[]
* {
* "us-central1-a",
* "us-central1-f",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* disk, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
* Name: pulumi.String("my-disk"),
* Image: pulumi.String("debian-cloud/debian-11"),
* Size: pulumi.Int(50),
* Type: pulumi.String("pd-ssd"),
* Zone: pulumi.String("us-central1-a"),
* })
* if err != nil {
* return err
* }
* snapdisk, err := compute.NewSnapshot(ctx, "snapdisk", &compute.SnapshotArgs{
* Name: pulumi.String("my-snapshot"),
* SourceDisk: disk.Name,
* Zone: pulumi.String("us-central1-a"),
* })
* if err != nil {
* return err
* }
* _, err = compute.NewRegionDisk(ctx, "regiondisk", &compute.RegionDiskArgs{
* Name: pulumi.String("my-region-disk"),
* Snapshot: snapdisk.ID(),
* Type: pulumi.String("pd-ssd"),
* Region: pulumi.String("us-central1"),
* PhysicalBlockSizeBytes: pulumi.Int(4096),
* ReplicaZones: pulumi.StringArray{
* pulumi.String("us-central1-a"),
* pulumi.String("us-central1-f"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.Disk;
* import com.pulumi.gcp.compute.DiskArgs;
* import com.pulumi.gcp.compute.Snapshot;
* import com.pulumi.gcp.compute.SnapshotArgs;
* import com.pulumi.gcp.compute.RegionDisk;
* import com.pulumi.gcp.compute.RegionDiskArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var disk = new Disk("disk", DiskArgs.builder()
* .name("my-disk")
* .image("debian-cloud/debian-11")
* .size(50)
* .type("pd-ssd")
* .zone("us-central1-a")
* .build());
* var snapdisk = new Snapshot("snapdisk", SnapshotArgs.builder()
* .name("my-snapshot")
* .sourceDisk(disk.name())
* .zone("us-central1-a")
* .build());
* var regiondisk = new RegionDisk("regiondisk", RegionDiskArgs.builder()
* .name("my-region-disk")
* .snapshot(snapdisk.id())
* .type("pd-ssd")
* .region("us-central1")
* .physicalBlockSizeBytes(4096)
* .replicaZones(
* "us-central1-a",
* "us-central1-f")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* regiondisk:
* type: gcp:compute:RegionDisk
* properties:
* name: my-region-disk
* snapshot: ${snapdisk.id}
* type: pd-ssd
* region: us-central1
* physicalBlockSizeBytes: 4096
* replicaZones:
* - us-central1-a
* - us-central1-f
* disk:
* type: gcp:compute:Disk
* properties:
* name: my-disk
* image: debian-cloud/debian-11
* size: 50
* type: pd-ssd
* zone: us-central1-a
* snapdisk:
* type: gcp:compute:Snapshot
* properties:
* name: my-snapshot
* sourceDisk: ${disk.name}
* zone: us-central1-a
* ```
*
* ### Region Disk Async
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const primary = new gcp.compute.RegionDisk("primary", {
* name: "primary-region-disk",
* type: "pd-ssd",
* region: "us-central1",
* physicalBlockSizeBytes: 4096,
* replicaZones: [
* "us-central1-a",
* "us-central1-f",
* ],
* });
* const secondary = new gcp.compute.RegionDisk("secondary", {
* name: "secondary-region-disk",
* type: "pd-ssd",
* region: "us-east1",
* physicalBlockSizeBytes: 4096,
* asyncPrimaryDisk: {
* disk: primary.id,
* },
* replicaZones: [
* "us-east1-b",
* "us-east1-c",
* ],
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* primary = gcp.compute.RegionDisk("primary",
* name="primary-region-disk",
* type="pd-ssd",
* region="us-central1",
* physical_block_size_bytes=4096,
* replica_zones=[
* "us-central1-a",
* "us-central1-f",
* ])
* secondary = gcp.compute.RegionDisk("secondary",
* name="secondary-region-disk",
* type="pd-ssd",
* region="us-east1",
* physical_block_size_bytes=4096,
* async_primary_disk=gcp.compute.RegionDiskAsyncPrimaryDiskArgs(
* disk=primary.id,
* ),
* replica_zones=[
* "us-east1-b",
* "us-east1-c",
* ])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var primary = new Gcp.Compute.RegionDisk("primary", new()
* {
* Name = "primary-region-disk",
* Type = "pd-ssd",
* Region = "us-central1",
* PhysicalBlockSizeBytes = 4096,
* ReplicaZones = new[]
* {
* "us-central1-a",
* "us-central1-f",
* },
* });
* var secondary = new Gcp.Compute.RegionDisk("secondary", new()
* {
* Name = "secondary-region-disk",
* Type = "pd-ssd",
* Region = "us-east1",
* PhysicalBlockSizeBytes = 4096,
* AsyncPrimaryDisk = new Gcp.Compute.Inputs.RegionDiskAsyncPrimaryDiskArgs
* {
* Disk = primary.Id,
* },
* ReplicaZones = new[]
* {
* "us-east1-b",
* "us-east1-c",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* primary, err := compute.NewRegionDisk(ctx, "primary", &compute.RegionDiskArgs{
* Name: pulumi.String("primary-region-disk"),
* Type: pulumi.String("pd-ssd"),
* Region: pulumi.String("us-central1"),
* PhysicalBlockSizeBytes: pulumi.Int(4096),
* ReplicaZones: pulumi.StringArray{
* pulumi.String("us-central1-a"),
* pulumi.String("us-central1-f"),
* },
* })
* if err != nil {
* return err
* }
* _, err = compute.NewRegionDisk(ctx, "secondary", &compute.RegionDiskArgs{
* Name: pulumi.String("secondary-region-disk"),
* Type: pulumi.String("pd-ssd"),
* Region: pulumi.String("us-east1"),
* PhysicalBlockSizeBytes: pulumi.Int(4096),
* AsyncPrimaryDisk: &compute.RegionDiskAsyncPrimaryDiskArgs{
* Disk: primary.ID(),
* },
* ReplicaZones: pulumi.StringArray{
* pulumi.String("us-east1-b"),
* pulumi.String("us-east1-c"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionDisk;
* import com.pulumi.gcp.compute.RegionDiskArgs;
* import com.pulumi.gcp.compute.inputs.RegionDiskAsyncPrimaryDiskArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var primary = new RegionDisk("primary", RegionDiskArgs.builder()
* .name("primary-region-disk")
* .type("pd-ssd")
* .region("us-central1")
* .physicalBlockSizeBytes(4096)
* .replicaZones(
* "us-central1-a",
* "us-central1-f")
* .build());
* var secondary = new RegionDisk("secondary", RegionDiskArgs.builder()
* .name("secondary-region-disk")
* .type("pd-ssd")
* .region("us-east1")
* .physicalBlockSizeBytes(4096)
* .asyncPrimaryDisk(RegionDiskAsyncPrimaryDiskArgs.builder()
* .disk(primary.id())
* .build())
* .replicaZones(
* "us-east1-b",
* "us-east1-c")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* primary:
* type: gcp:compute:RegionDisk
* properties:
* name: primary-region-disk
* type: pd-ssd
* region: us-central1
* physicalBlockSizeBytes: 4096
* replicaZones:
* - us-central1-a
* - us-central1-f
* secondary:
* type: gcp:compute:RegionDisk
* properties:
* name: secondary-region-disk
* type: pd-ssd
* region: us-east1
* physicalBlockSizeBytes: 4096
* asyncPrimaryDisk:
* disk: ${primary.id}
* replicaZones:
* - us-east1-b
* - us-east1-c
* ```
*
* ### Region Disk Features
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const regiondisk = new gcp.compute.RegionDisk("regiondisk", {
* name: "my-region-features-disk",
* type: "pd-ssd",
* region: "us-central1",
* physicalBlockSizeBytes: 4096,
* guestOsFeatures: [
* {
* type: "SECURE_BOOT",
* },
* {
* type: "MULTI_IP_SUBNET",
* },
* {
* type: "WINDOWS",
* },
* ],
* licenses: ["https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core"],
* replicaZones: [
* "us-central1-a",
* "us-central1-f",
* ],
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* regiondisk = gcp.compute.RegionDisk("regiondisk",
* name="my-region-features-disk",
* type="pd-ssd",
* region="us-central1",
* physical_block_size_bytes=4096,
* guest_os_features=[
* gcp.compute.RegionDiskGuestOsFeatureArgs(
* type="SECURE_BOOT",
* ),
* gcp.compute.RegionDiskGuestOsFeatureArgs(
* type="MULTI_IP_SUBNET",
* ),
* gcp.compute.RegionDiskGuestOsFeatureArgs(
* type="WINDOWS",
* ),
* ],
* licenses=["https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core"],
* replica_zones=[
* "us-central1-a",
* "us-central1-f",
* ])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var regiondisk = new Gcp.Compute.RegionDisk("regiondisk", new()
* {
* Name = "my-region-features-disk",
* Type = "pd-ssd",
* Region = "us-central1",
* PhysicalBlockSizeBytes = 4096,
* GuestOsFeatures = new[]
* {
* new Gcp.Compute.Inputs.RegionDiskGuestOsFeatureArgs
* {
* Type = "SECURE_BOOT",
* },
* new Gcp.Compute.Inputs.RegionDiskGuestOsFeatureArgs
* {
* Type = "MULTI_IP_SUBNET",
* },
* new Gcp.Compute.Inputs.RegionDiskGuestOsFeatureArgs
* {
* Type = "WINDOWS",
* },
* },
* Licenses = new[]
* {
* "https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core",
* },
* ReplicaZones = new[]
* {
* "us-central1-a",
* "us-central1-f",
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := compute.NewRegionDisk(ctx, "regiondisk", &compute.RegionDiskArgs{
* Name: pulumi.String("my-region-features-disk"),
* Type: pulumi.String("pd-ssd"),
* Region: pulumi.String("us-central1"),
* PhysicalBlockSizeBytes: pulumi.Int(4096),
* GuestOsFeatures: compute.RegionDiskGuestOsFeatureArray{
* &compute.RegionDiskGuestOsFeatureArgs{
* Type: pulumi.String("SECURE_BOOT"),
* },
* &compute.RegionDiskGuestOsFeatureArgs{
* Type: pulumi.String("MULTI_IP_SUBNET"),
* },
* &compute.RegionDiskGuestOsFeatureArgs{
* Type: pulumi.String("WINDOWS"),
* },
* },
* Licenses: pulumi.StringArray{
* pulumi.String("https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core"),
* },
* ReplicaZones: pulumi.StringArray{
* pulumi.String("us-central1-a"),
* pulumi.String("us-central1-f"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.RegionDisk;
* import com.pulumi.gcp.compute.RegionDiskArgs;
* import com.pulumi.gcp.compute.inputs.RegionDiskGuestOsFeatureArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var regiondisk = new RegionDisk("regiondisk", RegionDiskArgs.builder()
* .name("my-region-features-disk")
* .type("pd-ssd")
* .region("us-central1")
* .physicalBlockSizeBytes(4096)
* .guestOsFeatures(
* RegionDiskGuestOsFeatureArgs.builder()
* .type("SECURE_BOOT")
* .build(),
* RegionDiskGuestOsFeatureArgs.builder()
* .type("MULTI_IP_SUBNET")
* .build(),
* RegionDiskGuestOsFeatureArgs.builder()
* .type("WINDOWS")
* .build())
* .licenses("https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core")
* .replicaZones(
* "us-central1-a",
* "us-central1-f")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* regiondisk:
* type: gcp:compute:RegionDisk
* properties:
* name: my-region-features-disk
* type: pd-ssd
* region: us-central1
* physicalBlockSizeBytes: 4096
* guestOsFeatures:
* - type: SECURE_BOOT
* - type: MULTI_IP_SUBNET
* - type: WINDOWS
* licenses:
* - https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core
* replicaZones:
* - us-central1-a
* - us-central1-f
* ```
*
* ## Import
* RegionDisk can be imported using any of these accepted formats:
* * `projects/{{project}}/regions/{{region}}/disks/{{name}}`
* * `{{project}}/{{region}}/{{name}}`
* * `{{region}}/{{name}}`
* * `{{name}}`
* When using the `pulumi import` command, RegionDisk can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:compute/regionDisk:RegionDisk default projects/{{project}}/regions/{{region}}/disks/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionDisk:RegionDisk default {{project}}/{{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionDisk:RegionDisk default {{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:compute/regionDisk:RegionDisk default {{name}}
* ```
*/
public class RegionDisk internal constructor(
override val javaResource: com.pulumi.gcp.compute.RegionDisk,
) : KotlinCustomResource(javaResource, RegionDiskMapper) {
/**
* A nested object resource
* Structure is documented below.
*/
public val asyncPrimaryDisk: Output?
get() = javaResource.asyncPrimaryDisk().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> regionDiskAsyncPrimaryDiskToKotlin(args0) })
}).orElse(null)
})
/**
* Creation timestamp in RFC3339 text format.
*/
public val creationTimestamp: Output
get() = javaResource.creationTimestamp().applyValue({ args0 -> args0 })
/**
* An optional description of this resource. Provide this property when
* you create the resource.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* 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.
*/
public val diskEncryptionKey: Output?
get() = javaResource.diskEncryptionKey().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> regionDiskDiskEncryptionKeyToKotlin(args0) })
}).orElse(null)
})
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
public val effectiveLabels: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy