All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.bigtable.kotlin.InstanceArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigtable.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigtable.InstanceArgs.builder
import com.pulumi.gcp.bigtable.kotlin.inputs.InstanceClusterArgs
import com.pulumi.gcp.bigtable.kotlin.inputs.InstanceClusterArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * ## +---
 * subcategory: "Cloud Bigtable"
 * description: |-
 *   Creates a Google Bigtable instance.
 * ---
 * # gcp.bigtable.Instance
 * Creates a Google Bigtable instance. For more information see:
 * * [API documentation](https://cloud.google.com/bigtable/docs/reference/admin/rest/v2/projects.instances.clusters)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/bigtable/docs)
 * ## Example Usage
 * ### Simple Instance
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const production_instance = new gcp.bigtable.Instance("production-instance", {
 *     name: "tf-instance",
 *     clusters: [{
 *         clusterId: "tf-instance-cluster",
 *         numNodes: 1,
 *         storageType: "HDD",
 *     }],
 *     labels: {
 *         "my-label": "prod-label",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * production_instance = gcp.bigtable.Instance("production-instance",
 *     name="tf-instance",
 *     clusters=[gcp.bigtable.InstanceClusterArgs(
 *         cluster_id="tf-instance-cluster",
 *         num_nodes=1,
 *         storage_type="HDD",
 *     )],
 *     labels={
 *         "my-label": "prod-label",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var production_instance = new Gcp.BigTable.Instance("production-instance", new()
 *     {
 *         Name = "tf-instance",
 *         Clusters = new[]
 *         {
 *             new Gcp.BigTable.Inputs.InstanceClusterArgs
 *             {
 *                 ClusterId = "tf-instance-cluster",
 *                 NumNodes = 1,
 *                 StorageType = "HDD",
 *             },
 *         },
 *         Labels =
 *         {
 *             { "my-label", "prod-label" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/bigtable"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := bigtable.NewInstance(ctx, "production-instance", &bigtable.InstanceArgs{
 * 			Name: pulumi.String("tf-instance"),
 * 			Clusters: bigtable.InstanceClusterArray{
 * 				&bigtable.InstanceClusterArgs{
 * 					ClusterId:   pulumi.String("tf-instance-cluster"),
 * 					NumNodes:    pulumi.Int(1),
 * 					StorageType: pulumi.String("HDD"),
 * 				},
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"my-label": pulumi.String("prod-label"),
 * 			},
 * 		})
 * 		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.bigtable.Instance;
 * import com.pulumi.gcp.bigtable.InstanceArgs;
 * import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
 * 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 production_instance = new Instance("production-instance", InstanceArgs.builder()
 *             .name("tf-instance")
 *             .clusters(InstanceClusterArgs.builder()
 *                 .clusterId("tf-instance-cluster")
 *                 .numNodes(1)
 *                 .storageType("HDD")
 *                 .build())
 *             .labels(Map.of("my-label", "prod-label"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   production-instance:
 *     type: gcp:bigtable:Instance
 *     properties:
 *       name: tf-instance
 *       clusters:
 *         - clusterId: tf-instance-cluster
 *           numNodes: 1
 *           storageType: HDD
 *       labels:
 *         my-label: prod-label
 * ```
 * 
 * ### Replicated Instance
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const production_instance = new gcp.bigtable.Instance("production-instance", {
 *     name: "tf-instance",
 *     clusters: [
 *         {
 *             clusterId: "tf-instance-cluster1",
 *             numNodes: 1,
 *             storageType: "HDD",
 *             zone: "us-central1-c",
 *         },
 *         {
 *             clusterId: "tf-instance-cluster2",
 *             storageType: "HDD",
 *             zone: "us-central1-b",
 *             autoscalingConfig: {
 *                 minNodes: 1,
 *                 maxNodes: 3,
 *                 cpuTarget: 50,
 *             },
 *         },
 *     ],
 *     labels: {
 *         "my-label": "prod-label",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * production_instance = gcp.bigtable.Instance("production-instance",
 *     name="tf-instance",
 *     clusters=[
 *         gcp.bigtable.InstanceClusterArgs(
 *             cluster_id="tf-instance-cluster1",
 *             num_nodes=1,
 *             storage_type="HDD",
 *             zone="us-central1-c",
 *         ),
 *         gcp.bigtable.InstanceClusterArgs(
 *             cluster_id="tf-instance-cluster2",
 *             storage_type="HDD",
 *             zone="us-central1-b",
 *             autoscaling_config=gcp.bigtable.InstanceClusterAutoscalingConfigArgs(
 *                 min_nodes=1,
 *                 max_nodes=3,
 *                 cpu_target=50,
 *             ),
 *         ),
 *     ],
 *     labels={
 *         "my-label": "prod-label",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var production_instance = new Gcp.BigTable.Instance("production-instance", new()
 *     {
 *         Name = "tf-instance",
 *         Clusters = new[]
 *         {
 *             new Gcp.BigTable.Inputs.InstanceClusterArgs
 *             {
 *                 ClusterId = "tf-instance-cluster1",
 *                 NumNodes = 1,
 *                 StorageType = "HDD",
 *                 Zone = "us-central1-c",
 *             },
 *             new Gcp.BigTable.Inputs.InstanceClusterArgs
 *             {
 *                 ClusterId = "tf-instance-cluster2",
 *                 StorageType = "HDD",
 *                 Zone = "us-central1-b",
 *                 AutoscalingConfig = new Gcp.BigTable.Inputs.InstanceClusterAutoscalingConfigArgs
 *                 {
 *                     MinNodes = 1,
 *                     MaxNodes = 3,
 *                     CpuTarget = 50,
 *                 },
 *             },
 *         },
 *         Labels =
 *         {
 *             { "my-label", "prod-label" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/bigtable"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := bigtable.NewInstance(ctx, "production-instance", &bigtable.InstanceArgs{
 * 			Name: pulumi.String("tf-instance"),
 * 			Clusters: bigtable.InstanceClusterArray{
 * 				&bigtable.InstanceClusterArgs{
 * 					ClusterId:   pulumi.String("tf-instance-cluster1"),
 * 					NumNodes:    pulumi.Int(1),
 * 					StorageType: pulumi.String("HDD"),
 * 					Zone:        pulumi.String("us-central1-c"),
 * 				},
 * 				&bigtable.InstanceClusterArgs{
 * 					ClusterId:   pulumi.String("tf-instance-cluster2"),
 * 					StorageType: pulumi.String("HDD"),
 * 					Zone:        pulumi.String("us-central1-b"),
 * 					AutoscalingConfig: &bigtable.InstanceClusterAutoscalingConfigArgs{
 * 						MinNodes:  pulumi.Int(1),
 * 						MaxNodes:  pulumi.Int(3),
 * 						CpuTarget: pulumi.Int(50),
 * 					},
 * 				},
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"my-label": pulumi.String("prod-label"),
 * 			},
 * 		})
 * 		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.bigtable.Instance;
 * import com.pulumi.gcp.bigtable.InstanceArgs;
 * import com.pulumi.gcp.bigtable.inputs.InstanceClusterArgs;
 * import com.pulumi.gcp.bigtable.inputs.InstanceClusterAutoscalingConfigArgs;
 * 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 production_instance = new Instance("production-instance", InstanceArgs.builder()
 *             .name("tf-instance")
 *             .clusters(
 *                 InstanceClusterArgs.builder()
 *                     .clusterId("tf-instance-cluster1")
 *                     .numNodes(1)
 *                     .storageType("HDD")
 *                     .zone("us-central1-c")
 *                     .build(),
 *                 InstanceClusterArgs.builder()
 *                     .clusterId("tf-instance-cluster2")
 *                     .storageType("HDD")
 *                     .zone("us-central1-b")
 *                     .autoscalingConfig(InstanceClusterAutoscalingConfigArgs.builder()
 *                         .minNodes(1)
 *                         .maxNodes(3)
 *                         .cpuTarget(50)
 *                         .build())
 *                     .build())
 *             .labels(Map.of("my-label", "prod-label"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   production-instance:
 *     type: gcp:bigtable:Instance
 *     properties:
 *       name: tf-instance
 *       clusters:
 *         - clusterId: tf-instance-cluster1
 *           numNodes: 1
 *           storageType: HDD
 *           zone: us-central1-c
 *         - clusterId: tf-instance-cluster2
 *           storageType: HDD
 *           zone: us-central1-b
 *           autoscalingConfig:
 *             minNodes: 1
 *             maxNodes: 3
 *             cpuTarget: 50
 *       labels:
 *         my-label: prod-label
 * ```
 * 
 * ## Import
 * Bigtable Instances can be imported using any of these accepted formats:
 * * `projects/{{project}}/instances/{{name}}`
 * * `{{project}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, Bigtable Instances can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:bigtable/instance:Instance default projects/{{project}}/instances/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:bigtable/instance:Instance default {{project}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:bigtable/instance:Instance default {{name}}
 * ```
 * @property clusters A block of cluster configuration options. This can be specified at least once, and up
 * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
 * to default to the backend value. See structure below.
 * -----
 * @property deletionProtection Whether or not to allow this provider to destroy the instance. Unless this field is set to false
 * in the statefile, a `pulumi destroy` or `pulumi up` that would delete the instance will fail.
 * @property displayName The human-readable display name of the Bigtable instance. Defaults to the instance `name`.
 * @property instanceType The instance type to create. One of `"DEVELOPMENT"` or `"PRODUCTION"`. Defaults to `"PRODUCTION"`.
 * It is recommended to leave this field unspecified since the distinction between `"DEVELOPMENT"` and `"PRODUCTION"` instances is going away,
 * and all instances will become `"PRODUCTION"` instances. This means that new and existing `"DEVELOPMENT"` instances will be converted to
 * `"PRODUCTION"` instances. It is recommended for users to use `"PRODUCTION"` instances in any case, since a 1-node `"PRODUCTION"` instance
 * is functionally identical to a `"DEVELOPMENT"` instance, but without the accompanying restrictions.
 * @property labels A set of key/value label pairs to assign to the resource. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
 * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
 * Please refer to the field 'effective_labels' for all of the labels present on the resource.
 * @property name The name (also called Instance Id in the Cloud Console) of the Cloud Bigtable instance. Must be 6-33 characters and must only contain hyphens, lowercase letters and numbers.
 * @property project The ID of the project in which the resource belongs. If it
 * is not provided, the provider project is used.
 */
public data class InstanceArgs(
    public val clusters: Output>? = null,
    public val deletionProtection: Output? = null,
    public val displayName: Output? = null,
    @Deprecated(
        message = """
  It is recommended to leave this field unspecified since the distinction between "DEVELOPMENT" and
      "PRODUCTION" instances is going away, and all instances will become "PRODUCTION" instances.
      This means that new and existing "DEVELOPMENT" instances will be converted to "PRODUCTION"
      instances. It is recommended for users to use "PRODUCTION" instances in any case, since a
      1-node "PRODUCTION" instance is functionally identical to a "DEVELOPMENT" instance, but
      without the accompanying restrictions.
  """,
    )
    public val instanceType: Output? = null,
    public val labels: Output>? = null,
    public val name: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigtable.InstanceArgs =
        com.pulumi.gcp.bigtable.InstanceArgs.builder()
            .clusters(
                clusters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .deletionProtection(deletionProtection?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .instanceType(instanceType?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceArgs].
 */
@PulumiTagMarker
public class InstanceArgsBuilder internal constructor() {
    private var clusters: Output>? = null

    private var deletionProtection: Output? = null

    private var displayName: Output? = null

    private var instanceType: Output? = null

    private var labels: Output>? = null

    private var name: Output? = null

    private var project: Output? = null

    /**
     * @param value A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("dwvjnnpqeswlwovj")
    public suspend fun clusters(`value`: Output>) {
        this.clusters = value
    }

    @JvmName("patgyitydqocuvkr")
    public suspend fun clusters(vararg values: Output) {
        this.clusters = Output.all(values.asList())
    }

    /**
     * @param values A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("ueijpjkumxrlfpgn")
    public suspend fun clusters(values: List>) {
        this.clusters = Output.all(values)
    }

    /**
     * @param value Whether or not to allow this provider to destroy the instance. Unless this field is set to false
     * in the statefile, a `pulumi destroy` or `pulumi up` that would delete the instance will fail.
     */
    @JvmName("cvxdydhflfiuwntr")
    public suspend fun deletionProtection(`value`: Output) {
        this.deletionProtection = value
    }

    /**
     * @param value The human-readable display name of the Bigtable instance. Defaults to the instance `name`.
     */
    @JvmName("dbqxjsyqipbiawox")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The instance type to create. One of `"DEVELOPMENT"` or `"PRODUCTION"`. Defaults to `"PRODUCTION"`.
     * It is recommended to leave this field unspecified since the distinction between `"DEVELOPMENT"` and `"PRODUCTION"` instances is going away,
     * and all instances will become `"PRODUCTION"` instances. This means that new and existing `"DEVELOPMENT"` instances will be converted to
     * `"PRODUCTION"` instances. It is recommended for users to use `"PRODUCTION"` instances in any case, since a 1-node `"PRODUCTION"` instance
     * is functionally identical to a `"DEVELOPMENT"` instance, but without the accompanying restrictions.
     */
    @Deprecated(
        message = """
  It is recommended to leave this field unspecified since the distinction between "DEVELOPMENT" and
      "PRODUCTION" instances is going away, and all instances will become "PRODUCTION" instances.
      This means that new and existing "DEVELOPMENT" instances will be converted to "PRODUCTION"
      instances. It is recommended for users to use "PRODUCTION" instances in any case, since a
      1-node "PRODUCTION" instance is functionally identical to a "DEVELOPMENT" instance, but
      without the accompanying restrictions.
  """,
    )
    @JvmName("eprqiyaucueiverm")
    public suspend fun instanceType(`value`: Output) {
        this.instanceType = value
    }

    /**
     * @param value A set of key/value label pairs to assign to the resource. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field 'effective_labels' for all of the labels present on the resource.
     */
    @JvmName("kdjvklbkuqnhyfwi")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The name (also called Instance Id in the Cloud Console) of the Cloud Bigtable instance. Must be 6-33 characters and must only contain hyphens, lowercase letters and numbers.
     */
    @JvmName("ireuqmnthbltgvtt")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the project in which the resource belongs. If it
     * is not provided, the provider project is used.
     */
    @JvmName("xujertmfksdbmumd")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("kluxojibkqnvsthp")
    public suspend fun clusters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusters = mapped
    }

    /**
     * @param argument A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("adlbxglmejyaxnto")
    public suspend fun clusters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            InstanceClusterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.clusters = mapped
    }

    /**
     * @param argument A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("lnoepecstynqvjxq")
    public suspend fun clusters(vararg argument: suspend InstanceClusterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            InstanceClusterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.clusters = mapped
    }

    /**
     * @param argument A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("ebtfxvluiwgljyip")
    public suspend fun clusters(argument: suspend InstanceClusterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(InstanceClusterArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.clusters = mapped
    }

    /**
     * @param values A block of cluster configuration options. This can be specified at least once, and up
     * to as many as possible within 8 cloud regions. Removing the field entirely from the config will cause the provider
     * to default to the backend value. See structure below.
     * -----
     */
    @JvmName("uegcryyqltcdtdpc")
    public suspend fun clusters(vararg values: InstanceClusterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusters = mapped
    }

    /**
     * @param value Whether or not to allow this provider to destroy the instance. Unless this field is set to false
     * in the statefile, a `pulumi destroy` or `pulumi up` that would delete the instance will fail.
     */
    @JvmName("yrlbqqcjgcmmlrwf")
    public suspend fun deletionProtection(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deletionProtection = mapped
    }

    /**
     * @param value The human-readable display name of the Bigtable instance. Defaults to the instance `name`.
     */
    @JvmName("mrfefycifilgbwgl")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The instance type to create. One of `"DEVELOPMENT"` or `"PRODUCTION"`. Defaults to `"PRODUCTION"`.
     * It is recommended to leave this field unspecified since the distinction between `"DEVELOPMENT"` and `"PRODUCTION"` instances is going away,
     * and all instances will become `"PRODUCTION"` instances. This means that new and existing `"DEVELOPMENT"` instances will be converted to
     * `"PRODUCTION"` instances. It is recommended for users to use `"PRODUCTION"` instances in any case, since a 1-node `"PRODUCTION"` instance
     * is functionally identical to a `"DEVELOPMENT"` instance, but without the accompanying restrictions.
     */
    @Deprecated(
        message = """
  It is recommended to leave this field unspecified since the distinction between "DEVELOPMENT" and
      "PRODUCTION" instances is going away, and all instances will become "PRODUCTION" instances.
      This means that new and existing "DEVELOPMENT" instances will be converted to "PRODUCTION"
      instances. It is recommended for users to use "PRODUCTION" instances in any case, since a
      1-node "PRODUCTION" instance is functionally identical to a "DEVELOPMENT" instance, but
      without the accompanying restrictions.
  """,
    )
    @JvmName("wlovkeaomxvjlmgy")
    public suspend fun instanceType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceType = mapped
    }

    /**
     * @param value A set of key/value label pairs to assign to the resource. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field 'effective_labels' for all of the labels present on the resource.
     */
    @JvmName("dsnbujaokcvewfpu")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values A set of key/value label pairs to assign to the resource. Label keys must follow the requirements at https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field 'effective_labels' for all of the labels present on the resource.
     */
    @JvmName("stvgsoqtnjtdwdgg")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The name (also called Instance Id in the Cloud Console) of the Cloud Bigtable instance. Must be 6-33 characters and must only contain hyphens, lowercase letters and numbers.
     */
    @JvmName("kbdfsfyqslwvxxne")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs. If it
     * is not provided, the provider project is used.
     */
    @JvmName("duwkevrwxwsevuod")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): InstanceArgs = InstanceArgs(
        clusters = clusters,
        deletionProtection = deletionProtection,
        displayName = displayName,
        instanceType = instanceType,
        labels = labels,
        name = name,
        project = project,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy