Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.logging.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.logging.ProjectSinkArgs.builder
import com.pulumi.gcp.logging.kotlin.inputs.ProjectSinkBigqueryOptionsArgs
import com.pulumi.gcp.logging.kotlin.inputs.ProjectSinkBigqueryOptionsArgsBuilder
import com.pulumi.gcp.logging.kotlin.inputs.ProjectSinkExclusionArgs
import com.pulumi.gcp.logging.kotlin.inputs.ProjectSinkExclusionArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* ## Import
* Project-level logging sinks can be imported using their URI, e.g.
* * `projects/{{project_id}}/sinks/{{name}}`
* When using the `pulumi import` command, project-level logging sinks can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:logging/projectSink:ProjectSink default projects/{{project_id}}/sinks/{{name}}
* ```
* @property bigqueryOptions Options that affect sinks exporting data to BigQuery. Structure documented below.
* @property customWriterIdentity A user managed service account that will be used to write
* the log entries. The format must be `serviceAccount:some@email`. This field can only be specified if you are
* routing logs to a destination outside this sink's project. If not specified, a Logging service account
* will automatically be generated.
* @property description A description of this sink. The maximum length of the description is 8000 characters.
* @property destination 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, a Cloud Logging bucket, or a Google Cloud project. Examples:
* - `storage.googleapis.com/[GCS_BUCKET]`
* - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
* - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
* - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
* - `logging.googleapis.com/projects/[PROJECT_ID]`
* The writer associated with the sink must have access to write to the above resource.
* @property disabled If set to True, then this sink is disabled and it does not export any log entries.
* @property exclusions 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.
* @property filter The filter to apply when exporting logs. Only log entries that match the filter are exported.
* See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced_filters) for information on how to
* write a filter.
* @property name The name of the logging sink. Logging automatically creates two sinks: `_Required` and `_Default`.
* @property project The ID of the project to create the sink in. If omitted, the project associated with the provider is
* used.
* @property uniqueWriterIdentity Whether or not to create a unique identity associated with this sink. If `false`, then the `writer_identity` used is `serviceAccount:[email protected]`. If `true` (the default),
* 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.
*/
public data class ProjectSinkArgs(
public val bigqueryOptions: Output? = null,
public val customWriterIdentity: Output? = null,
public val description: Output? = null,
public val destination: Output? = null,
public val disabled: Output? = null,
public val exclusions: Output>? = null,
public val filter: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val uniqueWriterIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.logging.ProjectSinkArgs =
com.pulumi.gcp.logging.ProjectSinkArgs.builder()
.bigqueryOptions(bigqueryOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.customWriterIdentity(customWriterIdentity?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.destination(destination?.applyValue({ args0 -> args0 }))
.disabled(disabled?.applyValue({ args0 -> args0 }))
.exclusions(
exclusions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.filter(filter?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.uniqueWriterIdentity(uniqueWriterIdentity?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ProjectSinkArgs].
*/
@PulumiTagMarker
public class ProjectSinkArgsBuilder internal constructor() {
private var bigqueryOptions: Output? = null
private var customWriterIdentity: Output? = null
private var description: Output? = null
private var destination: Output? = null
private var disabled: Output? = null
private var exclusions: Output>? = null
private var filter: Output? = null
private var name: Output? = null
private var project: Output? = null
private var uniqueWriterIdentity: Output? = null
/**
* @param value Options that affect sinks exporting data to BigQuery. Structure documented below.
*/
@JvmName("jaqtwbxylojnjgec")
public suspend fun bigqueryOptions(`value`: Output) {
this.bigqueryOptions = value
}
/**
* @param value A user managed service account that will be used to write
* the log entries. The format must be `serviceAccount:some@email`. This field can only be specified if you are
* routing logs to a destination outside this sink's project. If not specified, a Logging service account
* will automatically be generated.
*/
@JvmName("vhanskmgdtyuadjh")
public suspend fun customWriterIdentity(`value`: Output) {
this.customWriterIdentity = value
}
/**
* @param value A description of this sink. The maximum length of the description is 8000 characters.
*/
@JvmName("spuiawecdxaqewis")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value 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, a Cloud Logging bucket, or a Google Cloud project. Examples:
* - `storage.googleapis.com/[GCS_BUCKET]`
* - `bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]`
* - `pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]`
* - `logging.googleapis.com/projects/[PROJECT_ID]/locations/global/buckets/[BUCKET_ID]`
* - `logging.googleapis.com/projects/[PROJECT_ID]`
* The writer associated with the sink must have access to write to the above resource.
*/
@JvmName("jybnjrkrnuhslfqw")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value If set to True, then this sink is disabled and it does not export any log entries.
*/
@JvmName("udobpdlbmtxkvbxf")
public suspend fun disabled(`value`: Output) {
this.disabled = value
}
/**
* @param value 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.
*/
@JvmName("kggskvjfeqgbgbsk")
public suspend fun exclusions(`value`: Output>) {
this.exclusions = value
}
@JvmName("qnpmjhdwxhawucye")
public suspend fun exclusions(vararg values: Output) {
this.exclusions = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("fdqfxdoxcavgrtkw")
public suspend fun exclusions(values: List