You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_logging_billing_account_sink" {
source="./modules/google-beta/r/google_logging_billing_account_sink"# billing_account - (required) is a type of stringbilling_account=null# description - (optional) is a type of stringdescription=null# destination - (required) is a type of stringdestination=null# disabled - (optional) is a type of booldisabled=null# filter - (optional) is a type of stringfilter=null# name - (required) is a type of stringname=nullbigquery_options=[{
use_partitioned_tables =null
}]
exclusions=[{
description =null
disabled =null
filter =null
name =null
}]
}
variable"billing_account" {
description="(required) - The billing account exported to the sink."type=string
}
variable"description" {
description="(optional) - A description of this sink. The maximum length of the description is 8000 characters."type=stringdefault=null
}
variable"destination" {
description="(required) - The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: \"storage.googleapis.com/[GCS_BUCKET]\"\"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\" The writer associated with the sink must have access to write to the above resource."type=string
}
variable"disabled" {
description="(optional) - If set to True, then this sink is disabled and it does not export any log entries."type=booldefault=null
}
variable"filter" {
description="(optional) - The filter to apply when exporting logs. Only log entries that match the filter are exported."type=stringdefault=null
}
variable"name" {
description="(required) - The name of the logging sink."type=string
}
variable"bigquery_options" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
use_partitioned_tables =bool
}
))
default=[]
}
variable"exclusions" {
description="nested block: NestingList, min items: 0, max items: 0"type=set(object(
{
description =string
disabled =bool
filter =string
name =string
}
))
default=[]
}
resource"google_logging_billing_account_sink""this" {
# billing_account - (required) is a type of stringbilling_account=var.billing_account# description - (optional) is a type of stringdescription=var.description# destination - (required) is a type of stringdestination=var.destination# disabled - (optional) is a type of booldisabled=var.disabled# filter - (optional) is a type of stringfilter=var.filter# name - (required) is a type of stringname=var.namedynamic"bigquery_options" {
for_each=var.bigquery_optionscontent {
# use_partitioned_tables - (required) is a type of booluse_partitioned_tables=bigquery_options.value["use_partitioned_tables"]
}
}
dynamic"exclusions" {
for_each=var.exclusionscontent {
# description - (optional) is a type of stringdescription=exclusions.value["description"]
# disabled - (optional) is a type of booldisabled=exclusions.value["disabled"]
# filter - (required) is a type of stringfilter=exclusions.value["filter"]
# name - (required) is a type of stringname=exclusions.value["name"]
}
}
}