ProjectSink

class ProjectSink : KotlinCustomResource

Import

Project-level logging sinks can be imported using their URI, e.g.

$ pulumi import gcp:logging/projectSink:ProjectSink my_sink projects/my-project/sinks/my-sink

Properties

Link copied to clipboard

Options that affect sinks exporting data to BigQuery. Structure documented below.

Link copied to clipboard
val description: Output<String>?

A description of this sink. The maximum length of the description is 8000 characters.

Link copied to clipboard
val destination: Output<String>

The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket . Examples:

Link copied to clipboard
val disabled: Output<Boolean>?

If set to True, then this sink is disabled and it does not export any log entries.

Link copied to clipboard

Log entries that match any of the exclusion filters will not be exported. If a log entry is matched by both filter and one of exclusions.filter, it will not be exported. Can be repeated multiple times for multiple exclusions. Structure is documented below.

Link copied to clipboard
val filter: Output<String>?

The filter to apply when exporting logs. Only log entries that match the filter are exported. See Advanced Log Filters for information on how to write a filter.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the logging sink.

Link copied to clipboard
val project: Output<String>

The ID of the project to create the sink in. If omitted, the project associated with the provider is used.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether or not to create a unique identity associated with this sink. If false (the default), then the writer_identity used is serviceAccount:cloud-logs@system.gserviceaccount.com. If true, then a unique service account is created and used for this sink. If you wish to publish logs across projects or utilize bigquery_options, you must set unique_writer_identity to true.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val writerIdentity: Output<String>

The identity associated with this sink. This identity must be granted write access to the configured destination.