SubscriptionCloudStorageConfigArgs

data class SubscriptionCloudStorageConfigArgs(val avroConfig: Output<SubscriptionCloudStorageConfigAvroConfigArgs>? = null, val bucket: Output<String>, val filenameDatetimeFormat: Output<String>? = null, val filenamePrefix: Output<String>? = null, val filenameSuffix: Output<String>? = null, val maxBytes: Output<Int>? = null, val maxDuration: Output<String>? = null, val serviceAccountEmail: Output<String>? = null, val state: Output<String>? = null) : ConvertibleToJava<SubscriptionCloudStorageConfigArgs>

Constructors

Link copied to clipboard
constructor(avroConfig: Output<SubscriptionCloudStorageConfigAvroConfigArgs>? = null, bucket: Output<String>, filenameDatetimeFormat: Output<String>? = null, filenamePrefix: Output<String>? = null, filenameSuffix: Output<String>? = null, maxBytes: Output<Int>? = null, maxDuration: Output<String>? = null, serviceAccountEmail: Output<String>? = null, state: Output<String>? = null)

Properties

Link copied to clipboard

If set, message data will be written to Cloud Storage in Avro format. Structure is documented below.

Link copied to clipboard
val bucket: Output<String>

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

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

User-provided format string specifying how to represent datetimes in Cloud Storage filenames.

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

User-provided prefix for Cloud Storage filename.

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

User-provided suffix for Cloud Storage filename. Must not end in "/".

Link copied to clipboard
val maxBytes: Output<Int>? = null

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.

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

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

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

The service account to use to write to Cloud Storage. If not specified, the Pub/Sub service agent, service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.

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

(Output) An output-only field that indicates whether or not the subscription can receive messages.

Functions

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