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

com.pulumi.gcp.managedkafka.kotlin.outputs.ClusterGcpConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.managedkafka.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property accessConfig The configuration of access to the Kafka cluster.
 * Structure is documented below.
 * @property kmsKey The Cloud KMS Key name to use for encryption. The key must be located in the same region as the cluster and cannot be changed. Must be in the format `projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY`.
 */
public data class ClusterGcpConfig(
    public val accessConfig: ClusterGcpConfigAccessConfig,
    public val kmsKey: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.managedkafka.outputs.ClusterGcpConfig): ClusterGcpConfig = ClusterGcpConfig(
            accessConfig = javaType.accessConfig().let({ args0 ->
                com.pulumi.gcp.managedkafka.kotlin.outputs.ClusterGcpConfigAccessConfig.Companion.toKotlin(args0)
            }),
            kmsKey = javaType.kmsKey().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy