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

com.pulumi.awsnative.msk.kotlin.outputs.GetClusterResult.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.msk.kotlin.outputs

import com.pulumi.awsnative.msk.kotlin.enums.ClusterEnhancedMonitoring
import com.pulumi.awsnative.msk.kotlin.enums.ClusterStorageMode
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property arn
 * @property brokerNodeGroupInfo Information about the broker nodes in the cluster.
 * @property clientAuthentication Includes all client authentication related information.
 * @property configurationInfo Represents the configuration that you want MSK to use for the cluster.
 * @property currentVersion The current version of the MSK cluster
 * @property encryptionInfo Includes all encryption-related information.
 * @property enhancedMonitoring Specifies the level of monitoring for the MSK cluster. The possible values are `DEFAULT` , `PER_BROKER` , and `PER_TOPIC_PER_BROKER` .
 * @property kafkaVersion The version of Apache Kafka. You can use Amazon MSK to create clusters that use Apache Kafka versions 1.1.1 and 2.2.1.
 * @property loggingInfo Logging Info details.
 * @property numberOfBrokerNodes The number of broker nodes in the cluster.
 * @property openMonitoring The settings for open monitoring.
 * @property storageMode This controls storage mode for supported storage tiers.
 * @property tags A key-value pair to associate with a resource.
 */
public data class GetClusterResult(
    public val arn: String? = null,
    public val brokerNodeGroupInfo: ClusterBrokerNodeGroupInfo? = null,
    public val clientAuthentication: ClusterClientAuthentication? = null,
    public val configurationInfo: ClusterConfigurationInfo? = null,
    public val currentVersion: String? = null,
    public val encryptionInfo: ClusterEncryptionInfo? = null,
    public val enhancedMonitoring: ClusterEnhancedMonitoring? = null,
    public val kafkaVersion: String? = null,
    public val loggingInfo: ClusterLoggingInfo? = null,
    public val numberOfBrokerNodes: Int? = null,
    public val openMonitoring: ClusterOpenMonitoring? = null,
    public val storageMode: ClusterStorageMode? = null,
    public val tags: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.msk.outputs.GetClusterResult): GetClusterResult = GetClusterResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            brokerNodeGroupInfo = javaType.brokerNodeGroupInfo().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterBrokerNodeGroupInfo.Companion.toKotlin(args0)
                })
            }).orElse(null),
            clientAuthentication = javaType.clientAuthentication().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterClientAuthentication.Companion.toKotlin(args0)
                })
            }).orElse(null),
            configurationInfo = javaType.configurationInfo().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterConfigurationInfo.Companion.toKotlin(args0)
                })
            }).orElse(null),
            currentVersion = javaType.currentVersion().map({ args0 -> args0 }).orElse(null),
            encryptionInfo = javaType.encryptionInfo().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterEncryptionInfo.Companion.toKotlin(args0)
                })
            }).orElse(null),
            enhancedMonitoring = javaType.enhancedMonitoring().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.enums.ClusterEnhancedMonitoring.Companion.toKotlin(args0)
                })
            }).orElse(null),
            kafkaVersion = javaType.kafkaVersion().map({ args0 -> args0 }).orElse(null),
            loggingInfo = javaType.loggingInfo().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterLoggingInfo.Companion.toKotlin(args0)
                })
            }).orElse(null),
            numberOfBrokerNodes = javaType.numberOfBrokerNodes().map({ args0 -> args0 }).orElse(null),
            openMonitoring = javaType.openMonitoring().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.outputs.ClusterOpenMonitoring.Companion.toKotlin(args0)
                })
            }).orElse(null),
            storageMode = javaType.storageMode().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.msk.kotlin.enums.ClusterStorageMode.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy