NotificationArgs

data class NotificationArgs(val bucket: Output<String>? = null, val customAttributes: Output<Map<String, String>>? = null, val etag: Output<String>? = null, val eventTypes: Output<List<String>>? = null, val id: Output<String>? = null, val kind: Output<String>? = null, val objectNamePrefix: Output<String>? = null, val payloadFormat: Output<String>? = null, val selfLink: Output<String>? = null, val topic: Output<String>? = null, val userProject: Output<String>? = null) : ConvertibleToJava<NotificationArgs>

Creates a notification subscription for a given bucket. Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun NotificationArgs(bucket: Output<String>? = null, customAttributes: Output<Map<String, String>>? = null, etag: Output<String>? = null, eventTypes: Output<List<String>>? = null, id: Output<String>? = null, kind: Output<String>? = null, objectNamePrefix: Output<String>? = null, payloadFormat: Output<String>? = null, selfLink: Output<String>? = null, topic: Output<String>? = null, userProject: Output<String>? = null)

Functions

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

Properties

Link copied to clipboard
val bucket: Output<String>? = null
Link copied to clipboard
val customAttributes: Output<Map<String, String>>? = null

An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.

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

HTTP 1.1 Entity tag for this subscription notification.

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

If present, only send notifications about listed event types. If empty, sent notifications for all event types.

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

The ID of the notification.

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

The kind of item this is. For notifications, this is always storage#notification.

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

If present, only apply this notification configuration to object names that begin with this prefix.

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

The desired content of the Payload.

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

The canonical URL of this notification.

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

The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'

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

The project to be billed for this request. Required for Requester Pays buckets.