LiteTopicRetentionConfigArgs

data class LiteTopicRetentionConfigArgs(val perPartitionBytes: Output<String>, val period: Output<String>? = null) : ConvertibleToJava<LiteTopicRetentionConfigArgs>

Constructors

Link copied to clipboard
constructor(perPartitionBytes: Output<String>, period: Output<String>? = null)

Properties

Link copied to clipboard
val period: Output<String>? = null

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".

Link copied to clipboard

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.

Functions

Link copied to clipboard
open override fun toJava(): LiteTopicRetentionConfigArgs