com.pulumi.gcp.pubsub.kotlin.outputs.LiteTopicRetentionConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.pubsub.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property perPartitionBytes The provisioned storage, in bytes, per partition. If the number of bytes stored
* in any of the topic's partitions grows beyond this value, older messages will be
* dropped to make room for newer ones, regardless of the value of period.
* @property period How long a published message is retained. If unset, messages will be retained as
* long as the bytes retained for each partition is below perPartitionBytes. A
* duration in seconds with up to nine fractional digits, terminated by 's'.
* Example: "3.5s".
*/
public data class LiteTopicRetentionConfig(
public val perPartitionBytes: String,
public val period: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.pubsub.outputs.LiteTopicRetentionConfig): LiteTopicRetentionConfig = LiteTopicRetentionConfig(
perPartitionBytes = javaType.perPartitionBytes(),
period = javaType.period().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy