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

com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionCloudStorageConfig.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.pubsub.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property avroConfigs If set, message data will be written to Cloud Storage in Avro format.
 * @property bucket User-provided name for the Cloud Storage bucket. The bucket must be created by the user. The bucket name must be without any prefix like "gs://".
 * @property filenamePrefix User-provided prefix for Cloud Storage filename.
 * @property filenameSuffix User-provided suffix for Cloud Storage filename. Must not end in "/".
 * @property maxBytes The maximum bytes that can be written to a Cloud Storage file before a new file is created. Min 1 KB, max 10 GiB.
 * The maxBytes limit may be exceeded in cases where messages are larger than the limit.
 * @property maxDuration The maximum duration that can elapse before a new Cloud Storage file is created. Min 1 minute, max 10 minutes, default 5 minutes.
 * May not exceed the subscription's acknowledgement deadline.
 * A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
 * @property state An output-only field that indicates whether or not the subscription can receive messages.
 */
public data class GetSubscriptionCloudStorageConfig(
    public val avroConfigs: List,
    public val bucket: String,
    public val filenamePrefix: String,
    public val filenameSuffix: String,
    public val maxBytes: Int,
    public val maxDuration: String,
    public val state: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.pubsub.outputs.GetSubscriptionCloudStorageConfig): GetSubscriptionCloudStorageConfig = GetSubscriptionCloudStorageConfig(
            avroConfigs = javaType.avroConfigs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.pubsub.kotlin.outputs.GetSubscriptionCloudStorageConfigAvroConfig.Companion.toKotlin(args0)
                })
            }),
            bucket = javaType.bucket(),
            filenamePrefix = javaType.filenamePrefix(),
            filenameSuffix = javaType.filenameSuffix(),
            maxBytes = javaType.maxBytes(),
            maxDuration = javaType.maxDuration(),
            state = javaType.state(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy