
com.pulumi.awsnative.kafkaconnect.kotlin.outputs.ConnectorAutoScaling.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.kafkaconnect.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
* Details about auto scaling of a connector.
* @property maxWorkerCount The maximum number of workers for a connector.
* @property mcuCount Specifies how many MSK Connect Units (MCU) as the minimum scaling unit.
* @property minWorkerCount The minimum number of workers for a connector.
* @property scaleInPolicy The sacle-in policy for the connector.
* @property scaleOutPolicy The sacle-out policy for the connector.
*/
public data class ConnectorAutoScaling(
public val maxWorkerCount: Int,
public val mcuCount: Int,
public val minWorkerCount: Int,
public val scaleInPolicy: ConnectorScaleInPolicy,
public val scaleOutPolicy: ConnectorScaleOutPolicy,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.kafkaconnect.outputs.ConnectorAutoScaling): ConnectorAutoScaling = ConnectorAutoScaling(
maxWorkerCount = javaType.maxWorkerCount(),
mcuCount = javaType.mcuCount(),
minWorkerCount = javaType.minWorkerCount(),
scaleInPolicy = javaType.scaleInPolicy().let({ args0 ->
com.pulumi.awsnative.kafkaconnect.kotlin.outputs.ConnectorScaleInPolicy.Companion.toKotlin(args0)
}),
scaleOutPolicy = javaType.scaleOutPolicy().let({ args0 ->
com.pulumi.awsnative.kafkaconnect.kotlin.outputs.ConnectorScaleOutPolicy.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy