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

com.pulumi.gcp.bigtable.kotlin.outputs.InstanceCluster.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigtable.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property autoscalingConfig [Autoscaling](https://cloud.google.com/bigtable/docs/autoscaling#parameters) config for the cluster, contains the following arguments:
 * @property clusterId The ID of the Cloud Bigtable cluster. Must be 6-30 characters and must only contain hyphens, lowercase letters and numbers.
 * @property kmsKeyName Describes the Cloud KMS encryption key that will be used to protect the destination Bigtable cluster. The requirements for this key are: 1) The Cloud Bigtable service account associated with the project that contains this cluster must be granted the `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. 2) Only regional keys can be used and the region of the CMEK key must match the region of the cluster.
 * > **Note**: Removing the field entirely from the config will cause the provider to default to the backend value.
 * !> **Warning**: Modifying this field will cause the provider to delete/recreate the entire resource.
 * !> **Warning:** Modifying the `storage_type`, `zone` or `kms_key_name` of an existing cluster (by
 * `cluster_id`) will cause the provider to delete/recreate the entire
 * `gcp.bigtable.Instance` resource. If these values are changing, use a new
 * `cluster_id`.
 * @property numNodes The number of nodes in the cluster.
 * If no value is set, Cloud Bigtable automatically allocates nodes based on your data footprint and optimized for 50% storage utilization.
 * @property state describes the current state of the cluster.
 * @property storageType The storage type to use. One of `"SSD"` or
 * `"HDD"`. Defaults to `"SSD"`.
 * @property zone The zone to create the Cloud Bigtable cluster in. If it not
 * specified, the provider zone is used. Each cluster must have a different zone in the same region. Zones that support
 * Bigtable instances are noted on the [Cloud Bigtable locations page](https://cloud.google.com/bigtable/docs/locations).
 */
public data class InstanceCluster(
    public val autoscalingConfig: InstanceClusterAutoscalingConfig? = null,
    public val clusterId: String,
    public val kmsKeyName: String? = null,
    public val numNodes: Int? = null,
    public val state: String? = null,
    public val storageType: String? = null,
    public val zone: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigtable.outputs.InstanceCluster): InstanceCluster = InstanceCluster(
            autoscalingConfig = javaType.autoscalingConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.bigtable.kotlin.outputs.InstanceClusterAutoscalingConfig.Companion.toKotlin(args0)
                })
            }).orElse(null),
            clusterId = javaType.clusterId(),
            kmsKeyName = javaType.kmsKeyName().map({ args0 -> args0 }).orElse(null),
            numNodes = javaType.numNodes().map({ args0 -> args0 }).orElse(null),
            state = javaType.state().map({ args0 -> args0 }).orElse(null),
            storageType = javaType.storageType().map({ args0 -> args0 }).orElse(null),
            zone = javaType.zone().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy